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

Side by Side Diff: tests/kernel/unsorted/this_test.dart

Issue 2453773002: Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork." (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 @JS() 5 import 'expect.dart';
6 library js_dispatch_property_test_lib;
7 6
8 import 'package:js/js.dart'; 7 class A {
8 getThis() => this;
9 }
9 10
10 @JS() 11 main() {
11 external A create(); 12 var a = new A();
12 13 Expect.isTrue(a == a.getThis());
13 @JS() @anonymous 14 Expect.isTrue(identical(a, a.getThis()));
14 class A {
15 external String foo(String x);
16 } 15 }
OLDNEW
« no previous file with comments | « tests/kernel/unsorted/this_capture_test.dart ('k') | tests/kernel/unsorted/throw_try_catch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698