Back to build
Raw log | Switch to full mode | Login

{"name":"language_2/control_flow_collections/for_variable_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 11.000553s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_variable_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_variable_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_variable_test.dart:32:15: Error: Unexpected token 'for'.\n var list = [for (var i in [0, 1]) () => i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:7: Error: Unexpected token 'for'.\n for (var global = \"for\"; global != null; global = null) global\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:75:7: Error: Unexpected token 'for'.\n for (var staticField = \"for\"; staticField != null; staticField = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:7: Error: Unexpected token 'for'.\n for (var field = \"for\"; field != null; field = null) field\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:7: Error: Unexpected token 'for'.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:16: Error: 'local' is already declared in this scope.\n for (var local = \"for\"; local != null; local = null) local\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:66:9: Context: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:7: Error: Unexpected token 'for'.\n for (var local = \"for\"; local != null; local = null) local\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:97:18: Error: 'outer' is already declared in this scope.\n for (var outer = \"for\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:97:9: Error: Unexpected token 'for'.\n for (var outer = \"for\"; outer != null; outer = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:7: Error: Unexpected token 'for'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:22: Error: 'global' is already declared in this scope.\n list = [for (var global in [\"for\"]) global];\n ^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:16: Context: Previous declaration of 'global'.\n for (var global = \"for\"; global != null; global = null) global\n ^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:13: Error: Unexpected token 'for'.\n list = [for (var global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:22: Error: 'staticField' is already declared in this scope.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:75:16: Context: Previous declaration of 'staticField'.\n for (var staticField = \"for\"; staticField != null; staticField = null)\n ^^^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:13: Error: Unexpected token 'for'.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:22: Error: 'field' is already declared in this scope.\n list = [for (var field in [\"for\"]) field];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:16: Context: Previous declaration of 'field'.\n for (var field = \"for\"; field != null; field = null) field\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:13: Error: Unexpected token 'for'.\n list = [for (var field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:22: Error: 'inherited' is already declared in this scope.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:16: Context: Previous declaration of 'inherited'.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:13: Error: Unexpected token 'for'.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:22: Error: 'local' is already declared in this scope.\n list = [for (var local in [\"for\"]) local];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:66:9: Context: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:13: Error: Unexpected token 'for'.\n list = [for (var local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:22: Error: 'outer' is already declared in this scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:51: Error: 'outer' is already declared in this scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:42: Error: Unexpected token 'for'.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:13: Error: Unexpected token 'for'.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:127:7: Error: Unexpected token 'for'.\n for (global = \"for\"; global == \"for\"; global = \"after\") global\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:134:7: Error: Unexpected token 'for'.\n for (staticField = \"for\"; staticField == \"for\"; staticField = \"after\")\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:142:7: Error: Unexpected token 'for'.\n for (field = \"for\"; field == \"for\"; field = \"after\") field\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:149:7: Error: Unexpected token 'for'.\n for (inherited = \"for\"; inherited == \"for\"; inherited = \"after\") inherited\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:156:7: Error: Unexpected token 'for'.\n for (local = \"for\"; local == \"for\"; local = \"after\") local\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:164:9: Error: Unexpected token 'for'.\n for (outer = \"for\"; outer == \"for\"; outer = \"after\") outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:74: Error: Unexpected token '...'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:7: Error: Unexpected token 'for'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:171:13: Error: Unexpected token 'for'.\n list = [for (global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:176:13: Error: Unexpected token 'for'.\n list = [for (staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:181:13: Error: Unexpected token 'for'.\n list = [for (field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:186:13: Error: Unexpected token 'for'.\n list = [for (inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:191:13: Error: Unexpected token 'for'.\n list = [for (local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:16: Error: 'outer' is already declared in this scope.\n for (var outer in [\"outer\"]) ...[\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:198:9: Error: Unexpected token 'for'.\n for (outer in [\"for\"]) outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:36: Error: Unexpected token '...'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:7: Error: Unexpected token 'for'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:77: Error: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'String'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:39: Error: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'String'.\n for (var outer in [\"outer\"]) ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:63: Error: Verification of the generated program failed:\nVariable 'global' used out of scope.\n for (var global = \"for\"; global != null; global = null) global\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:76:9: Error: Verification of the generated program failed:\nVariable 'staticField' used out of scope.\n staticField\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:60: Error: Verification of the generated program failed:\nVariable 'field' used out of scope.\n for (var field = \"for\"; field != null; field = null) field\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:72: Error: Verification of the generated program failed:\nVariable 'inherited' used out of scope.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:98:11: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:41: Error: Verification of the generated program failed:\nVariable 'global' used out of scope.\n list = [for (var global in [\"for\"]) global];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:46: Error: Verification of the generated program failed:\nVariable 'staticField' used out of scope.\n list = [for (var staticField in [\"for\"]) staticField];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:40: Error: Verification of the generated program failed:\nVariable 'field' used out of scope.\n list = [for (var field in [\"for\"]) field];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:44: Error: Verification of the generated program failed:\nVariable 'inherited' used out of scope.\n list = [for (var inherited in [\"for\"]) inherited];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:69: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:164:62: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n for (outer = \"for\"; outer == \"for\"; outer = \"after\") outer,\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:165:9: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:198:32: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n for (outer in [\"for\"]) outer,\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:199:9: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:43: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:45: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:52: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#6 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#7 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#8 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#9 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#10 BinaryPrinter.writeVariableDeclaration (package:kernel/binary/ast_to_binary.dart:1854:5)\n#11 BinaryPrinter.visitVariableDeclaration (package:kernel/binary/ast_to_binary.dart:1840:5)\n#12 VariableDeclaration.accept (package:kernel/ast.dart:4450:35)\n#13 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#14 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#15 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#16 Block.accept (package:kernel/ast.dart:3744:35)\n#17 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#18 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#19 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#20 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#21 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#22 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#23 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#24 Procedure.accept (package:kernel/ast.dart:1777:32)\n#25 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#26 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#27 BinaryPrinter.visitClass (package:kernel/binary/ast_to_binary.dart:1048:5)\n#28 Class.accept (package:kernel/ast.dart:1010:30)\n#29 BinaryPrinter.writeClassNode (package:kernel/binary/ast_to_binary.dart:408:10)\n#30 BinaryPrinter.writeClassNodeList (package:kernel/binary/ast_to_binary.dart:312:7)\n#31 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:900:5)\n#32 Library.accept (package:kernel/ast.dart:437:30)\n#33 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#34 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#35 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#36 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#37 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#38 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#39 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#40 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#41 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#42 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#43 new Future.sync (dart:async/future.dart:224:31)\n#44 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#45 _rootRun (dart:async/zone.dart:1124:13)\n#46 _CustomZone.run (dart:async/zone.dart:1021:19)\n#47 _runZoned (dart:async/zone.dart:1516:10)\n#48 runZoned (dart:async/zone.dart:1463:12)\n#49 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#50 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#51 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#52 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#53 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#54 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#55 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#56 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#57 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#58 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#59 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/for_variable_test\n"} {"name":"language_2/control_flow_collections/if_inference_test","configuration":"fasta-mac","result":"CompileTimeError","log":"--- Command \"fasta\" (took 11.000562s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_if_inference_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/if_inference_test.dart )\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_inference_test.dart:19:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:20:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:21:22: Error: Unexpected token 'if'.\n expectListOf<num>([if (true) 1 else 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:22:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1, 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:23:22: Error: Unexpected token 'if'.\n expectListOf<num>([if (true) 1, 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:36: Error: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:26: Error: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:32: Error: Unexpected token '...'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:28:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:29:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1 else 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:30:26: Error: Unexpected token 'if'.\n expectMapOf<num, num>({if (true) 1: 0.1 else 0.2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:31:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1, 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:32:26: Error: Unexpected token 'if'.\n expectMapOf<num, num>({if (true) 1: 0.1, 0.2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:44: Error: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:34: Error: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:36: Error: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:37:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:38:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:39:21: Error: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1 else 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:40:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1, 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:41:21: Error: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1, 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:35: Error: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:25: Error: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:31: Error: Unexpected token '...'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:36: Error: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:26: Error: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:38: Error: Unexpected token '...'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:28: Error: Unexpected token 'if'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:50: Error: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({1: 1, if (true) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:40: Error: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({1: 1, if (true) ...({} as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:57:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (true) expectInt(1)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:58:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (false) 9 else expectInt(1)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:61:38: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1, 2], [1, if (true) expectDynamic(2)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:62:38: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1, 2], [1, if (false) 9 else expectDynamic(2)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:68:21: Error: Unexpected token 'if'.\n <int, String>{if (true) expectInt(1): expectString(\"s\")});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:72:16: Error: Unexpected token 'if'.\n {1: \"s\", if (true) expectDynamic(2): expectDynamic(\"t\")});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:77:36: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1}, <int>{if (true) expectInt(1)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:78:36: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1}, <int>{if (false) 9 else expectInt(1)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:81:37: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (true) expectDynamic(2)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:82:37: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (false) 9 else expectDynamic(2)});\n ^^\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/if_inference_test\n"} {"name":"language_2/control_flow_collections/for_inference_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 11.000725s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_inference_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_inference_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_inference_test.dart:20:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, for (; false;) 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:45: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, for (; false;) 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:22:27: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, for (; false;) 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:22:45: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, for (; false;) 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:23:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:24:27: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:46: Error: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:31: Error: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:42: Error: Unexpected token '...'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:29:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:30:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, for (; false;) 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:30:52: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, for (; false;) 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:31:31: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, for (; false;) 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:31:54: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, for (; false;) 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:32:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:33:31: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:54: Error: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:39: Error: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:46: Error: Unexpected token '...'.\n Expect.type<Map<int, int>>({for (; false;) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:38:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, for (; false;) 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:44: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, for (; false;) 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:40:26: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, for (; false;) 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:40:44: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, for (; false;) 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:41:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:42:26: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:40: Error: Unexpected token '...'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:30: Error: Unexpected token 'if'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:36: Error: Unexpected token '...'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:26: Error: Unexpected token 'if'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:46: Error: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:31: Error: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:48:48: Error: Unexpected token '...'.\n Expect.type<Set<dynamic>>({1, for (; false;) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:48:33: Error: Unexpected token 'for'.\n Expect.type<Set<dynamic>>({1, for (; false;) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:51:60: Error: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({1: 1, for (; false;) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:51:45: Error: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({1: 1, for (; false;) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:39: Error: 'i' is already declared in this scope.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:30: Error: Unexpected token 'for'.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:36: Error: 'i' is already declared in this scope.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:39: Error: 'i' is already declared in this scope.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:30: Error: Unexpected token 'for'.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:41: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:65: Error: Expected an identifier, but got ']'.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:32: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:41: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:59: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:59: Error: Expected ';' after this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: Expected a type, but got '2'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: Expected '[' before this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: This couldn't be parsed.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:64: Error: Expected ';' after this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:64: Error: Unexpected token ';'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:32: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:74:37: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], <int>[for (; false;) expectInt(1)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:77:38: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1, 2], [1, for (; false;) expectDynamic(2)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:83:21: Error: Unexpected token 'for'.\n <int, String>{for (; false;) expectInt(1): expectString(\"s\")});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:87:16: Error: Unexpected token 'for'.\n {1: \"s\", for (; false;) expectDynamic(2): expectDynamic(\"t\")});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:92:36: Error: Unexpected token 'for'.\n Expect.setEquals(<int>{1}, <int>{for (; false;) expectInt(1)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:95:37: Error: Unexpected token 'for'.\n Expect.setEquals(<int>{1, 2}, {1, for (; false;) expectDynamic(2)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:51: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:55: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:71: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#6 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#7 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#8 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#9 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#10 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#11 Arguments.accept (package:kernel/ast.dart:2745:30)\n#12 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#13 BinaryPrinter.visitStaticInvocation (package:kernel/binary/ast_to_binary.dart:1396:5)\n#14 StaticInvocation.accept (package:kernel/ast.dart:2967:36)\n#15 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#16 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#17 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#20 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#21 Block.accept (package:kernel/ast.dart:3744:35)\n#22 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#23 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#24 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#25 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#26 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#27 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#28 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#29 Procedure.accept (package:kernel/ast.dart:1777:32)\n#30 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#31 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#32 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#33 Library.accept (package:kernel/ast.dart:437:30)\n#34 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#35 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#36 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#37 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#38 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#39 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#40 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#41 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#42 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#43 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#44 new Future.sync (dart:async/future.dart:224:31)\n#45 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#46 _rootRun (dart:async/zone.dart:1124:13)\n#47 _CustomZone.run (dart:async/zone.dart:1021:19)\n#48 _runZoned (dart:async/zone.dart:1516:10)\n#49 runZoned (dart:async/zone.dart:1463:12)\n#50 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#51 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#52 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#53 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#54 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#55 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#56 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#57 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#58 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#59 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#60 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/for_inference_test\n"} {"name":"language_2/control_flow_collections/if_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 11.000860s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_if_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/if_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/if_test.dart:58:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, [if (true) {1}].first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:57:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, [if (true) {1: 1}].first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:56:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], [if (true) [1]].first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:161:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, {if (true) {1}}.first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:160:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, {if (true) {1: 1}}.first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:159:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], {if (true) [1]}.first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:27:36: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:30:36: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, if (false) 9, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:33:36: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, if (false) 9 else 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:36:32: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:39:33: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[if (true) 1, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:42:36: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:45:39: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:49:13: Error: Unexpected token 'if'.\n <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:49:26: Error: Unexpected token 'if'.\n <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:49:43: Error: Unexpected token 'if'.\n <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:52:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (true as dynamic) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:53:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (true as Object) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:56:27: Error: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) [1]].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:57:29: Error: Unexpected token 'if'.\n Expect.mapEquals({1: 1}, [if (true) {1: 1}].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:58:26: Error: Unexpected token 'if'.\n Expect.setEquals({1}, [if (true) {1}].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:62:23: Error: Unexpected token '...'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:62:13: Error: Unexpected token 'if'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:62:57: Error: Unexpected token '...'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:62:39: Error: Unexpected token 'if'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:65:42: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:65:32: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:65:65: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:65:55: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:68:50: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:68:32: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:71:43: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[if (true) for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:71:33: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[if (true) for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:74:33: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:74:46: Error: Expected ',' before this.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:74:55: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:71:52: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:74:46: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:62:31: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:79:42: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:82:42: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, if (false) 9: 9, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:85:42: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, if (false) 9: 9 else 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:88:49: Error: Unexpected token 'if'.\n Expect.mapEquals(<int, int>{1: 1}, <int, int>{if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:91:36: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{if (true) 1: 1, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:94:42: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:97:48: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:101:18: Error: Unexpected token 'if'.\n <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:101:34: Error: Unexpected token 'if'.\n <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:101:57: Error: Unexpected token 'if'.\n <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:104:49: Error: Unexpected token 'if'.\n Expect.mapEquals(<int, int>{1: 1}, <int, int>{if (true as dynamic) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:105:49: Error: Unexpected token 'if'.\n Expect.mapEquals(<int, int>{1: 1}, <int, int>{if (true as Object) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:109:15: Error: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:109:5: Error: Unexpected token 'if'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^\ntests/language_2/control_flow_collections/if_test.dart:110:26: Error: Unexpected token '...'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:110:5: Error: Unexpected token 'if'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^\ntests/language_2/control_flow_collections/if_test.dart:115:28: Error: Unexpected token 'if'.\n <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:115:18: Error: Unexpected token 'if'.\n <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:115:54: Error: Unexpected token 'if'.\n <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:115:44: Error: Unexpected token 'if'.\n <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:119:39: Error: Unexpected token 'if'.\n <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:119:18: Error: Unexpected token 'if'.\n <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:122:46: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:122:36: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:125:36: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:125:52: Error: Expected ',' before this.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:125:61: Error: 'i' is already declared in this scope.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:122:55: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:125:52: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:130:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:133:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (false) 9, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:136:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (false) 9 else 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:139:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:142:31: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{if (true) 1, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:145:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:148:37: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:152:13: Error: Unexpected token 'if'.\n <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:152:26: Error: Unexpected token 'if'.\n <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:152:43: Error: Unexpected token 'if'.\n <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:155:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true as dynamic) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:156:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true as Object) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:159:27: Error: Unexpected token 'if'.\n Expect.listEquals([1], {if (true) [1]}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:160:29: Error: Unexpected token 'if'.\n Expect.mapEquals({1: 1}, {if (true) {1: 1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:161:26: Error: Unexpected token 'if'.\n Expect.setEquals({1}, {if (true) {1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:165:23: Error: Unexpected token '...'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:165:13: Error: Unexpected token 'if'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:165:57: Error: Unexpected token '...'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:165:39: Error: Unexpected token 'if'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:168:41: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:168:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:168:64: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:168:54: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:171:49: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:171:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:174:41: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{if (true) for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:174:31: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{if (true) for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:177:31: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:177:44: Error: Expected ',' before this.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:177:53: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:174:50: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:177:44: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:165:31: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^\ntests/language_2/control_flow_collections/if_test.dart:188:27: Error: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) log(1), if (false) log(2)]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:188:45: Error: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) log(1), if (false) log(2)]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:194:8: Error: Unexpected token 'if'.\n [if (true) log(1) else log(2), if (false) log(3) else log(4)]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:194:38: Error: Unexpected token 'if'.\n [if (true) log(1) else log(2), if (false) log(3) else log(4)]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:201:5: Error: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:202:5: Error: Unexpected token 'if'.\n if (false) 9: 9 else 2: 2,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:206:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (true) 1, if (false) 9 else 2, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:206:47: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (true) 1, if (false) 9 else 2, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:218:5: Error: Unexpected token 'if'.\n if (true) e1b: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:219:5: Error: Unexpected token 'if'.\n if (true) e2a: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:220:5: Error: Unexpected token 'if'.\n if (true) e2b: 0\n ^^\ntests/language_2/control_flow_collections/if_test.dart:226:5: Error: Unexpected token 'if'.\n if (true) e1b,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:227:5: Error: Unexpected token 'if'.\n if (true) e2a,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:228:5: Error: Unexpected token 'if'.\n if (true) e2b\n ^^\ntests/language_2/control_flow_collections/if_test.dart:235:38: Error: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>[if (nonBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:236:43: Error: Unexpected token 'if'.\n Expect.throwsCastError(() => <int, int>{if (nonBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:237:38: Error: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>{if (nonBool) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:240:43: Error: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>[if (nullBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:241:48: Error: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int, int>{if (nullBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:242:43: Error: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>{if (nullBool) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:71:63: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:74:66: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:122:66: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:122:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:125:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:125:75: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:174:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:177:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.visitAsExpression (package:kernel/binary/ast_to_binary.dart:1476:5)\n#6 AsExpression.accept (package:kernel/ast.dart:3264:36)\n#7 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#8 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#9 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#10 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#11 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#12 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#13 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#14 Arguments.accept (package:kernel/ast.dart:2745:30)\n#15 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#16 BinaryPrinter.visitStaticInvocation (package:kernel/binary/ast_to_binary.dart:1396:5)\n#17 StaticInvocation.accept (package:kernel/ast.dart:2967:36)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#20 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#21 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#22 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#23 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#24 Block.accept (package:kernel/ast.dart:3744:35)\n#25 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#26 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#27 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#28 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#29 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#30 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#31 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#32 Procedure.accept (package:kernel/ast.dart:1777:32)\n#33 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#34 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#35 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#36 Library.accept (package:kernel/ast.dart:437:30)\n#37 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#38 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#39 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#40 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#41 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#42 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#43 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#44 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#45 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#46 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#47 new Future.sync (dart:async/future.dart:224:31)\n#48 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#49 _rootRun (dart:async/zone.dart:1124:13)\n#50 _CustomZone.run (dart:async/zone.dart:1021:19)\n#51 _runZoned (dart:async/zone.dart:1516:10)\n#52 runZoned (dart:async/zone.dart:1463:12)\n#53 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#54 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#55 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#56 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#57 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#58 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#59 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#60 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#61 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#62 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#63 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/if_test\n"} {"name":"language_2/control_flow_collections/for_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 11.000935s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_test.dart:64:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:26: Error: Expected an identifier, but got 'for'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:181:37: Error: Non-optional parameters can't have a default value.\nTry removing the default value or making the parameter optional.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:40: Error: Expected ')' before this.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:57: Error: Expected a declaration, but got '}'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:58: Error: Expected a declaration, but got '.'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:59: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.\nTry adding the name of the type of the variable or the keyword 'var'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:9: Error: Expected '{' before this.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:184:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:184:25: Error: Expected an identifier, but got '<'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:184:26: Error: Expected ')' before this.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:184:67: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:9: Error: Expected '{' before this.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:3: Error: 'Expect' is already declared in this scope.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:3: Context: Previous declaration of 'Expect'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:25: Error: Expected an identifier, but got '<'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:26: Error: Expected ')' before this.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:187:67: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:10: Error: 'setEquals' is already declared in this scope.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:10: Context: Previous declaration of 'setEquals'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:9: Error: Expected '{' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:3: Error: 'Expect' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:3: Context: Previous declaration of 'Expect'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:21: Error: Expected an identifier, but got '1'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:23: Error: Expected ')' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:75: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:10: Error: 'setEquals' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:10: Context: Previous declaration of 'setEquals'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:191:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:191:9: Error: Expected '{' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:3: Error: 'Expect' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:3: Context: Previous declaration of 'Expect'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:191:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:21: Error: Expected an identifier, but got '1'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:23: Error: Expected ')' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:74: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:10: Error: 'setEquals' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:10: Context: Previous declaration of 'setEquals'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:192:1: Error: Expected a declaration, but got '}'.\n}\n^\ntests/language_2/control_flow_collections/for_test.dart:26:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:26:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:29:42: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:29:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:29:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:32:45: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:32:36: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:32:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:35:48: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:35:39: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:35:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:39:25: Error: 'i' is already declared in this scope.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:39:16: Error: Unexpected token 'for'.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:39:48: Error: Unexpected token 'for'.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:38:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:43:52: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:43: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:42:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:40: Error: Unexpected token '...'.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:47:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:46:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:51:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:51:52: Error: Unexpected token 'if'.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^^\ntests/language_2/control_flow_collections/for_test.dart:51:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:50:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:55:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:55:48: Error: Unexpected token 'if'.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^^\ntests/language_2/control_flow_collections/for_test.dart:55:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:54:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:40: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:59:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:58:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:36: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:27: Error: Unexpected token 'for'.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:62:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:38: Error: 'i' is already declared in this scope.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:29: Error: Unexpected token 'for'.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:63:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:64:35: Error: 'i' is already declared in this scope.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:64:26: Error: Unexpected token 'for'.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:64:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:67:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:67:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:70:42: Error: 'n' is already declared in this scope.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:67:42: Context: Previous declaration of 'n'.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:70:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:70:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:73:41: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:73:32: Error: Unexpected token 'for'.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:73:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:74:41: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:74:32: Error: Unexpected token 'for'.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:74:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:48: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:36: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:79:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:18: Error: Unexpected token 'for'.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:82:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:33: Error: 'i' is already declared in this scope.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:24: Error: Unexpected token 'for'.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:86:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:39: Error: 'i' is already declared in this scope.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:30: Error: Unexpected token 'for'.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:90:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:5: Error: Unexpected token 'for'.\n for (var i in <int>[]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:99:5: Error: Unexpected token 'for'.\n for (; false;) 9: 9,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:94:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[1]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:5: Error: Unexpected token 'for'.\n for (var i in <int>[1]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:107:14: Error: 'i' is already declared in this scope.\n for (var i = 3; i <= 4; i++) i: i\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:107:5: Error: Unexpected token 'for'.\n for (var i = 3; i <= 4; i++) i: i\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:104:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:112:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:112:46: Error: Expected '}' before this.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^\ntests/language_2/control_flow_collections/for_test.dart:112:32: Error: Unexpected token '...'.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:112:5: Error: Unexpected token 'for'.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:111:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:57: Error: Unexpected token 'if'.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:117:18: Error: Unexpected token 'for'.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:116:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:121:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:121:67: Error: Expected ':' before this.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^^^\ntests/language_2/control_flow_collections/for_test.dart:121:67: Error: Expected an identifier, but got 'else'.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^^^\ntests/language_2/control_flow_collections/for_test.dart:121:53: Error: Unexpected token 'if'.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:121:18: Error: Unexpected token 'for'.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:120:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:32: Error: Unexpected token 'for'.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:125:5: Error: Unexpected token 'for'.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:124:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:36: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:129:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:45: Error: 'n' is already declared in this scope.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:45: Context: Previous declaration of 'n'.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:36: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:132:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:18: Error: Unexpected token 'for'.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:135:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals([1],\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:18: Error: Unexpected token 'for'.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:137:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals([1],\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:31: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:143:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:146:40: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:146:31: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:146:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:149:43: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:149:34: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:149:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:152:46: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:152:37: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:152:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:156:25: Error: 'i' is already declared in this scope.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:156:16: Error: Unexpected token 'for'.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:156:48: Error: Unexpected token 'for'.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:155:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:160:52: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:43: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:159:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:40: Error: Unexpected token '...'.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:164:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:163:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:168:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:168:52: Error: Unexpected token 'if'.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:168:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:167:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:172:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:172:48: Error: Unexpected token 'if'.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:172:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:171:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:40: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:176:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:175:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:36: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:27: Error: Unexpected token 'for'.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:179:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:38: Error: 'i' is already declared in this scope.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:29: Error: Unexpected token 'for'.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:180:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:23: Error: Expected ';' after this.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:48: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:55: Error: Expected ';' after this.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:5: Error: Unexpected token 'for'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:198:14: Error: 'i' is already declared in this scope.\n for (var i = 2; i <= 3; i++) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:14: Context: Previous declaration of 'i'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:198:5: Error: Unexpected token 'for'.\n for (var i = 2; i <= 3; i++) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:195:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:203:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[1, 2, 3]) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:14: Context: Previous declaration of 'i'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:203:5: Error: Unexpected token 'for'.\n for (var i in <int>[1, 2, 3]) i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:204:14: Error: 'i' is already declared in this scope.\n for (var i = 2; i <= 3; i++) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:14: Context: Previous declaration of 'i'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:204:5: Error: Unexpected token 'for'.\n for (var i = 2; i <= 3; i++) i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:201:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:5: Error: Unexpected token 'for'.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:222:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.equals(\"1:a,2:a\", map.keys.join(\",\"));\n ^\ntests/language_2/control_flow_collections/for_test.dart:224:38: Error: 'i' is already declared in this scope.\n var set = <Equality>{e1a, for (var i = 0; i < keys.length; i++) keys[i]};\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:14: Context: Previous declaration of 'i'.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^\ntests/language_2/control_flow_collections/for_test.dart:224:29: Error: Unexpected token 'for'.\n var set = <Equality>{e1a, for (var i = 0; i < keys.length; i++) keys[i]};\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:225:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.equals(\"1:a,2:a\", set.join(\",\"));\n ^\ntests/language_2/control_flow_collections/for_test.dart:231:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (; nonBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:231:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (; nonBool;) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:232:43: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:232:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:233:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (; nonBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:233:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (; nonBool;) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:237:43: Error: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:237:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:238:48: Error: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:238:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:239:43: Error: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:239:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:243:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (int i = nonInt; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:243:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (int i = nonInt; false;) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:244:43: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (int i = nonInt; false;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:244:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int, int>{for (int i = nonInt; false;) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:245:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (int i = nonInt; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:245:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (int i = nonInt; false;) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:249:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (int i in nonIterable) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:249:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (int i in nonIterable) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:250:43: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (int i in nonIterable) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:250:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int, int>{for (int i in nonIterable) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:251:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (int i in nonIterable) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:251:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (int i in nonIterable) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:255:46: Error: Unexpected token 'for'.\n Expect.throwsNoSuchMethodError(() => <int>[for (var i in nullIterable) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:255:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsNoSuchMethodError(() => <int>[for (var i in nullIterable) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:257:24: Error: Unexpected token 'for'.\n () => <int, int>{for (var i in nullIterable) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:256:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsNoSuchMethodError(\n ^\ntests/language_2/control_flow_collections/for_test.dart:258:46: Error: Unexpected token 'for'.\n Expect.throwsNoSuchMethodError(() => <int>{for (var i in nullIterable) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:258:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsNoSuchMethodError(() => <int>{for (var i in nullIterable) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:261:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (var i = 0; i < 1; i++) nonInt]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:261:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (var i = 0; i < 1; i++) nonInt]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:263:24: Error: Unexpected token 'for'.\n () => <int, int>{for (var i = 0; i < 1; i++) nonInt: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:262:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(\n ^\ntests/language_2/control_flow_collections/for_test.dart:265:24: Error: Unexpected token 'for'.\n () => <int, int>{for (var i = 0; i < 1; i++) 1: nonInt});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:264:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(\n ^\ntests/language_2/control_flow_collections/for_test.dart:266:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:266:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt});\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:53: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:29:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:32:63: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:35:66: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:39:39: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:53: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:51:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:55:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:73: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:56: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:64:55: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:67:66: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:70:66: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:73:73: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:74:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:56: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:59: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:45: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:48: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:51: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:57: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:28: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:31: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:29: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:32: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:107:34: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 3; i <= 4; i++) i: i\n ^\ntests/language_2/control_flow_collections/for_test.dart:107:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 3; i <= 4; i++) i: i\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:121:65: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:65: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:68: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:72: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:69: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:72: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:69: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:72: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:59: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:62: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:51: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:146:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:149:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:152:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:156:39: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:53: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:168:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:172:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:73: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:56: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:35: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:38: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:198:34: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 2; i <= 3; i++) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:198:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 2; i <= 3; i++) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:203:35: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1, 2, 3]) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:204:34: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 2; i <= 3; i++) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:48: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:59: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^\ntests/language_2/control_flow_collections/for_test.dart:224:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n var set = <Equality>{e1a, for (var i = 0; i < keys.length; i++) keys[i]};\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.visitAsExpression (package:kernel/binary/ast_to_binary.dart:1476:5)\n#6 AsExpression.accept (package:kernel/ast.dart:3264:36)\n#7 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#8 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#9 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#10 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#11 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#12 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#13 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#14 Arguments.accept (package:kernel/ast.dart:2745:30)\n#15 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#16 BinaryPrinter.visitMethodInvocation (package:kernel/binary/ast_to_binary.dart:1369:5)\n#17 MethodInvocation.accept (package:kernel/ast.dart:2861:36)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#20 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#21 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#22 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#23 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#24 Block.accept (package:kernel/ast.dart:3744:35)\n#25 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#26 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#27 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#28 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#29 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#30 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#31 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#32 Procedure.accept (package:kernel/ast.dart:1777:32)\n#33 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#34 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#35 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#36 Library.accept (package:kernel/ast.dart:437:30)\n#37 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#38 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#39 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#40 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#41 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#42 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#43 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#44 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#45 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#46 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#47 new Future.sync (dart:async/future.dart:224:31)\n#48 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#49 _rootRun (dart:async/zone.dart:1124:13)\n#50 _CustomZone.run (dart:async/zone.dart:1021:19)\n#51 _runZoned (dart:async/zone.dart:1516:10)\n#52 runZoned (dart:async/zone.dart:1463:12)\n#53 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#54 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#55 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#56 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#57 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#58 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#59 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#60 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#61 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#62 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#63 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/for_test\n"} {"name":"language_2/control_flow_collections/if_const_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 12.000558s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_if_const_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/if_const_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/if_const_test.dart:61:19: Error: Can't find ')' to match '('.\n Expect.identical(const {1}, const [if (true) {1}].first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:60:19: Error: Can't find ')' to match '('.\n Expect.identical(const {1: 1}, const [if (true) {1: 1}].first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:59:19: Error: Can't find ')' to match '('.\n Expect.identical(const [1], const [if (true) [1]].first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:167:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int>{1}, const <int>{if (true) {1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:166:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int, int>{1: 1}, const <int>{if (true) {1: 1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:165:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int>[1], const <int>{if (true) [1]}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:232:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt};\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:30:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:33:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (false) 9, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:36:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (false) 9 else 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:39:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:42:38: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[if (true) 1, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:45:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:48:44: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:52:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:52:32: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:52:49: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:55:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (dynamicTrue) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:56:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (objectTrue) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:59:38: Error: Unexpected token 'if'.\n Expect.identical(const [1], const [if (true) [1]].first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:60:41: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const [if (true) {1: 1}].first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:61:38: Error: Unexpected token 'if'.\n Expect.identical(const {1}, const [if (true) {1}].first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:29: Error: Unexpected token '...'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:19: Error: Unexpected token 'if'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:63: Error: Unexpected token '...'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:45: Error: Unexpected token 'if'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:29: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:19: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:52: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:42: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:72:61: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:72:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:75:68: Error: Not a constant expression.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:75:48: Error: Unexpected token 'for'.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:75:38: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:78:38: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:78:51: Error: Expected ',' before this.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:78:60: Error: 'i' is already declared in this scope.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:75:57: Context: Previous declaration of 'i'.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:78:71: Error: Not a constant expression.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:78:51: Error: Unexpected token 'for'.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:37: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:83:48: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:86:48: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, if (false) 9: 9, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:90:30: Error: Unexpected token 'if'.\n const <int, int>{1: 1, if (false) 9: 9 else 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:93:51: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const <int, int>{if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:96:42: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{if (true) 1: 1, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:99:48: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:102:54: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:106:24: Error: Unexpected token 'if'.\n const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:106:40: Error: Unexpected token 'if'.\n const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:106:63: Error: Unexpected token 'if'.\n const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:109:51: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const <int, int>{if (dynamicTrue) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:110:51: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const <int, int>{if (objectTrue) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:114:15: Error: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:114:5: Error: Unexpected token 'if'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:115:26: Error: Unexpected token '...'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:115:5: Error: Unexpected token 'if'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:34: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:24: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:60: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:50: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:124:45: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:124:24: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:127:72: Error: Not a constant expression.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:75: Error: Not a constant expression.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:52: Error: Unexpected token 'for'.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:127:42: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:131:24: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:131:40: Error: Expected ',' before this.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:131:49: Error: 'i' is already declared in this scope.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:61: Context: Previous declaration of 'i'.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:60: Error: Not a constant expression.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:63: Error: Not a constant expression.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:40: Error: Unexpected token 'for'.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:136:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:139:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (false) 9, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:142:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (false) 9 else 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:145:37: Error: Unexpected token 'if'.\n Expect.identical({1}, const <int>{if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:148:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (true) 1, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:151:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:154:43: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:158:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:158:32: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:158:49: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:161:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (dynamicTrue) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:162:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (objectTrue) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:165:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>[1], const <int>{if (true) [1]}.first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:166:56: Error: Unexpected token 'if'.\n Expect.identical(const <int, int>{1: 1}, const <int>{if (true) {1: 1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:167:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (true) {1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:29: Error: Unexpected token '...'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:19: Error: Unexpected token 'if'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:63: Error: Unexpected token '...'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:45: Error: Unexpected token 'if'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:29: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:19: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:52: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:42: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:178:66: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:178:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:181:67: Error: Not a constant expression.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:181:47: Error: Unexpected token 'for'.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:181:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:184:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:184:50: Error: Expected ',' before this.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:184:59: Error: 'i' is already declared in this scope.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:181:56: Context: Previous declaration of 'i'.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:184:70: Error: Not a constant expression.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:184:50: Error: Unexpected token 'for'.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:165:58: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n Expect.identical(const <int>[1], const <int>{if (true) [1]}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:166:66: Error: A value of type 'Map<int, int>' can't be assigned to a variable of type 'int'.\n - 'Map' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n Expect.identical(const <int, int>{1: 1}, const <int>{if (true) {1: 1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:167:58: Error: A value of type 'Set<int>' can't be assigned to a variable of type 'int'.\n - 'Set' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n Expect.identical(const <int>{1}, const <int>{if (true) {1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:171:37: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:195:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) nil + 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:195:32: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) nil + 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:197:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nil + 1, if (false) nil + 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:197:45: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nil + 1, if (false) nil + 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:200:5: Error: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:201:5: Error: Unexpected token 'if'.\n if (false) nil + 1: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:202:5: Error: Unexpected token 'if'.\n if (false) 9: nil + 1\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:205:5: Error: Unexpected token 'if'.\n if (true) 1: 1 else nil + 1: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:205:16: Error: Expected '}' before this.\n if (true) 1: 1 else nil + 1: 9,\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:210:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) nil + 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:210:32: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) nil + 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:212:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nil + 1, if (false) nil + 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:212:45: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nil + 1, if (false) nil + 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:218:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>[1], const <int>[if (true) 1, if (false) nonInt]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:218:61: Error: Unexpected token 'if'.\n Expect.identical(const <int>[1], const <int>[if (true) 1, if (false) nonInt]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:220:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nonInt, if (false) nonInt else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:220:44: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nonInt, if (false) nonInt else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:222:33: Error: Expected '}' before this.\n Expect.identical(const <int>{1: 1}, const <int, int>{\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:223:5: Error: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:224:5: Error: Unexpected token 'if'.\n if (false) nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:225:5: Error: Unexpected token 'if'.\n if (false) 9: nonInt\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:228:5: Error: Unexpected token 'if'.\n if (true) 1: 1 else nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:229:5: Error: Unexpected token 'if'.\n if (false) 9: nonInt else 2: 2\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:232:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt};\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:232:61: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt};\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:234:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nonInt, if (false) nonInt else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:234:44: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nonInt, if (false) nonInt else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:241:5: Error: Unexpected token 'if'.\n if (false) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:242:5: Error: Unexpected token 'if'.\n if (true) 2: 2 else 3: 3,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:246:40: Error: Unexpected token 'if'.\n Expect.setEquals(set, const <int>{1, if (false) 1, if (true) 2 else 3, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:246:54: Error: Unexpected token 'if'.\n Expect.setEquals(set, const <int>{1, if (false) 1, if (true) 2 else 3, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:252:30: Error: Unexpected token 'if'.\n const <int, int>{1: 1, if (true) 2: 2, if (false) 9: 9, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:252:46: Error: Unexpected token 'if'.\n const <int, int>{1: 1, if (true) 2: 2, if (false) 9: 9, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:254:24: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else 1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:254:57: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else 1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:256:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, if (false) 9, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:256:53: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, if (false) 9, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:257:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (false) 9 else 1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:257:61: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (false) 9 else 1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:260:51: Error: Unexpected token 'if'.\n Expect.notIdentical(map, const <int, int>{1: 1, if (true) 3: 3, 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:261:43: Error: Unexpected token 'if'.\n Expect.notIdentical(set, const <int>{1, if (true) 3, 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:75:68: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:78:71: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:75: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:63: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:181:67: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:184:70: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.visitAsExpression (package:kernel/binary/ast_to_binary.dart:1476:5)\n#6 AsExpression.accept (package:kernel/ast.dart:3264:36)\n#7 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#8 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#9 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#10 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#11 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#12 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#13 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#14 Arguments.accept (package:kernel/ast.dart:2745:30)\n#15 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#16 BinaryPrinter.visitStaticInvocation (package:kernel/binary/ast_to_binary.dart:1396:5)\n#17 StaticInvocation.accept (package:kernel/ast.dart:2967:36)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#20 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#21 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#22 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#23 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#24 Block.accept (package:kernel/ast.dart:3744:35)\n#25 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#26 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#27 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#28 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#29 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#30 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#31 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#32 Procedure.accept (package:kernel/ast.dart:1777:32)\n#33 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#34 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#35 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#36 Library.accept (package:kernel/ast.dart:437:30)\n#37 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#38 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#39 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#40 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#41 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#42 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#43 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#44 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#45 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#46 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#47 new Future.sync (dart:async/future.dart:224:31)\n#48 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#49 _rootRun (dart:async/zone.dart:1124:13)\n#50 _CustomZone.run (dart:async/zone.dart:1021:19)\n#51 _runZoned (dart:async/zone.dart:1516:10)\n#52 runZoned (dart:async/zone.dart:1463:12)\n#53 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#54 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#55 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#56 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#57 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#58 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#59 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#60 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#61 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#62 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#63 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/if_const_test\n"} {"name":"language_2/control_flow_collections/if_inference_test","configuration":"fasta-mac","result":"CompileTimeError","log":"--- Command \"fasta\" (took 01.000315s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_if_inference_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/if_inference_test.dart )\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_inference_test.dart:19:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:20:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:21:22: Error: Unexpected token 'if'.\n expectListOf<num>([if (true) 1 else 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:22:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1, 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:23:22: Error: Unexpected token 'if'.\n expectListOf<num>([if (true) 1, 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:36: Error: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:26: Error: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:32: Error: Unexpected token '...'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:28:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:29:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1 else 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:30:26: Error: Unexpected token 'if'.\n expectMapOf<num, num>({if (true) 1: 0.1 else 0.2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:31:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1, 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:32:26: Error: Unexpected token 'if'.\n expectMapOf<num, num>({if (true) 1: 0.1, 0.2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:44: Error: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:34: Error: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:36: Error: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:37:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:38:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:39:21: Error: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1 else 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:40:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1, 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:41:21: Error: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1, 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:35: Error: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:25: Error: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:31: Error: Unexpected token '...'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:36: Error: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:26: Error: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:38: Error: Unexpected token '...'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:28: Error: Unexpected token 'if'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:50: Error: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({1: 1, if (true) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:40: Error: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({1: 1, if (true) ...({} as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:57:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (true) expectInt(1)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:58:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (false) 9 else expectInt(1)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:61:38: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1, 2], [1, if (true) expectDynamic(2)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:62:38: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1, 2], [1, if (false) 9 else expectDynamic(2)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:68:21: Error: Unexpected token 'if'.\n <int, String>{if (true) expectInt(1): expectString(\"s\")});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:72:16: Error: Unexpected token 'if'.\n {1: \"s\", if (true) expectDynamic(2): expectDynamic(\"t\")});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:77:36: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1}, <int>{if (true) expectInt(1)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:78:36: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1}, <int>{if (false) 9 else expectInt(1)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:81:37: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (true) expectDynamic(2)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:82:37: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (false) 9 else expectDynamic(2)});\n ^^\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/if_inference_test\n"} {"name":"language_2/control_flow_collections/for_inference_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 01.000194s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_inference_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_inference_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_inference_test.dart:20:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, for (; false;) 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:45: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, for (; false;) 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:22:27: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, for (; false;) 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:22:45: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, for (; false;) 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:23:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:24:27: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:46: Error: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:31: Error: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:42: Error: Unexpected token '...'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:29:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:30:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, for (; false;) 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:30:52: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, for (; false;) 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:31:31: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, for (; false;) 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:31:54: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, for (; false;) 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:32:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:33:31: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:54: Error: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:39: Error: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:46: Error: Unexpected token '...'.\n Expect.type<Map<int, int>>({for (; false;) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:38:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, for (; false;) 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:44: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, for (; false;) 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:40:26: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, for (; false;) 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:40:44: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, for (; false;) 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:41:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:42:26: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:40: Error: Unexpected token '...'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:30: Error: Unexpected token 'if'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:36: Error: Unexpected token '...'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:26: Error: Unexpected token 'if'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:46: Error: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:31: Error: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:48:48: Error: Unexpected token '...'.\n Expect.type<Set<dynamic>>({1, for (; false;) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:48:33: Error: Unexpected token 'for'.\n Expect.type<Set<dynamic>>({1, for (; false;) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:51:60: Error: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({1: 1, for (; false;) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:51:45: Error: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({1: 1, for (; false;) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:39: Error: 'i' is already declared in this scope.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:30: Error: Unexpected token 'for'.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:36: Error: 'i' is already declared in this scope.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:39: Error: 'i' is already declared in this scope.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:30: Error: Unexpected token 'for'.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:41: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:65: Error: Expected an identifier, but got ']'.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:32: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:41: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:59: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:59: Error: Expected ';' after this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: Expected a type, but got '2'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: Expected '[' before this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: This couldn't be parsed.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:64: Error: Expected ';' after this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:64: Error: Unexpected token ';'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:32: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:74:37: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], <int>[for (; false;) expectInt(1)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:77:38: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1, 2], [1, for (; false;) expectDynamic(2)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:83:21: Error: Unexpected token 'for'.\n <int, String>{for (; false;) expectInt(1): expectString(\"s\")});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:87:16: Error: Unexpected token 'for'.\n {1: \"s\", for (; false;) expectDynamic(2): expectDynamic(\"t\")});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:92:36: Error: Unexpected token 'for'.\n Expect.setEquals(<int>{1}, <int>{for (; false;) expectInt(1)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:95:37: Error: Unexpected token 'for'.\n Expect.setEquals(<int>{1, 2}, {1, for (; false;) expectDynamic(2)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:51: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:55: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:71: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#6 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#7 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#8 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#9 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#10 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#11 Arguments.accept (package:kernel/ast.dart:2745:30)\n#12 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#13 BinaryPrinter.visitStaticInvocation (package:kernel/binary/ast_to_binary.dart:1396:5)\n#14 StaticInvocation.accept (package:kernel/ast.dart:2967:36)\n#15 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#16 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#17 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#20 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#21 Block.accept (package:kernel/ast.dart:3744:35)\n#22 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#23 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#24 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#25 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#26 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#27 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#28 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#29 Procedure.accept (package:kernel/ast.dart:1777:32)\n#30 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#31 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#32 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#33 Library.accept (package:kernel/ast.dart:437:30)\n#34 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#35 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#36 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#37 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#38 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#39 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#40 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#41 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#42 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#43 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#44 new Future.sync (dart:async/future.dart:224:31)\n#45 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#46 _rootRun (dart:async/zone.dart:1124:13)\n#47 _CustomZone.run (dart:async/zone.dart:1021:19)\n#48 _runZoned (dart:async/zone.dart:1516:10)\n#49 runZoned (dart:async/zone.dart:1463:12)\n#50 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#51 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#52 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#53 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#54 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#55 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#56 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#57 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#58 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#59 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#60 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/for_inference_test\n"} {"name":"language_2/control_flow_collections/for_variable_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 01.000528s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_variable_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_variable_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_variable_test.dart:32:15: Error: Unexpected token 'for'.\n var list = [for (var i in [0, 1]) () => i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:7: Error: Unexpected token 'for'.\n for (var global = \"for\"; global != null; global = null) global\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:75:7: Error: Unexpected token 'for'.\n for (var staticField = \"for\"; staticField != null; staticField = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:7: Error: Unexpected token 'for'.\n for (var field = \"for\"; field != null; field = null) field\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:7: Error: Unexpected token 'for'.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:16: Error: 'local' is already declared in this scope.\n for (var local = \"for\"; local != null; local = null) local\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:66:9: Context: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:7: Error: Unexpected token 'for'.\n for (var local = \"for\"; local != null; local = null) local\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:97:18: Error: 'outer' is already declared in this scope.\n for (var outer = \"for\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:97:9: Error: Unexpected token 'for'.\n for (var outer = \"for\"; outer != null; outer = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:7: Error: Unexpected token 'for'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:22: Error: 'global' is already declared in this scope.\n list = [for (var global in [\"for\"]) global];\n ^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:16: Context: Previous declaration of 'global'.\n for (var global = \"for\"; global != null; global = null) global\n ^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:13: Error: Unexpected token 'for'.\n list = [for (var global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:22: Error: 'staticField' is already declared in this scope.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:75:16: Context: Previous declaration of 'staticField'.\n for (var staticField = \"for\"; staticField != null; staticField = null)\n ^^^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:13: Error: Unexpected token 'for'.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:22: Error: 'field' is already declared in this scope.\n list = [for (var field in [\"for\"]) field];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:16: Context: Previous declaration of 'field'.\n for (var field = \"for\"; field != null; field = null) field\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:13: Error: Unexpected token 'for'.\n list = [for (var field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:22: Error: 'inherited' is already declared in this scope.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:16: Context: Previous declaration of 'inherited'.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:13: Error: Unexpected token 'for'.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:22: Error: 'local' is already declared in this scope.\n list = [for (var local in [\"for\"]) local];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:66:9: Context: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:13: Error: Unexpected token 'for'.\n list = [for (var local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:22: Error: 'outer' is already declared in this scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:51: Error: 'outer' is already declared in this scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:42: Error: Unexpected token 'for'.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:13: Error: Unexpected token 'for'.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:127:7: Error: Unexpected token 'for'.\n for (global = \"for\"; global == \"for\"; global = \"after\") global\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:134:7: Error: Unexpected token 'for'.\n for (staticField = \"for\"; staticField == \"for\"; staticField = \"after\")\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:142:7: Error: Unexpected token 'for'.\n for (field = \"for\"; field == \"for\"; field = \"after\") field\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:149:7: Error: Unexpected token 'for'.\n for (inherited = \"for\"; inherited == \"for\"; inherited = \"after\") inherited\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:156:7: Error: Unexpected token 'for'.\n for (local = \"for\"; local == \"for\"; local = \"after\") local\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:164:9: Error: Unexpected token 'for'.\n for (outer = \"for\"; outer == \"for\"; outer = \"after\") outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:74: Error: Unexpected token '...'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:7: Error: Unexpected token 'for'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:171:13: Error: Unexpected token 'for'.\n list = [for (global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:176:13: Error: Unexpected token 'for'.\n list = [for (staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:181:13: Error: Unexpected token 'for'.\n list = [for (field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:186:13: Error: Unexpected token 'for'.\n list = [for (inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:191:13: Error: Unexpected token 'for'.\n list = [for (local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:16: Error: 'outer' is already declared in this scope.\n for (var outer in [\"outer\"]) ...[\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:198:9: Error: Unexpected token 'for'.\n for (outer in [\"for\"]) outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:36: Error: Unexpected token '...'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:7: Error: Unexpected token 'for'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:77: Error: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'String'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:39: Error: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'String'.\n for (var outer in [\"outer\"]) ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:63: Error: Verification of the generated program failed:\nVariable 'global' used out of scope.\n for (var global = \"for\"; global != null; global = null) global\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:76:9: Error: Verification of the generated program failed:\nVariable 'staticField' used out of scope.\n staticField\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:60: Error: Verification of the generated program failed:\nVariable 'field' used out of scope.\n for (var field = \"for\"; field != null; field = null) field\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:72: Error: Verification of the generated program failed:\nVariable 'inherited' used out of scope.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:98:11: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:41: Error: Verification of the generated program failed:\nVariable 'global' used out of scope.\n list = [for (var global in [\"for\"]) global];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:46: Error: Verification of the generated program failed:\nVariable 'staticField' used out of scope.\n list = [for (var staticField in [\"for\"]) staticField];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:40: Error: Verification of the generated program failed:\nVariable 'field' used out of scope.\n list = [for (var field in [\"for\"]) field];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:44: Error: Verification of the generated program failed:\nVariable 'inherited' used out of scope.\n list = [for (var inherited in [\"for\"]) inherited];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:69: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:164:62: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n for (outer = \"for\"; outer == \"for\"; outer = \"after\") outer,\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:165:9: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:198:32: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n for (outer in [\"for\"]) outer,\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:199:9: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:43: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:45: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:52: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#6 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#7 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#8 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#9 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#10 BinaryPrinter.writeVariableDeclaration (package:kernel/binary/ast_to_binary.dart:1854:5)\n#11 BinaryPrinter.visitVariableDeclaration (package:kernel/binary/ast_to_binary.dart:1840:5)\n#12 VariableDeclaration.accept (package:kernel/ast.dart:4450:35)\n#13 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#14 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#15 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#16 Block.accept (package:kernel/ast.dart:3744:35)\n#17 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#18 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#19 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#20 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#21 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#22 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#23 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#24 Procedure.accept (package:kernel/ast.dart:1777:32)\n#25 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#26 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#27 BinaryPrinter.visitClass (package:kernel/binary/ast_to_binary.dart:1048:5)\n#28 Class.accept (package:kernel/ast.dart:1010:30)\n#29 BinaryPrinter.writeClassNode (package:kernel/binary/ast_to_binary.dart:408:10)\n#30 BinaryPrinter.writeClassNodeList (package:kernel/binary/ast_to_binary.dart:312:7)\n#31 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:900:5)\n#32 Library.accept (package:kernel/ast.dart:437:30)\n#33 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#34 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#35 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#36 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#37 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#38 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#39 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#40 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#41 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#42 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#43 new Future.sync (dart:async/future.dart:224:31)\n#44 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#45 _rootRun (dart:async/zone.dart:1124:13)\n#46 _CustomZone.run (dart:async/zone.dart:1021:19)\n#47 _runZoned (dart:async/zone.dart:1516:10)\n#48 runZoned (dart:async/zone.dart:1463:12)\n#49 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#50 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#51 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#52 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#53 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#54 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#55 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#56 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#57 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#58 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#59 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/for_variable_test\n"} {"name":"language_2/control_flow_collections/if_const_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 01.000031s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_if_const_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/if_const_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/if_const_test.dart:61:19: Error: Can't find ')' to match '('.\n Expect.identical(const {1}, const [if (true) {1}].first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:60:19: Error: Can't find ')' to match '('.\n Expect.identical(const {1: 1}, const [if (true) {1: 1}].first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:59:19: Error: Can't find ')' to match '('.\n Expect.identical(const [1], const [if (true) [1]].first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:167:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int>{1}, const <int>{if (true) {1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:166:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int, int>{1: 1}, const <int>{if (true) {1: 1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:165:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int>[1], const <int>{if (true) [1]}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:232:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt};\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:30:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:33:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (false) 9, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:36:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (false) 9 else 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:39:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:42:38: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[if (true) 1, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:45:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:48:44: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:52:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:52:32: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:52:49: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:55:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (dynamicTrue) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:56:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (objectTrue) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:59:38: Error: Unexpected token 'if'.\n Expect.identical(const [1], const [if (true) [1]].first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:60:41: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const [if (true) {1: 1}].first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:61:38: Error: Unexpected token 'if'.\n Expect.identical(const {1}, const [if (true) {1}].first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:29: Error: Unexpected token '...'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:19: Error: Unexpected token 'if'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:63: Error: Unexpected token '...'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:45: Error: Unexpected token 'if'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:29: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:19: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:52: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:42: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:72:61: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:72:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:75:68: Error: Not a constant expression.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:75:48: Error: Unexpected token 'for'.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:75:38: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:78:38: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:78:51: Error: Expected ',' before this.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:78:60: Error: 'i' is already declared in this scope.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:75:57: Context: Previous declaration of 'i'.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:78:71: Error: Not a constant expression.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:78:51: Error: Unexpected token 'for'.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:37: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:83:48: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:86:48: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, if (false) 9: 9, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:90:30: Error: Unexpected token 'if'.\n const <int, int>{1: 1, if (false) 9: 9 else 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:93:51: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const <int, int>{if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:96:42: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{if (true) 1: 1, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:99:48: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:102:54: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:106:24: Error: Unexpected token 'if'.\n const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:106:40: Error: Unexpected token 'if'.\n const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:106:63: Error: Unexpected token 'if'.\n const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:109:51: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const <int, int>{if (dynamicTrue) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:110:51: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const <int, int>{if (objectTrue) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:114:15: Error: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:114:5: Error: Unexpected token 'if'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:115:26: Error: Unexpected token '...'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:115:5: Error: Unexpected token 'if'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:34: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:24: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:60: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:50: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:124:45: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:124:24: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:127:72: Error: Not a constant expression.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:75: Error: Not a constant expression.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:52: Error: Unexpected token 'for'.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:127:42: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:131:24: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:131:40: Error: Expected ',' before this.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:131:49: Error: 'i' is already declared in this scope.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:61: Context: Previous declaration of 'i'.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:60: Error: Not a constant expression.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:63: Error: Not a constant expression.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:40: Error: Unexpected token 'for'.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:136:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:139:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (false) 9, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:142:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (false) 9 else 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:145:37: Error: Unexpected token 'if'.\n Expect.identical({1}, const <int>{if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:148:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (true) 1, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:151:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:154:43: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:158:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:158:32: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:158:49: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:161:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (dynamicTrue) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:162:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (objectTrue) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:165:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>[1], const <int>{if (true) [1]}.first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:166:56: Error: Unexpected token 'if'.\n Expect.identical(const <int, int>{1: 1}, const <int>{if (true) {1: 1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:167:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (true) {1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:29: Error: Unexpected token '...'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:19: Error: Unexpected token 'if'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:63: Error: Unexpected token '...'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:45: Error: Unexpected token 'if'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:29: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:19: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:52: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:42: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:178:66: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:178:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:181:67: Error: Not a constant expression.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:181:47: Error: Unexpected token 'for'.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:181:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:184:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:184:50: Error: Expected ',' before this.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:184:59: Error: 'i' is already declared in this scope.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:181:56: Context: Previous declaration of 'i'.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:184:70: Error: Not a constant expression.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:184:50: Error: Unexpected token 'for'.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:165:58: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n Expect.identical(const <int>[1], const <int>{if (true) [1]}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:166:66: Error: A value of type 'Map<int, int>' can't be assigned to a variable of type 'int'.\n - 'Map' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n Expect.identical(const <int, int>{1: 1}, const <int>{if (true) {1: 1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:167:58: Error: A value of type 'Set<int>' can't be assigned to a variable of type 'int'.\n - 'Set' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n Expect.identical(const <int>{1}, const <int>{if (true) {1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:171:37: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:195:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) nil + 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:195:32: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) nil + 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:197:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nil + 1, if (false) nil + 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:197:45: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nil + 1, if (false) nil + 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:200:5: Error: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:201:5: Error: Unexpected token 'if'.\n if (false) nil + 1: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:202:5: Error: Unexpected token 'if'.\n if (false) 9: nil + 1\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:205:5: Error: Unexpected token 'if'.\n if (true) 1: 1 else nil + 1: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:205:16: Error: Expected '}' before this.\n if (true) 1: 1 else nil + 1: 9,\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:210:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) nil + 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:210:32: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) nil + 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:212:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nil + 1, if (false) nil + 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:212:45: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nil + 1, if (false) nil + 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:218:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>[1], const <int>[if (true) 1, if (false) nonInt]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:218:61: Error: Unexpected token 'if'.\n Expect.identical(const <int>[1], const <int>[if (true) 1, if (false) nonInt]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:220:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nonInt, if (false) nonInt else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:220:44: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nonInt, if (false) nonInt else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:222:33: Error: Expected '}' before this.\n Expect.identical(const <int>{1: 1}, const <int, int>{\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:223:5: Error: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:224:5: Error: Unexpected token 'if'.\n if (false) nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:225:5: Error: Unexpected token 'if'.\n if (false) 9: nonInt\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:228:5: Error: Unexpected token 'if'.\n if (true) 1: 1 else nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:229:5: Error: Unexpected token 'if'.\n if (false) 9: nonInt else 2: 2\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:232:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt};\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:232:61: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt};\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:234:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nonInt, if (false) nonInt else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:234:44: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nonInt, if (false) nonInt else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:241:5: Error: Unexpected token 'if'.\n if (false) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:242:5: Error: Unexpected token 'if'.\n if (true) 2: 2 else 3: 3,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:246:40: Error: Unexpected token 'if'.\n Expect.setEquals(set, const <int>{1, if (false) 1, if (true) 2 else 3, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:246:54: Error: Unexpected token 'if'.\n Expect.setEquals(set, const <int>{1, if (false) 1, if (true) 2 else 3, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:252:30: Error: Unexpected token 'if'.\n const <int, int>{1: 1, if (true) 2: 2, if (false) 9: 9, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:252:46: Error: Unexpected token 'if'.\n const <int, int>{1: 1, if (true) 2: 2, if (false) 9: 9, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:254:24: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else 1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:254:57: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else 1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:256:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, if (false) 9, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:256:53: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, if (false) 9, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:257:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (false) 9 else 1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:257:61: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (false) 9 else 1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:260:51: Error: Unexpected token 'if'.\n Expect.notIdentical(map, const <int, int>{1: 1, if (true) 3: 3, 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:261:43: Error: Unexpected token 'if'.\n Expect.notIdentical(set, const <int>{1, if (true) 3, 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:75:68: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:78:71: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:75: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:63: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:181:67: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:184:70: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.visitAsExpression (package:kernel/binary/ast_to_binary.dart:1476:5)\n#6 AsExpression.accept (package:kernel/ast.dart:3264:36)\n#7 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#8 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#9 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#10 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#11 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#12 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#13 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#14 Arguments.accept (package:kernel/ast.dart:2745:30)\n#15 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#16 BinaryPrinter.visitStaticInvocation (package:kernel/binary/ast_to_binary.dart:1396:5)\n#17 StaticInvocation.accept (package:kernel/ast.dart:2967:36)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#20 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#21 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#22 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#23 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#24 Block.accept (package:kernel/ast.dart:3744:35)\n#25 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#26 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#27 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#28 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#29 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#30 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#31 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#32 Procedure.accept (package:kernel/ast.dart:1777:32)\n#33 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#34 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#35 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#36 Library.accept (package:kernel/ast.dart:437:30)\n#37 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#38 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#39 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#40 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#41 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#42 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#43 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#44 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#45 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#46 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#47 new Future.sync (dart:async/future.dart:224:31)\n#48 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#49 _rootRun (dart:async/zone.dart:1124:13)\n#50 _CustomZone.run (dart:async/zone.dart:1021:19)\n#51 _runZoned (dart:async/zone.dart:1516:10)\n#52 runZoned (dart:async/zone.dart:1463:12)\n#53 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#54 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#55 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#56 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#57 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#58 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#59 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#60 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#61 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#62 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#63 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/if_const_test\n"} {"name":"language_2/control_flow_collections/for_inference_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 735ms):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_inference_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_inference_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_inference_test.dart:20:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, for (; false;) 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:45: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, for (; false;) 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:22:27: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, for (; false;) 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:22:45: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, for (; false;) 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:23:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:24:27: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:46: Error: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:31: Error: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:42: Error: Unexpected token '...'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:29:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:30:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, for (; false;) 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:30:52: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, for (; false;) 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:31:31: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, for (; false;) 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:31:54: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, for (; false;) 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:32:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:33:31: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:54: Error: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:39: Error: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:46: Error: Unexpected token '...'.\n Expect.type<Map<int, int>>({for (; false;) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:38:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, for (; false;) 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:44: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, for (; false;) 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:40:26: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, for (; false;) 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:40:44: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, for (; false;) 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:41:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:42:26: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:40: Error: Unexpected token '...'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:30: Error: Unexpected token 'if'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:36: Error: Unexpected token '...'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:26: Error: Unexpected token 'if'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:46: Error: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:31: Error: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:48:48: Error: Unexpected token '...'.\n Expect.type<Set<dynamic>>({1, for (; false;) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:48:33: Error: Unexpected token 'for'.\n Expect.type<Set<dynamic>>({1, for (; false;) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:51:60: Error: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({1: 1, for (; false;) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:51:45: Error: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({1: 1, for (; false;) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:39: Error: 'i' is already declared in this scope.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:30: Error: Unexpected token 'for'.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:36: Error: 'i' is already declared in this scope.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:39: Error: 'i' is already declared in this scope.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:30: Error: Unexpected token 'for'.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:41: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:65: Error: Expected an identifier, but got ']'.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:32: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:41: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:59: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:59: Error: Expected ';' after this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: Expected a type, but got '2'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: Expected '[' before this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: This couldn't be parsed.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:64: Error: Expected ';' after this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:64: Error: Unexpected token ';'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:32: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:74:37: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], <int>[for (; false;) expectInt(1)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:77:38: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1, 2], [1, for (; false;) expectDynamic(2)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:83:21: Error: Unexpected token 'for'.\n <int, String>{for (; false;) expectInt(1): expectString(\"s\")});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:87:16: Error: Unexpected token 'for'.\n {1: \"s\", for (; false;) expectDynamic(2): expectDynamic(\"t\")});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:92:36: Error: Unexpected token 'for'.\n Expect.setEquals(<int>{1}, <int>{for (; false;) expectInt(1)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:95:37: Error: Unexpected token 'for'.\n Expect.setEquals(<int>{1, 2}, {1, for (; false;) expectDynamic(2)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:51: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:55: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:71: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#6 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#7 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#8 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#9 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#10 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#11 Arguments.accept (package:kernel/ast.dart:2745:30)\n#12 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#13 BinaryPrinter.visitStaticInvocation (package:kernel/binary/ast_to_binary.dart:1396:5)\n#14 StaticInvocation.accept (package:kernel/ast.dart:2967:36)\n#15 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#16 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#17 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#20 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#21 Block.accept (package:kernel/ast.dart:3744:35)\n#22 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#23 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#24 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#25 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#26 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#27 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#28 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#29 Procedure.accept (package:kernel/ast.dart:1777:32)\n#30 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#31 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#32 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#33 Library.accept (package:kernel/ast.dart:437:30)\n#34 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#35 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#36 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#37 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#38 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#39 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#40 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#41 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#42 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#43 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#44 new Future.sync (dart:async/future.dart:224:31)\n#45 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#46 _rootRun (dart:async/zone.dart:1124:13)\n#47 _CustomZone.run (dart:async/zone.dart:1021:19)\n#48 _runZoned (dart:async/zone.dart:1516:10)\n#49 runZoned (dart:async/zone.dart:1463:12)\n#50 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#51 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#52 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#53 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#54 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#55 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#56 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#57 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#58 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#59 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#60 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/for_inference_test\n"} {"name":"language_2/control_flow_collections/if_inference_test","configuration":"fasta-mac","result":"CompileTimeError","log":"--- Command \"fasta\" (took 830ms):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_if_inference_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/if_inference_test.dart )\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_inference_test.dart:19:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:20:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:21:22: Error: Unexpected token 'if'.\n expectListOf<num>([if (true) 1 else 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:22:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1, 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:23:22: Error: Unexpected token 'if'.\n expectListOf<num>([if (true) 1, 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:36: Error: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:26: Error: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:32: Error: Unexpected token '...'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:28:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:29:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1 else 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:30:26: Error: Unexpected token 'if'.\n expectMapOf<num, num>({if (true) 1: 0.1 else 0.2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:31:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1, 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:32:26: Error: Unexpected token 'if'.\n expectMapOf<num, num>({if (true) 1: 0.1, 0.2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:44: Error: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:34: Error: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:36: Error: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:37:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:38:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:39:21: Error: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1 else 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:40:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1, 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:41:21: Error: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1, 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:35: Error: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:25: Error: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:31: Error: Unexpected token '...'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:36: Error: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:26: Error: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:38: Error: Unexpected token '...'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:28: Error: Unexpected token 'if'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:50: Error: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({1: 1, if (true) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:40: Error: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({1: 1, if (true) ...({} as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:57:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (true) expectInt(1)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:58:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (false) 9 else expectInt(1)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:61:38: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1, 2], [1, if (true) expectDynamic(2)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:62:38: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1, 2], [1, if (false) 9 else expectDynamic(2)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:68:21: Error: Unexpected token 'if'.\n <int, String>{if (true) expectInt(1): expectString(\"s\")});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:72:16: Error: Unexpected token 'if'.\n {1: \"s\", if (true) expectDynamic(2): expectDynamic(\"t\")});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:77:36: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1}, <int>{if (true) expectInt(1)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:78:36: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1}, <int>{if (false) 9 else expectInt(1)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:81:37: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (true) expectDynamic(2)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:82:37: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (false) 9 else expectDynamic(2)});\n ^^\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/if_inference_test\n"} {"name":"language_2/control_flow_collections/for_variable_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 799ms):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_variable_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_variable_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_variable_test.dart:32:15: Error: Unexpected token 'for'.\n var list = [for (var i in [0, 1]) () => i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:7: Error: Unexpected token 'for'.\n for (var global = \"for\"; global != null; global = null) global\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:75:7: Error: Unexpected token 'for'.\n for (var staticField = \"for\"; staticField != null; staticField = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:7: Error: Unexpected token 'for'.\n for (var field = \"for\"; field != null; field = null) field\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:7: Error: Unexpected token 'for'.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:16: Error: 'local' is already declared in this scope.\n for (var local = \"for\"; local != null; local = null) local\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:66:9: Context: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:7: Error: Unexpected token 'for'.\n for (var local = \"for\"; local != null; local = null) local\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:97:18: Error: 'outer' is already declared in this scope.\n for (var outer = \"for\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:97:9: Error: Unexpected token 'for'.\n for (var outer = \"for\"; outer != null; outer = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:7: Error: Unexpected token 'for'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:22: Error: 'global' is already declared in this scope.\n list = [for (var global in [\"for\"]) global];\n ^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:16: Context: Previous declaration of 'global'.\n for (var global = \"for\"; global != null; global = null) global\n ^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:13: Error: Unexpected token 'for'.\n list = [for (var global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:22: Error: 'staticField' is already declared in this scope.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:75:16: Context: Previous declaration of 'staticField'.\n for (var staticField = \"for\"; staticField != null; staticField = null)\n ^^^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:13: Error: Unexpected token 'for'.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:22: Error: 'field' is already declared in this scope.\n list = [for (var field in [\"for\"]) field];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:16: Context: Previous declaration of 'field'.\n for (var field = \"for\"; field != null; field = null) field\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:13: Error: Unexpected token 'for'.\n list = [for (var field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:22: Error: 'inherited' is already declared in this scope.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:16: Context: Previous declaration of 'inherited'.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:13: Error: Unexpected token 'for'.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:22: Error: 'local' is already declared in this scope.\n list = [for (var local in [\"for\"]) local];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:66:9: Context: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:13: Error: Unexpected token 'for'.\n list = [for (var local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:22: Error: 'outer' is already declared in this scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:51: Error: 'outer' is already declared in this scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:42: Error: Unexpected token 'for'.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:13: Error: Unexpected token 'for'.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:127:7: Error: Unexpected token 'for'.\n for (global = \"for\"; global == \"for\"; global = \"after\") global\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:134:7: Error: Unexpected token 'for'.\n for (staticField = \"for\"; staticField == \"for\"; staticField = \"after\")\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:142:7: Error: Unexpected token 'for'.\n for (field = \"for\"; field == \"for\"; field = \"after\") field\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:149:7: Error: Unexpected token 'for'.\n for (inherited = \"for\"; inherited == \"for\"; inherited = \"after\") inherited\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:156:7: Error: Unexpected token 'for'.\n for (local = \"for\"; local == \"for\"; local = \"after\") local\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:164:9: Error: Unexpected token 'for'.\n for (outer = \"for\"; outer == \"for\"; outer = \"after\") outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:74: Error: Unexpected token '...'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:7: Error: Unexpected token 'for'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:171:13: Error: Unexpected token 'for'.\n list = [for (global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:176:13: Error: Unexpected token 'for'.\n list = [for (staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:181:13: Error: Unexpected token 'for'.\n list = [for (field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:186:13: Error: Unexpected token 'for'.\n list = [for (inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:191:13: Error: Unexpected token 'for'.\n list = [for (local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:16: Error: 'outer' is already declared in this scope.\n for (var outer in [\"outer\"]) ...[\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:198:9: Error: Unexpected token 'for'.\n for (outer in [\"for\"]) outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:36: Error: Unexpected token '...'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:7: Error: Unexpected token 'for'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:77: Error: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'String'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:39: Error: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'String'.\n for (var outer in [\"outer\"]) ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:63: Error: Verification of the generated program failed:\nVariable 'global' used out of scope.\n for (var global = \"for\"; global != null; global = null) global\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:76:9: Error: Verification of the generated program failed:\nVariable 'staticField' used out of scope.\n staticField\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:60: Error: Verification of the generated program failed:\nVariable 'field' used out of scope.\n for (var field = \"for\"; field != null; field = null) field\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:72: Error: Verification of the generated program failed:\nVariable 'inherited' used out of scope.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:98:11: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:41: Error: Verification of the generated program failed:\nVariable 'global' used out of scope.\n list = [for (var global in [\"for\"]) global];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:46: Error: Verification of the generated program failed:\nVariable 'staticField' used out of scope.\n list = [for (var staticField in [\"for\"]) staticField];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:40: Error: Verification of the generated program failed:\nVariable 'field' used out of scope.\n list = [for (var field in [\"for\"]) field];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:44: Error: Verification of the generated program failed:\nVariable 'inherited' used out of scope.\n list = [for (var inherited in [\"for\"]) inherited];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:69: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:164:62: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n for (outer = \"for\"; outer == \"for\"; outer = \"after\") outer,\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:165:9: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:198:32: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n for (outer in [\"for\"]) outer,\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:199:9: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:43: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:45: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:52: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#6 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#7 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#8 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#9 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#10 BinaryPrinter.writeVariableDeclaration (package:kernel/binary/ast_to_binary.dart:1854:5)\n#11 BinaryPrinter.visitVariableDeclaration (package:kernel/binary/ast_to_binary.dart:1840:5)\n#12 VariableDeclaration.accept (package:kernel/ast.dart:4450:35)\n#13 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#14 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#15 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#16 Block.accept (package:kernel/ast.dart:3744:35)\n#17 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#18 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#19 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#20 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#21 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#22 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#23 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#24 Procedure.accept (package:kernel/ast.dart:1777:32)\n#25 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#26 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#27 BinaryPrinter.visitClass (package:kernel/binary/ast_to_binary.dart:1048:5)\n#28 Class.accept (package:kernel/ast.dart:1010:30)\n#29 BinaryPrinter.writeClassNode (package:kernel/binary/ast_to_binary.dart:408:10)\n#30 BinaryPrinter.writeClassNodeList (package:kernel/binary/ast_to_binary.dart:312:7)\n#31 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:900:5)\n#32 Library.accept (package:kernel/ast.dart:437:30)\n#33 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#34 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#35 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#36 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#37 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#38 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#39 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#40 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#41 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#42 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#43 new Future.sync (dart:async/future.dart:224:31)\n#44 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#45 _rootRun (dart:async/zone.dart:1124:13)\n#46 _CustomZone.run (dart:async/zone.dart:1021:19)\n#47 _runZoned (dart:async/zone.dart:1516:10)\n#48 runZoned (dart:async/zone.dart:1463:12)\n#49 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#50 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#51 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#52 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#53 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#54 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#55 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#56 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#57 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#58 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#59 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/for_variable_test\n"} {"name":"language_2/control_flow_collections/if_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 02.000233s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_if_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/if_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/if_test.dart:58:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, [if (true) {1}].first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:57:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, [if (true) {1: 1}].first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:56:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], [if (true) [1]].first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:161:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, {if (true) {1}}.first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:160:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, {if (true) {1: 1}}.first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:159:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], {if (true) [1]}.first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:27:36: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:30:36: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, if (false) 9, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:33:36: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, if (false) 9 else 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:36:32: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:39:33: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[if (true) 1, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:42:36: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:45:39: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:49:13: Error: Unexpected token 'if'.\n <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:49:26: Error: Unexpected token 'if'.\n <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:49:43: Error: Unexpected token 'if'.\n <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:52:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (true as dynamic) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:53:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (true as Object) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:56:27: Error: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) [1]].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:57:29: Error: Unexpected token 'if'.\n Expect.mapEquals({1: 1}, [if (true) {1: 1}].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:58:26: Error: Unexpected token 'if'.\n Expect.setEquals({1}, [if (true) {1}].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:62:23: Error: Unexpected token '...'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:62:13: Error: Unexpected token 'if'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:62:57: Error: Unexpected token '...'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:62:39: Error: Unexpected token 'if'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:65:42: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:65:32: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:65:65: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:65:55: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:68:50: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:68:32: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:71:43: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[if (true) for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:71:33: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[if (true) for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:74:33: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:74:46: Error: Expected ',' before this.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:74:55: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:71:52: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:74:46: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:62:31: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:79:42: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:82:42: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, if (false) 9: 9, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:85:42: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, if (false) 9: 9 else 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:88:49: Error: Unexpected token 'if'.\n Expect.mapEquals(<int, int>{1: 1}, <int, int>{if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:91:36: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{if (true) 1: 1, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:94:42: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:97:48: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:101:18: Error: Unexpected token 'if'.\n <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:101:34: Error: Unexpected token 'if'.\n <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:101:57: Error: Unexpected token 'if'.\n <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:104:49: Error: Unexpected token 'if'.\n Expect.mapEquals(<int, int>{1: 1}, <int, int>{if (true as dynamic) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:105:49: Error: Unexpected token 'if'.\n Expect.mapEquals(<int, int>{1: 1}, <int, int>{if (true as Object) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:109:15: Error: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:109:5: Error: Unexpected token 'if'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^\ntests/language_2/control_flow_collections/if_test.dart:110:26: Error: Unexpected token '...'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:110:5: Error: Unexpected token 'if'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^\ntests/language_2/control_flow_collections/if_test.dart:115:28: Error: Unexpected token 'if'.\n <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:115:18: Error: Unexpected token 'if'.\n <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:115:54: Error: Unexpected token 'if'.\n <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:115:44: Error: Unexpected token 'if'.\n <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:119:39: Error: Unexpected token 'if'.\n <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:119:18: Error: Unexpected token 'if'.\n <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:122:46: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:122:36: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:125:36: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:125:52: Error: Expected ',' before this.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:125:61: Error: 'i' is already declared in this scope.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:122:55: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:125:52: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:130:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:133:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (false) 9, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:136:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (false) 9 else 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:139:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:142:31: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{if (true) 1, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:145:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:148:37: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:152:13: Error: Unexpected token 'if'.\n <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:152:26: Error: Unexpected token 'if'.\n <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:152:43: Error: Unexpected token 'if'.\n <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:155:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true as dynamic) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:156:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true as Object) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:159:27: Error: Unexpected token 'if'.\n Expect.listEquals([1], {if (true) [1]}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:160:29: Error: Unexpected token 'if'.\n Expect.mapEquals({1: 1}, {if (true) {1: 1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:161:26: Error: Unexpected token 'if'.\n Expect.setEquals({1}, {if (true) {1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:165:23: Error: Unexpected token '...'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:165:13: Error: Unexpected token 'if'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:165:57: Error: Unexpected token '...'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:165:39: Error: Unexpected token 'if'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:168:41: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:168:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:168:64: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:168:54: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:171:49: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:171:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:174:41: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{if (true) for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:174:31: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{if (true) for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:177:31: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:177:44: Error: Expected ',' before this.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:177:53: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:174:50: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:177:44: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:165:31: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^\ntests/language_2/control_flow_collections/if_test.dart:188:27: Error: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) log(1), if (false) log(2)]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:188:45: Error: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) log(1), if (false) log(2)]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:194:8: Error: Unexpected token 'if'.\n [if (true) log(1) else log(2), if (false) log(3) else log(4)]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:194:38: Error: Unexpected token 'if'.\n [if (true) log(1) else log(2), if (false) log(3) else log(4)]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:201:5: Error: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:202:5: Error: Unexpected token 'if'.\n if (false) 9: 9 else 2: 2,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:206:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (true) 1, if (false) 9 else 2, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:206:47: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (true) 1, if (false) 9 else 2, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:218:5: Error: Unexpected token 'if'.\n if (true) e1b: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:219:5: Error: Unexpected token 'if'.\n if (true) e2a: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:220:5: Error: Unexpected token 'if'.\n if (true) e2b: 0\n ^^\ntests/language_2/control_flow_collections/if_test.dart:226:5: Error: Unexpected token 'if'.\n if (true) e1b,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:227:5: Error: Unexpected token 'if'.\n if (true) e2a,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:228:5: Error: Unexpected token 'if'.\n if (true) e2b\n ^^\ntests/language_2/control_flow_collections/if_test.dart:235:38: Error: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>[if (nonBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:236:43: Error: Unexpected token 'if'.\n Expect.throwsCastError(() => <int, int>{if (nonBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:237:38: Error: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>{if (nonBool) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:240:43: Error: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>[if (nullBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:241:48: Error: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int, int>{if (nullBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:242:43: Error: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>{if (nullBool) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:71:63: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:74:66: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:122:66: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:122:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:125:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:125:75: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:174:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:177:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.visitAsExpression (package:kernel/binary/ast_to_binary.dart:1476:5)\n#6 AsExpression.accept (package:kernel/ast.dart:3264:36)\n#7 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#8 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#9 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#10 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#11 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#12 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#13 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#14 Arguments.accept (package:kernel/ast.dart:2745:30)\n#15 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#16 BinaryPrinter.visitStaticInvocation (package:kernel/binary/ast_to_binary.dart:1396:5)\n#17 StaticInvocation.accept (package:kernel/ast.dart:2967:36)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#20 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#21 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#22 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#23 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#24 Block.accept (package:kernel/ast.dart:3744:35)\n#25 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#26 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#27 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#28 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#29 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#30 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#31 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#32 Procedure.accept (package:kernel/ast.dart:1777:32)\n#33 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#34 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#35 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#36 Library.accept (package:kernel/ast.dart:437:30)\n#37 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#38 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#39 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#40 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#41 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#42 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#43 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#44 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#45 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#46 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#47 new Future.sync (dart:async/future.dart:224:31)\n#48 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#49 _rootRun (dart:async/zone.dart:1124:13)\n#50 _CustomZone.run (dart:async/zone.dart:1021:19)\n#51 _runZoned (dart:async/zone.dart:1516:10)\n#52 runZoned (dart:async/zone.dart:1463:12)\n#53 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#54 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#55 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#56 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#57 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#58 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#59 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#60 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#61 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#62 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#63 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/if_test\n"} {"name":"language_2/control_flow_collections/for_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 02.000038s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_test.dart:64:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:26: Error: Expected an identifier, but got 'for'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:181:37: Error: Non-optional parameters can't have a default value.\nTry removing the default value or making the parameter optional.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:40: Error: Expected ')' before this.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:57: Error: Expected a declaration, but got '}'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:58: Error: Expected a declaration, but got '.'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:59: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.\nTry adding the name of the type of the variable or the keyword 'var'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:9: Error: Expected '{' before this.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:184:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:184:25: Error: Expected an identifier, but got '<'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:184:26: Error: Expected ')' before this.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:184:67: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:9: Error: Expected '{' before this.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:3: Error: 'Expect' is already declared in this scope.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:3: Context: Previous declaration of 'Expect'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:25: Error: Expected an identifier, but got '<'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:26: Error: Expected ')' before this.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:187:67: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:10: Error: 'setEquals' is already declared in this scope.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:10: Context: Previous declaration of 'setEquals'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:9: Error: Expected '{' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:3: Error: 'Expect' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:3: Context: Previous declaration of 'Expect'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:21: Error: Expected an identifier, but got '1'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:23: Error: Expected ')' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:75: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:10: Error: 'setEquals' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:10: Context: Previous declaration of 'setEquals'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:191:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:191:9: Error: Expected '{' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:3: Error: 'Expect' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:3: Context: Previous declaration of 'Expect'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:191:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:21: Error: Expected an identifier, but got '1'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:23: Error: Expected ')' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:74: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:10: Error: 'setEquals' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:10: Context: Previous declaration of 'setEquals'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:192:1: Error: Expected a declaration, but got '}'.\n}\n^\ntests/language_2/control_flow_collections/for_test.dart:26:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:26:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:29:42: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:29:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:29:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:32:45: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:32:36: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:32:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:35:48: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:35:39: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:35:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:39:25: Error: 'i' is already declared in this scope.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:39:16: Error: Unexpected token 'for'.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:39:48: Error: Unexpected token 'for'.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:38:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:43:52: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:43: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:42:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:40: Error: Unexpected token '...'.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:47:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:46:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:51:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:51:52: Error: Unexpected token 'if'.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^^\ntests/language_2/control_flow_collections/for_test.dart:51:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:50:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:55:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:55:48: Error: Unexpected token 'if'.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^^\ntests/language_2/control_flow_collections/for_test.dart:55:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:54:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:40: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:59:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:58:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:36: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:27: Error: Unexpected token 'for'.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:62:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:38: Error: 'i' is already declared in this scope.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:29: Error: Unexpected token 'for'.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:63:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:64:35: Error: 'i' is already declared in this scope.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:64:26: Error: Unexpected token 'for'.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:64:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:67:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:67:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:70:42: Error: 'n' is already declared in this scope.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:67:42: Context: Previous declaration of 'n'.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:70:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:70:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:73:41: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:73:32: Error: Unexpected token 'for'.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:73:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:74:41: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:74:32: Error: Unexpected token 'for'.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:74:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:48: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:36: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:79:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:18: Error: Unexpected token 'for'.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:82:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:33: Error: 'i' is already declared in this scope.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:24: Error: Unexpected token 'for'.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:86:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:39: Error: 'i' is already declared in this scope.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:30: Error: Unexpected token 'for'.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:90:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:5: Error: Unexpected token 'for'.\n for (var i in <int>[]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:99:5: Error: Unexpected token 'for'.\n for (; false;) 9: 9,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:94:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[1]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:5: Error: Unexpected token 'for'.\n for (var i in <int>[1]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:107:14: Error: 'i' is already declared in this scope.\n for (var i = 3; i <= 4; i++) i: i\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:107:5: Error: Unexpected token 'for'.\n for (var i = 3; i <= 4; i++) i: i\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:104:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:112:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:112:46: Error: Expected '}' before this.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^\ntests/language_2/control_flow_collections/for_test.dart:112:32: Error: Unexpected token '...'.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:112:5: Error: Unexpected token 'for'.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:111:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:57: Error: Unexpected token 'if'.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:117:18: Error: Unexpected token 'for'.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:116:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:121:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:121:67: Error: Expected ':' before this.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^^^\ntests/language_2/control_flow_collections/for_test.dart:121:67: Error: Expected an identifier, but got 'else'.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^^^\ntests/language_2/control_flow_collections/for_test.dart:121:53: Error: Unexpected token 'if'.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:121:18: Error: Unexpected token 'for'.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:120:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:32: Error: Unexpected token 'for'.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:125:5: Error: Unexpected token 'for'.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:124:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:36: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:129:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:45: Error: 'n' is already declared in this scope.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:45: Context: Previous declaration of 'n'.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:36: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:132:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:18: Error: Unexpected token 'for'.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:135:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals([1],\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:18: Error: Unexpected token 'for'.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:137:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals([1],\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:31: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:143:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:146:40: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:146:31: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:146:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:149:43: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:149:34: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:149:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:152:46: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:152:37: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:152:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:156:25: Error: 'i' is already declared in this scope.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:156:16: Error: Unexpected token 'for'.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:156:48: Error: Unexpected token 'for'.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:155:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:160:52: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:43: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:159:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:40: Error: Unexpected token '...'.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:164:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:163:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:168:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:168:52: Error: Unexpected token 'if'.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:168:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:167:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:172:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:172:48: Error: Unexpected token 'if'.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:172:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:171:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:40: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:176:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:175:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:36: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:27: Error: Unexpected token 'for'.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:179:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:38: Error: 'i' is already declared in this scope.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:29: Error: Unexpected token 'for'.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:180:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:23: Error: Expected ';' after this.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:48: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:55: Error: Expected ';' after this.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:5: Error: Unexpected token 'for'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:198:14: Error: 'i' is already declared in this scope.\n for (var i = 2; i <= 3; i++) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:14: Context: Previous declaration of 'i'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:198:5: Error: Unexpected token 'for'.\n for (var i = 2; i <= 3; i++) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:195:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:203:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[1, 2, 3]) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:14: Context: Previous declaration of 'i'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:203:5: Error: Unexpected token 'for'.\n for (var i in <int>[1, 2, 3]) i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:204:14: Error: 'i' is already declared in this scope.\n for (var i = 2; i <= 3; i++) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:14: Context: Previous declaration of 'i'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:204:5: Error: Unexpected token 'for'.\n for (var i = 2; i <= 3; i++) i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:201:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:5: Error: Unexpected token 'for'.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:222:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.equals(\"1:a,2:a\", map.keys.join(\",\"));\n ^\ntests/language_2/control_flow_collections/for_test.dart:224:38: Error: 'i' is already declared in this scope.\n var set = <Equality>{e1a, for (var i = 0; i < keys.length; i++) keys[i]};\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:14: Context: Previous declaration of 'i'.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^\ntests/language_2/control_flow_collections/for_test.dart:224:29: Error: Unexpected token 'for'.\n var set = <Equality>{e1a, for (var i = 0; i < keys.length; i++) keys[i]};\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:225:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.equals(\"1:a,2:a\", set.join(\",\"));\n ^\ntests/language_2/control_flow_collections/for_test.dart:231:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (; nonBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:231:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (; nonBool;) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:232:43: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:232:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:233:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (; nonBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:233:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (; nonBool;) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:237:43: Error: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:237:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:238:48: Error: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:238:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:239:43: Error: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:239:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:243:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (int i = nonInt; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:243:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (int i = nonInt; false;) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:244:43: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (int i = nonInt; false;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:244:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int, int>{for (int i = nonInt; false;) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:245:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (int i = nonInt; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:245:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (int i = nonInt; false;) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:249:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (int i in nonIterable) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:249:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (int i in nonIterable) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:250:43: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (int i in nonIterable) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:250:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int, int>{for (int i in nonIterable) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:251:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (int i in nonIterable) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:251:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (int i in nonIterable) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:255:46: Error: Unexpected token 'for'.\n Expect.throwsNoSuchMethodError(() => <int>[for (var i in nullIterable) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:255:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsNoSuchMethodError(() => <int>[for (var i in nullIterable) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:257:24: Error: Unexpected token 'for'.\n () => <int, int>{for (var i in nullIterable) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:256:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsNoSuchMethodError(\n ^\ntests/language_2/control_flow_collections/for_test.dart:258:46: Error: Unexpected token 'for'.\n Expect.throwsNoSuchMethodError(() => <int>{for (var i in nullIterable) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:258:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsNoSuchMethodError(() => <int>{for (var i in nullIterable) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:261:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (var i = 0; i < 1; i++) nonInt]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:261:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (var i = 0; i < 1; i++) nonInt]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:263:24: Error: Unexpected token 'for'.\n () => <int, int>{for (var i = 0; i < 1; i++) nonInt: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:262:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(\n ^\ntests/language_2/control_flow_collections/for_test.dart:265:24: Error: Unexpected token 'for'.\n () => <int, int>{for (var i = 0; i < 1; i++) 1: nonInt});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:264:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(\n ^\ntests/language_2/control_flow_collections/for_test.dart:266:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:266:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt});\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:53: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:29:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:32:63: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:35:66: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:39:39: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:53: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:51:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:55:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:73: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:56: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:64:55: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:67:66: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:70:66: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:73:73: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:74:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:56: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:59: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:45: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:48: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:51: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:57: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:28: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:31: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:29: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:32: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:107:34: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 3; i <= 4; i++) i: i\n ^\ntests/language_2/control_flow_collections/for_test.dart:107:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 3; i <= 4; i++) i: i\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:121:65: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:65: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:68: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:72: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:69: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:72: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:69: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:72: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:59: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:62: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:51: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:146:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:149:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:152:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:156:39: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:53: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:168:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:172:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:73: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:56: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:35: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:38: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:198:34: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 2; i <= 3; i++) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:198:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 2; i <= 3; i++) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:203:35: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1, 2, 3]) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:204:34: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 2; i <= 3; i++) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:48: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:59: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^\ntests/language_2/control_flow_collections/for_test.dart:224:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n var set = <Equality>{e1a, for (var i = 0; i < keys.length; i++) keys[i]};\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.visitAsExpression (package:kernel/binary/ast_to_binary.dart:1476:5)\n#6 AsExpression.accept (package:kernel/ast.dart:3264:36)\n#7 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#8 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#9 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#10 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#11 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#12 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#13 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#14 Arguments.accept (package:kernel/ast.dart:2745:30)\n#15 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#16 BinaryPrinter.visitMethodInvocation (package:kernel/binary/ast_to_binary.dart:1369:5)\n#17 MethodInvocation.accept (package:kernel/ast.dart:2861:36)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#20 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#21 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#22 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#23 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#24 Block.accept (package:kernel/ast.dart:3744:35)\n#25 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#26 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#27 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#28 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#29 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#30 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#31 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#32 Procedure.accept (package:kernel/ast.dart:1777:32)\n#33 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#34 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#35 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#36 Library.accept (package:kernel/ast.dart:437:30)\n#37 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#38 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#39 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#40 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#41 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#42 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#43 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#44 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#45 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#46 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#47 new Future.sync (dart:async/future.dart:224:31)\n#48 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#49 _rootRun (dart:async/zone.dart:1124:13)\n#50 _CustomZone.run (dart:async/zone.dart:1021:19)\n#51 _runZoned (dart:async/zone.dart:1516:10)\n#52 runZoned (dart:async/zone.dart:1463:12)\n#53 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#54 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#55 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#56 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#57 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#58 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#59 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#60 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#61 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#62 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#63 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/for_test\n"} {"name":"language_2/control_flow_collections/for_inference_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 779ms):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_inference_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_inference_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_inference_test.dart:20:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, for (; false;) 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:45: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, for (; false;) 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:22:27: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, for (; false;) 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:22:45: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, for (; false;) 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:23:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:24:27: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:46: Error: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:31: Error: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:42: Error: Unexpected token '...'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:29:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:30:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, for (; false;) 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:30:52: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, for (; false;) 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:31:31: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, for (; false;) 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:31:54: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, for (; false;) 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:32:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:33:31: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:54: Error: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:39: Error: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:46: Error: Unexpected token '...'.\n Expect.type<Map<int, int>>({for (; false;) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:38:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, for (; false;) 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:44: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, for (; false;) 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:40:26: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, for (; false;) 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:40:44: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, for (; false;) 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:41:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:42:26: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:40: Error: Unexpected token '...'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:30: Error: Unexpected token 'if'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:36: Error: Unexpected token '...'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:26: Error: Unexpected token 'if'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:46: Error: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:31: Error: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:48:48: Error: Unexpected token '...'.\n Expect.type<Set<dynamic>>({1, for (; false;) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:48:33: Error: Unexpected token 'for'.\n Expect.type<Set<dynamic>>({1, for (; false;) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:51:60: Error: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({1: 1, for (; false;) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:51:45: Error: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({1: 1, for (; false;) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:39: Error: 'i' is already declared in this scope.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:30: Error: Unexpected token 'for'.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:36: Error: 'i' is already declared in this scope.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:39: Error: 'i' is already declared in this scope.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:30: Error: Unexpected token 'for'.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:41: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:65: Error: Expected an identifier, but got ']'.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:32: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:41: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:59: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:59: Error: Expected ';' after this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: Expected a type, but got '2'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: Expected '[' before this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: This couldn't be parsed.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:64: Error: Expected ';' after this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:64: Error: Unexpected token ';'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:32: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:74:37: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], <int>[for (; false;) expectInt(1)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:77:38: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1, 2], [1, for (; false;) expectDynamic(2)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:83:21: Error: Unexpected token 'for'.\n <int, String>{for (; false;) expectInt(1): expectString(\"s\")});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:87:16: Error: Unexpected token 'for'.\n {1: \"s\", for (; false;) expectDynamic(2): expectDynamic(\"t\")});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:92:36: Error: Unexpected token 'for'.\n Expect.setEquals(<int>{1}, <int>{for (; false;) expectInt(1)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:95:37: Error: Unexpected token 'for'.\n Expect.setEquals(<int>{1, 2}, {1, for (; false;) expectDynamic(2)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:51: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:55: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:71: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#6 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#7 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#8 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#9 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#10 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#11 Arguments.accept (package:kernel/ast.dart:2745:30)\n#12 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#13 BinaryPrinter.visitStaticInvocation (package:kernel/binary/ast_to_binary.dart:1396:5)\n#14 StaticInvocation.accept (package:kernel/ast.dart:2967:36)\n#15 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#16 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#17 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#20 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#21 Block.accept (package:kernel/ast.dart:3744:35)\n#22 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#23 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#24 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#25 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#26 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#27 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#28 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#29 Procedure.accept (package:kernel/ast.dart:1777:32)\n#30 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#31 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#32 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#33 Library.accept (package:kernel/ast.dart:437:30)\n#34 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#35 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#36 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#37 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#38 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#39 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#40 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#41 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#42 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#43 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#44 new Future.sync (dart:async/future.dart:224:31)\n#45 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#46 _rootRun (dart:async/zone.dart:1124:13)\n#47 _CustomZone.run (dart:async/zone.dart:1021:19)\n#48 _runZoned (dart:async/zone.dart:1516:10)\n#49 runZoned (dart:async/zone.dart:1463:12)\n#50 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#51 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#52 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#53 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#54 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#55 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#56 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#57 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#58 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#59 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#60 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/for_inference_test\n"} {"name":"language_2/control_flow_collections/if_const_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 916ms):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_if_const_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/if_const_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/if_const_test.dart:61:19: Error: Can't find ')' to match '('.\n Expect.identical(const {1}, const [if (true) {1}].first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:60:19: Error: Can't find ')' to match '('.\n Expect.identical(const {1: 1}, const [if (true) {1: 1}].first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:59:19: Error: Can't find ')' to match '('.\n Expect.identical(const [1], const [if (true) [1]].first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:167:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int>{1}, const <int>{if (true) {1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:166:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int, int>{1: 1}, const <int>{if (true) {1: 1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:165:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int>[1], const <int>{if (true) [1]}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:232:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt};\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:30:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:33:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (false) 9, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:36:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (false) 9 else 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:39:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:42:38: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[if (true) 1, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:45:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:48:44: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:52:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:52:32: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:52:49: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:55:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (dynamicTrue) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:56:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (objectTrue) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:59:38: Error: Unexpected token 'if'.\n Expect.identical(const [1], const [if (true) [1]].first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:60:41: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const [if (true) {1: 1}].first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:61:38: Error: Unexpected token 'if'.\n Expect.identical(const {1}, const [if (true) {1}].first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:29: Error: Unexpected token '...'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:19: Error: Unexpected token 'if'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:63: Error: Unexpected token '...'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:45: Error: Unexpected token 'if'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:29: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:19: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:52: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:42: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:72:61: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:72:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:75:68: Error: Not a constant expression.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:75:48: Error: Unexpected token 'for'.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:75:38: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:78:38: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:78:51: Error: Expected ',' before this.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:78:60: Error: 'i' is already declared in this scope.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:75:57: Context: Previous declaration of 'i'.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:78:71: Error: Not a constant expression.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:78:51: Error: Unexpected token 'for'.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:37: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:83:48: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:86:48: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, if (false) 9: 9, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:90:30: Error: Unexpected token 'if'.\n const <int, int>{1: 1, if (false) 9: 9 else 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:93:51: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const <int, int>{if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:96:42: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{if (true) 1: 1, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:99:48: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:102:54: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:106:24: Error: Unexpected token 'if'.\n const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:106:40: Error: Unexpected token 'if'.\n const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:106:63: Error: Unexpected token 'if'.\n const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:109:51: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const <int, int>{if (dynamicTrue) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:110:51: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const <int, int>{if (objectTrue) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:114:15: Error: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:114:5: Error: Unexpected token 'if'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:115:26: Error: Unexpected token '...'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:115:5: Error: Unexpected token 'if'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:34: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:24: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:60: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:50: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:124:45: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:124:24: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:127:72: Error: Not a constant expression.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:75: Error: Not a constant expression.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:52: Error: Unexpected token 'for'.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:127:42: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:131:24: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:131:40: Error: Expected ',' before this.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:131:49: Error: 'i' is already declared in this scope.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:61: Context: Previous declaration of 'i'.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:60: Error: Not a constant expression.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:63: Error: Not a constant expression.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:40: Error: Unexpected token 'for'.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:136:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:139:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (false) 9, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:142:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (false) 9 else 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:145:37: Error: Unexpected token 'if'.\n Expect.identical({1}, const <int>{if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:148:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (true) 1, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:151:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:154:43: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:158:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:158:32: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:158:49: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:161:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (dynamicTrue) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:162:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (objectTrue) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:165:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>[1], const <int>{if (true) [1]}.first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:166:56: Error: Unexpected token 'if'.\n Expect.identical(const <int, int>{1: 1}, const <int>{if (true) {1: 1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:167:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (true) {1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:29: Error: Unexpected token '...'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:19: Error: Unexpected token 'if'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:63: Error: Unexpected token '...'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:45: Error: Unexpected token 'if'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:29: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:19: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:52: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:42: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:178:66: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:178:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:181:67: Error: Not a constant expression.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:181:47: Error: Unexpected token 'for'.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:181:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:184:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:184:50: Error: Expected ',' before this.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:184:59: Error: 'i' is already declared in this scope.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:181:56: Context: Previous declaration of 'i'.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:184:70: Error: Not a constant expression.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:184:50: Error: Unexpected token 'for'.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:165:58: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n Expect.identical(const <int>[1], const <int>{if (true) [1]}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:166:66: Error: A value of type 'Map<int, int>' can't be assigned to a variable of type 'int'.\n - 'Map' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n Expect.identical(const <int, int>{1: 1}, const <int>{if (true) {1: 1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:167:58: Error: A value of type 'Set<int>' can't be assigned to a variable of type 'int'.\n - 'Set' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n Expect.identical(const <int>{1}, const <int>{if (true) {1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:171:37: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:195:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) nil + 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:195:32: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) nil + 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:197:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nil + 1, if (false) nil + 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:197:45: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nil + 1, if (false) nil + 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:200:5: Error: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:201:5: Error: Unexpected token 'if'.\n if (false) nil + 1: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:202:5: Error: Unexpected token 'if'.\n if (false) 9: nil + 1\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:205:5: Error: Unexpected token 'if'.\n if (true) 1: 1 else nil + 1: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:205:16: Error: Expected '}' before this.\n if (true) 1: 1 else nil + 1: 9,\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:210:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) nil + 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:210:32: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) nil + 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:212:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nil + 1, if (false) nil + 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:212:45: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nil + 1, if (false) nil + 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:218:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>[1], const <int>[if (true) 1, if (false) nonInt]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:218:61: Error: Unexpected token 'if'.\n Expect.identical(const <int>[1], const <int>[if (true) 1, if (false) nonInt]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:220:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nonInt, if (false) nonInt else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:220:44: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nonInt, if (false) nonInt else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:222:33: Error: Expected '}' before this.\n Expect.identical(const <int>{1: 1}, const <int, int>{\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:223:5: Error: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:224:5: Error: Unexpected token 'if'.\n if (false) nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:225:5: Error: Unexpected token 'if'.\n if (false) 9: nonInt\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:228:5: Error: Unexpected token 'if'.\n if (true) 1: 1 else nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:229:5: Error: Unexpected token 'if'.\n if (false) 9: nonInt else 2: 2\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:232:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt};\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:232:61: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt};\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:234:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nonInt, if (false) nonInt else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:234:44: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nonInt, if (false) nonInt else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:241:5: Error: Unexpected token 'if'.\n if (false) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:242:5: Error: Unexpected token 'if'.\n if (true) 2: 2 else 3: 3,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:246:40: Error: Unexpected token 'if'.\n Expect.setEquals(set, const <int>{1, if (false) 1, if (true) 2 else 3, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:246:54: Error: Unexpected token 'if'.\n Expect.setEquals(set, const <int>{1, if (false) 1, if (true) 2 else 3, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:252:30: Error: Unexpected token 'if'.\n const <int, int>{1: 1, if (true) 2: 2, if (false) 9: 9, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:252:46: Error: Unexpected token 'if'.\n const <int, int>{1: 1, if (true) 2: 2, if (false) 9: 9, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:254:24: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else 1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:254:57: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else 1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:256:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, if (false) 9, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:256:53: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, if (false) 9, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:257:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (false) 9 else 1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:257:61: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (false) 9 else 1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:260:51: Error: Unexpected token 'if'.\n Expect.notIdentical(map, const <int, int>{1: 1, if (true) 3: 3, 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:261:43: Error: Unexpected token 'if'.\n Expect.notIdentical(set, const <int>{1, if (true) 3, 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:75:68: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:78:71: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:75: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:63: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:181:67: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:184:70: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.visitAsExpression (package:kernel/binary/ast_to_binary.dart:1476:5)\n#6 AsExpression.accept (package:kernel/ast.dart:3264:36)\n#7 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#8 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#9 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#10 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#11 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#12 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#13 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#14 Arguments.accept (package:kernel/ast.dart:2745:30)\n#15 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#16 BinaryPrinter.visitStaticInvocation (package:kernel/binary/ast_to_binary.dart:1396:5)\n#17 StaticInvocation.accept (package:kernel/ast.dart:2967:36)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#20 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#21 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#22 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#23 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#24 Block.accept (package:kernel/ast.dart:3744:35)\n#25 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#26 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#27 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#28 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#29 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#30 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#31 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#32 Procedure.accept (package:kernel/ast.dart:1777:32)\n#33 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#34 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#35 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#36 Library.accept (package:kernel/ast.dart:437:30)\n#37 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#38 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#39 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#40 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#41 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#42 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#43 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#44 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#45 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#46 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#47 new Future.sync (dart:async/future.dart:224:31)\n#48 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#49 _rootRun (dart:async/zone.dart:1124:13)\n#50 _CustomZone.run (dart:async/zone.dart:1021:19)\n#51 _runZoned (dart:async/zone.dart:1516:10)\n#52 runZoned (dart:async/zone.dart:1463:12)\n#53 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#54 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#55 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#56 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#57 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#58 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#59 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#60 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#61 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#62 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#63 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/if_const_test\n"} {"name":"language_2/control_flow_collections/if_inference_test","configuration":"fasta-mac","result":"CompileTimeError","log":"--- Command \"fasta\" (took 872ms):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_if_inference_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/if_inference_test.dart )\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_inference_test.dart:19:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:20:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:21:22: Error: Unexpected token 'if'.\n expectListOf<num>([if (true) 1 else 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:22:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1, 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:23:22: Error: Unexpected token 'if'.\n expectListOf<num>([if (true) 1, 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:36: Error: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:26: Error: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:32: Error: Unexpected token '...'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:28:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:29:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1 else 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:30:26: Error: Unexpected token 'if'.\n expectMapOf<num, num>({if (true) 1: 0.1 else 0.2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:31:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1, 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:32:26: Error: Unexpected token 'if'.\n expectMapOf<num, num>({if (true) 1: 0.1, 0.2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:44: Error: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:34: Error: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:36: Error: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:37:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:38:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:39:21: Error: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1 else 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:40:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1, 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:41:21: Error: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1, 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:35: Error: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:25: Error: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:31: Error: Unexpected token '...'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:36: Error: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:26: Error: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:38: Error: Unexpected token '...'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:28: Error: Unexpected token 'if'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:50: Error: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({1: 1, if (true) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:40: Error: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({1: 1, if (true) ...({} as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:57:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (true) expectInt(1)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:58:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (false) 9 else expectInt(1)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:61:38: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1, 2], [1, if (true) expectDynamic(2)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:62:38: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1, 2], [1, if (false) 9 else expectDynamic(2)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:68:21: Error: Unexpected token 'if'.\n <int, String>{if (true) expectInt(1): expectString(\"s\")});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:72:16: Error: Unexpected token 'if'.\n {1: \"s\", if (true) expectDynamic(2): expectDynamic(\"t\")});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:77:36: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1}, <int>{if (true) expectInt(1)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:78:36: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1}, <int>{if (false) 9 else expectInt(1)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:81:37: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (true) expectDynamic(2)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:82:37: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (false) 9 else expectDynamic(2)});\n ^^\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/if_inference_test\n"} {"name":"language_2/control_flow_collections/for_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 905ms):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_test.dart:64:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:26: Error: Expected an identifier, but got 'for'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:181:37: Error: Non-optional parameters can't have a default value.\nTry removing the default value or making the parameter optional.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:40: Error: Expected ')' before this.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:57: Error: Expected a declaration, but got '}'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:58: Error: Expected a declaration, but got '.'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:59: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.\nTry adding the name of the type of the variable or the keyword 'var'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:9: Error: Expected '{' before this.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:184:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:184:25: Error: Expected an identifier, but got '<'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:184:26: Error: Expected ')' before this.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:184:67: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:9: Error: Expected '{' before this.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:3: Error: 'Expect' is already declared in this scope.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:3: Context: Previous declaration of 'Expect'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:25: Error: Expected an identifier, but got '<'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:26: Error: Expected ')' before this.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:187:67: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:10: Error: 'setEquals' is already declared in this scope.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:10: Context: Previous declaration of 'setEquals'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:9: Error: Expected '{' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:3: Error: 'Expect' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:3: Context: Previous declaration of 'Expect'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:21: Error: Expected an identifier, but got '1'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:23: Error: Expected ')' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:75: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:10: Error: 'setEquals' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:10: Context: Previous declaration of 'setEquals'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:191:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:191:9: Error: Expected '{' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:3: Error: 'Expect' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:3: Context: Previous declaration of 'Expect'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:191:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:21: Error: Expected an identifier, but got '1'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:23: Error: Expected ')' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:74: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:10: Error: 'setEquals' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:10: Context: Previous declaration of 'setEquals'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:192:1: Error: Expected a declaration, but got '}'.\n}\n^\ntests/language_2/control_flow_collections/for_test.dart:26:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:26:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:29:42: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:29:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:29:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:32:45: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:32:36: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:32:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:35:48: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:35:39: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:35:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:39:25: Error: 'i' is already declared in this scope.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:39:16: Error: Unexpected token 'for'.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:39:48: Error: Unexpected token 'for'.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:38:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:43:52: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:43: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:42:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:40: Error: Unexpected token '...'.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:47:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:46:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:51:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:51:52: Error: Unexpected token 'if'.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^^\ntests/language_2/control_flow_collections/for_test.dart:51:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:50:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:55:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:55:48: Error: Unexpected token 'if'.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^^\ntests/language_2/control_flow_collections/for_test.dart:55:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:54:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:40: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:59:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:58:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:36: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:27: Error: Unexpected token 'for'.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:62:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:38: Error: 'i' is already declared in this scope.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:29: Error: Unexpected token 'for'.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:63:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:64:35: Error: 'i' is already declared in this scope.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:64:26: Error: Unexpected token 'for'.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:64:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:67:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:67:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:70:42: Error: 'n' is already declared in this scope.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:67:42: Context: Previous declaration of 'n'.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:70:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:70:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:73:41: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:73:32: Error: Unexpected token 'for'.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:73:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:74:41: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:74:32: Error: Unexpected token 'for'.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:74:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:48: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:36: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:79:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:18: Error: Unexpected token 'for'.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:82:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:33: Error: 'i' is already declared in this scope.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:24: Error: Unexpected token 'for'.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:86:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:39: Error: 'i' is already declared in this scope.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:30: Error: Unexpected token 'for'.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:90:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:5: Error: Unexpected token 'for'.\n for (var i in <int>[]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:99:5: Error: Unexpected token 'for'.\n for (; false;) 9: 9,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:94:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[1]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:5: Error: Unexpected token 'for'.\n for (var i in <int>[1]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:107:14: Error: 'i' is already declared in this scope.\n for (var i = 3; i <= 4; i++) i: i\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:107:5: Error: Unexpected token 'for'.\n for (var i = 3; i <= 4; i++) i: i\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:104:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:112:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:112:46: Error: Expected '}' before this.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^\ntests/language_2/control_flow_collections/for_test.dart:112:32: Error: Unexpected token '...'.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:112:5: Error: Unexpected token 'for'.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:111:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:57: Error: Unexpected token 'if'.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:117:18: Error: Unexpected token 'for'.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:116:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:121:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:121:67: Error: Expected ':' before this.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^^^\ntests/language_2/control_flow_collections/for_test.dart:121:67: Error: Expected an identifier, but got 'else'.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^^^\ntests/language_2/control_flow_collections/for_test.dart:121:53: Error: Unexpected token 'if'.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:121:18: Error: Unexpected token 'for'.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:120:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:32: Error: Unexpected token 'for'.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:125:5: Error: Unexpected token 'for'.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:124:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:36: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:129:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:45: Error: 'n' is already declared in this scope.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:45: Context: Previous declaration of 'n'.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:36: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:132:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:18: Error: Unexpected token 'for'.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:135:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals([1],\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:18: Error: Unexpected token 'for'.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:137:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals([1],\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:31: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:143:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:146:40: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:146:31: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:146:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:149:43: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:149:34: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:149:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:152:46: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:152:37: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:152:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:156:25: Error: 'i' is already declared in this scope.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:156:16: Error: Unexpected token 'for'.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:156:48: Error: Unexpected token 'for'.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:155:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:160:52: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:43: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:159:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:40: Error: Unexpected token '...'.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:164:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:163:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:168:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:168:52: Error: Unexpected token 'if'.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:168:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:167:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:172:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:172:48: Error: Unexpected token 'if'.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:172:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:171:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:40: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:176:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:175:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:36: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:27: Error: Unexpected token 'for'.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:179:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:38: Error: 'i' is already declared in this scope.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:29: Error: Unexpected token 'for'.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:180:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:23: Error: Expected ';' after this.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:48: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:55: Error: Expected ';' after this.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:5: Error: Unexpected token 'for'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:198:14: Error: 'i' is already declared in this scope.\n for (var i = 2; i <= 3; i++) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:14: Context: Previous declaration of 'i'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:198:5: Error: Unexpected token 'for'.\n for (var i = 2; i <= 3; i++) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:195:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:203:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[1, 2, 3]) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:14: Context: Previous declaration of 'i'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:203:5: Error: Unexpected token 'for'.\n for (var i in <int>[1, 2, 3]) i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:204:14: Error: 'i' is already declared in this scope.\n for (var i = 2; i <= 3; i++) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:14: Context: Previous declaration of 'i'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:204:5: Error: Unexpected token 'for'.\n for (var i = 2; i <= 3; i++) i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:201:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:5: Error: Unexpected token 'for'.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:222:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.equals(\"1:a,2:a\", map.keys.join(\",\"));\n ^\ntests/language_2/control_flow_collections/for_test.dart:224:38: Error: 'i' is already declared in this scope.\n var set = <Equality>{e1a, for (var i = 0; i < keys.length; i++) keys[i]};\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:14: Context: Previous declaration of 'i'.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^\ntests/language_2/control_flow_collections/for_test.dart:224:29: Error: Unexpected token 'for'.\n var set = <Equality>{e1a, for (var i = 0; i < keys.length; i++) keys[i]};\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:225:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.equals(\"1:a,2:a\", set.join(\",\"));\n ^\ntests/language_2/control_flow_collections/for_test.dart:231:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (; nonBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:231:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (; nonBool;) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:232:43: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:232:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:233:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (; nonBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:233:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (; nonBool;) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:237:43: Error: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:237:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:238:48: Error: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:238:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:239:43: Error: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:239:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:243:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (int i = nonInt; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:243:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (int i = nonInt; false;) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:244:43: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (int i = nonInt; false;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:244:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int, int>{for (int i = nonInt; false;) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:245:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (int i = nonInt; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:245:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (int i = nonInt; false;) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:249:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (int i in nonIterable) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:249:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (int i in nonIterable) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:250:43: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (int i in nonIterable) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:250:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int, int>{for (int i in nonIterable) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:251:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (int i in nonIterable) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:251:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (int i in nonIterable) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:255:46: Error: Unexpected token 'for'.\n Expect.throwsNoSuchMethodError(() => <int>[for (var i in nullIterable) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:255:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsNoSuchMethodError(() => <int>[for (var i in nullIterable) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:257:24: Error: Unexpected token 'for'.\n () => <int, int>{for (var i in nullIterable) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:256:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsNoSuchMethodError(\n ^\ntests/language_2/control_flow_collections/for_test.dart:258:46: Error: Unexpected token 'for'.\n Expect.throwsNoSuchMethodError(() => <int>{for (var i in nullIterable) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:258:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsNoSuchMethodError(() => <int>{for (var i in nullIterable) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:261:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (var i = 0; i < 1; i++) nonInt]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:261:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (var i = 0; i < 1; i++) nonInt]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:263:24: Error: Unexpected token 'for'.\n () => <int, int>{for (var i = 0; i < 1; i++) nonInt: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:262:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(\n ^\ntests/language_2/control_flow_collections/for_test.dart:265:24: Error: Unexpected token 'for'.\n () => <int, int>{for (var i = 0; i < 1; i++) 1: nonInt});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:264:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(\n ^\ntests/language_2/control_flow_collections/for_test.dart:266:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:266:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt});\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:53: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:29:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:32:63: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:35:66: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:39:39: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:53: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:51:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:55:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:73: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:56: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:64:55: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:67:66: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:70:66: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:73:73: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:74:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:56: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:59: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:45: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:48: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:51: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:57: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:28: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:31: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:29: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:32: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:107:34: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 3; i <= 4; i++) i: i\n ^\ntests/language_2/control_flow_collections/for_test.dart:107:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 3; i <= 4; i++) i: i\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:121:65: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:65: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:68: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:72: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:69: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:72: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:69: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:72: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:59: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:62: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:51: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:146:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:149:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:152:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:156:39: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:53: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:168:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:172:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:73: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:56: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:35: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:38: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:198:34: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 2; i <= 3; i++) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:198:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 2; i <= 3; i++) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:203:35: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1, 2, 3]) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:204:34: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 2; i <= 3; i++) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:48: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:59: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^\ntests/language_2/control_flow_collections/for_test.dart:224:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n var set = <Equality>{e1a, for (var i = 0; i < keys.length; i++) keys[i]};\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.visitAsExpression (package:kernel/binary/ast_to_binary.dart:1476:5)\n#6 AsExpression.accept (package:kernel/ast.dart:3264:36)\n#7 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#8 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#9 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#10 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#11 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#12 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#13 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#14 Arguments.accept (package:kernel/ast.dart:2745:30)\n#15 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#16 BinaryPrinter.visitMethodInvocation (package:kernel/binary/ast_to_binary.dart:1369:5)\n#17 MethodInvocation.accept (package:kernel/ast.dart:2861:36)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#20 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#21 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#22 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#23 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#24 Block.accept (package:kernel/ast.dart:3744:35)\n#25 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#26 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#27 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#28 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#29 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#30 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#31 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#32 Procedure.accept (package:kernel/ast.dart:1777:32)\n#33 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#34 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#35 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#36 Library.accept (package:kernel/ast.dart:437:30)\n#37 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#38 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#39 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#40 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#41 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#42 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#43 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#44 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#45 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#46 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#47 new Future.sync (dart:async/future.dart:224:31)\n#48 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#49 _rootRun (dart:async/zone.dart:1124:13)\n#50 _CustomZone.run (dart:async/zone.dart:1021:19)\n#51 _runZoned (dart:async/zone.dart:1516:10)\n#52 runZoned (dart:async/zone.dart:1463:12)\n#53 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#54 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#55 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#56 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#57 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#58 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#59 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#60 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#61 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#62 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#63 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/for_test\n"} {"name":"language_2/control_flow_collections/for_variable_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 01.000081s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_variable_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_variable_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_variable_test.dart:32:15: Error: Unexpected token 'for'.\n var list = [for (var i in [0, 1]) () => i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:7: Error: Unexpected token 'for'.\n for (var global = \"for\"; global != null; global = null) global\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:75:7: Error: Unexpected token 'for'.\n for (var staticField = \"for\"; staticField != null; staticField = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:7: Error: Unexpected token 'for'.\n for (var field = \"for\"; field != null; field = null) field\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:7: Error: Unexpected token 'for'.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:16: Error: 'local' is already declared in this scope.\n for (var local = \"for\"; local != null; local = null) local\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:66:9: Context: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:7: Error: Unexpected token 'for'.\n for (var local = \"for\"; local != null; local = null) local\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:97:18: Error: 'outer' is already declared in this scope.\n for (var outer = \"for\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:97:9: Error: Unexpected token 'for'.\n for (var outer = \"for\"; outer != null; outer = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:7: Error: Unexpected token 'for'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:22: Error: 'global' is already declared in this scope.\n list = [for (var global in [\"for\"]) global];\n ^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:16: Context: Previous declaration of 'global'.\n for (var global = \"for\"; global != null; global = null) global\n ^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:13: Error: Unexpected token 'for'.\n list = [for (var global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:22: Error: 'staticField' is already declared in this scope.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:75:16: Context: Previous declaration of 'staticField'.\n for (var staticField = \"for\"; staticField != null; staticField = null)\n ^^^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:13: Error: Unexpected token 'for'.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:22: Error: 'field' is already declared in this scope.\n list = [for (var field in [\"for\"]) field];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:16: Context: Previous declaration of 'field'.\n for (var field = \"for\"; field != null; field = null) field\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:13: Error: Unexpected token 'for'.\n list = [for (var field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:22: Error: 'inherited' is already declared in this scope.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:16: Context: Previous declaration of 'inherited'.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:13: Error: Unexpected token 'for'.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:22: Error: 'local' is already declared in this scope.\n list = [for (var local in [\"for\"]) local];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:66:9: Context: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:13: Error: Unexpected token 'for'.\n list = [for (var local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:22: Error: 'outer' is already declared in this scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:51: Error: 'outer' is already declared in this scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:42: Error: Unexpected token 'for'.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:13: Error: Unexpected token 'for'.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:127:7: Error: Unexpected token 'for'.\n for (global = \"for\"; global == \"for\"; global = \"after\") global\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:134:7: Error: Unexpected token 'for'.\n for (staticField = \"for\"; staticField == \"for\"; staticField = \"after\")\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:142:7: Error: Unexpected token 'for'.\n for (field = \"for\"; field == \"for\"; field = \"after\") field\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:149:7: Error: Unexpected token 'for'.\n for (inherited = \"for\"; inherited == \"for\"; inherited = \"after\") inherited\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:156:7: Error: Unexpected token 'for'.\n for (local = \"for\"; local == \"for\"; local = \"after\") local\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:164:9: Error: Unexpected token 'for'.\n for (outer = \"for\"; outer == \"for\"; outer = \"after\") outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:74: Error: Unexpected token '...'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:7: Error: Unexpected token 'for'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:171:13: Error: Unexpected token 'for'.\n list = [for (global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:176:13: Error: Unexpected token 'for'.\n list = [for (staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:181:13: Error: Unexpected token 'for'.\n list = [for (field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:186:13: Error: Unexpected token 'for'.\n list = [for (inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:191:13: Error: Unexpected token 'for'.\n list = [for (local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:16: Error: 'outer' is already declared in this scope.\n for (var outer in [\"outer\"]) ...[\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:198:9: Error: Unexpected token 'for'.\n for (outer in [\"for\"]) outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:36: Error: Unexpected token '...'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:7: Error: Unexpected token 'for'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:77: Error: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'String'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:39: Error: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'String'.\n for (var outer in [\"outer\"]) ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:63: Error: Verification of the generated program failed:\nVariable 'global' used out of scope.\n for (var global = \"for\"; global != null; global = null) global\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:76:9: Error: Verification of the generated program failed:\nVariable 'staticField' used out of scope.\n staticField\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:60: Error: Verification of the generated program failed:\nVariable 'field' used out of scope.\n for (var field = \"for\"; field != null; field = null) field\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:72: Error: Verification of the generated program failed:\nVariable 'inherited' used out of scope.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:98:11: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:41: Error: Verification of the generated program failed:\nVariable 'global' used out of scope.\n list = [for (var global in [\"for\"]) global];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:46: Error: Verification of the generated program failed:\nVariable 'staticField' used out of scope.\n list = [for (var staticField in [\"for\"]) staticField];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:40: Error: Verification of the generated program failed:\nVariable 'field' used out of scope.\n list = [for (var field in [\"for\"]) field];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:44: Error: Verification of the generated program failed:\nVariable 'inherited' used out of scope.\n list = [for (var inherited in [\"for\"]) inherited];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:69: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:164:62: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n for (outer = \"for\"; outer == \"for\"; outer = \"after\") outer,\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:165:9: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:198:32: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n for (outer in [\"for\"]) outer,\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:199:9: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:43: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:45: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:52: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#6 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#7 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#8 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#9 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#10 BinaryPrinter.writeVariableDeclaration (package:kernel/binary/ast_to_binary.dart:1854:5)\n#11 BinaryPrinter.visitVariableDeclaration (package:kernel/binary/ast_to_binary.dart:1840:5)\n#12 VariableDeclaration.accept (package:kernel/ast.dart:4450:35)\n#13 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#14 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#15 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#16 Block.accept (package:kernel/ast.dart:3744:35)\n#17 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#18 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#19 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#20 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#21 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#22 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#23 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#24 Procedure.accept (package:kernel/ast.dart:1777:32)\n#25 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#26 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#27 BinaryPrinter.visitClass (package:kernel/binary/ast_to_binary.dart:1048:5)\n#28 Class.accept (package:kernel/ast.dart:1010:30)\n#29 BinaryPrinter.writeClassNode (package:kernel/binary/ast_to_binary.dart:408:10)\n#30 BinaryPrinter.writeClassNodeList (package:kernel/binary/ast_to_binary.dart:312:7)\n#31 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:900:5)\n#32 Library.accept (package:kernel/ast.dart:437:30)\n#33 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#34 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#35 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#36 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#37 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#38 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#39 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#40 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#41 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#42 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#43 new Future.sync (dart:async/future.dart:224:31)\n#44 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#45 _rootRun (dart:async/zone.dart:1124:13)\n#46 _CustomZone.run (dart:async/zone.dart:1021:19)\n#47 _runZoned (dart:async/zone.dart:1516:10)\n#48 runZoned (dart:async/zone.dart:1463:12)\n#49 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#50 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#51 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#52 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#53 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#54 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#55 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#56 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#57 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#58 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#59 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/for_variable_test\n"} {"name":"language_2/control_flow_collections/if_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 01.000239s):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_if_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/if_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/if_test.dart:58:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, [if (true) {1}].first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:57:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, [if (true) {1: 1}].first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:56:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], [if (true) [1]].first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:161:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, {if (true) {1}}.first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:160:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, {if (true) {1: 1}}.first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:159:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], {if (true) [1]}.first;\n ^\ntests/language_2/control_flow_collections/if_test.dart:27:36: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:30:36: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, if (false) 9, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:33:36: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, if (false) 9 else 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:36:32: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:39:33: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[if (true) 1, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:42:36: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:45:39: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[1, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:49:13: Error: Unexpected token 'if'.\n <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:49:26: Error: Unexpected token 'if'.\n <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:49:43: Error: Unexpected token 'if'.\n <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:52:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (true as dynamic) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:53:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (true as Object) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:56:27: Error: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) [1]].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:57:29: Error: Unexpected token 'if'.\n Expect.mapEquals({1: 1}, [if (true) {1: 1}].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:58:26: Error: Unexpected token 'if'.\n Expect.setEquals({1}, [if (true) {1}].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:62:23: Error: Unexpected token '...'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:62:13: Error: Unexpected token 'if'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:62:57: Error: Unexpected token '...'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:62:39: Error: Unexpected token 'if'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:65:42: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:65:32: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:65:65: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:65:55: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:68:50: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:68:32: Error: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:71:43: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[if (true) for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:71:33: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[if (true) for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:74:33: Error: Unexpected token 'if'.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:74:46: Error: Expected ',' before this.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:74:55: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:71:52: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:74:46: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:62:31: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:79:42: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:82:42: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, if (false) 9: 9, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:85:42: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, if (false) 9: 9 else 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:88:49: Error: Unexpected token 'if'.\n Expect.mapEquals(<int, int>{1: 1}, <int, int>{if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:91:36: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{if (true) 1: 1, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:94:42: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:97:48: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:101:18: Error: Unexpected token 'if'.\n <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:101:34: Error: Unexpected token 'if'.\n <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:101:57: Error: Unexpected token 'if'.\n <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:104:49: Error: Unexpected token 'if'.\n Expect.mapEquals(<int, int>{1: 1}, <int, int>{if (true as dynamic) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:105:49: Error: Unexpected token 'if'.\n Expect.mapEquals(<int, int>{1: 1}, <int, int>{if (true as Object) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:109:15: Error: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:109:5: Error: Unexpected token 'if'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^\ntests/language_2/control_flow_collections/if_test.dart:110:26: Error: Unexpected token '...'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:110:5: Error: Unexpected token 'if'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^\ntests/language_2/control_flow_collections/if_test.dart:115:28: Error: Unexpected token 'if'.\n <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:115:18: Error: Unexpected token 'if'.\n <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:115:54: Error: Unexpected token 'if'.\n <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:115:44: Error: Unexpected token 'if'.\n <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:119:39: Error: Unexpected token 'if'.\n <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:119:18: Error: Unexpected token 'if'.\n <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:122:46: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:122:36: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:125:36: Error: Unexpected token 'if'.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:125:52: Error: Expected ',' before this.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:125:61: Error: 'i' is already declared in this scope.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:122:55: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:125:52: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:130:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:133:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (false) 9, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:136:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (false) 9 else 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:139:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:142:31: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{if (true) 1, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:145:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:148:37: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:152:13: Error: Unexpected token 'if'.\n <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:152:26: Error: Unexpected token 'if'.\n <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:152:43: Error: Unexpected token 'if'.\n <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:155:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true as dynamic) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:156:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true as Object) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:159:27: Error: Unexpected token 'if'.\n Expect.listEquals([1], {if (true) [1]}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:160:29: Error: Unexpected token 'if'.\n Expect.mapEquals({1: 1}, {if (true) {1: 1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:161:26: Error: Unexpected token 'if'.\n Expect.setEquals({1}, {if (true) {1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:165:23: Error: Unexpected token '...'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:165:13: Error: Unexpected token 'if'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:165:57: Error: Unexpected token '...'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:165:39: Error: Unexpected token 'if'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:168:41: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:168:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:168:64: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:168:54: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:171:49: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:171:31: Error: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:174:41: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{if (true) for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:174:31: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{if (true) for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:177:31: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:177:44: Error: Expected ',' before this.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:177:53: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:174:50: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:177:44: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:165:31: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^\ntests/language_2/control_flow_collections/if_test.dart:188:27: Error: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) log(1), if (false) log(2)]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:188:45: Error: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) log(1), if (false) log(2)]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:194:8: Error: Unexpected token 'if'.\n [if (true) log(1) else log(2), if (false) log(3) else log(4)]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:194:38: Error: Unexpected token 'if'.\n [if (true) log(1) else log(2), if (false) log(3) else log(4)]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:201:5: Error: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:202:5: Error: Unexpected token 'if'.\n if (false) 9: 9 else 2: 2,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:206:34: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (true) 1, if (false) 9 else 2, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:206:47: Error: Unexpected token 'if'.\n Expect.setEquals(set, <int>{1, if (true) 1, if (false) 9 else 2, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:218:5: Error: Unexpected token 'if'.\n if (true) e1b: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:219:5: Error: Unexpected token 'if'.\n if (true) e2a: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:220:5: Error: Unexpected token 'if'.\n if (true) e2b: 0\n ^^\ntests/language_2/control_flow_collections/if_test.dart:226:5: Error: Unexpected token 'if'.\n if (true) e1b,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:227:5: Error: Unexpected token 'if'.\n if (true) e2a,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:228:5: Error: Unexpected token 'if'.\n if (true) e2b\n ^^\ntests/language_2/control_flow_collections/if_test.dart:235:38: Error: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>[if (nonBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:236:43: Error: Unexpected token 'if'.\n Expect.throwsCastError(() => <int, int>{if (nonBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:237:38: Error: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>{if (nonBool) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:240:43: Error: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>[if (nullBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:241:48: Error: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int, int>{if (nullBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:242:43: Error: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>{if (nullBool) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:71:63: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:74:66: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_test.dart:122:66: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:122:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:125:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:125:75: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:174:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_test.dart:177:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i});\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.visitAsExpression (package:kernel/binary/ast_to_binary.dart:1476:5)\n#6 AsExpression.accept (package:kernel/ast.dart:3264:36)\n#7 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#8 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#9 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#10 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#11 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#12 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#13 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#14 Arguments.accept (package:kernel/ast.dart:2745:30)\n#15 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#16 BinaryPrinter.visitStaticInvocation (package:kernel/binary/ast_to_binary.dart:1396:5)\n#17 StaticInvocation.accept (package:kernel/ast.dart:2967:36)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#20 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#21 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#22 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#23 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#24 Block.accept (package:kernel/ast.dart:3744:35)\n#25 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#26 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#27 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#28 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#29 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#30 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#31 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#32 Procedure.accept (package:kernel/ast.dart:1777:32)\n#33 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#34 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#35 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#36 Library.accept (package:kernel/ast.dart:437:30)\n#37 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#38 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#39 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#40 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#41 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#42 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#43 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#44 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#45 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#46 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#47 new Future.sync (dart:async/future.dart:224:31)\n#48 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#49 _rootRun (dart:async/zone.dart:1124:13)\n#50 _CustomZone.run (dart:async/zone.dart:1021:19)\n#51 _runZoned (dart:async/zone.dart:1516:10)\n#52 runZoned (dart:async/zone.dart:1463:12)\n#53 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#54 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#55 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#56 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#57 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#58 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#59 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#60 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#61 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#62 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#63 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/if_test\n"} {"name":"language_2/control_flow_collections/for_inference_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 802ms):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_inference_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_inference_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_inference_test.dart:20:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, for (; false;) 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:45: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, for (; false;) 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:22:27: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, for (; false;) 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:22:45: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, for (; false;) 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:23:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1, 2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:24:27: Error: Unexpected token 'for'.\n Expect.type<List<num>>([for (; false;) 1, 0.2]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:46: Error: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:31: Error: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:42: Error: Unexpected token '...'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:29:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:30:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, for (; false;) 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:30:52: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, for (; false;) 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:31:31: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, for (; false;) 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:31:54: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, for (; false;) 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:32:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) 1: 1, 2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:33:31: Error: Unexpected token 'for'.\n Expect.type<Map<num, num>>({for (; false;) 1: 0.1, 0.2: 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:54: Error: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:39: Error: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:46: Error: Unexpected token '...'.\n Expect.type<Map<int, int>>({for (; false;) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:31: Error: Unexpected token 'for'.\n Expect.type<Map<int, int>>({for (; false;) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:38:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, for (; false;) 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:44: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, for (; false;) 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:40:26: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, for (; false;) 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:40:44: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, for (; false;) 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:41:26: Error: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1, 2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:42:26: Error: Unexpected token 'for'.\n Expect.type<Set<num>>({for (; false;) 1, 0.2});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:40: Error: Unexpected token '...'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:30: Error: Unexpected token 'if'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:36: Error: Unexpected token '...'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:26: Error: Unexpected token 'if'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:46: Error: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:31: Error: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:48:48: Error: Unexpected token '...'.\n Expect.type<Set<dynamic>>({1, for (; false;) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:48:33: Error: Unexpected token 'for'.\n Expect.type<Set<dynamic>>({1, for (; false;) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:51:60: Error: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({1: 1, for (; false;) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:51:45: Error: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({1: 1, for (; false;) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:39: Error: 'i' is already declared in this scope.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:30: Error: Unexpected token 'for'.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:36: Error: 'i' is already declared in this scope.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:27: Error: Unexpected token 'for'.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:39: Error: 'i' is already declared in this scope.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:30: Error: Unexpected token 'for'.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:41: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:65: Error: Expected an identifier, but got ']'.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:64:32: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], [for (int i in expectDynamic([1]))]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:41: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:59: Error: 'i' is already declared in this scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:36: Context: Previous declaration of 'i'.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:59: Error: Expected ';' after this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: Expected a type, but got '2'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: Expected '[' before this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:63: Error: This couldn't be parsed.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:64: Error: Expected ';' after this.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:64: Error: Unexpected token ';'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:32: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:74:37: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1], <int>[for (; false;) expectInt(1)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:77:38: Error: Unexpected token 'for'.\n Expect.listEquals(<int>[1, 2], [1, for (; false;) expectDynamic(2)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:83:21: Error: Unexpected token 'for'.\n <int, String>{for (; false;) expectInt(1): expectString(\"s\")});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:87:16: Error: Unexpected token 'for'.\n {1: \"s\", for (; false;) expectDynamic(2): expectDynamic(\"t\")});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:92:36: Error: Unexpected token 'for'.\n Expect.setEquals(<int>{1}, <int>{for (; false;) expectInt(1)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:95:37: Error: Unexpected token 'for'.\n Expect.setEquals(<int>{1, 2}, {1, for (; false;) expectDynamic(2)});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:56:51: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<int>>([for (var i in <int>[1]) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:57:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<String>>([for (var i in <int>[1]) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:60:55: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<int>>([for (var i = 1; i < 2; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:61:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.type<List<String>>([for (var i = 1; i < 2; i++) i.toRadixString(10)]);\n ^\ntests/language_2/control_flow_collections/for_inference_test.dart:67:71: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(<int>[1], [for (int i = expectInt(1), i < 2; i++) i]);\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#6 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#7 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#8 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#9 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#10 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#11 Arguments.accept (package:kernel/ast.dart:2745:30)\n#12 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#13 BinaryPrinter.visitStaticInvocation (package:kernel/binary/ast_to_binary.dart:1396:5)\n#14 StaticInvocation.accept (package:kernel/ast.dart:2967:36)\n#15 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#16 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#17 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#20 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#21 Block.accept (package:kernel/ast.dart:3744:35)\n#22 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#23 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#24 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#25 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#26 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#27 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#28 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#29 Procedure.accept (package:kernel/ast.dart:1777:32)\n#30 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#31 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#32 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#33 Library.accept (package:kernel/ast.dart:437:30)\n#34 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#35 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#36 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#37 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#38 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#39 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#40 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#41 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#42 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#43 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#44 new Future.sync (dart:async/future.dart:224:31)\n#45 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#46 _rootRun (dart:async/zone.dart:1124:13)\n#47 _CustomZone.run (dart:async/zone.dart:1021:19)\n#48 _runZoned (dart:async/zone.dart:1516:10)\n#49 runZoned (dart:async/zone.dart:1463:12)\n#50 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#51 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#52 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#53 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#54 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#55 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#56 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#57 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#58 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#59 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#60 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/for_inference_test\n"} {"name":"language_2/control_flow_collections/if_const_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 823ms):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_if_const_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/if_const_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/if_const_test.dart:61:19: Error: Can't find ')' to match '('.\n Expect.identical(const {1}, const [if (true) {1}].first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:60:19: Error: Can't find ')' to match '('.\n Expect.identical(const {1: 1}, const [if (true) {1: 1}].first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:59:19: Error: Can't find ')' to match '('.\n Expect.identical(const [1], const [if (true) [1]].first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:167:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int>{1}, const <int>{if (true) {1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:166:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int, int>{1: 1}, const <int>{if (true) {1: 1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:165:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int>[1], const <int>{if (true) [1]}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:232:19: Error: Can't find ')' to match '('.\n Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt};\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:30:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:33:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (false) 9, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:36:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (false) 9 else 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:39:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:42:38: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[if (true) 1, 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:45:41: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, if (true) 2, 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:48:44: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[1, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:52:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:52:32: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:52:49: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) 9, 2, if (true) 3]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:55:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (dynamicTrue) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:56:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (objectTrue) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:59:38: Error: Unexpected token 'if'.\n Expect.identical(const [1], const [if (true) [1]].first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:60:41: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const [if (true) {1: 1}].first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:61:38: Error: Unexpected token 'if'.\n Expect.identical(const {1}, const [if (true) {1}].first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:29: Error: Unexpected token '...'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:19: Error: Unexpected token 'if'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:63: Error: Unexpected token '...'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:45: Error: Unexpected token 'if'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:29: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:19: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:52: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:69:42: Error: Unexpected token 'if'.\n const <int>[if (true) if (true) 1, if (true) if (false) 9]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:72:61: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:72:43: Error: Unexpected token 'if'.\n Expect.identical(const [1], const <int>[if (false) 9 else if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:75:68: Error: Not a constant expression.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:75:48: Error: Unexpected token 'for'.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:75:38: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:78:38: Error: Unexpected token 'if'.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:78:51: Error: Expected ',' before this.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:78:60: Error: 'i' is already declared in this scope.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:75:57: Context: Previous declaration of 'i'.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:78:71: Error: Not a constant expression.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:78:51: Error: Unexpected token 'for'.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:65:37: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:83:48: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:86:48: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, if (false) 9: 9, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:90:30: Error: Unexpected token 'if'.\n const <int, int>{1: 1, if (false) 9: 9 else 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:93:51: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const <int, int>{if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:96:42: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{if (true) 1: 1, 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:99:48: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, if (true) 2: 2, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:102:54: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:106:24: Error: Unexpected token 'if'.\n const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:106:40: Error: Unexpected token 'if'.\n const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:106:63: Error: Unexpected token 'if'.\n const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:109:51: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const <int, int>{if (dynamicTrue) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:110:51: Error: Unexpected token 'if'.\n Expect.identical(const {1: 1}, const <int, int>{if (objectTrue) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:114:15: Error: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:114:5: Error: Unexpected token 'if'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:115:26: Error: Unexpected token '...'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:115:5: Error: Unexpected token 'if'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:34: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:24: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:60: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:120:50: Error: Unexpected token 'if'.\n const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:124:45: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:124:24: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:127:72: Error: Not a constant expression.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:75: Error: Not a constant expression.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:52: Error: Unexpected token 'for'.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:127:42: Error: Unexpected token 'if'.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:131:24: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:131:40: Error: Expected ',' before this.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:131:49: Error: 'i' is already declared in this scope.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:61: Context: Previous declaration of 'i'.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:60: Error: Not a constant expression.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:63: Error: Not a constant expression.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:40: Error: Unexpected token 'for'.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:136:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:139:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (false) 9, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:142:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (false) 9 else 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:145:37: Error: Unexpected token 'if'.\n Expect.identical({1}, const <int>{if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:148:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (true) 1, 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:151:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:154:43: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:158:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:158:32: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:158:49: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) 9, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:161:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (dynamicTrue) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:162:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (objectTrue) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:165:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>[1], const <int>{if (true) [1]}.first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:166:56: Error: Unexpected token 'if'.\n Expect.identical(const <int, int>{1: 1}, const <int>{if (true) {1: 1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:167:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (true) {1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:29: Error: Unexpected token '...'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:19: Error: Unexpected token 'if'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:63: Error: Unexpected token '...'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:171:45: Error: Unexpected token 'if'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:29: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:19: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:52: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:175:42: Error: Unexpected token 'if'.\n const <int>{if (true) if (true) 1, if (true) if (false) 9});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:178:66: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:178:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (false) 9 else if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:181:67: Error: Not a constant expression.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:181:47: Error: Unexpected token 'for'.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:181:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:184:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:184:50: Error: Expected ',' before this.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:184:59: Error: 'i' is already declared in this scope.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:181:56: Context: Previous declaration of 'i'.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:184:70: Error: Not a constant expression.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:184:50: Error: Unexpected token 'for'.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:165:58: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n Expect.identical(const <int>[1], const <int>{if (true) [1]}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:166:66: Error: A value of type 'Map<int, int>' can't be assigned to a variable of type 'int'.\n - 'Map' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n Expect.identical(const <int, int>{1: 1}, const <int>{if (true) {1: 1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:167:58: Error: A value of type 'Set<int>' can't be assigned to a variable of type 'int'.\n - 'Set' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n Expect.identical(const <int>{1}, const <int>{if (true) {1}}.first;\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:171:37: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:195:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) nil + 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:195:32: Error: Unexpected token 'if'.\n const <int>[if (true) 1, if (false) nil + 1]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:197:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nil + 1, if (false) nil + 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:197:45: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nil + 1, if (false) nil + 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:200:5: Error: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:201:5: Error: Unexpected token 'if'.\n if (false) nil + 1: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:202:5: Error: Unexpected token 'if'.\n if (false) 9: nil + 1\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:205:5: Error: Unexpected token 'if'.\n if (true) 1: 1 else nil + 1: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:205:16: Error: Expected '}' before this.\n if (true) 1: 1 else nil + 1: 9,\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:210:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) nil + 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:210:32: Error: Unexpected token 'if'.\n const <int>{if (true) 1, if (false) nil + 1});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:212:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nil + 1, if (false) nil + 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:212:45: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nil + 1, if (false) nil + 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:218:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>[1], const <int>[if (true) 1, if (false) nonInt]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:218:61: Error: Unexpected token 'if'.\n Expect.identical(const <int>[1], const <int>[if (true) 1, if (false) nonInt]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:220:19: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nonInt, if (false) nonInt else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:220:44: Error: Unexpected token 'if'.\n const <int>[if (true) 1 else nonInt, if (false) nonInt else 2]);\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:222:33: Error: Expected '}' before this.\n Expect.identical(const <int>{1: 1}, const <int, int>{\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:223:5: Error: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:224:5: Error: Unexpected token 'if'.\n if (false) nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:225:5: Error: Unexpected token 'if'.\n if (false) 9: nonInt\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:228:5: Error: Unexpected token 'if'.\n if (true) 1: 1 else nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:229:5: Error: Unexpected token 'if'.\n if (false) 9: nonInt else 2: 2\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:232:48: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt};\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:232:61: Error: Unexpected token 'if'.\n Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt};\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:234:19: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nonInt, if (false) nonInt else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:234:44: Error: Unexpected token 'if'.\n const <int>{if (true) 1 else nonInt, if (false) nonInt else 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:241:5: Error: Unexpected token 'if'.\n if (false) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:242:5: Error: Unexpected token 'if'.\n if (true) 2: 2 else 3: 3,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:246:40: Error: Unexpected token 'if'.\n Expect.setEquals(set, const <int>{1, if (false) 1, if (true) 2 else 3, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:246:54: Error: Unexpected token 'if'.\n Expect.setEquals(set, const <int>{1, if (false) 1, if (true) 2 else 3, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:252:30: Error: Unexpected token 'if'.\n const <int, int>{1: 1, if (true) 2: 2, if (false) 9: 9, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:252:46: Error: Unexpected token 'if'.\n const <int, int>{1: 1, if (true) 2: 2, if (false) 9: 9, 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:254:24: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else 1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:254:57: Error: Unexpected token 'if'.\n const <int, int>{if (false) 9: 9 else 1: 1, 2: 2, if (true) 3: 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:256:40: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, if (false) 9, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:256:53: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{1, if (true) 2, if (false) 9, 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:257:37: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (false) 9 else 1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:257:61: Error: Unexpected token 'if'.\n Expect.identical(set, const <int>{if (false) 9 else 1, 2, if (true) 3});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:260:51: Error: Unexpected token 'if'.\n Expect.notIdentical(map, const <int, int>{1: 1, if (true) 3: 3, 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:261:43: Error: Unexpected token 'if'.\n Expect.notIdentical(set, const <int>{1, if (true) 3, 2});\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:75:68: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(list, const <int>[if (true) for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:78:71: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:127:75: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:131:63: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n const <int, int>{if (false) 9: 9 for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:181:67: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(set, const <int>{if (true) for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/if_const_test.dart:184:70: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.identical(set, const <int>{if (false) 9 for (var i in list) i});\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.visitAsExpression (package:kernel/binary/ast_to_binary.dart:1476:5)\n#6 AsExpression.accept (package:kernel/ast.dart:3264:36)\n#7 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#8 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#9 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#10 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#11 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#12 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#13 BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1413:5)\n#14 Arguments.accept (package:kernel/ast.dart:2745:30)\n#15 BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:380:10)\n#16 BinaryPrinter.visitStaticInvocation (package:kernel/binary/ast_to_binary.dart:1396:5)\n#17 StaticInvocation.accept (package:kernel/ast.dart:2967:36)\n#18 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#19 BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1646:5)\n#20 ExpressionStatement.accept (package:kernel/ast.dart:3716:35)\n#21 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#22 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#23 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#24 Block.accept (package:kernel/ast.dart:3744:35)\n#25 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#26 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#27 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#28 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#29 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#30 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#31 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#32 Procedure.accept (package:kernel/ast.dart:1777:32)\n#33 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#34 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#35 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:904:5)\n#36 Library.accept (package:kernel/ast.dart:437:30)\n#37 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#38 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#39 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#40 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#41 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#42 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#43 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#44 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#45 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#46 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#47 new Future.sync (dart:async/future.dart:224:31)\n#48 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#49 _rootRun (dart:async/zone.dart:1124:13)\n#50 _CustomZone.run (dart:async/zone.dart:1021:19)\n#51 _runZoned (dart:async/zone.dart:1516:10)\n#52 runZoned (dart:async/zone.dart:1463:12)\n#53 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#54 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#55 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#56 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#57 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#58 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#59 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#60 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#61 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#62 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#63 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/if_const_test\n"} {"name":"language_2/control_flow_collections/if_inference_test","configuration":"fasta-mac","result":"CompileTimeError","log":"--- Command \"fasta\" (took 845ms):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_if_inference_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/if_inference_test.dart )\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_inference_test.dart:19:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:20:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:21:22: Error: Unexpected token 'if'.\n expectListOf<num>([if (true) 1 else 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:22:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) 1, 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:23:22: Error: Unexpected token 'if'.\n expectListOf<num>([if (true) 1, 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:36: Error: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:26: Error: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:32: Error: Unexpected token '...'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:22: Error: Unexpected token 'if'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:28:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:29:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1 else 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:30:26: Error: Unexpected token 'if'.\n expectMapOf<num, num>({if (true) 1: 0.1 else 0.2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:31:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1, 2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:32:26: Error: Unexpected token 'if'.\n expectMapOf<num, num>({if (true) 1: 0.1, 0.2: 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:44: Error: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:34: Error: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:36: Error: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:26: Error: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:37:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:38:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:39:21: Error: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1 else 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:40:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1, 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:41:21: Error: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1, 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:35: Error: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:25: Error: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:31: Error: Unexpected token '...'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:21: Error: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:36: Error: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:26: Error: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:38: Error: Unexpected token '...'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:28: Error: Unexpected token 'if'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:50: Error: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({1: 1, if (true) ...({} as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:40: Error: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({1: 1, if (true) ...({} as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:57:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (true) expectInt(1)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:58:37: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1], <int>[if (false) 9 else expectInt(1)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:61:38: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1, 2], [1, if (true) expectDynamic(2)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:62:38: Error: Unexpected token 'if'.\n Expect.listEquals(<int>[1, 2], [1, if (false) 9 else expectDynamic(2)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:68:21: Error: Unexpected token 'if'.\n <int, String>{if (true) expectInt(1): expectString(\"s\")});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:72:16: Error: Unexpected token 'if'.\n {1: \"s\", if (true) expectDynamic(2): expectDynamic(\"t\")});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:77:36: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1}, <int>{if (true) expectInt(1)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:78:36: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1}, <int>{if (false) 9 else expectInt(1)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:81:37: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (true) expectDynamic(2)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:82:37: Error: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (false) 9 else expectDynamic(2)});\n ^^\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/if_inference_test\n"} {"name":"language_2/control_flow_collections/for_variable_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 835ms):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_variable_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_variable_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_variable_test.dart:32:15: Error: Unexpected token 'for'.\n var list = [for (var i in [0, 1]) () => i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:20: Error: 'i' is already declared in this scope.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:24: Context: Previous declaration of 'i'.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:11: Error: Unexpected token 'for'.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:7: Error: Unexpected token 'for'.\n for (var global = \"for\"; global != null; global = null) global\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:75:7: Error: Unexpected token 'for'.\n for (var staticField = \"for\"; staticField != null; staticField = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:7: Error: Unexpected token 'for'.\n for (var field = \"for\"; field != null; field = null) field\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:7: Error: Unexpected token 'for'.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:16: Error: 'local' is already declared in this scope.\n for (var local = \"for\"; local != null; local = null) local\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:66:9: Context: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:7: Error: Unexpected token 'for'.\n for (var local = \"for\"; local != null; local = null) local\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:97:18: Error: 'outer' is already declared in this scope.\n for (var outer = \"for\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:97:9: Error: Unexpected token 'for'.\n for (var outer = \"for\"; outer != null; outer = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:7: Error: Unexpected token 'for'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:22: Error: 'global' is already declared in this scope.\n list = [for (var global in [\"for\"]) global];\n ^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:16: Context: Previous declaration of 'global'.\n for (var global = \"for\"; global != null; global = null) global\n ^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:13: Error: Unexpected token 'for'.\n list = [for (var global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:22: Error: 'staticField' is already declared in this scope.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:75:16: Context: Previous declaration of 'staticField'.\n for (var staticField = \"for\"; staticField != null; staticField = null)\n ^^^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:13: Error: Unexpected token 'for'.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:22: Error: 'field' is already declared in this scope.\n list = [for (var field in [\"for\"]) field];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:16: Context: Previous declaration of 'field'.\n for (var field = \"for\"; field != null; field = null) field\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:13: Error: Unexpected token 'for'.\n list = [for (var field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:22: Error: 'inherited' is already declared in this scope.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:16: Context: Previous declaration of 'inherited'.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:13: Error: Unexpected token 'for'.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:22: Error: 'local' is already declared in this scope.\n list = [for (var local in [\"for\"]) local];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:66:9: Context: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:13: Error: Unexpected token 'for'.\n list = [for (var local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:22: Error: 'outer' is already declared in this scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:51: Error: 'outer' is already declared in this scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:96:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer != null; outer = null)\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:42: Error: Unexpected token 'for'.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:13: Error: Unexpected token 'for'.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:127:7: Error: Unexpected token 'for'.\n for (global = \"for\"; global == \"for\"; global = \"after\") global\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:134:7: Error: Unexpected token 'for'.\n for (staticField = \"for\"; staticField == \"for\"; staticField = \"after\")\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:142:7: Error: Unexpected token 'for'.\n for (field = \"for\"; field == \"for\"; field = \"after\") field\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:149:7: Error: Unexpected token 'for'.\n for (inherited = \"for\"; inherited == \"for\"; inherited = \"after\") inherited\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:156:7: Error: Unexpected token 'for'.\n for (local = \"for\"; local == \"for\"; local = \"after\") local\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:164:9: Error: Unexpected token 'for'.\n for (outer = \"for\"; outer == \"for\"; outer = \"after\") outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:74: Error: Unexpected token '...'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:7: Error: Unexpected token 'for'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:171:13: Error: Unexpected token 'for'.\n list = [for (global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:176:13: Error: Unexpected token 'for'.\n list = [for (staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:181:13: Error: Unexpected token 'for'.\n list = [for (field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:186:13: Error: Unexpected token 'for'.\n list = [for (inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:191:13: Error: Unexpected token 'for'.\n list = [for (local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:16: Error: 'outer' is already declared in this scope.\n for (var outer in [\"outer\"]) ...[\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:16: Context: Previous declaration of 'outer'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:198:9: Error: Unexpected token 'for'.\n for (outer in [\"for\"]) outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:36: Error: Unexpected token '...'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:7: Error: Unexpected token 'for'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:77: Error: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'String'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:39: Error: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'String'.\n for (var outer in [\"outer\"]) ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:70:63: Error: Verification of the generated program failed:\nVariable 'global' used out of scope.\n for (var global = \"for\"; global != null; global = null) global\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:76:9: Error: Verification of the generated program failed:\nVariable 'staticField' used out of scope.\n staticField\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:81:60: Error: Verification of the generated program failed:\nVariable 'field' used out of scope.\n for (var field = \"for\"; field != null; field = null) field\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:86:72: Error: Verification of the generated program failed:\nVariable 'inherited' used out of scope.\n for (var inherited = \"for\"; inherited != null; inherited = null) inherited\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:98:11: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:103:41: Error: Verification of the generated program failed:\nVariable 'global' used out of scope.\n list = [for (var global in [\"for\"]) global];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:46: Error: Verification of the generated program failed:\nVariable 'staticField' used out of scope.\n list = [for (var staticField in [\"for\"]) staticField];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:40: Error: Verification of the generated program failed:\nVariable 'field' used out of scope.\n list = [for (var field in [\"for\"]) field];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:44: Error: Verification of the generated program failed:\nVariable 'inherited' used out of scope.\n list = [for (var inherited in [\"for\"]) inherited];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:69: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n list = [for (var outer in [\"outer\"]) for (var outer in [\"for\"]) outer];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:164:62: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n for (outer = \"for\"; outer == \"for\"; outer = \"after\") outer,\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:165:9: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:198:32: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n for (outer in [\"for\"]) outer,\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:199:9: Error: Verification of the generated program failed:\nVariable 'outer' used out of scope.\n outer\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:32:43: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n var list = [for (var i in [0, 1]) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:37:45: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; i < 2; i++) () => i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:42:52: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; capture(() => i++) < 2;) i];\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:49:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n list = [for (var i = 0; i < 2; capture(() => i++)) i];\n ^\n\nstderr:\nUnhandled exception:\n 'package:kernel/binary/ast_to_binary.dart': Failed assertion: line 1261 pos 12: 'index != null': is not true.\n#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)\n#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)\n#2 BinaryPrinter.visitVariableGet (package:kernel/binary/ast_to_binary.dart:1261:12)\n#3 VariableGet.accept (package:kernel/ast.dart:2262:36)\n#4 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#5 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#6 BinaryPrinter.visitListLiteral (package:kernel/binary/ast_to_binary.dart:1566:5)\n#7 ListLiteral.accept (package:kernel/ast.dart:3438:36)\n#8 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#9 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#10 BinaryPrinter.writeVariableDeclaration (package:kernel/binary/ast_to_binary.dart:1854:5)\n#11 BinaryPrinter.visitVariableDeclaration (package:kernel/binary/ast_to_binary.dart:1840:5)\n#12 VariableDeclaration.accept (package:kernel/ast.dart:4450:35)\n#13 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#14 BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:285:7)\n#15 BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1654:5)\n#16 Block.accept (package:kernel/ast.dart:3744:35)\n#17 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:366:10)\n#18 BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:452:7)\n#19 BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1244:5)\n#20 FunctionNode.accept (package:kernel/ast.dart:2115:30)\n#21 BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:373:10)\n#22 BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:461:7)\n#23 BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1120:5)\n#24 Procedure.accept (package:kernel/ast.dart:1777:32)\n#25 BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:394:10)\n#26 BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:294:7)\n#27 BinaryPrinter.visitClass (package:kernel/binary/ast_to_binary.dart:1048:5)\n#28 Class.accept (package:kernel/ast.dart:1010:30)\n#29 BinaryPrinter.writeClassNode (package:kernel/binary/ast_to_binary.dart:408:10)\n#30 BinaryPrinter.writeClassNodeList (package:kernel/binary/ast_to_binary.dart:312:7)\n#31 BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:900:5)\n#32 Library.accept (package:kernel/ast.dart:437:30)\n#33 BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:387:10)\n#34 BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:671:7)\n#35 BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:528:5)\n#36 writeComponentToFile (package:front_end/src/fasta/kernel/utils.dart:55:13)\n<asynchronous suspension>\n#37 CompileTask.compile (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:278:13)\n<asynchronous suspension>\n#38 BatchCompiler.batchCompileImpl (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:166:16)\n<asynchronous suspension>\n#39 BatchCompiler.batchCompileArguments.<anonymous closure>.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:141:39)\n#40 withGlobalOptions.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:471:13)\n#41 CompilerContext.runWithOptions.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:134:20)\n<asynchronous suspension>\n#42 CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)\n#43 new Future.sync (dart:async/future.dart:224:31)\n#44 CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)\n#45 _rootRun (dart:async/zone.dart:1124:13)\n#46 _CustomZone.run (dart:async/zone.dart:1021:19)\n#47 _runZoned (dart:async/zone.dart:1516:10)\n#48 runZoned (dart:async/zone.dart:1463:12)\n#49 CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)\n#50 CompilerContext.runWithOptions (package:front_end/src/fasta/compiler_context.dart:132:10)\n#51 withGlobalOptions (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:464:26)\n#52 BatchCompiler.batchCompileArguments.<anonymous closure> (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:140:15)\n#53 runProtectedFromAbort (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/command_line.dart:519:24)\n<asynchronous suspension>\n#54 BatchCompiler.batchCompileArguments (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:139:12)\n<asynchronous suspension>\n#55 BatchCompiler.run (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:121:19)\n<asynchronous suspension>\n#56 batchEntryPoint (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/entry_points.dart:106:8)\n#57 main (file:///b/s/w/ir/cache/builder/sdk/pkg/front_end/tool/_fasta/batch.dart:7:33)\n#58 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32)\n#59 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)\n\n--- Re-run this test:\npython tools/test.py -n fasta-mac --repeat 5 --tests language_2/control_flow_collections/experimental_flag_test/01\nlanguage_2/control_flow_collections/experimental_flag_test/02\nlanguage_2/control_flow_collections/experimental_flag_test/03\nlanguage_2/control_flow_collections/experimental_flag_test/04\nlanguage_2/control_flow_collections/experimental_flag_test/05\nlanguage_2/control_flow_collections/experimental_flag_test/06\nlanguage_2/control_flow_collections/experimental_flag_test/07\nlanguage_2/control_flow_collections/experimental_flag_test/08\nlanguage_2/control_flow_collections/experimental_flag_test/09\nlanguage_2/control_flow_collections/experimental_flag_test/10\nlanguage_2/control_flow_collections/experimental_flag_test/11\nlanguage_2/control_flow_collections/experimental_flag_test/12\nlanguage_2/control_flow_collections/experimental_flag_test/13\nlanguage_2/control_flow_collections/experimental_flag_test/14\nlanguage_2/control_flow_collections/experimental_flag_test/15\nlanguage_2/control_flow_collections/experimental_flag_test/none\nlanguage_2/control_flow_collections/for_const_test/00\nlanguage_2/control_flow_collections/for_const_test/01\nlanguage_2/control_flow_collections/for_const_test/02\nlanguage_2/control_flow_collections/for_const_test/03\nlanguage_2/control_flow_collections/for_const_test/04\nlanguage_2/control_flow_collections/for_const_test/05\nlanguage_2/control_flow_collections/for_const_test/06\nlanguage_2/control_flow_collections/for_const_test/07\nlanguage_2/control_flow_collections/for_const_test/08\nlanguage_2/control_flow_collections/for_const_test/none\nlanguage_2/control_flow_collections/if_const_error_test/01\nlanguage_2/control_flow_collections/if_const_error_test/02\nlanguage_2/control_flow_collections/if_const_error_test/03\nlanguage_2/control_flow_collections/if_const_error_test/04\nlanguage_2/control_flow_collections/if_const_error_test/05\nlanguage_2/control_flow_collections/if_const_error_test/06\nlanguage_2/control_flow_collections/if_const_error_test/07\nlanguage_2/control_flow_collections/if_const_error_test/08\nlanguage_2/control_flow_collections/if_const_error_test/09\nlanguage_2/control_flow_collections/if_const_error_test/10\nlanguage_2/control_flow_collections/if_const_error_test/11\nlanguage_2/control_flow_collections/if_const_error_test/12\nlanguage_2/control_flow_collections/if_const_error_test/13\nlanguage_2/control_flow_collections/if_const_error_test/14\nlanguage_2/control_flow_collections/if_const_error_test/15\nlanguage_2/control_flow_collections/if_const_error_test/16\nlanguage_2/control_flow_collections/if_const_error_test/17\nlanguage_2/control_flow_collections/if_const_error_test/18\nlanguage_2/control_flow_collections/if_const_error_test/19\nlanguage_2/control_flow_collections/if_const_error_test/20\nlanguage_2/control_flow_collections/if_const_error_test/21\nlanguage_2/control_flow_collections/if_const_error_test/22\nlanguage_2/control_flow_collections/if_const_error_test/23\nlanguage_2/control_flow_collections/for_inference_test\nlanguage_2/control_flow_collections/for_test\nlanguage_2/control_flow_collections/for_variable_test\nlanguage_2/control_flow_collections/if_const_test\nlanguage_2/control_flow_collections/if_inference_test\nlanguage_2/control_flow_collections/if_test\nlanguage_2/control_flow_collections/map_set_ambiguity_test\nlanguage_2/control_flow_collections/syntax_error_test/09\nlanguage_2/control_flow_collections/syntax_error_test/10\nlanguage_2/control_flow_collections/syntax_test\nlanguage_2/spread_collections/const_test\nlanguage_2/spread_collections/inference_test\nlanguage_2/spread_collections/map_set_ambiguity_test\nlanguage_2/spread_collections/spread_test\nlanguage_2/spread_collections/syntax_test\n language_2/control_flow_collections/for_variable_test\n"} {"name":"language_2/control_flow_collections/for_test","configuration":"fasta-mac","result":"Crash","log":"--- Command \"fasta\" (took 974ms):\n(cd /b/s/w/ir/cache/builder/sdk/ ; DART_CONFIGURATION=ReleaseX64 ./xcodebuild/ReleaseX64/dart ./pkg/front_end/tool/_fasta/compile.dart --verify -o ./xcodebuild/ReleaseX64/generated_compilations/fasta/tests_language_2_control_flow_collections_for_test/out.dill --platform ./xcodebuild/ReleaseX64/vm_platform_strong.dill --enable-experiment=set-literals,control-flow-collections,spread-collections --packages=./.packages ./tests/language_2/control_flow_collections/for_test.dart )\n\nexit code:\n253\n\nstdout:\ntests/language_2/control_flow_collections/for_test.dart:64:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:19: Error: Can't find ')' to match '('.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:19: Error: Can't find ')' to match '('.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:20: Error: Can't find ')' to match '('.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:26: Error: Expected an identifier, but got 'for'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:181:37: Error: Non-optional parameters can't have a default value.\nTry removing the default value or making the parameter optional.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:40: Error: Expected ')' before this.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:57: Error: Expected a declaration, but got '}'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:58: Error: Expected a declaration, but got '.'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:59: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.\nTry adding the name of the type of the variable or the keyword 'var'.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:9: Error: Expected '{' before this.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:184:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:184:25: Error: Expected an identifier, but got '<'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:184:26: Error: Expected ')' before this.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:184:67: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:9: Error: Expected '{' before this.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:3: Error: 'Expect' is already declared in this scope.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:3: Context: Previous declaration of 'Expect'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:25: Error: Expected an identifier, but got '<'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:26: Error: Expected ')' before this.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:187:67: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:187:10: Error: 'setEquals' is already declared in this scope.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:184:10: Context: Previous declaration of 'setEquals'.\n Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:9: Error: Expected '{' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:3: Error: 'Expect' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:3: Context: Previous declaration of 'Expect'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:21: Error: Expected an identifier, but got '1'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:23: Error: Expected ')' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:75: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:190:10: Error: 'setEquals' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:187:10: Context: Previous declaration of 'setEquals'.\n Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:191:3: Error: A function declaration needs an explicit list of parameters.\nTry adding a parameter list to the function declaration.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:191:9: Error: Expected '{' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:3: Error: 'Expect' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:3: Context: Previous declaration of 'Expect'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:191:9: Error: Expected a declaration, but got '.'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:21: Error: Expected an identifier, but got '1'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:23: Error: Expected ')' before this.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:74: Error: Expected a function body or '=>'.\nTry adding {}.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:191:10: Error: 'setEquals' is already declared in this scope.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:190:10: Context: Previous declaration of 'setEquals'.\n Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i});\n ^^^^^^^^^\ntests/language_2/control_flow_collections/for_test.dart:192:1: Error: Expected a declaration, but got '}'.\n}\n^\ntests/language_2/control_flow_collections/for_test.dart:26:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:26:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:29:42: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:29:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:29:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:32:45: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:32:36: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:32:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:35:48: Error: 'i' is already declared in this scope.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:35:39: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:35:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:39:25: Error: 'i' is already declared in this scope.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:39:16: Error: Unexpected token 'for'.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:39:48: Error: Unexpected token 'for'.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:38:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:43:52: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:43: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:42:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:40: Error: Unexpected token '...'.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:47:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:46:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:51:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:51:52: Error: Unexpected token 'if'.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^^\ntests/language_2/control_flow_collections/for_test.dart:51:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:50:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:55:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:55:48: Error: Unexpected token 'if'.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^^\ntests/language_2/control_flow_collections/for_test.dart:55:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:54:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:22: Error: 'i' is already declared in this scope.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:40: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:59:13: Error: Unexpected token 'for'.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:58:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list,\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:36: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:27: Error: Unexpected token 'for'.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:62:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:38: Error: 'i' is already declared in this scope.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:29: Error: Unexpected token 'for'.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:63:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:64:35: Error: 'i' is already declared in this scope.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:64:26: Error: Unexpected token 'for'.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:64:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:67:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:67:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:70:42: Error: 'n' is already declared in this scope.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:67:42: Context: Previous declaration of 'n'.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:70:33: Error: Unexpected token 'for'.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:70:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:73:41: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:73:32: Error: Unexpected token 'for'.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:73:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:74:41: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:42: Context: Previous declaration of 'i'.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:74:32: Error: Unexpected token 'for'.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:74:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:48: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:36: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:79:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:18: Error: Unexpected token 'for'.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:82:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:33: Error: 'i' is already declared in this scope.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:24: Error: Unexpected token 'for'.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:86:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:39: Error: 'i' is already declared in this scope.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:30: Error: Unexpected token 'for'.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:90:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:5: Error: Unexpected token 'for'.\n for (var i in <int>[]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:99:5: Error: Unexpected token 'for'.\n for (; false;) 9: 9,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:94:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[1]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:5: Error: Unexpected token 'for'.\n for (var i in <int>[1]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:107:14: Error: 'i' is already declared in this scope.\n for (var i = 3; i <= 4; i++) i: i\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:107:5: Error: Unexpected token 'for'.\n for (var i = 3; i <= 4; i++) i: i\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:104:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:112:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:112:46: Error: Expected '}' before this.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^\ntests/language_2/control_flow_collections/for_test.dart:112:32: Error: Unexpected token '...'.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:112:5: Error: Unexpected token 'for'.\n for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i}\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:111:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:57: Error: Unexpected token 'if'.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:117:18: Error: Unexpected token 'for'.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:116:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:121:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:121:67: Error: Expected ':' before this.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^^^\ntests/language_2/control_flow_collections/for_test.dart:121:67: Error: Expected an identifier, but got 'else'.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^^^\ntests/language_2/control_flow_collections/for_test.dart:121:53: Error: Unexpected token 'if'.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:121:18: Error: Unexpected token 'for'.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:120:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map,\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:32: Error: Unexpected token 'for'.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:125:5: Error: Unexpected token 'for'.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:124:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:36: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:129:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:45: Error: 'n' is already declared in this scope.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:45: Context: Previous declaration of 'n'.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:36: Error: Unexpected token 'for'.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:132:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:18: Error: Unexpected token 'for'.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:135:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals([1],\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:27: Error: 'i' is already declared in this scope.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:45: Context: Previous declaration of 'i'.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:18: Error: Unexpected token 'for'.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:137:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals([1],\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:31: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:143:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:146:40: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:146:31: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:146:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:149:43: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:149:34: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:149:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:152:46: Error: 'i' is already declared in this scope.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:152:37: Error: Unexpected token 'for'.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:152:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:156:25: Error: 'i' is already declared in this scope.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:156:16: Error: Unexpected token 'for'.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:156:48: Error: Unexpected token 'for'.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:155:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:160:52: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:43: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:159:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:40: Error: Unexpected token '...'.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:164:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:163:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:168:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:168:52: Error: Unexpected token 'if'.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:168:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:167:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:172:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:172:48: Error: Unexpected token 'if'.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^^\ntests/language_2/control_flow_collections/for_test.dart:172:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:171:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:22: Error: 'i' is already declared in this scope.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:176:40: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:176:13: Error: Unexpected token 'for'.\n <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:175:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set,\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:36: Error: 'i' is already declared in this scope.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:179:27: Error: Unexpected token 'for'.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:179:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:38: Error: 'i' is already declared in this scope.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:40: Context: Previous declaration of 'i'.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:180:29: Error: Unexpected token 'for'.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:180:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:23: Error: Expected ';' after this.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:48: Error: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\nTry changing the type of the left hand side, or casting the right hand side to 'int'.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:181:55: Error: Expected ';' after this.\n Expect.setEquals({1}, }for (var i = 1; i < 2; i++) {i}}.first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:5: Error: Unexpected token 'for'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:198:14: Error: 'i' is already declared in this scope.\n for (var i = 2; i <= 3; i++) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:14: Context: Previous declaration of 'i'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:198:5: Error: Unexpected token 'for'.\n for (var i = 2; i <= 3; i++) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:195:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.mapEquals(map, <int, int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:203:14: Error: 'i' is already declared in this scope.\n for (var i in <int>[1, 2, 3]) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:14: Context: Previous declaration of 'i'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:203:5: Error: Unexpected token 'for'.\n for (var i in <int>[1, 2, 3]) i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:204:14: Error: 'i' is already declared in this scope.\n for (var i = 2; i <= 3; i++) i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:197:14: Context: Previous declaration of 'i'.\n for (var i in <int>[1, 2, 3]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:204:5: Error: Unexpected token 'for'.\n for (var i = 2; i <= 3; i++) i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:201:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.setEquals(set, <int>{\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:5: Error: Unexpected token 'for'.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:222:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.equals(\"1:a,2:a\", map.keys.join(\",\"));\n ^\ntests/language_2/control_flow_collections/for_test.dart:224:38: Error: 'i' is already declared in this scope.\n var set = <Equality>{e1a, for (var i = 0; i < keys.length; i++) keys[i]};\n ^\ntests/language_2/control_flow_collections/for_test.dart:220:14: Context: Previous declaration of 'i'.\n for (var i = 0; i < keys.length; i++) keys[i]: values[i]\n ^\ntests/language_2/control_flow_collections/for_test.dart:224:29: Error: Unexpected token 'for'.\n var set = <Equality>{e1a, for (var i = 0; i < keys.length; i++) keys[i]};\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:225:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.equals(\"1:a,2:a\", set.join(\",\"));\n ^\ntests/language_2/control_flow_collections/for_test.dart:231:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (; nonBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:231:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (; nonBool;) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:232:43: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:232:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:233:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (; nonBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:233:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (; nonBool;) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:237:43: Error: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:237:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:238:48: Error: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:238:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:239:43: Error: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:239:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:243:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (int i = nonInt; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:243:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (int i = nonInt; false;) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:244:43: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (int i = nonInt; false;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:244:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int, int>{for (int i = nonInt; false;) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:245:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (int i = nonInt; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:245:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (int i = nonInt; false;) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:249:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (int i in nonIterable) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:249:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (int i in nonIterable) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:250:43: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (int i in nonIterable) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:250:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int, int>{for (int i in nonIterable) 1: 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:251:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (int i in nonIterable) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:251:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (int i in nonIterable) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:255:46: Error: Unexpected token 'for'.\n Expect.throwsNoSuchMethodError(() => <int>[for (var i in nullIterable) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:255:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsNoSuchMethodError(() => <int>[for (var i in nullIterable) 1]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:257:24: Error: Unexpected token 'for'.\n () => <int, int>{for (var i in nullIterable) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:256:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsNoSuchMethodError(\n ^\ntests/language_2/control_flow_collections/for_test.dart:258:46: Error: Unexpected token 'for'.\n Expect.throwsNoSuchMethodError(() => <int>{for (var i in nullIterable) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:258:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsNoSuchMethodError(() => <int>{for (var i in nullIterable) 1});\n ^\ntests/language_2/control_flow_collections/for_test.dart:261:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (var i = 0; i < 1; i++) nonInt]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:261:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>[for (var i = 0; i < 1; i++) nonInt]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:263:24: Error: Unexpected token 'for'.\n () => <int, int>{for (var i = 0; i < 1; i++) nonInt: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:262:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(\n ^\ntests/language_2/control_flow_collections/for_test.dart:265:24: Error: Unexpected token 'for'.\n () => <int, int>{for (var i = 0; i < 1; i++) 1: nonInt});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:264:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(\n ^\ntests/language_2/control_flow_collections/for_test.dart:266:38: Error: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:266:3: Error: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt});\n ^\ntests/language_2/control_flow_collections/for_test.dart:26:53: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[for (var i in list) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:29:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:32:63: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:35:66: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:39:39: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:43:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:53: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:47:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:51:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:55:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:59:73: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:62:56: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:63:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:64:55: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first;\n ^\ntests/language_2/control_flow_collections/for_test.dart:67:66: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:70:66: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:73:73: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:74:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]);\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:56: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:79:59: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.mapEquals(map, <int, int>{for (var i in list) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:45: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:83:48: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:51: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:87:54: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:57: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:91:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:28: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:96:31: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:29: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:105:32: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[1]) i: i,\n ^\ntests/language_2/control_flow_collections/for_test.dart:107:34: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 3; i <= 4; i++) i: i\n ^\ntests/language_2/control_flow_collections/for_test.dart:107:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i = 3; i <= 4; i++) i: i\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:69: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:117:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:121:65: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:65: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:68: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:125:72: Error: Verification of the generated program failed:\nVariable 'j' used out of scope.\n for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:69: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:129:72: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:69: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:132:72: Error: Verification of the generated program failed:\nVariable 'n' used out of scope.\n Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:59: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:136:62: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:138:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:143:51: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{for (var i in list) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:146:58: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:149:61: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:152:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:156:39: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:37: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:160:72: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:53: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:164:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]});\n ^\ntests/language_2/control_flow_collections/for_test.dart:168:64: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i});\n ^\ntests/language_2/control_flow_collections/for_test.dart:172:60: Error: Verification of the generated program failed:\nVariable 'i' used out of scope.\n <int>{for (var i in <int>[1, -2, 3, -4]) if (i <