blob: d2170362d1bd6dc5a359c8b3eef739ed4ef9aad7 [file] [log] [blame]
* 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.
* @assertion Let C be a concrete class that does not declare its own
* noSuchMethod().
* It is a compile error if the implicit interface
* of C includes an instance member m of type F and C does not declare or
* inherit a corresponding instance member m of type F' such that F' <: F.
* @description Checks that there are no warnings if a class declares
* its own noSuchMethod() and does not declare nor inherit an instance
* method declared in class interface. Test type alias
* @static-clean
* @author
// SharedOptions=--enable-experiment=nonfunction-type-aliases
abstract class I {
typedef IAlias = I;
class C implements IAlias {
noSuchMethod(Invocation i) {}
main () {
new C();