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

Unified Diff: pkg/dev_compiler/test/codegen/language/callable_test.dart

Issue 2560983002: Support callable classes where call is inherited (Closed)
Patch Set: Created 4 years 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 | « pkg/dev_compiler/lib/src/compiler/code_generator.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/test/codegen/language/callable_test.dart
diff --git a/pkg/dev_compiler/test/codegen/language/callable_test.dart b/pkg/dev_compiler/test/codegen/language/callable_test.dart
index 57e7ffb8fd8e4f9d23c86e34b7bf83e16076028e..7865d2015e4d4fe4021b0b1aa67cdfdaccb8d5a9 100644
--- a/pkg/dev_compiler/test/codegen/language/callable_test.dart
+++ b/pkg/dev_compiler/test/codegen/language/callable_test.dart
@@ -8,6 +8,10 @@ class X {
call() => 42;
}
+class XX extends X {
+ XX.named();
+}
+
class Y {
call(int x) => 87 + x;
@@ -24,6 +28,7 @@ class Z<T> {
typedef F(int x);
typedef G(String y);
+typedef H();
main() {
X x = new X();
@@ -44,4 +49,10 @@ main() {
Expect.equals(Y.staticMethod(6), 7);
Expect.equals(Z.staticMethod(6), 7);
+
+ var xx = new XX.named();
+ Expect.equals(xx(), 42);
+
+ H xx2 = new XX.named();
+ Expect.equals(xx2(), 42);
}
« no previous file with comments | « pkg/dev_compiler/lib/src/compiler/code_generator.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698