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

Unified Diff: tests/kernel/unsorted/this_test.dart

Issue 2434123003: Merge more Kernel infrastructure from kernel_sdk SDK fork. (Closed)
Patch Set: Created 4 years, 2 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
Index: tests/kernel/unsorted/this_test.dart
diff --git a/tests/kernel/unsorted/this_test.dart b/tests/kernel/unsorted/this_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5bfbce75d92c95a2ab26d8fc47292f6fbbb6e7f3
--- /dev/null
+++ b/tests/kernel/unsorted/this_test.dart
@@ -0,0 +1,11 @@
+import 'expect.dart';
Kevin Millikin (Google) 2016/10/21 09:10:58 Copyright header.
Vyacheslav Egorov (Google) 2016/10/21 13:39:44 Done.
+
+class A {
+ getThis() => this;
+}
+
+main() {
+ var a = new A();
+ Expect.isTrue(a == a.getThis());
+ Expect.isTrue(identical(a, a.getThis()));
+}

Powered by Google App Engine
This is Rietveld 408576698