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

Side by Side Diff: pkg/front_end/testcases/bad_store.dart

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: 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
1 class Foo { 1 class Foo {
2 var field; 2 var field;
3 } 3 }
4 4
5 dynamic identity(x) => x; 5 dynamic identity(x) => x;
6 6
7 void use(x) {} 7 void use(x) {}
8 8
9 main(List<String> args) { 9 main(List<String> args) {
10 dynamic foo = identity(new Foo()); 10 dynamic foo = identity(new Foo());
11 if (args.length > 1) { 11 if (args.length > 1) {
12 foo.field = "string"; 12 foo.field = "string";
13 var first = foo.field; 13 var first = foo.field;
14 use(first); 14 use(first);
15 foo.noField = "string"; 15 foo.noField = "string";
16 var second = foo.noField; 16 var second = foo.noField;
17 use(second); 17 use(second);
18 } 18 }
19 } 19 }
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/await.dart.outline.expect ('k') | pkg/front_end/testcases/bad_store.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698