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

Unified Diff: test/codegen/methods.dart

Issue 1293293002: Attach type info to extension method and object method tear-offs (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 years, 4 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/methods.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 7367c011abc1789efa5ab5ff9e8156efbda359b9..b3dd90c3f7319fdd00068918d9a4a5ea26229aee 100644
--- a/test/codegen/methods.dart
+++ b/test/codegen/methods.dart
@@ -55,4 +55,12 @@ test() {
// Dynamic Tear-off
dynamic aa = new A();
var h = aa.x;
+
+ // Tear-off of object methods
+ var ts = a.toString;
+ var nsm = a.noSuchMethod;
+
+ // Tear-off extension methods
+ var c = "".padLeft;
+ var r = (3.0).floor;
}
« no previous file with comments | « test/codegen/expect/methods.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698