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

Unified Diff: tests/language/regress_25550_test.dart

Issue 1683113003: A type should be a subtype of Function if its class declares a call function, (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/regress_25550_test.dart
diff --git a/tests/standalone/no_support_ast_printer_test.dart b/tests/language/regress_25550_test.dart
similarity index 57%
copy from tests/standalone/no_support_ast_printer_test.dart
copy to tests/language/regress_25550_test.dart
index bbffe2254938bb44f1310aafbd039d05d840c1d8..4a8a7c5954d202d9a9d53f401efb13be36277c0b 100644
--- a/tests/standalone/no_support_ast_printer_test.dart
+++ b/tests/language/regress_25550_test.dart
@@ -2,8 +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.
-// VMOptions=--no-support_ast_printer
+typedef int Adder(int a, int b);
+
+class Mock {
+ noSuchMethod(i) => null;
+}
+
+class MockAdder extends Mock {
+ int call(int a, int b);
+}
main() {
- print("Okay");
+ Adder adder = new MockAdder();
}
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698