Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Unified Diff: tests/language/super_no_such_method5_test.dart

Issue 1678053002: Fix super noSuchMethod handling. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/super_no_such_method4_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/super_no_such_method5_test.dart
diff --git a/tests/language/type_variable_closure3_test.dart b/tests/language/super_no_such_method5_test.dart
similarity index 52%
copy from tests/language/type_variable_closure3_test.dart
copy to tests/language/super_no_such_method5_test.dart
index ecb1c39e82ed81cc01dd061dca2b5070890f985b..fba8087b27f0d37b4f18dcd4f03d8500e43ac8d4 100644
--- a/tests/language/type_variable_closure3_test.dart
+++ b/tests/language/super_no_such_method5_test.dart
@@ -2,17 +2,16 @@
// 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";
+import 'package:expect/expect.dart';
-class A<T> {}
+class A {
+ noSuchMethod(im) => 42;
+}
-class C<T> {
- a() {
- return () => new A<T>();
- }
+class B extends Object with A {
+ foo() => super.foo(); /// 01: static type warning
}
main() {
- Expect.isTrue(new C<int>().a()() is A<int>);
- Expect.isFalse(new C<int>().a()() is A<String>);
-}
+ Expect.equals(42, new B().foo()); /// 01: continued
+}
« no previous file with comments | « tests/language/super_no_such_method4_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698