Index: pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.expect |
diff --git a/pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.expect b/pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.expect |
index a001b7ebde492cab388752d0cd4e0d7defbc43e4..f0d4c36018093d39e8620c0b37b1a643dc7661b6 100644 |
--- a/pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.expect |
+++ b/pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.expect |
@@ -2,7 +2,6 @@ library; |
import self as self; |
import "dart:core" as core; |
-typedef VoidFunction = () → void; |
class Fisk extends core::Object { |
constructor •() → void |
: super core::Object::•() |
@@ -12,40 +11,35 @@ class Fisk extends core::Object { |
this.key = #t1; |
core::print(this.key); |
} |
- for (final dynamic #t2 in x) { |
- throw new core::NoSuchMethodError::_withType(null, #Fisk, 34, <dynamic>[#t2].toList(growable: false), <dynamic, dynamic>{}, null); |
+ 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) { |
core::print(self::Fisk); |
} |
- for (final dynamic #t3 = const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError::•("pkg/front_end/testcases/rasta/unresolved_for_in.dart:17:10: Error: Expected lvalue, but got Instance of 'PrefixBuilder'\n for (collection in x) {\n ^")) in x) { |
- core::print(const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError::•("pkg/front_end/testcases/rasta/unresolved_for_in.dart: Error: A library can't be used as an expression."))); |
+ 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) { |
+ 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 expression.\u0027[0m")); |
} |
- for (final dynamic #t4 in x) { |
- throw new core::NoSuchMethodError::_withType(null, #VoidFunction, 34, <dynamic>[#t4].toList(growable: false), <dynamic, dynamic>{}, null); |
+ 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) { |
core::print(() → void); |
} |
- for (final dynamic #t5 = const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError::•("pkg/front_end/testcases/rasta/unresolved_for_in.dart:23:10: Error: Expected lvalue, but got 1\n for (1 in x) {\n ^")) in x) { |
+ 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) { |
core::print(this.key); |
} |
} |
} |
static method main(dynamic arguments) → dynamic { |
new self::Fisk::•(); |
- for (final dynamic #t6 in arguments) { |
- throw new core::NoSuchMethodError::_withType(null, #key, 34, <dynamic>[#t6].toList(growable: false), <dynamic, dynamic>{}, null); |
- core::print(throw new core::NoSuchMethodError::_withType(null, #key, 33, <dynamic>[].toList(growable: false), <dynamic, dynamic>{}, null)); |
+ for (final dynamic #t6 = throw new core::_CompileTimeError::•("pkg/front_end/test/fasta/rasta/unresolved_for_in.dart:31:8: \u0027[31mError: Expected lvalue, but got unresolved-identifier(key)\u0027[0m") in arguments) { |
+ core::print(throw new core::NoSuchMethodError::•(null, #key, <dynamic>[], <dynamic, dynamic>{}, null)); |
} |
- for (final dynamic #t7 in arguments) { |
- throw new core::NoSuchMethodError::_withType(null, #Fisk, 34, <dynamic>[#t7].toList(growable: false), <dynamic, dynamic>{}, null); |
+ for (final dynamic #t7 = throw new core::_CompileTimeError::•("pkg/front_end/test/fasta/rasta/unresolved_for_in.dart:34:8: \u0027[31mError: Expected lvalue, but got Instance of 'SourceClassBuilder'\u0027[0m") in arguments) { |
core::print(self::Fisk); |
} |
- 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 (collection in arguments) {\n ^")) in arguments) { |
- core::print(const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError::•("pkg/front_end/testcases/rasta/unresolved_for_in.dart: Error: A library can't be used as an expression."))); |
+ for (final dynamic #t8 = throw new core::_CompileTimeError::•("pkg/front_end/test/fasta/rasta/unresolved_for_in.dart:37:8: \u0027[31mError: Expected lvalue, but got Instance of 'PrefixBuilder'\u0027[0m") in arguments) { |
+ 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 expression.\u0027[0m")); |
} |
- for (final dynamic #t9 in arguments) { |
- throw new core::NoSuchMethodError::_withType(null, #VoidFunction, 34, <dynamic>[#t9].toList(growable: false), <dynamic, dynamic>{}, null); |
+ for (final dynamic #t9 = throw new core::_CompileTimeError::•("pkg/front_end/test/fasta/rasta/unresolved_for_in.dart:40:8: \u0027[31mError: Expected lvalue, but got Instance of 'KernelFunctionTypeAliasBuilder'\u0027[0m") in arguments) { |
core::print(() → void); |
} |
- for (final dynamic #t10 = const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError::•("pkg/front_end/testcases/rasta/unresolved_for_in.dart:43:8: Error: Expected lvalue, but got 1\n for (1 in arguments) {\n ^")) in arguments) { |
- core::print(throw new core::NoSuchMethodError::_withType(null, #key, 33, <dynamic>[].toList(growable: false), <dynamic, dynamic>{}, null)); |
+ 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) { |
+ core::print(throw new core::NoSuchMethodError::•(null, #key, <dynamic>[], <dynamic, dynamic>{}, null)); |
} |
} |