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

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

Issue 2995553002: Implement type inference for asserts in constructor initializers. (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « pkg/front_end/testcases/inference/assert_initializer.dart.outline.expect ('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
(Empty)
1 library test;
2 import self as self;
3 import "dart:core" as core;
4
5 class C extends core::Object {
6 constructor expressionOnly() → void
7 : final dynamic #t1 = () → dynamic
8 assert(self::f<dynamic>());
9 .call(), super core::Object::•()
10 ;
11 constructor expressionAndMessage() → void
12 : final dynamic #t2 = () → dynamic
13 assert(self::f<dynamic>(), self::f<dynamic>());
14 .call(), super core::Object::•()
15 ;
16 }
17 static method f<T extends core::Object>() → self::f::T
18 return null;
19 static method main() → dynamic {
20 assert(self::f<dynamic>());
21 assert(self::f<dynamic>(), self::f<dynamic>());
22 }
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/inference/assert_initializer.dart.outline.expect ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698