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

Unified Diff: test/codegen/methods.dart

Issue 1138793002: Tag closures with their types (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: More comment fixes Created 5 years, 7 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 | « test/codegen/expect/try_catch.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/methods.dart
diff --git a/test/codegen/methods.dart b/test/codegen/methods.dart
index b2244da0b768438c80fe6955b20207fb373cabb4..7367c011abc1789efa5ab5ff9e8156efbda359b9 100644
--- a/test/codegen/methods.dart
+++ b/test/codegen/methods.dart
@@ -47,4 +47,12 @@ test() {
// looks like a method but is actually f.bar.call(...)
var f = new Foo();
f.bar("Bar's call method!");
+
+ // Tear-off
+ A a = new A();
+ var g = a.x;
+
+ // Dynamic Tear-off
+ dynamic aa = new A();
+ var h = aa.x;
}
« no previous file with comments | « test/codegen/expect/try_catch.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698