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

Side by Side Diff: pkg/front_end/testcases/micro.dart.direct.expect

Issue 2953503002: Only set types of conditional expressions in strong mode. (Closed)
Patch Set: Created 3 years, 6 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 constructor •() → void 6 constructor •() → void
7 : super core::Object::•() 7 : super core::Object::•()
8 ; 8 ;
9 method instanceMethod() → dynamic { 9 method instanceMethod() → dynamic {
10 return 123; 10 return 123;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 class DynamicReceiver2 extends core::Object { 47 class DynamicReceiver2 extends core::Object {
48 constructor •() → void 48 constructor •() → void
49 : super core::Object::•() 49 : super core::Object::•()
50 ; 50 ;
51 method dynamicallyCalled(dynamic x) → dynamic {} 51 method dynamicallyCalled(dynamic x) → dynamic {}
52 } 52 }
53 static method staticMethod() → dynamic { 53 static method staticMethod() → dynamic {
54 return "sdfg"; 54 return "sdfg";
55 } 55 }
56 external static abstract method externalStatic() → core::bool; 56 external static method externalStatic() → core::bool;
57 external static abstract method createBar() → self::Bar; 57 external static method createBar() → self::Bar;
58 static method stringArgument(dynamic x) → dynamic {} 58 static method stringArgument(dynamic x) → dynamic {}
59 static method intArgument(dynamic x) → dynamic {} 59 static method intArgument(dynamic x) → dynamic {}
60 static method makeDynamicCall(dynamic receiver) → void { 60 static method makeDynamicCall(dynamic receiver) → void {
61 receiver.dynamicallyCalled("sdfg"); 61 receiver.dynamicallyCalled("sdfg");
62 } 62 }
63 static method main() → dynamic { 63 static method main() → dynamic {
64 dynamic x = self::staticMethod(); 64 dynamic x = self::staticMethod();
65 dynamic y = new self::Foo::•().instanceMethod(); 65 dynamic y = new self::Foo::•().instanceMethod();
66 dynamic z = self::externalStatic(); 66 dynamic z = self::externalStatic();
67 dynamic w = self::createBar().externalInstanceMethod(); 67 dynamic w = self::createBar().externalInstanceMethod();
68 self::stringArgument("sdfg"); 68 self::stringArgument("sdfg");
69 self::intArgument(42); 69 self::intArgument(42);
70 dynamic box = new self::Box::•(); 70 dynamic box = new self::Box::•();
71 box.field = "sdfg"; 71 box.field = "sdfg";
72 dynamic a = box.field; 72 dynamic a = box.field;
73 dynamic finalBox = new self::FinalBox::•("dfg"); 73 dynamic finalBox = new self::FinalBox::•("dfg");
74 dynamic b = finalBox.finalField; 74 dynamic b = finalBox.finalField;
75 dynamic subBox = new self::SubFinalBox::•("dfg"); 75 dynamic subBox = new self::SubFinalBox::•("dfg");
76 dynamic c = subBox.finalField; 76 dynamic c = subBox.finalField;
77 self::makeDynamicCall(new self::DynamicReceiver1::•()); 77 self::makeDynamicCall(new self::DynamicReceiver1::•());
78 self::makeDynamicCall(new self::DynamicReceiver2::•()); 78 self::makeDynamicCall(new self::DynamicReceiver2::•());
79 dynamic list = <dynamic>["string"]; 79 dynamic list = <dynamic>["string"];
80 dynamic d = list.[](0); 80 dynamic d = list.[](0);
81 } 81 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698