dart-sdk/tests/language/interface/interface2_test.dart
Konstantin Shcheglov 765cdc169c Update language/interface/interface2_test after analyzer changes.
Bug: https://github.com/dart-lang/sdk/issues/42076
Change-Id: Ia2d4d42540a702301c76ef35e05a9c86e2cee3d3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149220
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-05-27 19:07:20 +00:00

15 lines
489 B
Dart

// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// A class must implement a known interface.
class Interface2NegativeTest implements BooHoo {}
// ^^^^^^
// [analyzer] COMPILE_TIME_ERROR.IMPLEMENTS_NON_CLASS
// [cfe] Type 'BooHoo' not found.
main() {
Interface2NegativeTest();
}