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

{"name":"language_2/control_flow_collections/for_variable_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 01.000499s):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short4__collections_for_variable_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_variable_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_variable_test.dart:32:15:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:7:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:22:\nError: '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:\nInfo: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:13:\nError: Unexpected token 'for'.\n list = [for (var local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:22:\nError: '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:\nInfo: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n for (staticField = \"for\"; staticField == \"for\"; staticField = \"after\")\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:142:7:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n list = [for (global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:176:13:\nError: Unexpected token 'for'.\n list = [for (staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:181:13:\nError: Unexpected token 'for'.\n list = [for (field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:186:13:\nError: Unexpected token 'for'.\n list = [for (inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:191:13:\nError: Unexpected token 'for'.\n list = [for (local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:16:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (outer in [\"for\"]) outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:36:\nError: Unexpected token '...'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:7:\nError: Unexpected token 'for'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:77:\nError: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:39:\nError: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\n for (var outer in [\"outer\"]) ...[\n ^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_variable_test\n"} {"name":"language_2/control_flow_collections/if_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 01.000593s):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_if_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_test.dart:58:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:39:33:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) [1]].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:57:29:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, [if (true) {1}].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:62:23:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:109:5:\nError: Unexpected token 'if'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^\ntests/language_2/control_flow_collections/if_test.dart:110:26:\nError: Unexpected token '...'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:110:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:142:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], {if (true) [1]}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:160:29:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, {if (true) {1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:165:23:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:202:5:\nError: Unexpected token 'if'.\n if (false) 9: 9 else 2: 2,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:206:34:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) e1b: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:219:5:\nError: Unexpected token 'if'.\n if (true) e2a: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:220:5:\nError: Unexpected token 'if'.\n if (true) e2b: 0\n ^^\ntests/language_2/control_flow_collections/if_test.dart:226:5:\nError: Unexpected token 'if'.\n if (true) e1b,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:227:5:\nError: Unexpected token 'if'.\n if (true) e2a,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:228:5:\nError: Unexpected token 'if'.\n if (true) e2b\n ^^\ntests/language_2/control_flow_collections/if_test.dart:235:38:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>[if (nonBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:236:43:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int, int>{if (nonBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:237:38:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>{if (nonBool) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:240:43:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>[if (nullBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:241:48:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int, int>{if (nullBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:242:43:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>{if (nullBool) 1});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_test\n"} {"name":"language_2/control_flow_collections/if_inference_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 01.000656s):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short6__collections_if_inference_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_inference_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_inference_test.dart:19:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:20:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:21:22:\nError: 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:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1, 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:23:22:\nError: Unexpected token 'if'.\n expectListOf<num>([if (true) 1, 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:36:\nError: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:26:\nError: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:32:\nError: Unexpected token '...'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:28:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:29:26:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:34:\nError: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:37:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:38:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:39:21:\nError: 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:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1, 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:41:21:\nError: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1, 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:35:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:25:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:36:\nError: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:26:\nError: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:38:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:28:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:50:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (false) 9 else expectDynamic(2)});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_inference_test\n"} {"name":"language_2/control_flow_collections/for_inference_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 01.000718s):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short2_collections_for_inference_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_inference_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_inference_test.dart:20:27:\nError: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:27:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:31:\nError: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:42:\nError: Unexpected token '...'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:27:\nError: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:29:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:39:\nError: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:46:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:26:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:30:\nError: Unexpected token 'if'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:36:\nError: Unexpected token '...'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:26:\nError: Unexpected token 'if'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:46:\nError: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.setEquals(<int>{1, 2}, {1, for (; false;) expectDynamic(2)});\n ^^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_inference_test\n"} {"name":"language_2/control_flow_collections/for_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 01.000734s):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_for_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_test.dart:64:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Non-optional parameters can't have a default value.\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:\nError: 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:\nError: 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:\nError: 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:\nError: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.\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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: Expected a declaration, but got '}'.\n}\n^\ntests/language_2/control_flow_collections/for_test.dart:26:33:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i in <int>[]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:99:5:\nError: Unexpected token 'for'.\n for (; false;) 9: 9,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:94:3:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i in <int>[1]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:107:14:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i = 2; i <= 3; i++) i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:201:3:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (; nonBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:231:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:232:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (; nonBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:233:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:237:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:238:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:239:3:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt});\n ^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_test\n"} {"name":"language_2/control_flow_collections/if_inference_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 250ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short6__collections_if_inference_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_inference_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_inference_test.dart:19:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:20:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:21:22:\nError: 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:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1, 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:23:22:\nError: Unexpected token 'if'.\n expectListOf<num>([if (true) 1, 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:36:\nError: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:26:\nError: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:32:\nError: Unexpected token '...'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:28:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:29:26:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:34:\nError: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:37:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:38:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:39:21:\nError: 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:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1, 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:41:21:\nError: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1, 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:35:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:25:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:36:\nError: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:26:\nError: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:38:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:28:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:50:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (false) 9 else expectDynamic(2)});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_inference_test\n"} {"name":"language_2/control_flow_collections/for_variable_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 328ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short4__collections_for_variable_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_variable_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_variable_test.dart:32:15:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:7:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:22:\nError: '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:\nInfo: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:13:\nError: Unexpected token 'for'.\n list = [for (var local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:22:\nError: '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:\nInfo: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n for (staticField = \"for\"; staticField == \"for\"; staticField = \"after\")\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:142:7:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n list = [for (global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:176:13:\nError: Unexpected token 'for'.\n list = [for (staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:181:13:\nError: Unexpected token 'for'.\n list = [for (field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:186:13:\nError: Unexpected token 'for'.\n list = [for (inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:191:13:\nError: Unexpected token 'for'.\n list = [for (local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:16:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (outer in [\"for\"]) outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:36:\nError: Unexpected token '...'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:7:\nError: Unexpected token 'for'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:77:\nError: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:39:\nError: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\n for (var outer in [\"outer\"]) ...[\n ^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_variable_test\n"} {"name":"language_2/control_flow_collections/if_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 343ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_if_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_test.dart:58:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:39:33:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) [1]].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:57:29:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, [if (true) {1}].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:62:23:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:109:5:\nError: Unexpected token 'if'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^\ntests/language_2/control_flow_collections/if_test.dart:110:26:\nError: Unexpected token '...'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:110:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:142:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], {if (true) [1]}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:160:29:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, {if (true) {1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:165:23:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:202:5:\nError: Unexpected token 'if'.\n if (false) 9: 9 else 2: 2,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:206:34:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) e1b: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:219:5:\nError: Unexpected token 'if'.\n if (true) e2a: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:220:5:\nError: Unexpected token 'if'.\n if (true) e2b: 0\n ^^\ntests/language_2/control_flow_collections/if_test.dart:226:5:\nError: Unexpected token 'if'.\n if (true) e1b,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:227:5:\nError: Unexpected token 'if'.\n if (true) e2a,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:228:5:\nError: Unexpected token 'if'.\n if (true) e2b\n ^^\ntests/language_2/control_flow_collections/if_test.dart:235:38:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>[if (nonBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:236:43:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int, int>{if (nonBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:237:38:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>{if (nonBool) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:240:43:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>[if (nullBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:241:48:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int, int>{if (nullBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:242:43:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>{if (nullBool) 1});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_test\n"} {"name":"language_2/control_flow_collections/for_inference_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 343ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short2_collections_for_inference_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_inference_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_inference_test.dart:20:27:\nError: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:27:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:31:\nError: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:42:\nError: Unexpected token '...'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:27:\nError: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:29:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:39:\nError: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:46:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:26:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:30:\nError: Unexpected token 'if'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:36:\nError: Unexpected token '...'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:26:\nError: Unexpected token 'if'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:46:\nError: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.setEquals(<int>{1, 2}, {1, for (; false;) expectDynamic(2)});\n ^^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_inference_test\n"} {"name":"language_2/control_flow_collections/if_const_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 02.000250s):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_if_const_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_const_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_const_test.dart:61:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:114:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: A value of type 'Map<int, int>' can't be assigned to a variable of type 'int'.\n - 'Map' is from 'dart:core'.\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:\nError: A value of type 'Set<int>' can't be assigned to a variable of type 'int'.\n - 'Set' is from 'dart:core'.\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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:201:5:\nError: Unexpected token 'if'.\n if (false) nil + 1: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:202:5:\nError: Unexpected token 'if'.\n if (false) 9: nil + 1\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:205:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:224:5:\nError: Unexpected token 'if'.\n if (false) nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:225:5:\nError: Unexpected token 'if'.\n if (false) 9: nonInt\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:228:5:\nError: Unexpected token 'if'.\n if (true) 1: 1 else nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:229:5:\nError: Unexpected token 'if'.\n if (false) 9: nonInt else 2: 2\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:232:48:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (false) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:242:5:\nError: Unexpected token 'if'.\n if (true) 2: 2 else 3: 3,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:246:40:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.notIdentical(set, const <int>{1, if (true) 3, 2});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_const_test\n"} {"name":"language_2/control_flow_collections/if_inference_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 437ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short6__collections_if_inference_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_inference_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_inference_test.dart:19:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:20:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:21:22:\nError: 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:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1, 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:23:22:\nError: Unexpected token 'if'.\n expectListOf<num>([if (true) 1, 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:36:\nError: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:26:\nError: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:32:\nError: Unexpected token '...'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:28:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:29:26:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:34:\nError: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:37:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:38:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:39:21:\nError: 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:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1, 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:41:21:\nError: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1, 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:35:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:25:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:36:\nError: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:26:\nError: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:38:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:28:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:50:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (false) 9 else expectDynamic(2)});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_inference_test\n"} {"name":"language_2/control_flow_collections/for_variable_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 578ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short4__collections_for_variable_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_variable_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_variable_test.dart:32:15:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:7:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:22:\nError: '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:\nInfo: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:13:\nError: Unexpected token 'for'.\n list = [for (var local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:22:\nError: '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:\nInfo: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n for (staticField = \"for\"; staticField == \"for\"; staticField = \"after\")\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:142:7:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n list = [for (global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:176:13:\nError: Unexpected token 'for'.\n list = [for (staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:181:13:\nError: Unexpected token 'for'.\n list = [for (field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:186:13:\nError: Unexpected token 'for'.\n list = [for (inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:191:13:\nError: Unexpected token 'for'.\n list = [for (local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:16:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (outer in [\"for\"]) outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:36:\nError: Unexpected token '...'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:7:\nError: Unexpected token 'for'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:77:\nError: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:39:\nError: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\n for (var outer in [\"outer\"]) ...[\n ^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_variable_test\n"} {"name":"language_2/control_flow_collections/for_inference_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 390ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short2_collections_for_inference_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_inference_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_inference_test.dart:20:27:\nError: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:27:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:31:\nError: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:42:\nError: Unexpected token '...'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:27:\nError: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:29:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:39:\nError: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:46:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:26:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:30:\nError: Unexpected token 'if'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:36:\nError: Unexpected token '...'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:26:\nError: Unexpected token 'if'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:46:\nError: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.setEquals(<int>{1, 2}, {1, for (; false;) expectDynamic(2)});\n ^^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_inference_test\n"} {"name":"language_2/control_flow_collections/for_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 781ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_for_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_test.dart:64:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Non-optional parameters can't have a default value.\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:\nError: 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:\nError: 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:\nError: 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:\nError: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.\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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: Expected a declaration, but got '}'.\n}\n^\ntests/language_2/control_flow_collections/for_test.dart:26:33:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i in <int>[]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:99:5:\nError: Unexpected token 'for'.\n for (; false;) 9: 9,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:94:3:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i in <int>[1]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:107:14:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i = 2; i <= 3; i++) i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:201:3:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (; nonBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:231:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:232:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (; nonBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:233:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:237:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:238:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:239:3:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt});\n ^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_test\n"} {"name":"language_2/control_flow_collections/if_const_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 624ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_if_const_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_const_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_const_test.dart:61:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:114:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: A value of type 'Map<int, int>' can't be assigned to a variable of type 'int'.\n - 'Map' is from 'dart:core'.\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:\nError: A value of type 'Set<int>' can't be assigned to a variable of type 'int'.\n - 'Set' is from 'dart:core'.\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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:201:5:\nError: Unexpected token 'if'.\n if (false) nil + 1: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:202:5:\nError: Unexpected token 'if'.\n if (false) 9: nil + 1\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:205:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:224:5:\nError: Unexpected token 'if'.\n if (false) nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:225:5:\nError: Unexpected token 'if'.\n if (false) 9: nonInt\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:228:5:\nError: Unexpected token 'if'.\n if (true) 1: 1 else nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:229:5:\nError: Unexpected token 'if'.\n if (false) 9: nonInt else 2: 2\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:232:48:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (false) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:242:5:\nError: Unexpected token 'if'.\n if (true) 2: 2 else 3: 3,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:246:40:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.notIdentical(set, const <int>{1, if (true) 3, 2});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_const_test\n"} {"name":"language_2/control_flow_collections/if_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 765ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_if_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_test.dart:58:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:39:33:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) [1]].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:57:29:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, [if (true) {1}].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:62:23:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:109:5:\nError: Unexpected token 'if'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^\ntests/language_2/control_flow_collections/if_test.dart:110:26:\nError: Unexpected token '...'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:110:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:142:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], {if (true) [1]}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:160:29:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, {if (true) {1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:165:23:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:202:5:\nError: Unexpected token 'if'.\n if (false) 9: 9 else 2: 2,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:206:34:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) e1b: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:219:5:\nError: Unexpected token 'if'.\n if (true) e2a: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:220:5:\nError: Unexpected token 'if'.\n if (true) e2b: 0\n ^^\ntests/language_2/control_flow_collections/if_test.dart:226:5:\nError: Unexpected token 'if'.\n if (true) e1b,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:227:5:\nError: Unexpected token 'if'.\n if (true) e2a,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:228:5:\nError: Unexpected token 'if'.\n if (true) e2b\n ^^\ntests/language_2/control_flow_collections/if_test.dart:235:38:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>[if (nonBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:236:43:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int, int>{if (nonBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:237:38:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>{if (nonBool) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:240:43:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>[if (nullBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:241:48:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int, int>{if (nullBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:242:43:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>{if (nullBool) 1});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_test\n"} {"name":"language_2/control_flow_collections/if_inference_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 656ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short6__collections_if_inference_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_inference_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_inference_test.dart:19:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:20:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:21:22:\nError: 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:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1, 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:23:22:\nError: Unexpected token 'if'.\n expectListOf<num>([if (true) 1, 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:36:\nError: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:26:\nError: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:32:\nError: Unexpected token '...'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:28:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:29:26:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:34:\nError: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:37:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:38:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:39:21:\nError: 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:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1, 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:41:21:\nError: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1, 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:35:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:25:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:36:\nError: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:26:\nError: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:38:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:28:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:50:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (false) 9 else expectDynamic(2)});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_inference_test\n"} {"name":"language_2/control_flow_collections/for_inference_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 624ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short2_collections_for_inference_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_inference_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_inference_test.dart:20:27:\nError: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:27:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:31:\nError: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:42:\nError: Unexpected token '...'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:27:\nError: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:29:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:39:\nError: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:46:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:26:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:30:\nError: Unexpected token 'if'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:36:\nError: Unexpected token '...'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:26:\nError: Unexpected token 'if'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:46:\nError: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.setEquals(<int>{1, 2}, {1, for (; false;) expectDynamic(2)});\n ^^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_inference_test\n"} {"name":"language_2/control_flow_collections/for_variable_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 749ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short4__collections_for_variable_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_variable_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_variable_test.dart:32:15:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:7:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:22:\nError: '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:\nInfo: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:13:\nError: Unexpected token 'for'.\n list = [for (var local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:22:\nError: '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:\nInfo: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n for (staticField = \"for\"; staticField == \"for\"; staticField = \"after\")\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:142:7:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n list = [for (global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:176:13:\nError: Unexpected token 'for'.\n list = [for (staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:181:13:\nError: Unexpected token 'for'.\n list = [for (field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:186:13:\nError: Unexpected token 'for'.\n list = [for (inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:191:13:\nError: Unexpected token 'for'.\n list = [for (local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:16:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (outer in [\"for\"]) outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:36:\nError: Unexpected token '...'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:7:\nError: Unexpected token 'for'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:77:\nError: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:39:\nError: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\n for (var outer in [\"outer\"]) ...[\n ^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_variable_test\n"} {"name":"language_2/control_flow_collections/for_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 671ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_for_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_test.dart:64:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Non-optional parameters can't have a default value.\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:\nError: 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:\nError: 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:\nError: 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:\nError: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.\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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: Expected a declaration, but got '}'.\n}\n^\ntests/language_2/control_flow_collections/for_test.dart:26:33:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i in <int>[]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:99:5:\nError: Unexpected token 'for'.\n for (; false;) 9: 9,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:94:3:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i in <int>[1]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:107:14:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i = 2; i <= 3; i++) i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:201:3:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (; nonBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:231:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:232:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (; nonBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:233:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:237:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:238:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:239:3:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt});\n ^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_test\n"} {"name":"language_2/control_flow_collections/if_const_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 796ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_if_const_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_const_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_const_test.dart:61:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:114:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: A value of type 'Map<int, int>' can't be assigned to a variable of type 'int'.\n - 'Map' is from 'dart:core'.\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:\nError: A value of type 'Set<int>' can't be assigned to a variable of type 'int'.\n - 'Set' is from 'dart:core'.\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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:201:5:\nError: Unexpected token 'if'.\n if (false) nil + 1: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:202:5:\nError: Unexpected token 'if'.\n if (false) 9: nil + 1\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:205:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:224:5:\nError: Unexpected token 'if'.\n if (false) nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:225:5:\nError: Unexpected token 'if'.\n if (false) 9: nonInt\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:228:5:\nError: Unexpected token 'if'.\n if (true) 1: 1 else nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:229:5:\nError: Unexpected token 'if'.\n if (false) 9: nonInt else 2: 2\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:232:48:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (false) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:242:5:\nError: Unexpected token 'if'.\n if (true) 2: 2 else 3: 3,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:246:40:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.notIdentical(set, const <int>{1, if (true) 3, 2});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_const_test\n"} {"name":"language_2/control_flow_collections/if_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 812ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_if_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_test.dart:58:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:39:33:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) [1]].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:57:29:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, [if (true) {1}].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:62:23:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:109:5:\nError: Unexpected token 'if'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^\ntests/language_2/control_flow_collections/if_test.dart:110:26:\nError: Unexpected token '...'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:110:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:142:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], {if (true) [1]}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:160:29:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, {if (true) {1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:165:23:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:202:5:\nError: Unexpected token 'if'.\n if (false) 9: 9 else 2: 2,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:206:34:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) e1b: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:219:5:\nError: Unexpected token 'if'.\n if (true) e2a: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:220:5:\nError: Unexpected token 'if'.\n if (true) e2b: 0\n ^^\ntests/language_2/control_flow_collections/if_test.dart:226:5:\nError: Unexpected token 'if'.\n if (true) e1b,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:227:5:\nError: Unexpected token 'if'.\n if (true) e2a,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:228:5:\nError: Unexpected token 'if'.\n if (true) e2b\n ^^\ntests/language_2/control_flow_collections/if_test.dart:235:38:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>[if (nonBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:236:43:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int, int>{if (nonBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:237:38:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>{if (nonBool) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:240:43:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>[if (nullBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:241:48:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int, int>{if (nullBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:242:43:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>{if (nullBool) 1});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_test\n"} {"name":"language_2/control_flow_collections/if_inference_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 750ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short6__collections_if_inference_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_inference_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_inference_test.dart:19:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:20:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:21:22:\nError: 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:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) 1, 2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:23:22:\nError: Unexpected token 'if'.\n expectListOf<num>([if (true) 1, 0.2]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:36:\nError: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:24:26:\nError: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:32:\nError: Unexpected token '...'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:25:22:\nError: Unexpected token 'if'.\n expectListOf<int>([if (true) ...<int>[]]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:28:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:29:26:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:33:34:\nError: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:34:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...<int, int>{}});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:37:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:38:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1 else 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:39:21:\nError: 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:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) 1, 2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:41:21:\nError: Unexpected token 'if'.\n expectSetOf<num>({if (true) 1, 0.2});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:35:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:42:25:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:43:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:36:\nError: Unexpected token '...'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:46:26:\nError: Unexpected token 'if'.\n expectListOf<dynamic>([if (true) ...([] as dynamic)]);\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:38:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^^\ntests/language_2/control_flow_collections/if_inference_test.dart:47:28:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({1, if (true) ...([] as dynamic)});\n ^^\ntests/language_2/control_flow_collections/if_inference_test.dart:50:50:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals(<int>{1, 2}, {1, if (false) 9 else expectDynamic(2)});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_inference_test\n"} {"name":"language_2/control_flow_collections/for_inference_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 762ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short2_collections_for_inference_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_inference_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_inference_test.dart:20:27:\nError: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:21:27:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:25:31:\nError: Unexpected token 'for'.\n Expect.type<List<dynamic>>([for (; false;) ...[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:42:\nError: Unexpected token '...'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:26:27:\nError: Unexpected token 'for'.\n Expect.type<List<int>>([for (; false;) ...<int>[]]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:29:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:34:39:\nError: Unexpected token 'for'.\n Expect.type<Map<dynamic, dynamic>>({for (; false;) ...{}});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:35:46:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.type<Set<int>>({for (; false;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:39:26:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:43:30:\nError: Unexpected token 'if'.\n Expect.type<Set<dynamic>>({if (true) ...[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:36:\nError: Unexpected token '...'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:44:26:\nError: Unexpected token 'if'.\n Expect.type<Set<int>>({if (true) ...<int>[]});\n ^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:46:\nError: Unexpected token '...'.\n Expect.type<List<dynamic>>([for (; false;) ...([] as dynamic)]);\n ^^^\ntests/language_2/control_flow_collections/for_inference_test.dart:47:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.setEquals(<int>{1, 2}, {1, for (; false;) expectDynamic(2)});\n ^^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_inference_test\n"} {"name":"language_2/control_flow_collections/for_variable_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 01.000125s):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short4__collections_for_variable_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_variable_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_variable_test.dart:32:15:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:91:7:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:106:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:109:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:112:22:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n list = [for (var inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:22:\nError: '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:\nInfo: Previous declaration of 'local'.\n var local = \"local\";\n ^^^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:115:13:\nError: Unexpected token 'for'.\n list = [for (var local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:118:22:\nError: '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:\nInfo: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n for (staticField = \"for\"; staticField == \"for\"; staticField = \"after\")\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:142:7:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n list = [for (global in [\"for\"]) global];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:176:13:\nError: Unexpected token 'for'.\n list = [for (staticField in [\"for\"]) staticField];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:181:13:\nError: Unexpected token 'for'.\n list = [for (field in [\"for\"]) field];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:186:13:\nError: Unexpected token 'for'.\n list = [for (inherited in [\"for\"]) inherited];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:191:13:\nError: Unexpected token 'for'.\n list = [for (local in [\"for\"]) local];\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:16:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (outer in [\"for\"]) outer,\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:36:\nError: Unexpected token '...'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:7:\nError: Unexpected token 'for'.\n for (var outer in [\"outer\"]) ...[\n ^^^\ntests/language_2/control_flow_collections/for_variable_test.dart:163:77:\nError: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\n for (var outer = \"outer\"; outer == \"outer\"; outer = \"outer after\") ...[\n ^\ntests/language_2/control_flow_collections/for_variable_test.dart:197:39:\nError: A value of type 'List<dynamic>' can't be assigned to a variable of type 'String'.\n - 'List' is from 'dart:core'.\n for (var outer in [\"outer\"]) ...[\n ^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_variable_test\n"} {"name":"language_2/control_flow_collections/if_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 984ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_if_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_test.dart:58:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], <int>[if (true) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:39:33:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) [1]].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:57:29:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, [if (true) {1}].first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:62:23:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:109:5:\nError: Unexpected token 'if'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^\ntests/language_2/control_flow_collections/if_test.dart:110:26:\nError: Unexpected token '...'.\n if (false) 9: 9 else ...<int, int>{3: 3}\n ^^^\ntests/language_2/control_flow_collections/if_test.dart:110:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, <int>{if (true) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:142:31:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.listEquals([1], {if (true) [1]}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:160:29:\nError: 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:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, {if (true) {1}}.first;\n ^^\ntests/language_2/control_flow_collections/if_test.dart:165:23:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:202:5:\nError: Unexpected token 'if'.\n if (false) 9: 9 else 2: 2,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:206:34:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) e1b: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:219:5:\nError: Unexpected token 'if'.\n if (true) e2a: 0,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:220:5:\nError: Unexpected token 'if'.\n if (true) e2b: 0\n ^^\ntests/language_2/control_flow_collections/if_test.dart:226:5:\nError: Unexpected token 'if'.\n if (true) e1b,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:227:5:\nError: Unexpected token 'if'.\n if (true) e2a,\n ^^\ntests/language_2/control_flow_collections/if_test.dart:228:5:\nError: Unexpected token 'if'.\n if (true) e2b\n ^^\ntests/language_2/control_flow_collections/if_test.dart:235:38:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>[if (nonBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:236:43:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int, int>{if (nonBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:237:38:\nError: Unexpected token 'if'.\n Expect.throwsCastError(() => <int>{if (nonBool) 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:240:43:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>[if (nullBool) 1]);\n ^^\ntests/language_2/control_flow_collections/if_test.dart:241:48:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int, int>{if (nullBool) 1: 1});\n ^^\ntests/language_2/control_flow_collections/if_test.dart:242:43:\nError: Unexpected token 'if'.\n Expect.throwsAssertionError(() => <int>{if (nullBool) 1});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_test\n"} {"name":"language_2/control_flow_collections/for_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 01.000281s):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_for_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_test.dart:64:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Non-optional parameters can't have a default value.\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:\nError: 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:\nError: 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:\nError: 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:\nError: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.\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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: Expected a declaration, but got '}'.\n}\n^\ntests/language_2/control_flow_collections/for_test.dart:26:33:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i in <int>[]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:99:5:\nError: Unexpected token 'for'.\n for (; false;) 9: 9,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:94:3:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i in <int>[1]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:107:14:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i = 2; i <= 3; i++) i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:201:3:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (; nonBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:231:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:232:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (; nonBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:233:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:237:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:238:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:239:3:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt});\n ^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_test\n"} {"name":"language_2/control_flow_collections/if_const_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 01.000968s):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_if_const_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_const_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_const_test.dart:61:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:114:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: A value of type 'Map<int, int>' can't be assigned to a variable of type 'int'.\n - 'Map' is from 'dart:core'.\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:\nError: A value of type 'Set<int>' can't be assigned to a variable of type 'int'.\n - 'Set' is from 'dart:core'.\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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:201:5:\nError: Unexpected token 'if'.\n if (false) nil + 1: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:202:5:\nError: Unexpected token 'if'.\n if (false) 9: nil + 1\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:205:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:224:5:\nError: Unexpected token 'if'.\n if (false) nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:225:5:\nError: Unexpected token 'if'.\n if (false) 9: nonInt\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:228:5:\nError: Unexpected token 'if'.\n if (true) 1: 1 else nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:229:5:\nError: Unexpected token 'if'.\n if (false) 9: nonInt else 2: 2\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:232:48:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (false) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:242:5:\nError: Unexpected token 'if'.\n if (true) 2: 2 else 3: 3,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:246:40:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.notIdentical(set, const <int>{1, if (true) 3, 2});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_const_test\n"} {"name":"language_2/control_flow_collections/for_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 593ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_for_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\for_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/for_test.dart:64:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Non-optional parameters can't have a default value.\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:\nError: 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:\nError: 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:\nError: 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:\nError: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.\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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: A function declaration needs an explicit list of parameters.\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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Expected a function body or '=>'.\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:\nError: '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:\nInfo: 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:\nError: Expected a declaration, but got '}'.\n}\n^\ntests/language_2/control_flow_collections/for_test.dart:26:33:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i in <int>[]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:99:5:\nError: Unexpected token 'for'.\n for (; false;) 9: 9,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:94:3:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i in <int>[1]) i: i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:107:14:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: Unexpected token 'for'.\n for (var i = 2; i <= 3; i++) i,\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:201:3:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>[for (; nonBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:231:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:232:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsCastError(() => <int>{for (; nonBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:233:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]);\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:237:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:238:3:\nError: 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:\nError: Unexpected token 'for'.\n Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1});\n ^^^\ntests/language_2/control_flow_collections/for_test.dart:239:3:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Can't use 'Expect' because it is declared more than once.\n Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt});\n ^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/for_test\n"} {"name":"language_2/control_flow_collections/if_const_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 859ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_if_const_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\if_const_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/if_const_test.dart:61:19:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token '...'.\n if (true) ...<int, int>{1: 1, 2: 2},\n ^^^\ntests/language_2/control_flow_collections/if_const_test.dart:114:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: '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:\nInfo: 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:\nError: 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:\nError: 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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: A value of type 'Map<int, int>' can't be assigned to a variable of type 'int'.\n - 'Map' is from 'dart:core'.\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:\nError: A value of type 'Set<int>' can't be assigned to a variable of type 'int'.\n - 'Set' is from 'dart:core'.\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:\nError: A value of type 'List<int>' can't be assigned to a variable of type 'int'.\n - 'List' is from 'dart:core'.\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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:201:5:\nError: Unexpected token 'if'.\n if (false) nil + 1: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:202:5:\nError: Unexpected token 'if'.\n if (false) 9: nil + 1\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:205:5:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (true) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:224:5:\nError: Unexpected token 'if'.\n if (false) nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:225:5:\nError: Unexpected token 'if'.\n if (false) 9: nonInt\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:228:5:\nError: Unexpected token 'if'.\n if (true) 1: 1 else nonInt: 9,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:229:5:\nError: Unexpected token 'if'.\n if (false) 9: nonInt else 2: 2\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:232:48:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n if (false) 1: 1,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:242:5:\nError: Unexpected token 'if'.\n if (true) 2: 2 else 3: 3,\n ^^\ntests/language_2/control_flow_collections/if_const_test.dart:246:40:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: 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:\nError: Unexpected token 'if'.\n Expect.notIdentical(set, const <int>{1, if (true) 3, 2});\n ^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/if_const_test\n"} {"name":"language_2/control_flow_collections/map_set_ambiguity_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 607ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short36_ections_map_set_ambiguity_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\map_set_ambiguity_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:28:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:28:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...map});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:29:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:29:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...set});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:31:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:31:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...iterable});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:32:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:32:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...customSet});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:33:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:33:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...customMap});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:35:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...map else ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:35:48:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...map else ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:35:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...map else ...map});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:37:44:\nError: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...map else ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:37:56:\nError: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...map else ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:37:34:\nError: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...map else ...dyn});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:40:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...map else ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:40:48:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...map else ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:40:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...map else ...customMap});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:42:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set else ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:42:43:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set else ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:42:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...set else ...set});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:43:35:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...set else ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:43:47:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...set else ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:43:25:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...set else ...dyn});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:44:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set else ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:44:43:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set else ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:44:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...set else ...iterable});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:45:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:45:43:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:45:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...set else ...customSet});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:49:35:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...dyn else ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:49:47:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...dyn else ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:49:25:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...dyn else ...iterable});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:50:35:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...dyn else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:50:47:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...dyn else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:50:25:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...dyn else ...customSet});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:51:44:\nError: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...dyn else ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:51:56:\nError: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...dyn else ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:51:34:\nError: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...dyn else ...customMap});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:53:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...iterable else ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:53:48:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...iterable else ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:53:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...iterable else ...iterable});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:54:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...iterable else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:54:48:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...iterable else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:54:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...iterable else ...customSet});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:57:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...customSet else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:57:49:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...customSet else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:57:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...customSet else ...customSet});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:60:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...customMap else ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:60:54:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...customMap else ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:60:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...customMap else ...customMap});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:64:41:\nError: Unexpected token '...'.\n expectMapOf<int, int>({for (; false;) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:64:26:\nError: Unexpected token 'for'.\n expectMapOf<int, int>({for (; false;) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:65:36:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:65:21:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:67:36:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:67:21:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:68:36:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:68:21:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:69:41:\nError: Unexpected token '...'.\n expectMapOf<int, int>({for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:69:26:\nError: Unexpected token 'for'.\n expectMapOf<int, int>({for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:71:41:\nError: Unexpected token '...'.\n expectMapOf<int, int>({for (; false;) ...map, for (; false;) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:71:26:\nError: Unexpected token 'for'.\n expectMapOf<int, int>({for (; false;) ...map, for (; false;) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:71:64:\nError: Unexpected token '...'.\n expectMapOf<int, int>({for (; false;) ...map, for (; false;) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:71:49:\nError: Unexpected token 'for'.\n expectMapOf<int, int>({for (; false;) ...map, for (; false;) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:74:23:\nError: Unexpected token '...'.\n {for (; false;) ...map, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:74:8:\nError: Unexpected token 'for'.\n {for (; false;) ...map, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:74:46:\nError: Unexpected token '...'.\n {for (; false;) ...map, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:74:31:\nError: Unexpected token 'for'.\n {for (; false;) ...map, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:78:23:\nError: Unexpected token '...'.\n {for (; false;) ...map, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:78:8:\nError: Unexpected token 'for'.\n {for (; false;) ...map, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:78:46:\nError: Unexpected token '...'.\n {for (; false;) ...map, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:78:31:\nError: Unexpected token 'for'.\n {for (; false;) ...map, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:80:36:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:80:21:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:80:59:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:80:44:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:81:40:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({for (; false;) ...set, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:81:25:\nError: Unexpected token 'for'.\n expectSetOf<dynamic>({for (; false;) ...set, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:81:63:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({for (; false;) ...set, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:81:48:\nError: Unexpected token 'for'.\n expectSetOf<dynamic>({for (; false;) ...set, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:82:36:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:82:21:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:82:59:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:82:44:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:83:36:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:83:21:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:83:59:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:83:44:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:88:23:\nError: Unexpected token '...'.\n {for (; false;) ...dyn, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:88:8:\nError: Unexpected token 'for'.\n {for (; false;) ...dyn, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:88:46:\nError: Unexpected token '...'.\n {for (; false;) ...dyn, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:88:31:\nError: Unexpected token 'for'.\n {for (; false;) ...dyn, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:90:23:\nError: Unexpected token '...'.\n {for (; false;) ...dyn, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:90:8:\nError: Unexpected token 'for'.\n {for (; false;) ...dyn, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:90:46:\nError: Unexpected token '...'.\n {for (; false;) ...dyn, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:90:31:\nError: Unexpected token 'for'.\n {for (; false;) ...dyn, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:92:23:\nError: Unexpected token '...'.\n {for (; false;) ...dyn, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:92:8:\nError: Unexpected token 'for'.\n {for (; false;) ...dyn, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:92:46:\nError: Unexpected token '...'.\n {for (; false;) ...dyn, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:92:31:\nError: Unexpected token 'for'.\n {for (; false;) ...dyn, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:95:23:\nError: Unexpected token '...'.\n {for (; false;) ...iterable, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:95:8:\nError: Unexpected token 'for'.\n {for (; false;) ...iterable, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:95:51:\nError: Unexpected token '...'.\n {for (; false;) ...iterable, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:95:36:\nError: Unexpected token 'for'.\n {for (; false;) ...iterable, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:97:23:\nError: Unexpected token '...'.\n {for (; false;) ...iterable, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:97:8:\nError: Unexpected token 'for'.\n {for (; false;) ...iterable, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:97:51:\nError: Unexpected token '...'.\n {for (; false;) ...iterable, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:97:36:\nError: Unexpected token 'for'.\n {for (; false;) ...iterable, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:102:23:\nError: Unexpected token '...'.\n {for (; false;) ...customSet, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:102:8:\nError: Unexpected token 'for'.\n {for (; false;) ...customSet, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:102:52:\nError: Unexpected token '...'.\n {for (; false;) ...customSet, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:102:37:\nError: Unexpected token 'for'.\n {for (; false;) ...customSet, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:107:23:\nError: Unexpected token '...'.\n {for (; false;) ...customMap, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:107:8:\nError: Unexpected token 'for'.\n {for (; false;) ...customMap, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:107:52:\nError: Unexpected token '...'.\n {for (; false;) ...customMap, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:107:37:\nError: Unexpected token 'for'.\n {for (; false;) ...customMap, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:114:34:\nError: Unexpected token '...'.\n Map<int, int> map = {if (true) ...untypedMap};\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:114:24:\nError: Unexpected token 'if'.\n Map<int, int> map = {if (true) ...untypedMap};\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:115:29:\nError: Unexpected token '...'.\n Set<int> set = {if (true) ...untypedIterable};\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:115:19:\nError: Unexpected token 'if'.\n Set<int> set = {if (true) ...untypedIterable};\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:116:39:\nError: Unexpected token '...'.\n Iterable<int> iterable = {if (true) ...untypedIterable};\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:116:29:\nError: Unexpected token 'if'.\n Iterable<int> iterable = {if (true) ...untypedIterable};\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:122:25:\nError: Unexpected token '...'.\n map = {for (; false;) ...untypedMap};\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:122:10:\nError: Unexpected token 'for'.\n map = {for (; false;) ...untypedMap};\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:123:25:\nError: Unexpected token '...'.\n set = {for (; false;) ...untypedIterable};\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:123:10:\nError: Unexpected token 'for'.\n set = {for (; false;) ...untypedIterable};\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:124:30:\nError: Unexpected token '...'.\n iterable = {for (; false;) ...untypedIterable};\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:124:15:\nError: Unexpected token 'for'.\n iterable = {for (; false;) ...untypedIterable};\n ^^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/map_set_ambiguity_test\n"} {"name":"language_2/control_flow_collections/syntax_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 530ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_syntax_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\syntax_test.dart --enable-experiment=set-literals,control-flow-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/syntax_test.dart:12:27:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) 1,]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:13:29:\nError: Unexpected token 'if'.\n Expect.mapEquals({1: 1}, {if (true) 1: 1,});\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:14:26:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, {if (true) 1,});\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:17:27:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) 1 else 2,]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:18:29:\nError: Unexpected token 'if'.\n Expect.mapEquals({1: 1}, {if (true) 1: 1 else 2: 2,});\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:19:26:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, {if (true) 1 else 2,});\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:22:30:\nError: Unexpected token 'for'.\n Expect.listEquals([1], [1, for (; false;) 2,]);\n ^^^\ntests/language_2/control_flow_collections/syntax_test.dart:23:35:\nError: Unexpected token 'for'.\n Expect.mapEquals({1: 1}, {1: 1, for (; false;) 2: 2,});\n ^^^\ntests/language_2/control_flow_collections/syntax_test.dart:24:29:\nError: Unexpected token 'for'.\n Expect.setEquals({1}, {1, for (; false;) 2,});\n ^^^\ntests/language_2/control_flow_collections/syntax_test.dart:27:48:\nError: Expected an identifier, but got 'else'.\n Expect.listEquals([1], [if (true) if (false) else 1]);\n ^^^^\ntests/language_2/control_flow_collections/syntax_test.dart:27:37:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) if (false) else 1]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:27:27:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) if (false) else 1]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:28:48:\nError: Expected an identifier, but got 'else'.\n Expect.listEquals([1], [if (true) if (false) else 1 else 2]);\n ^^^^\ntests/language_2/control_flow_collections/syntax_test.dart:28:37:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) if (false) else 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:28:27:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) if (false) else 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:29:49:\nError: Expected an identifier, but got 'else'.\n Expect.listEquals([2], [if (false) if (false) else 1 else 2]);\n ^^^^\ntests/language_2/control_flow_collections/syntax_test.dart:29:38:\nError: Unexpected token 'if'.\n Expect.listEquals([2], [if (false) if (false) else 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:29:27:\nError: Unexpected token 'if'.\n Expect.listEquals([2], [if (false) if (false) else 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:32:36:\nError: Unexpected token 'if'.\n Expect.listEquals([1, 2, 3], [1, if (true) true ? 2 : 0, 3]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:34:36:\nError: Unexpected token 'if'.\n Expect.listEquals([1, 2, 3], [1, if (true) a = 2, 3]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:37:36:\nError: Unexpected token 'if'.\n Expect.listEquals([1, 2, 3], [1, if (false) 0 else true ? 2 : 0, 3]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:38:7:\nError: 'a' is already declared in this scope.\n var a = 0;\n ^\ntests/language_2/control_flow_collections/syntax_test.dart:33:7:\nInfo: Previous declaration of 'a'.\n var a = 0;\n ^\ntests/language_2/control_flow_collections/syntax_test.dart:39:36:\nError: Unexpected token 'if'.\n Expect.listEquals([1, 2, 3], [1, if (false) 0 else a = 2, 3]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:43:11:\nError: Unexpected token 'for'.\n [1, for (var i = 0; i < 1; i++) true ? 2 : 0, 3]);\n ^^^\ntests/language_2/control_flow_collections/syntax_test.dart:44:7:\nError: 'a' is already declared in this scope.\n var a = 0;\n ^\ntests/language_2/control_flow_collections/syntax_test.dart:33:7:\nInfo: Previous declaration of 'a'.\n var a = 0;\n ^\ntests/language_2/control_flow_collections/syntax_test.dart:45:45:\nError: 'i' is already declared in this scope.\n Expect.listEquals([1, 2, 3], [1, for (var i = 0; i < 1; i++) a = 2, 3]);\n ^\ntests/language_2/control_flow_collections/syntax_test.dart:43:20:\nInfo: Previous declaration of 'i'.\n [1, for (var i = 0; i < 1; i++) true ? 2 : 0, 3]);\n ^\ntests/language_2/control_flow_collections/syntax_test.dart:45:36:\nError: Unexpected token 'for'.\n Expect.listEquals([1, 2, 3], [1, for (var i = 0; i < 1; i++) a = 2, 3]);\n ^^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/syntax_test\n"} {"name":"language_2/control_flow_collections/syntax_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 563ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_syntax_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\syntax_test.dart --enable-experiment=set-literals,control-flow-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/syntax_test.dart:12:27:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) 1,]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:13:29:\nError: Unexpected token 'if'.\n Expect.mapEquals({1: 1}, {if (true) 1: 1,});\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:14:26:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, {if (true) 1,});\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:17:27:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) 1 else 2,]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:18:29:\nError: Unexpected token 'if'.\n Expect.mapEquals({1: 1}, {if (true) 1: 1 else 2: 2,});\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:19:26:\nError: Unexpected token 'if'.\n Expect.setEquals({1}, {if (true) 1 else 2,});\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:22:30:\nError: Unexpected token 'for'.\n Expect.listEquals([1], [1, for (; false;) 2,]);\n ^^^\ntests/language_2/control_flow_collections/syntax_test.dart:23:35:\nError: Unexpected token 'for'.\n Expect.mapEquals({1: 1}, {1: 1, for (; false;) 2: 2,});\n ^^^\ntests/language_2/control_flow_collections/syntax_test.dart:24:29:\nError: Unexpected token 'for'.\n Expect.setEquals({1}, {1, for (; false;) 2,});\n ^^^\ntests/language_2/control_flow_collections/syntax_test.dart:27:48:\nError: Expected an identifier, but got 'else'.\n Expect.listEquals([1], [if (true) if (false) else 1]);\n ^^^^\ntests/language_2/control_flow_collections/syntax_test.dart:27:37:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) if (false) else 1]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:27:27:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) if (false) else 1]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:28:48:\nError: Expected an identifier, but got 'else'.\n Expect.listEquals([1], [if (true) if (false) else 1 else 2]);\n ^^^^\ntests/language_2/control_flow_collections/syntax_test.dart:28:37:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) if (false) else 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:28:27:\nError: Unexpected token 'if'.\n Expect.listEquals([1], [if (true) if (false) else 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:29:49:\nError: Expected an identifier, but got 'else'.\n Expect.listEquals([2], [if (false) if (false) else 1 else 2]);\n ^^^^\ntests/language_2/control_flow_collections/syntax_test.dart:29:38:\nError: Unexpected token 'if'.\n Expect.listEquals([2], [if (false) if (false) else 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:29:27:\nError: Unexpected token 'if'.\n Expect.listEquals([2], [if (false) if (false) else 1 else 2]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:32:36:\nError: Unexpected token 'if'.\n Expect.listEquals([1, 2, 3], [1, if (true) true ? 2 : 0, 3]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:34:36:\nError: Unexpected token 'if'.\n Expect.listEquals([1, 2, 3], [1, if (true) a = 2, 3]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:37:36:\nError: Unexpected token 'if'.\n Expect.listEquals([1, 2, 3], [1, if (false) 0 else true ? 2 : 0, 3]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:38:7:\nError: 'a' is already declared in this scope.\n var a = 0;\n ^\ntests/language_2/control_flow_collections/syntax_test.dart:33:7:\nInfo: Previous declaration of 'a'.\n var a = 0;\n ^\ntests/language_2/control_flow_collections/syntax_test.dart:39:36:\nError: Unexpected token 'if'.\n Expect.listEquals([1, 2, 3], [1, if (false) 0 else a = 2, 3]);\n ^^\ntests/language_2/control_flow_collections/syntax_test.dart:43:11:\nError: Unexpected token 'for'.\n [1, for (var i = 0; i < 1; i++) true ? 2 : 0, 3]);\n ^^^\ntests/language_2/control_flow_collections/syntax_test.dart:44:7:\nError: 'a' is already declared in this scope.\n var a = 0;\n ^\ntests/language_2/control_flow_collections/syntax_test.dart:33:7:\nInfo: Previous declaration of 'a'.\n var a = 0;\n ^\ntests/language_2/control_flow_collections/syntax_test.dart:45:45:\nError: 'i' is already declared in this scope.\n Expect.listEquals([1, 2, 3], [1, for (var i = 0; i < 1; i++) a = 2, 3]);\n ^\ntests/language_2/control_flow_collections/syntax_test.dart:43:20:\nInfo: Previous declaration of 'i'.\n [1, for (var i = 0; i < 1; i++) true ? 2 : 0, 3]);\n ^\ntests/language_2/control_flow_collections/syntax_test.dart:45:36:\nError: Unexpected token 'for'.\n Expect.listEquals([1, 2, 3], [1, for (var i = 0; i < 1; i++) a = 2, 3]);\n ^^^\nError: Compilation failed.\n\n--- Re-run this test:\npython tools/test.py -n dart2js-win-chrome --repeat 5 --dart2js-batch --reset-browser-configuration --tests language_2/control_flow_collections/experimental_flag_test/01\r\nlanguage_2/control_flow_collections/experimental_flag_test/02\r\nlanguage_2/control_flow_collections/experimental_flag_test/03\r\nlanguage_2/control_flow_collections/experimental_flag_test/04\r\nlanguage_2/control_flow_collections/experimental_flag_test/05\r\nlanguage_2/control_flow_collections/experimental_flag_test/06\r\nlanguage_2/control_flow_collections/experimental_flag_test/07\r\nlanguage_2/control_flow_collections/experimental_flag_test/08\r\nlanguage_2/control_flow_collections/experimental_flag_test/09\r\nlanguage_2/control_flow_collections/experimental_flag_test/10\r\nlanguage_2/control_flow_collections/experimental_flag_test/11\r\nlanguage_2/control_flow_collections/experimental_flag_test/12\r\nlanguage_2/control_flow_collections/experimental_flag_test/13\r\nlanguage_2/control_flow_collections/experimental_flag_test/14\r\nlanguage_2/control_flow_collections/experimental_flag_test/15\r\nlanguage_2/control_flow_collections/experimental_flag_test/none\r\nlanguage_2/control_flow_collections/for_const_test/00\r\nlanguage_2/control_flow_collections/for_const_test/01\r\nlanguage_2/control_flow_collections/for_const_test/02\r\nlanguage_2/control_flow_collections/for_const_test/03\r\nlanguage_2/control_flow_collections/for_const_test/04\r\nlanguage_2/control_flow_collections/for_const_test/05\r\nlanguage_2/control_flow_collections/for_const_test/06\r\nlanguage_2/control_flow_collections/for_const_test/07\r\nlanguage_2/control_flow_collections/for_const_test/08\r\nlanguage_2/control_flow_collections/for_const_test/none\r\nlanguage_2/control_flow_collections/if_const_error_test/01\r\nlanguage_2/control_flow_collections/if_const_error_test/02\r\nlanguage_2/control_flow_collections/if_const_error_test/03\r\nlanguage_2/control_flow_collections/if_const_error_test/04\r\nlanguage_2/control_flow_collections/if_const_error_test/05\r\nlanguage_2/control_flow_collections/if_const_error_test/06\r\nlanguage_2/control_flow_collections/if_const_error_test/07\r\nlanguage_2/control_flow_collections/if_const_error_test/08\r\nlanguage_2/control_flow_collections/if_const_error_test/09\r\nlanguage_2/control_flow_collections/if_const_error_test/10\r\nlanguage_2/control_flow_collections/if_const_error_test/11\r\nlanguage_2/control_flow_collections/if_const_error_test/12\r\nlanguage_2/control_flow_collections/if_const_error_test/13\r\nlanguage_2/control_flow_collections/if_const_error_test/14\r\nlanguage_2/control_flow_collections/if_const_error_test/15\r\nlanguage_2/control_flow_collections/if_const_error_test/16\r\nlanguage_2/control_flow_collections/if_const_error_test/17\r\nlanguage_2/control_flow_collections/if_const_error_test/18\r\nlanguage_2/control_flow_collections/if_const_error_test/19\r\nlanguage_2/control_flow_collections/if_const_error_test/20\r\nlanguage_2/control_flow_collections/if_const_error_test/21\r\nlanguage_2/control_flow_collections/if_const_error_test/22\r\nlanguage_2/control_flow_collections/if_const_error_test/23\r\nlanguage_2/control_flow_collections/for_inference_test\r\nlanguage_2/control_flow_collections/for_test\r\nlanguage_2/control_flow_collections/for_variable_test\r\nlanguage_2/control_flow_collections/if_const_test\r\nlanguage_2/control_flow_collections/if_inference_test\r\nlanguage_2/control_flow_collections/if_test\r\nlanguage_2/control_flow_collections/map_set_ambiguity_test\r\nlanguage_2/control_flow_collections/syntax_test\r\nlanguage_2/spread_collections/const_test\r\nlanguage_2/spread_collections/inference_test\r\nlanguage_2/spread_collections/map_set_ambiguity_test\r\nlanguage_2/spread_collections/spread_test\r\nlanguage_2/spread_collections/syntax_test\r\n language_2/control_flow_collections/syntax_test\n"} {"name":"language_2/control_flow_collections/map_set_ambiguity_test","configuration":"dart2js-win-chrome","result":"CompileTimeError","log":"--- Command \"dart2js\" (took 922ms):\nset DART_CONFIGURATION=ReleaseX64 & set DART_SUPPRESS_WER=1 & out\\ReleaseX64\\dart-sdk\\bin\\dart2js.bat --generate-code-with-compile-time-errors --test-mode --packages=C:\\b\\s\\w\\ir\\.packages --out=C:/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/short36_ections_map_set_ambiguity_test/test.js C:\\b\\s\\w\\ir\\tests\\language_2\\control_flow_collections\\map_set_ambiguity_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2\n\nexit code:\n1\n\nstdout:\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:28:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:28:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...map});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:29:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:29:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...set});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:31:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:31:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...iterable});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:32:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:32:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...customSet});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:33:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:33:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...customMap});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:35:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...map else ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:35:48:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...map else ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:35:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...map else ...map});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:37:44:\nError: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...map else ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:37:56:\nError: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...map else ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:37:34:\nError: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...map else ...dyn});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:40:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...map else ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:40:48:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...map else ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:40:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...map else ...customMap});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:42:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set else ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:42:43:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set else ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:42:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...set else ...set});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:43:35:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...set else ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:43:47:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...set else ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:43:25:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...set else ...dyn});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:44:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set else ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:44:43:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set else ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:44:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...set else ...iterable});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:45:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:45:43:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...set else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:45:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...set else ...customSet});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:49:35:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...dyn else ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:49:47:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...dyn else ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:49:25:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...dyn else ...iterable});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:50:35:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...dyn else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:50:47:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({if (true) ...dyn else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:50:25:\nError: Unexpected token 'if'.\n expectSetOf<dynamic>({if (true) ...dyn else ...customSet});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:51:44:\nError: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...dyn else ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:51:56:\nError: Unexpected token '...'.\n expectMapOf<dynamic, dynamic>({if (true) ...dyn else ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:51:34:\nError: Unexpected token 'if'.\n expectMapOf<dynamic, dynamic>({if (true) ...dyn else ...customMap});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:53:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...iterable else ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:53:48:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...iterable else ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:53:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...iterable else ...iterable});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:54:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...iterable else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:54:48:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...iterable else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:54:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...iterable else ...customSet});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:57:31:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...customSet else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:57:49:\nError: Unexpected token '...'.\n expectSetOf<int>({if (true) ...customSet else ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:57:21:\nError: Unexpected token 'if'.\n expectSetOf<int>({if (true) ...customSet else ...customSet});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:60:36:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...customMap else ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:60:54:\nError: Unexpected token '...'.\n expectMapOf<int, int>({if (true) ...customMap else ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:60:26:\nError: Unexpected token 'if'.\n expectMapOf<int, int>({if (true) ...customMap else ...customMap});\n ^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:64:41:\nError: Unexpected token '...'.\n expectMapOf<int, int>({for (; false;) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:64:26:\nError: Unexpected token 'for'.\n expectMapOf<int, int>({for (; false;) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:65:36:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:65:21:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:67:36:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:67:21:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:68:36:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:68:21:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:69:41:\nError: Unexpected token '...'.\n expectMapOf<int, int>({for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:69:26:\nError: Unexpected token 'for'.\n expectMapOf<int, int>({for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:71:41:\nError: Unexpected token '...'.\n expectMapOf<int, int>({for (; false;) ...map, for (; false;) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:71:26:\nError: Unexpected token 'for'.\n expectMapOf<int, int>({for (; false;) ...map, for (; false;) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:71:64:\nError: Unexpected token '...'.\n expectMapOf<int, int>({for (; false;) ...map, for (; false;) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:71:49:\nError: Unexpected token 'for'.\n expectMapOf<int, int>({for (; false;) ...map, for (; false;) ...map});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:74:23:\nError: Unexpected token '...'.\n {for (; false;) ...map, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:74:8:\nError: Unexpected token 'for'.\n {for (; false;) ...map, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:74:46:\nError: Unexpected token '...'.\n {for (; false;) ...map, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:74:31:\nError: Unexpected token 'for'.\n {for (; false;) ...map, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:78:23:\nError: Unexpected token '...'.\n {for (; false;) ...map, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:78:8:\nError: Unexpected token 'for'.\n {for (; false;) ...map, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:78:46:\nError: Unexpected token '...'.\n {for (; false;) ...map, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:78:31:\nError: Unexpected token 'for'.\n {for (; false;) ...map, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:80:36:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:80:21:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:80:59:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:80:44:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...set});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:81:40:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({for (; false;) ...set, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:81:25:\nError: Unexpected token 'for'.\n expectSetOf<dynamic>({for (; false;) ...set, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:81:63:\nError: Unexpected token '...'.\n expectSetOf<dynamic>({for (; false;) ...set, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:81:48:\nError: Unexpected token 'for'.\n expectSetOf<dynamic>({for (; false;) ...set, for (; false;) ...dyn});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:82:36:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:82:21:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:82:59:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:82:44:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:83:36:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:83:21:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:83:59:\nError: Unexpected token '...'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:83:44:\nError: Unexpected token 'for'.\n expectSetOf<int>({for (; false;) ...set, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:88:23:\nError: Unexpected token '...'.\n {for (; false;) ...dyn, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:88:8:\nError: Unexpected token 'for'.\n {for (; false;) ...dyn, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:88:46:\nError: Unexpected token '...'.\n {for (; false;) ...dyn, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:88:31:\nError: Unexpected token 'for'.\n {for (; false;) ...dyn, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:90:23:\nError: Unexpected token '...'.\n {for (; false;) ...dyn, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:90:8:\nError: Unexpected token 'for'.\n {for (; false;) ...dyn, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:90:46:\nError: Unexpected token '...'.\n {for (; false;) ...dyn, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:90:31:\nError: Unexpected token 'for'.\n {for (; false;) ...dyn, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:92:23:\nError: Unexpected token '...'.\n {for (; false;) ...dyn, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:92:8:\nError: Unexpected token 'for'.\n {for (; false;) ...dyn, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:92:46:\nError: Unexpected token '...'.\n {for (; false;) ...dyn, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:92:31:\nError: Unexpected token 'for'.\n {for (; false;) ...dyn, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:95:23:\nError: Unexpected token '...'.\n {for (; false;) ...iterable, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:95:8:\nError: Unexpected token 'for'.\n {for (; false;) ...iterable, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:95:51:\nError: Unexpected token '...'.\n {for (; false;) ...iterable, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:95:36:\nError: Unexpected token 'for'.\n {for (; false;) ...iterable, for (; false;) ...iterable});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:97:23:\nError: Unexpected token '...'.\n {for (; false;) ...iterable, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:97:8:\nError: Unexpected token 'for'.\n {for (; false;) ...iterable, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:97:51:\nError: Unexpected token '...'.\n {for (; false;) ...iterable, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:97:36:\nError: Unexpected token 'for'.\n {for (; false;) ...iterable, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:102:23:\nError: Unexpected token '...'.\n {for (; false;) ...customSet, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:102:8:\nError: Unexpected token 'for'.\n {for (; false;) ...customSet, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:102:52:\nError: Unexpected token '...'.\n {for (; false;) ...customSet, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:102:37:\nError: Unexpected token 'for'.\n {for (; false;) ...customSet, for (; false;) ...customSet});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:107:23:\nError: Unexpected token '...'.\n {for (; false;) ...customMap, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:107:8:\nError: Unexpected token 'for'.\n {for (; false;) ...customMap, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:107:52:\nError: Unexpected token '...'.\n {for (; false;) ...customMap, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:107:37:\nError: Unexpected token 'for'.\n {for (; false;) ...customMap, for (; false;) ...customMap});\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:114:34:\nError: Unexpected token '...'.\n Map<int, int> map = {if (true) ...untypedMap};\n ^^^\ntests/language_2/control_flow_collections/map_set_ambiguity_test.dart:114:24:\nError: Unexpected token 'if'.\n Map<int, int> map = {if (true) .