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

Side by Side Diff: pkg/kernel/testcases/strong-mode/covariant_generic.baseline.txt

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
(Empty)
1 library;
2 import self as self;
3 import "dart:core" as core;
4
5 class Foo<T extends core::Object> extends core::Object {
6 final field self::Foo::T finalField;
7 final field (self::Foo::T) → void callbackField;
8 field self::Foo::T mutableField = null;
9 field (self::Foo::T) → void mutableCallbackField = null;
10 constructor •(self::Foo::T finalField, (self::Foo::T) → void callbackField) → void
11 : self::Foo::finalField = finalField, self::Foo::callbackField = callbackFie ld, super core::Object::•()
12 ;
13 method method(self::Foo::T x) → void {}
14 set setter(self::Foo::T x) → void {}
15 method withCallback((self::Foo::T) → void callback) → void {
16 callback.call(this.{self::Foo::finalField});
17 }
18 set mutableField$cc(core::Object mutableField_) → dynamic
19 this.{=self::Foo::mutableField} = mutableField_ as self::Foo::T;
20 method method$cc(core::Object x) → void
21 this.{=self::Foo::method}(x as self::Foo::T);
22 set setter$cc(core::Object x) → void
23 this.{=self::Foo::setter} = x as self::Foo::T;
24 }
25 static method main() → dynamic {
26 self::Foo<core::int> fooInt = new self::Foo::•<core::int>(1, (core::int x) → c ore::Null {});
27 fooInt.{self::Foo::method}(3);
28 fooInt.{self::Foo::setter} = 3;
29 fooInt.{self::Foo::withCallback}((core::int x) → core::Null {});
30 fooInt.{self::Foo::withCallback}((core::num x) → core::Null {});
31 fooInt.{self::Foo::mutableField} = 3;
32 fooInt.{self::Foo::mutableCallbackField} = (core::int x) → core::Null {};
33 self::Foo<core::num> fooNum = fooInt;
34 fooNum.{self::Foo::method$cc}(3);
35 fooNum.{self::Foo::method$cc}(2.5);
36 fooNum.{self::Foo::setter$cc} = 3;
37 fooNum.{self::Foo::setter$cc} = 2.5;
38 fooNum.{self::Foo::withCallback}((core::num x) → core::Null {});
39 fooNum.{self::Foo::mutableField$cc} = 3;
40 fooNum.{self::Foo::mutableField$cc} = 2.5;
41 fooNum.{self::Foo::mutableCallbackField}.call(3);
42 fooNum.{self::Foo::mutableCallbackField}.call(2.5);
43 fooNum.{self::Foo::mutableCallbackField} = (core::num x) → core::Null {};
44 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/strong-mode/closure.baseline.txt ('k') | pkg/kernel/testcases/strong-mode/escape.baseline.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698