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

Side by Side Diff: testcases/strong-mode/void-methods.baseline.txt

Issue 2465893002: Add strong mode type checking pass. (Closed)
Patch Set: Merge with master and remove visitBlockExpression 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
« no previous file with comments | « testcases/strong-mode/optional.baseline.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // dynamic is not a subtype of dart.core::int (void-methods.dart:4:27)
1 library; 2 library;
2 import self as self; 3 import self as self;
3 import "dart:core" as core; 4 import "dart:core" as core;
4 5
5 class Foo extends core::Object { 6 class Foo extends core::Object {
6 field core::List<dynamic> list = <core::int>[1, 2, 3]; 7 field core::List<dynamic> list = <core::int>[1, 2, 3];
7 constructor •() → void 8 constructor •() → void
8 : super core::Object::•() 9 : super core::Object::•()
9 ; 10 ;
10 set first(dynamic x) → void 11 set first(dynamic x) → void
11 this.{self::Foo::list}.{core::List::[]=}(0, x); 12 this.{self::Foo::list}.{core::List::[]=}(0, x);
12 operator []=(dynamic x, dynamic y) → dynamic 13 operator []=(dynamic x, dynamic y) → dynamic
13 this.{self::Foo::list}.{core::List::[]=}(x, y); 14 this.{self::Foo::list}.{core::List::[]=}(x, y);
14 method clear() → void 15 method clear() → void
15 this.{self::Foo::list}.{core::List::clear}(); 16 this.{self::Foo::list}.{core::List::clear}();
16 } 17 }
17 static method main() → dynamic { 18 static method main() → dynamic {
18 new self::Foo::•().{self::Foo::first} = 4; 19 new self::Foo::•().{self::Foo::first} = 4;
19 new self::Foo::•().{self::Foo::[]=}(3, 4); 20 new self::Foo::•().{self::Foo::[]=}(3, 4);
20 new self::Foo::•().{self::Foo::clear}(); 21 new self::Foo::•().{self::Foo::clear}();
21 } 22 }
OLDNEW
« no previous file with comments | « testcases/strong-mode/optional.baseline.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698