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

Side by Side Diff: pkg/front_end/testcases/type_variable_as_super.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 abstract class A<T extends core::Object> extends core::Object { 5 abstract class A<T extends core::Object> extends core::Object {
6 constructor •() → void 6 constructor •() → void
7 : super core::Object::•() 7 : super core::Object::•()
8 ; 8 ;
9 } 9 }
10 abstract class B<T extends core::Object> extends core::Object { 10 abstract class B<T extends core::Object> extends core::Object {
11 constructor •() → void 11 constructor •() → void
12 : super core::Object::•() 12 : super core::Object::•()
13 ; 13 ;
14 } 14 }
15 class C<T extends core::Object> extends core::Object { 15 class C<T extends core::Object> extends core::Object {
16 constructor •() → void 16 constructor •() → void
17 : super core::Object::•() 17 : super core::Object::•()
18 ; 18 ;
19 } 19 }
20 const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/type_vari able_as_super.dart: Error: The type variable 'T' can't be used as supertype.", " pkg/front_end/testcases/type_variable_as_super.dart: Error: The type variable 'T ' can't be used as supertype.", "pkg/front_end/testcases/type_variable_as_super. dart: Error: The type variable 'T' can't be used as supertype."]/* from null */;
21 static method main() → dynamic { 20 static method main() → dynamic {
22 throw new core::AbstractClassInstantiationError::•("A"); 21 throw new core::NoSuchMethodError::•(null, #A, <dynamic>[], <dynamic, dynamic> {}, null);
23 throw new core::AbstractClassInstantiationError::•("B"); 22 throw new core::NoSuchMethodError::•(null, #B, <dynamic>[], <dynamic, dynamic> {}, null);
24 new self::C::•<dynamic>(); 23 new self::C::•<dynamic>();
25 } 24 }
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/super_rasta_copy.dart.direct.expect ('k') | pkg/front_end/testcases/void-methods.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698