d3539374ff
Change-Id: Ia00ced1c31ccd49dc883d4dfdc4fe644d8a5e363 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/435600 Reviewed-by: Mayank Patke <fishythefish@google.com> Commit-Queue: Nate Biggs <natebiggs@google.com>
29 lines
542 B
Dart
29 lines
542 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.
|
|
|
|
import 'package:expect/expect.dart';
|
|
|
|
abstract class A {
|
|
m();
|
|
}
|
|
|
|
abstract class B implements A {
|
|
noSuchMethod(Invocation i) {
|
|
return 42;
|
|
}
|
|
}
|
|
|
|
class C extends B {}
|
|
|
|
class D extends C {
|
|
noSuchMethod(Invocation i) => 87;
|
|
|
|
method() => super.m();
|
|
}
|
|
|
|
void main() {
|
|
D x = new D();
|
|
Expect.equals(87, x.method());
|
|
}
|