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

Side by Side Diff: pkg/front_end/testcases/implicit_scope_test.dart.strong.expect

Issue 2829223007: Introduce initial plumbing for type promotion in fasta. (Closed)
Patch Set: Add missing copyrights Created 3 years, 8 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 library;
2 import self as self;
3 import "dart:core" as core;
4 import "package:expect/expect.dart" as exp;
5
6 class ImplicitScopeTest extends core::Object {
7 constructor •() → void
8 : super core::Object::•()
9 ;
10 static method alwaysTrue() → core::bool {
11 return 1.+(1).==(2);
12 }
13 static method testMain() → dynamic {
14 dynamic a = "foo";
15 dynamic b;
16 if(self::ImplicitScopeTest::alwaysTrue()) {
17 dynamic a = "bar";
18 }
19 else {
20 dynamic b = a;
21 }
22 exp::Expect::equals("foo", a);
23 exp::Expect::equals(null, b);
24 while (!self::ImplicitScopeTest::alwaysTrue()) {
25 dynamic a = "bar";
26 dynamic b = "baz";
27 }
28 exp::Expect::equals("foo", a);
29 exp::Expect::equals(null, b);
30 for (core::int i = 0; i.<(10); i = i.+(1)) {
31 dynamic a = "bar";
32 dynamic b = "baz";
33 }
34 exp::Expect::equals("foo", a);
35 exp::Expect::equals(null, b);
36 do {
37 dynamic a = "bar";
38 dynamic b = "baz";
39 }
40 while ("black".==("white"))
41 exp::Expect::equals("foo", a);
42 exp::Expect::equals(null, b);
43 }
44 }
45 static method main() → dynamic {
46 self::ImplicitScopeTest::testMain();
47 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698