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

Side by Side Diff: pkg/front_end/testcases/rasta/unresolved_for_in.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 typedef VoidFunction = () → void;
6 class Fisk extends core::Object { 5 class Fisk extends core::Object {
7 constructor •() → void 6 constructor •() → void
8 : super core::Object::•() 7 : super core::Object::•()
9 ; 8 ;
10 method it1(dynamic x) → dynamic { 9 method it1(dynamic x) → dynamic {
11 for (final dynamic #t1 in x) { 10 for (final dynamic #t1 in x) {
12 this.key = #t1; 11 this.key = #t1;
13 core::print(this.key); 12 core::print(this.key);
14 } 13 }
15 for (final dynamic #t2 in x) { 14 for (final dynamic #t2 = throw new core::_CompileTimeError::•("pkg/front_end /test/fasta/rasta/unresolved_for_in.dart:14:10: \u0027[31mError: Expected lvalue , but got Instance of 'SourceClassBuilder'\u0027[0m") in x) {
16 throw new core::NoSuchMethodError::_withType(null, #Fisk, 34, <dynamic>[#t 2].toList(growable: false), <dynamic, dynamic>{}, null);
17 core::print(self::Fisk); 15 core::print(self::Fisk);
18 } 16 }
19 for (final dynamic #t3 = const core::_ConstantExpressionError::•()._throw(ne w core::_CompileTimeError::•("pkg/front_end/testcases/rasta/unresolved_for_in.da rt:17:10: Error: Expected lvalue, but got Instance of 'PrefixBuilder'\n for ( collection in x) {\n ^")) in x) { 17 for (final dynamic #t3 = throw new core::_CompileTimeError::•("pkg/front_end /test/fasta/rasta/unresolved_for_in.dart:17:10: \u0027[31mError: Expected lvalue , but got Instance of 'PrefixBuilder'\u0027[0m") in x) {
20 core::print(const core::_ConstantExpressionError::•()._throw(new core::_Co mpileTimeError::•("pkg/front_end/testcases/rasta/unresolved_for_in.dart: Error: A library can't be used as an expression."))); 18 core::print(throw new core::_CompileTimeError::•("pkg/front_end/test/fasta /rasta/unresolved_for_in.dart: \u0027[31mError: A library can't be used as an ex pression.\u0027[0m"));
21 } 19 }
22 for (final dynamic #t4 in x) { 20 for (final dynamic #t4 = throw new core::_CompileTimeError::•("pkg/front_end /test/fasta/rasta/unresolved_for_in.dart:20:10: \u0027[31mError: Expected lvalue , but got Instance of 'KernelFunctionTypeAliasBuilder'\u0027[0m") in x) {
23 throw new core::NoSuchMethodError::_withType(null, #VoidFunction, 34, <dyn amic>[#t4].toList(growable: false), <dynamic, dynamic>{}, null);
24 core::print(() → void); 21 core::print(() → void);
25 } 22 }
26 for (final dynamic #t5 = const core::_ConstantExpressionError::•()._throw(ne w core::_CompileTimeError::•("pkg/front_end/testcases/rasta/unresolved_for_in.da rt:23:10: Error: Expected lvalue, but got 1\n for (1 in x) {\n ^")) i n x) { 23 for (final dynamic #t5 = throw new core::_CompileTimeError::•("pkg/front_end /test/fasta/rasta/unresolved_for_in.dart:23:10: \u0027[31mError: Expected lvalue , but got 1\u0027[0m") in x) {
27 core::print(this.key); 24 core::print(this.key);
28 } 25 }
29 } 26 }
30 } 27 }
31 static method main(dynamic arguments) → dynamic { 28 static method main(dynamic arguments) → dynamic {
32 new self::Fisk::•(); 29 new self::Fisk::•();
33 for (final dynamic #t6 in arguments) { 30 for (final dynamic #t6 = throw new core::_CompileTimeError::•("pkg/front_end/t est/fasta/rasta/unresolved_for_in.dart:31:8: \u0027[31mError: Expected lvalue, b ut got unresolved-identifier(key)\u0027[0m") in arguments) {
34 throw new core::NoSuchMethodError::_withType(null, #key, 34, <dynamic>[#t6]. toList(growable: false), <dynamic, dynamic>{}, null); 31 core::print(throw new core::NoSuchMethodError::•(null, #key, <dynamic>[], <d ynamic, dynamic>{}, null));
35 core::print(throw new core::NoSuchMethodError::_withType(null, #key, 33, <dy namic>[].toList(growable: false), <dynamic, dynamic>{}, null));
36 } 32 }
37 for (final dynamic #t7 in arguments) { 33 for (final dynamic #t7 = throw new core::_CompileTimeError::•("pkg/front_end/t est/fasta/rasta/unresolved_for_in.dart:34:8: \u0027[31mError: Expected lvalue, b ut got Instance of 'SourceClassBuilder'\u0027[0m") in arguments) {
38 throw new core::NoSuchMethodError::_withType(null, #Fisk, 34, <dynamic>[#t7] .toList(growable: false), <dynamic, dynamic>{}, null);
39 core::print(self::Fisk); 34 core::print(self::Fisk);
40 } 35 }
41 for (final dynamic #t8 = const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError::•("pkg/front_end/testcases/rasta/unresolved_for_in.dart :37:8: Error: Expected lvalue, but got Instance of 'PrefixBuilder'\n for (colle ction in arguments) {\n ^")) in arguments) { 36 for (final dynamic #t8 = throw new core::_CompileTimeError::•("pkg/front_end/t est/fasta/rasta/unresolved_for_in.dart:37:8: \u0027[31mError: Expected lvalue, b ut got Instance of 'PrefixBuilder'\u0027[0m") in arguments) {
42 core::print(const core::_ConstantExpressionError::•()._throw(new core::_Comp ileTimeError::•("pkg/front_end/testcases/rasta/unresolved_for_in.dart: Error: A library can't be used as an expression."))); 37 core::print(throw new core::_CompileTimeError::•("pkg/front_end/test/fasta/r asta/unresolved_for_in.dart: \u0027[31mError: A library can't be used as an expr ession.\u0027[0m"));
43 } 38 }
44 for (final dynamic #t9 in arguments) { 39 for (final dynamic #t9 = throw new core::_CompileTimeError::•("pkg/front_end/t est/fasta/rasta/unresolved_for_in.dart:40:8: \u0027[31mError: Expected lvalue, b ut got Instance of 'KernelFunctionTypeAliasBuilder'\u0027[0m") in arguments) {
45 throw new core::NoSuchMethodError::_withType(null, #VoidFunction, 34, <dynam ic>[#t9].toList(growable: false), <dynamic, dynamic>{}, null);
46 core::print(() → void); 40 core::print(() → void);
47 } 41 }
48 for (final dynamic #t10 = const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError::•("pkg/front_end/testcases/rasta/unresolved_for_in.dar t:43:8: Error: Expected lvalue, but got 1\n for (1 in arguments) {\n ^")) in arguments) { 42 for (final dynamic #t10 = throw new core::_CompileTimeError::•("pkg/front_end/ test/fasta/rasta/unresolved_for_in.dart:43:8: \u0027[31mError: Expected lvalue, but got 1\u0027[0m") in arguments) {
49 core::print(throw new core::NoSuchMethodError::_withType(null, #key, 33, <dy namic>[].toList(growable: false), <dynamic, dynamic>{}, null)); 43 core::print(throw new core::NoSuchMethodError::(null, #key, <dynamic>[], <d ynamic, dynamic>{}, null));
50 } 44 }
51 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698