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

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

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 library; 1 library;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 class Foo extends core::Object { 5 class Foo extends core::Object {
6 field dynamic field = null; 6 field dynamic field = null;
7 constructor •() → void 7 constructor •() → void
8 : super core::Object::•() 8 : super core::Object::•()
9 ; 9 ;
10 } 10 }
11 static method identity(dynamic x) → dynamic 11 static method identity(dynamic x) → dynamic
12 return x; 12 return x;
13 static method use(dynamic x) → void {} 13 static method use(dynamic x) → void {}
14 static method main(core::List<core::String> args) → dynamic { 14 static method main(core::List<core::String> args) → dynamic {
15 dynamic foo = self::identity(new self::Foo::•()); 15 dynamic foo = self::identity(new self::Foo::•());
16 if(args.{core::List::length}.{core::num::>}(1)) { 16 if(args.{core::List::length}.{core::num::>}(1)) {
17 foo.field = "string"; 17 foo.field = "string";
18 dynamic first = foo.field; 18 dynamic first = foo.field;
19 self::use(first); 19 self::use(first);
20 foo.noField = "string"; 20 foo.noField = "string";
21 dynamic second = foo.noField; 21 dynamic second = foo.noField;
22 self::use(second); 22 self::use(second);
23 } 23 }
24 } 24 }
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/bad_store.dart.outline.expect ('k') | pkg/front_end/testcases/call.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698