mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:41:19 +00:00
059f44aa3b
Closes #25680 - This CL fixes the handling of inapplicable noSuchMethod methods on superclasses (see issue 25671) for both SSA and CPS. - The CPS implementation for normal noSuchMethod calls on super was wrong is fixed with this CL, including the addition the missing visitUnresolvedSuperSet method on the SemanticSendVisitor. - An error (presumably in type inference) affecting SSA was found with the added tests (Issue 25716 filed) R=asgerf@google.com, het@google.com Committed:756d95a372
Reverted:a0d7b64fde
Review URL: https://codereview.chromium.org/1678053002.
19 lines
460 B
Dart
19 lines
460 B
Dart
// Copyright (c) 2016, 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';
|
|
|
|
class A {
|
|
noSuchMethod(im) => 42;
|
|
}
|
|
|
|
class B extends A {
|
|
noSuchMethod(im) => 87;
|
|
|
|
foo() => super.foo(); /// 01: static type warning
|
|
}
|
|
|
|
main() {
|
|
Expect.equals(42, new B().foo()); /// 01: continued
|
|
} |