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

Side by Side Diff: tests/kernel/unsorted/klass_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 unified diff | Download patch
OLDNEW
(Empty)
1 class A {
Kevin Millikin (Google) 2016/10/21 09:10:57 Copyright header.
Vyacheslav Egorov (Google) 2016/10/21 13:39:43 Done.
2 A() {
3 print("A");
4 }
5
6 hello() {
7 print("A.hello()");
8 }
9
10 hello1(a) {
11 print("A.hello1()");
12 print(a);
13 }
14
15 foo(a, [b]) {
16 print("A.foo()");
17 print(a);
18 print(b);
19 }
20
21 bar(a, {b}) {
22 print("A.bar()");
23 print(a);
24 print(b);
25 }
26 }
27
28 main() {
29 print("before constructor");
30 var a = new A();
31 print("============");
32 a.hello();
33 print('-----(obj):');
34 print(a);
35 print('-----');
36 a.hello1(1);
37 print('-----');
38 a.foo(1);
39 print('-----');
40 a.foo(1, 2);
41 print('-----');
42 print("============");
43 a.bar(1);
44 print('-----');
45 a.bar(1, b: 2);
46 print("============");
47 }
48
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698