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/global_field_initializer_test.dart

Issue 2451623006: Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork." (Closed)
Patch Set: Fix 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 import 'expect.dart';
6
7 var intField = 1;
8 var doubleField = 3.1415;
9 var stringField = "hello";
10 var nullField = null;
11 var nullField2;
12 var composed = "hello" + " " + "world";
13
14 class A {
15 static var intField = 1;
16 static var doubleField = 3.1415;
17 static var stringField = "hello";
18 static var nullField = null;
19 static var nullField2;
20 static var composed = "hello" + " " + "world";
21 }
22
23 main() {
24 Expect.isTrue(intField == 1);
25 Expect.isTrue(doubleField == 3.1415);
26 Expect.isTrue(stringField == "hello");
27 Expect.isTrue(nullField == null);
28 Expect.isTrue(nullField2 == null);
29 Expect.isTrue(composed == "hello world");
30
31 Expect.isTrue(A.intField == 1);
32 Expect.isTrue(A.doubleField == 3.1415);
33 Expect.isTrue(A.stringField == "hello");
34 Expect.isTrue(A.nullField == null);
35 Expect.isTrue(A.nullField2 == null);
36 Expect.isTrue(A.composed == "hello world");
37 }
OLDNEW
« no previous file with comments | « tests/kernel/unsorted/getters_and_setters_test.dart ('k') | tests/kernel/unsorted/global_function_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698