mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:11:19 +00:00
77e24a6736
Change-Id: I7fbfc06a864eaaf4052b736d756410be5d1ab531 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/275601 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
22 lines
540 B
Dart
22 lines
540 B
Dart
// Copyright (c) 2018, 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.
|
|
|
|
// This method checks that the noSuchMethod forwarder is generated in cases when
|
|
// the class of the implemented interface has concrete methods.
|
|
|
|
class A {
|
|
dynamic noSuchMethod(Invocation i) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
class I {
|
|
// This method is concrete.
|
|
void foo() {}
|
|
}
|
|
|
|
class B extends A implements I {}
|
|
|
|
main() {}
|