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

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

Issue 2451893004: Revert "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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 // Tests of invocations.
6
7 import 'expect.dart';
8
9 test0(x) {
10 Expect.isTrue(x == 'argument0');
11 return 'return0';
12 }
13
14 class C0 {
15 static test1(x) {
16 Expect.isTrue(x == 'argument1');
17 return 'return1';
18 }
19 }
20
21 class C1 {
22 test2(x) {
23 Expect.isTrue(x == 'argument2');
24 return 'return2';
25 }
26 }
27
28 class C2 {
29 C2.test3(x) {
30 Expect.isTrue(x == 'argument3');
31 }
32 }
33
34 main() {
35 Expect.isTrue(test0('argument0') == 'return0');
36 Expect.isTrue(C0.test1('argument1') == 'return1');
37 Expect.isTrue(new C1().test2('argument2') == 'return2');
38 var c = new C2.test3('argument3');
39 Expect.isTrue(c is C2);
40 }
OLDNEW
« no previous file with comments | « tests/kernel/unsorted/invocation_errors_test.dart ('k') | tests/kernel/unsorted/klass_field_initializer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698