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

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

Issue 2953423002: Add type inference for switch statements. (Closed)
Patch Set: Created 3 years, 5 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 test;
2 import self as self;
3 import "dart:core" as core;
4
5 class C<T extends core::Object> extends core::Object {
6 const constructor •() → void
7 : super core::Object::•()
8 ;
9 }
10 static method f<T extends core::Object>() → self::f::T
11 return null;
12 static method test(self::C<core::int> x) → void {
13 #L1:
14 switch(x) {
15 #L2:
16 case const self::C::•<core::int>():
17 {
18 core::int y = 0;
19 break #L1;
20 }
21 #L3:
22 default:
23 {
24 core::int y = 0;
25 break #L1;
26 }
27 }
28 }
29 static method main() → dynamic {}
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/inference_new/switch.dart.outline.expect ('k') | pkg/front_end/testcases/kompile.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698