From 864b22d3ce3b2f7d90dd3ab28ab986b37bd3380d Mon Sep 17 00:00:00 2001 From: Dmitry Stefantsov Date: Thu, 28 Mar 2019 12:30:41 +0000 Subject: [PATCH] [cfe] Add inference and type checks to if-elements in maps Change-Id: I3cacaee173320dd52bead6688fac24e4e4a01f0f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97962 Reviewed-by: Kevin Millikin --- .../src/fasta/kernel/inference_visitor.dart | 271 +-- .../control_flow_collection_inference.dart | 30 +- ...ow_collection_inference.dart.legacy.expect | 829 +++++---- ...n_inference.dart.legacy.transformed.expect | 829 +++++---- ...w_collection_inference.dart.outline.expect | 2 +- ...ow_collection_inference.dart.strong.expect | 1507 ++++++++++------- ...n_inference.dart.strong.transformed.expect | 1507 ++++++++++------- ...ction_inference.dart.type_promotion.expect | 132 +- tests/co19_2/co19_2-kernel.status | 26 - tests/language_2/language_2_kernel.status | 2 - 10 files changed, 3025 insertions(+), 2110 deletions(-) diff --git a/pkg/front_end/lib/src/fasta/kernel/inference_visitor.dart b/pkg/front_end/lib/src/fasta/kernel/inference_visitor.dart index 4f075c40a16b..b30b5a413921 100644 --- a/pkg/front_end/lib/src/fasta/kernel/inference_visitor.dart +++ b/pkg/front_end/lib/src/fasta/kernel/inference_visitor.dart @@ -959,6 +959,8 @@ class InferenceVisitor extends BodyVisitor1 { } } + // Note that inferMapEntry adds exactly two elements to actualTypes -- the + // actual types of the key and the value. DartType inferMapEntry( MapEntry entry, int index, @@ -968,29 +970,28 @@ class InferenceVisitor extends BodyVisitor1 { List spreadTypes, List actualTypes, bool inferenceNeeded, - bool typeChecksNeeded, - {bool nested: false}) { + bool typeChecksNeeded) { if (entry is SpreadMapEntry) { DartType spreadType = inferrer.inferExpression( entry.expression, spreadContext, inferenceNeeded || typeChecksNeeded, isVoidAllowed: true); - if (!nested) { - if (typeChecksNeeded) { - spreadTypes[index] = spreadType; - } - // Use 'dynamic' for error recovery. - int length = actualTypes.length; - actualTypes.add(const DynamicType()); - actualTypes.add(const DynamicType()); - storeSpreadMapEntryElementTypes( - spreadType, entry.isNullAware, actualTypes, length); + if (typeChecksNeeded) { + spreadTypes[index] = spreadType; } + // Use 'dynamic' for error recovery. + int length = actualTypes.length; + actualTypes.add(const DynamicType()); + actualTypes.add(const DynamicType()); + storeSpreadMapEntryElementTypes( + spreadType, entry.isNullAware, actualTypes, length); return spreadType; } else if (entry is IfMapEntry) { - // TODO(kmillikin): Implement inference rules for if map entries. inferrer.inferExpression(entry.condition, inferrer.coreTypes.boolClass.rawType, typeChecksNeeded, isVoidAllowed: false); + // Note that this recursive invocation of inferMapEntry will add two types + // to actualTypes; they are the actual types of the current invocation if + // the 'else' branch is empty. inferMapEntry( entry.then, index, @@ -1000,9 +1001,12 @@ class InferenceVisitor extends BodyVisitor1 { spreadTypes, actualTypes, inferenceNeeded, - typeChecksNeeded, - nested: true); + typeChecksNeeded); if (entry.otherwise != null) { + // We need to modify the actual types added in the recursive call to + // inferMapEntry. + DartType actualValueType = actualTypes.removeLast(); + DartType actualKeyType = actualTypes.removeLast(); inferMapEntry( entry.otherwise, index, @@ -1012,12 +1016,12 @@ class InferenceVisitor extends BodyVisitor1 { spreadTypes, actualTypes, inferenceNeeded, - typeChecksNeeded, - nested: true); - } - if (!nested) { - actualTypes.add(const DynamicType()); - actualTypes.add(const DynamicType()); + typeChecksNeeded); + int length = actualTypes.length; + actualTypes[length - 2] = inferrer.typeSchemaEnvironment + .getStandardUpperBound(actualKeyType, actualTypes[length - 2]); + actualTypes[length - 1] = inferrer.typeSchemaEnvironment + .getStandardUpperBound(actualValueType, actualTypes[length - 1]); } return null; } else if (entry is ForMapEntry) { @@ -1041,6 +1045,7 @@ class InferenceVisitor extends BodyVisitor1 { inferenceNeeded || typeChecksNeeded, isVoidAllowed: true); } + // Actual types are added by the recursive call. inferMapEntry( entry.body, index, @@ -1050,12 +1055,7 @@ class InferenceVisitor extends BodyVisitor1 { spreadTypes, actualTypes, inferenceNeeded, - typeChecksNeeded, - nested: true); - if (!nested) { - actualTypes.add(const DynamicType()); - actualTypes.add(const DynamicType()); - } + typeChecksNeeded); return null; } else if (entry is ForInMapEntry) { // TODO(kmillikin): Implement inference rules for for-in map entries. @@ -1068,6 +1068,7 @@ class InferenceVisitor extends BodyVisitor1 { inferenceNeeded || typeChecksNeeded, isVoidAllowed: true); } + // Actual types are added by the recursive call. inferMapEntry( entry.body, index, @@ -1077,12 +1078,7 @@ class InferenceVisitor extends BodyVisitor1 { spreadTypes, actualTypes, inferenceNeeded, - typeChecksNeeded, - nested: true); - if (!nested) { - actualTypes.add(const DynamicType()); - actualTypes.add(const DynamicType()); - } + typeChecksNeeded); return null; } else { Expression key = entry.key; @@ -1090,14 +1086,123 @@ class InferenceVisitor extends BodyVisitor1 { Expression value = entry.value; inferrer.inferExpression(value, inferredValueType, true, isVoidAllowed: true); - if (!nested) { - actualTypes.add(getInferredType(key, inferrer)); - actualTypes.add(getInferredType(value, inferrer)); - } + actualTypes.add(getInferredType(key, inferrer)); + actualTypes.add(getInferredType(value, inferrer)); return null; } } + void checkMapEntry( + MapEntry entry, + TreeNode parent, + Expression cachedKey, + Expression cachedValue, + DartType keyType, + DartType valueType, + DartType actualKeyType, + DartType actualValueType, + DartType spreadMapEntryType) { + List spreadMapEntryElementTypes = new List(2); + if (entry is SpreadMapEntry) { + spreadMapEntryElementTypes[0] = spreadMapEntryElementTypes[1] = null; + storeSpreadMapEntryElementTypes( + spreadMapEntryType, entry.isNullAware, spreadMapEntryElementTypes, 0); + if (spreadMapEntryElementTypes[0] == null) { + if (spreadMapEntryType is InterfaceType && + spreadMapEntryType.classNode == inferrer.coreTypes.nullClass && + !entry.isNullAware) { + parent.replaceChild( + entry, + new MapEntry( + inferrer.helper.desugarSyntheticExpression(inferrer.helper + .buildProblem(messageNonNullAwareSpreadIsNull, + entry.expression.fileOffset, 1)), + new NullLiteral())); + } else { + parent.replaceChild( + entry, + new MapEntry( + inferrer.helper.desugarSyntheticExpression(inferrer.helper + .buildProblem( + templateSpreadMapEntryTypeMismatch + .withArguments(spreadMapEntryType), + entry.expression.fileOffset, + 1)), + new NullLiteral())); + } + } else if (spreadMapEntryType is DynamicType) { + inferrer.ensureAssignable(inferrer.coreTypes.mapClass.rawType, + spreadMapEntryType, entry.expression, entry.expression.fileOffset); + } else if (spreadMapEntryType is InterfaceType) { + Expression keyError; + Expression valueError; + if (!inferrer.isAssignable(keyType, spreadMapEntryElementTypes[0])) { + keyError = inferrer.helper.desugarSyntheticExpression(inferrer.helper + .buildProblem( + templateSpreadMapEntryElementKeyTypeMismatch.withArguments( + spreadMapEntryElementTypes[0], keyType), + entry.expression.fileOffset, + 1)); + } + if (!inferrer.isAssignable(valueType, spreadMapEntryElementTypes[1])) { + valueError = inferrer.helper.desugarSyntheticExpression( + inferrer.helper.buildProblem( + templateSpreadMapEntryElementValueTypeMismatch.withArguments( + spreadMapEntryElementTypes[1], valueType), + entry.expression.fileOffset, + 1)); + } + if (keyError != null || valueError != null) { + keyError ??= new NullLiteral(); + valueError ??= new NullLiteral(); + parent.replaceChild(entry, new MapEntry(keyError, valueError)); + } + } + } else if (entry is IfMapEntry) { + Expression keyError; + Expression valueError; + int offset = + entry.otherwise == null ? entry.then.fileOffset : entry.fileOffset; + if (!inferrer.isAssignable(keyType, actualKeyType)) { + keyError = inferrer.helper.desugarSyntheticExpression(inferrer.helper + .buildProblem( + templateInvalidAssignment.withArguments(actualKeyType, keyType), + offset, + 1)); + } + if (!inferrer.isAssignable(valueType, actualValueType)) { + valueError = inferrer.helper.desugarSyntheticExpression(inferrer.helper + .buildProblem( + templateInvalidAssignment.withArguments( + actualValueType, valueType), + offset, + 1)); + } + if (keyError != null || valueError != null) { + keyError ??= new NullLiteral(); + valueError ??= new NullLiteral(); + parent.replaceChild(entry, new MapEntry(keyError, valueError)); + } else { + checkMapEntry(entry.then, entry, cachedKey, cachedValue, keyType, + valueType, actualKeyType, actualValueType, spreadMapEntryType); + if (entry.otherwise != null) { + checkMapEntry(entry.otherwise, entry, cachedKey, cachedValue, keyType, + valueType, actualKeyType, actualValueType, spreadMapEntryType); + } + } + } else { + if (cachedKey != null) { + inferrer.ensureAssignable( + keyType, actualKeyType, cachedKey, cachedKey.fileOffset, + isVoidAllowed: keyType is VoidType); + + inferrer.ensureAssignable( + valueType, actualValueType, cachedValue, cachedValue.fileOffset, + isVoidAllowed: valueType is VoidType); + } + } + } + void visitMapLiteralJudgment(MapLiteralJudgment node, DartType typeContext) { var mapClass = inferrer.coreTypes.mapClass; var mapType = mapClass.thisType; @@ -1188,8 +1293,7 @@ class InferenceVisitor extends BodyVisitor1 { spreadMapEntryTypes, actualTypes, inferenceNeeded, - typeChecksNeeded, - nested: false); + typeChecksNeeded); if (entry is SpreadMapEntry) { bool isMap = inferrer.typeSchemaEnvironment .isSubtypeOf(spreadType, inferrer.coreTypes.mapClass.rawType); @@ -1283,85 +1387,16 @@ class InferenceVisitor extends BodyVisitor1 { } if (typeChecksNeeded) { for (int i = 0; i < node.entries.length; ++i) { - MapEntry entry = node.entries[i]; - List spreadMapEntryElementTypes = new List(2); - if (entry is SpreadMapEntry) { - DartType spreadMapEntryType = spreadMapEntryTypes[i]; - spreadMapEntryElementTypes[0] = spreadMapEntryElementTypes[1] = null; - storeSpreadMapEntryElementTypes(spreadMapEntryType, entry.isNullAware, - spreadMapEntryElementTypes, 0); - if (spreadMapEntryElementTypes[0] == null) { - if (spreadMapEntryType is InterfaceType && - spreadMapEntryType.classNode == inferrer.coreTypes.nullClass && - !entry.isNullAware) { - node.replaceChild( - node.entries[i], - new MapEntry( - inferrer.helper.desugarSyntheticExpression(inferrer.helper - .buildProblem(messageNonNullAwareSpreadIsNull, - entry.expression.fileOffset, 1)), - new NullLiteral())); - } else { - node.replaceChild( - node.entries[i], - new MapEntry( - inferrer.helper.desugarSyntheticExpression(inferrer.helper - .buildProblem( - templateSpreadMapEntryTypeMismatch - .withArguments(spreadMapEntryType), - entry.expression.fileOffset, - 1)), - new NullLiteral())); - } - } else if (spreadMapEntryType is DynamicType) { - inferrer.ensureAssignable( - inferrer.coreTypes.mapClass.rawType, - spreadMapEntryType, - entry.expression, - entry.expression.fileOffset); - } else if (spreadMapEntryType is InterfaceType) { - Expression keyError; - Expression valueError; - if (!inferrer.isAssignable( - node.keyType, spreadMapEntryElementTypes[0])) { - keyError = inferrer.helper.desugarSyntheticExpression( - inferrer.helper.buildProblem( - templateSpreadMapEntryElementKeyTypeMismatch - .withArguments( - spreadMapEntryElementTypes[0], node.keyType), - entry.expression.fileOffset, - 1)); - } - if (!inferrer.isAssignable( - node.valueType, spreadMapEntryElementTypes[1])) { - valueError = inferrer.helper.desugarSyntheticExpression( - inferrer.helper.buildProblem( - templateSpreadMapEntryElementValueTypeMismatch - .withArguments( - spreadMapEntryElementTypes[1], node.valueType), - entry.expression.fileOffset, - 1)); - } - if (keyError != null || valueError != null) { - keyError ??= new NullLiteral(); - valueError ??= new NullLiteral(); - node.replaceChild( - node.entries[i], new MapEntry(keyError, valueError)); - } - } - } else { - Expression keyJudgment = cachedKeys[i]; - if (keyJudgment != null) { - inferrer.ensureAssignable(node.keyType, actualTypes[2 * i], - keyJudgment, keyJudgment.fileOffset, - isVoidAllowed: node.keyType is VoidType); - - Expression valueJudgment = cachedValues[i]; - inferrer.ensureAssignable(node.valueType, actualTypes[2 * i + 1], - valueJudgment, valueJudgment.fileOffset, - isVoidAllowed: node.valueType is VoidType); - } - } + checkMapEntry( + node.entries[i], + node, + cachedKeys[i], + cachedValues[i], + node.keyType, + node.valueType, + actualTypes[2 * i], + actualTypes[2 * i + 1], + spreadMapEntryTypes[i]); } } node.inferredType = diff --git a/pkg/front_end/testcases/control_flow_collection_inference.dart b/pkg/front_end/testcases/control_flow_collection_inference.dart index aa1639ccacb3..dd1f84abdfca 100644 --- a/pkg/front_end/testcases/control_flow_collection_inference.dart +++ b/pkg/front_end/testcases/control_flow_collection_inference.dart @@ -5,72 +5,100 @@ // Oracle is generic to test the inference in conditions of if-elements. oracle([T t]) => true; -testIfElement(dynamic dynVar, List listInt, List listDouble) { +testIfElement(dynamic dynVar, List listInt, List listDouble, + Map mapToInt, Map mapToDouble) { var list10 = [if (oracle("foo")) 42]; var set10 = {if (oracle("foo")) 42, null}; + var map10 = {if (oracle("foo")) "bar": 42, "baz": null}; var list11 = [if (oracle("foo")) dynVar]; var set11 = {if (oracle("foo")) dynVar, null}; + var map11 = {if (oracle("foo")) "bar": dynVar, "baz": null}; var list12 = [if (oracle("foo")) [42]]; var set12 = {if (oracle("foo")) [42], null}; + var map12 = {if (oracle("foo")) "bar": [42], "baz": null}; var list20 = [if (oracle("foo")) ...[42]]; var set20 = {if (oracle("foo")) ...[42], null}; + var map20 = {if (oracle("foo")) ...{"bar": 42}, "baz": null}; var list21 = [if (oracle("foo")) ...[dynVar]]; var set21 = {if (oracle("foo")) ...[dynVar], null}; + var map21 = {if (oracle("foo")) ...{"bar": dynVar}, "baz": null}; var list22 = [if (oracle("foo")) ...[[42]]]; var set22 = {if (oracle("foo")) ...[[42]], null}; + var map22 = {if (oracle("foo")) ...{"bar": [42]}, "baz": null}; var list30 = [if (oracle("foo")) if (oracle()) ...[42]]; var set30 = {if (oracle("foo")) if (oracle()) ...[42], null}; + var map30 = {if (oracle("foo")) if (oracle()) ...{"bar": 42}, "baz": null}; var list31 = [if (oracle("foo")) if (oracle()) ...[dynVar]]; var set31 = {if (oracle("foo")) if (oracle()) ...[dynVar], null}; + var map31 = {if (oracle("foo")) if (oracle()) ...{"bar": dynVar}, "baz": null}; var list33 = [if (oracle("foo")) if (oracle()) ...[[42]]]; var set33 = {if (oracle("foo")) if (oracle()) ...[[42]], null}; + var map33 = {if (oracle("foo")) if (oracle()) ...{"bar": [42]}, "baz": null}; List> list40 = [if (oracle("foo")) ...[[]]]; Set> set40 = {if (oracle("foo")) ...[[]], null}; + Map> map40 = {if (oracle("foo")) ...{"bar", []}, "baz": null}; List> list41 = [if (oracle("foo")) ...{[]}]; Set> set41 = {if (oracle("foo")) ...{[]}, null}; List> list42 = [if (oracle("foo")) if (oracle()) ...[[]]]; Set> set42 = {if (oracle("foo")) if (oracle()) ...[[]], null}; + Map> map42 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; List list50 = [if (oracle("foo")) ...[]]; Set set50 = {if (oracle("foo")) ...[], null}; + Map map50 = {if (oracle("foo")) ...{}, "baz": null}; List list51 = [if (oracle("foo")) ...{}]; Set set51 = {if (oracle("foo")) ...{}, null}; List list52 = [if (oracle("foo")) if (oracle()) ...[]]; Set set52 = {if (oracle("foo")) if (oracle()) ...[], null}; + Map map52 = {if (oracle("foo")) if (oracle()) ...{}, "baz": null}; List> list60 = [if (oracle("foo")) ...[[]]]; Set> set60 = {if (oracle("foo")) ...[[]], null}; + Map> map60 = {if (oracle("foo")) ...{"bar": []}, "baz": null}; List> list61 = [if (oracle("foo")) if (oracle()) ...[[]]]; Set> set61 = {if (oracle("foo")) if (oracle()) ...[[]], null}; + Map> map61 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; List> list70 = [if (oracle("foo")) []]; Set> set70 = {if (oracle("foo")) [], null}; List> list71 = [if (oracle("foo")) if (oracle()) []]; Set> set71 = {if (oracle("foo")) if (oracle()) [], null}; var list80 = [if (oracle("foo")) 42 else 3.14]; var set80 = {if (oracle("foo")) 42 else 3.14, null}; + var map80 = {if (oracle("foo")) "bar": 42 else "bar": 3.14, "baz": null}; var list81 = [if (oracle("foo")) ...listInt else ...listDouble]; var set81 = {if (oracle("foo")) ...listInt else ...listDouble, null}; + var map81 = {if (oracle("foo")) ...mapToInt else ...mapToDouble, null}; var list82 = [if (oracle("foo")) ...listInt else ...dynVar]; var set82 = {if (oracle("foo")) ...listInt else ...dynVar, null}; + var map82 = {if (oracle("foo")) ...mapToInt else ...dynVar, null}; var list83 = [if (oracle("foo")) 42 else ...listDouble]; var set83 = {if (oracle("foo")) ...listInt else 3.14, null}; + var map83 = {if (oracle("foo")) ...mapToInt else 3.14, null}; List list90 = [if (oracle("foo")) dynVar]; Set set90 = {if (oracle("foo")) dynVar, null}; + Map map90 = {if (oracle("foo")) "bar": dynVar, "baz": null}; List list91 = [if (oracle("foo")) ...dynVar]; Set set91 = {if (oracle("foo")) ...dynVar, null}; + Map map91 = {if (oracle("foo")) ...dynVar, "baz": null}; } testIfElementErrors(Map map) { [if (oracle("foo")) "bar"]; {if (oracle("foo")) "bar", null}; + {if (oracle("foo")) "bar": "bar", "baz": null}; [if (oracle("foo")) ...["bar"]]; {if (oracle("foo")) ...["bar"], null}; + {if (oracle("foo")) ...{"bar": "bar"}, "baz": null}; [if (oracle("foo")) ...map]; {if (oracle("foo")) ...map, null}; + {if (oracle("foo")) ...["bar"], "baz": null}; [if (oracle("foo")) 42 else 3.14]; {if (oracle("foo")) 42 else 3.14, null}; + {if (oracle("foo")) "bar": 42 else "baz": 3.14, "baz": null}; [if (oracle("foo")) ...map else 42]; {if (oracle("foo")) ...map else 42, null}; + {if (oracle("foo")) ...[42] else {"bar": 42}, "baz": null}; [if (oracle("foo")) 42 else ...map]; {if (oracle("foo")) ...map else 42, null}; + {if (oracle("foo")) {"bar": 42} else ...[42], "baz": null}; } testForElement(dynamic dynVar, List listInt, List listDouble, int diff --git a/pkg/front_end/testcases/control_flow_collection_inference.dart.legacy.expect b/pkg/front_end/testcases/control_flow_collection_inference.dart.legacy.expect index ade7d807dc7a..1234843d4b63 100644 --- a/pkg/front_end/testcases/control_flow_collection_inference.dart.legacy.expect +++ b/pkg/front_end/testcases/control_flow_collection_inference.dart.legacy.expect @@ -2,1159 +2,1383 @@ library; // // Problems in library: // -// pkg/front_end/testcases/control_flow_collection_inference.dart:9:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:10:17: Error: Unexpected token 'if'. // var list10 = [if (oracle("foo")) 42]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:10:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:11:16: Error: Unexpected token 'if'. // var set10 = {if (oracle("foo")) 42, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:11:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:12:16: Error: Unexpected token 'if'. +// var map10 = {if (oracle("foo")) "bar": 42, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:13:17: Error: Unexpected token 'if'. // var list11 = [if (oracle("foo")) dynVar]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:12:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:14:16: Error: Unexpected token 'if'. // var set11 = {if (oracle("foo")) dynVar, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:13:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:15:16: Error: Unexpected token 'if'. +// var map11 = {if (oracle("foo")) "bar": dynVar, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:16:17: Error: Unexpected token 'if'. // var list12 = [if (oracle("foo")) [42]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:14:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:17:16: Error: Unexpected token 'if'. // var set12 = {if (oracle("foo")) [42], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:15:36: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:18:16: Error: Unexpected token 'if'. +// var map12 = {if (oracle("foo")) "bar": [42], "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:19:36: Error: Unexpected token '...'. // var list20 = [if (oracle("foo")) ...[42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:15:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:19:17: Error: Unexpected token 'if'. // var list20 = [if (oracle("foo")) ...[42]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:16:35: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:20:35: Error: Unexpected token '...'. // var set20 = {if (oracle("foo")) ...[42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:16:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:20:16: Error: Unexpected token 'if'. // var set20 = {if (oracle("foo")) ...[42], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:17:36: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:21:35: Error: Unexpected token '...'. +// var map20 = {if (oracle("foo")) ...{"bar": 42}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:21:16: Error: Unexpected token 'if'. +// var map20 = {if (oracle("foo")) ...{"bar": 42}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:22:36: Error: Unexpected token '...'. // var list21 = [if (oracle("foo")) ...[dynVar]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:17:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:22:17: Error: Unexpected token 'if'. // var list21 = [if (oracle("foo")) ...[dynVar]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:18:35: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:23:35: Error: Unexpected token '...'. // var set21 = {if (oracle("foo")) ...[dynVar], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:18:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:23:16: Error: Unexpected token 'if'. // var set21 = {if (oracle("foo")) ...[dynVar], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:19:36: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:24:35: Error: Unexpected token '...'. +// var map21 = {if (oracle("foo")) ...{"bar": dynVar}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:24:16: Error: Unexpected token 'if'. +// var map21 = {if (oracle("foo")) ...{"bar": dynVar}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:25:36: Error: Unexpected token '...'. // var list22 = [if (oracle("foo")) ...[[42]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:19:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:25:17: Error: Unexpected token 'if'. // var list22 = [if (oracle("foo")) ...[[42]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:20:35: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:26:35: Error: Unexpected token '...'. // var set22 = {if (oracle("foo")) ...[[42]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:20:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:26:16: Error: Unexpected token 'if'. // var set22 = {if (oracle("foo")) ...[[42]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:21:50: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:27:35: Error: Unexpected token '...'. +// var map22 = {if (oracle("foo")) ...{"bar": [42]}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:27:16: Error: Unexpected token 'if'. +// var map22 = {if (oracle("foo")) ...{"bar": [42]}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:28:50: Error: Unexpected token '...'. // var list30 = [if (oracle("foo")) if (oracle()) ...[42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:21:36: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:28:36: Error: Unexpected token 'if'. // var list30 = [if (oracle("foo")) if (oracle()) ...[42]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:21:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:28:17: Error: Unexpected token 'if'. // var list30 = [if (oracle("foo")) if (oracle()) ...[42]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:22:49: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:29:49: Error: Unexpected token '...'. // var set30 = {if (oracle("foo")) if (oracle()) ...[42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:22:35: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:29:35: Error: Unexpected token 'if'. // var set30 = {if (oracle("foo")) if (oracle()) ...[42], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:22:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:29:16: Error: Unexpected token 'if'. // var set30 = {if (oracle("foo")) if (oracle()) ...[42], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:23:50: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:30:49: Error: Unexpected token '...'. +// var map30 = {if (oracle("foo")) if (oracle()) ...{"bar": 42}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:30:35: Error: Unexpected token 'if'. +// var map30 = {if (oracle("foo")) if (oracle()) ...{"bar": 42}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:30:16: Error: Unexpected token 'if'. +// var map30 = {if (oracle("foo")) if (oracle()) ...{"bar": 42}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:31:50: Error: Unexpected token '...'. // var list31 = [if (oracle("foo")) if (oracle()) ...[dynVar]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:23:36: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:31:36: Error: Unexpected token 'if'. // var list31 = [if (oracle("foo")) if (oracle()) ...[dynVar]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:23:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:31:17: Error: Unexpected token 'if'. // var list31 = [if (oracle("foo")) if (oracle()) ...[dynVar]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:24:49: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:32:49: Error: Unexpected token '...'. // var set31 = {if (oracle("foo")) if (oracle()) ...[dynVar], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:24:35: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:32:35: Error: Unexpected token 'if'. // var set31 = {if (oracle("foo")) if (oracle()) ...[dynVar], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:24:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:32:16: Error: Unexpected token 'if'. // var set31 = {if (oracle("foo")) if (oracle()) ...[dynVar], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:25:50: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:33:49: Error: Unexpected token '...'. +// var map31 = {if (oracle("foo")) if (oracle()) ...{"bar": dynVar}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:33:35: Error: Unexpected token 'if'. +// var map31 = {if (oracle("foo")) if (oracle()) ...{"bar": dynVar}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:33:16: Error: Unexpected token 'if'. +// var map31 = {if (oracle("foo")) if (oracle()) ...{"bar": dynVar}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:34:50: Error: Unexpected token '...'. // var list33 = [if (oracle("foo")) if (oracle()) ...[[42]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:25:36: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:34:36: Error: Unexpected token 'if'. // var list33 = [if (oracle("foo")) if (oracle()) ...[[42]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:25:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:34:17: Error: Unexpected token 'if'. // var list33 = [if (oracle("foo")) if (oracle()) ...[[42]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:26:49: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:35:49: Error: Unexpected token '...'. // var set33 = {if (oracle("foo")) if (oracle()) ...[[42]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:26:35: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:35:35: Error: Unexpected token 'if'. // var set33 = {if (oracle("foo")) if (oracle()) ...[[42]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:26:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:35:16: Error: Unexpected token 'if'. // var set33 = {if (oracle("foo")) if (oracle()) ...[[42]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:27:48: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:36:49: Error: Unexpected token '...'. +// var map33 = {if (oracle("foo")) if (oracle()) ...{"bar": [42]}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:36:35: Error: Unexpected token 'if'. +// var map33 = {if (oracle("foo")) if (oracle()) ...{"bar": [42]}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:36:16: Error: Unexpected token 'if'. +// var map33 = {if (oracle("foo")) if (oracle()) ...{"bar": [42]}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:37:48: Error: Unexpected token '...'. // List> list40 = [if (oracle("foo")) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:27:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:37:29: Error: Unexpected token 'if'. // List> list40 = [if (oracle("foo")) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:28:46: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:38:46: Error: Unexpected token '...'. // Set> set40 = {if (oracle("foo")) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:28:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:38:27: Error: Unexpected token 'if'. // Set> set40 = {if (oracle("foo")) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:29:48: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:39:54: Error: Unexpected token '...'. +// Map> map40 = {if (oracle("foo")) ...{"bar", []}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:39:35: Error: Unexpected token 'if'. +// Map> map40 = {if (oracle("foo")) ...{"bar", []}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:40:48: Error: Unexpected token '...'. // List> list41 = [if (oracle("foo")) ...{[]}]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:29:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:40:29: Error: Unexpected token 'if'. // List> list41 = [if (oracle("foo")) ...{[]}]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:30:46: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:41:46: Error: Unexpected token '...'. // Set> set41 = {if (oracle("foo")) ...{[]}, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:30:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:41:27: Error: Unexpected token 'if'. // Set> set41 = {if (oracle("foo")) ...{[]}, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:31:62: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:42:62: Error: Unexpected token '...'. // List> list42 = [if (oracle("foo")) if (oracle()) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:31:48: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:42:48: Error: Unexpected token 'if'. // List> list42 = [if (oracle("foo")) if (oracle()) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:31:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:42:29: Error: Unexpected token 'if'. // List> list42 = [if (oracle("foo")) if (oracle()) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:32:60: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:43:60: Error: Unexpected token '...'. // Set> set42 = {if (oracle("foo")) if (oracle()) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:32:46: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:43:46: Error: Unexpected token 'if'. // Set> set42 = {if (oracle("foo")) if (oracle()) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:32:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:43:27: Error: Unexpected token 'if'. // Set> set42 = {if (oracle("foo")) if (oracle()) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:33:42: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:44:68: Error: Unexpected token '...'. +// Map> map42 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:44:54: Error: Unexpected token 'if'. +// Map> map42 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:44:35: Error: Unexpected token 'if'. +// Map> map42 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:45:42: Error: Unexpected token '...'. // List list50 = [if (oracle("foo")) ...[]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:33:23: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:45:23: Error: Unexpected token 'if'. // List list50 = [if (oracle("foo")) ...[]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:34:40: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:46:40: Error: Unexpected token '...'. // Set set50 = {if (oracle("foo")) ...[], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:34:21: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:46:21: Error: Unexpected token 'if'. // Set set50 = {if (oracle("foo")) ...[], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:35:42: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:47:3: Warning: Expected 2 type arguments. +// Map map50 = {if (oracle("foo")) ...{}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:47:40: Error: Unexpected token '...'. +// Map map50 = {if (oracle("foo")) ...{}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:47:21: Error: Unexpected token 'if'. +// Map map50 = {if (oracle("foo")) ...{}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:48:42: Error: Unexpected token '...'. // List list51 = [if (oracle("foo")) ...{}]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:35:23: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:48:23: Error: Unexpected token 'if'. // List list51 = [if (oracle("foo")) ...{}]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:36:40: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:49:40: Error: Unexpected token '...'. // Set set51 = {if (oracle("foo")) ...{}, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:36:21: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:49:21: Error: Unexpected token 'if'. // Set set51 = {if (oracle("foo")) ...{}, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:37:56: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:50:56: Error: Unexpected token '...'. // List list52 = [if (oracle("foo")) if (oracle()) ...[]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:37:42: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:50:42: Error: Unexpected token 'if'. // List list52 = [if (oracle("foo")) if (oracle()) ...[]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:37:23: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:50:23: Error: Unexpected token 'if'. // List list52 = [if (oracle("foo")) if (oracle()) ...[]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:38:54: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:51:54: Error: Unexpected token '...'. // Set set52 = {if (oracle("foo")) if (oracle()) ...[], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:38:40: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:51:40: Error: Unexpected token 'if'. // Set set52 = {if (oracle("foo")) if (oracle()) ...[], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:38:21: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:51:21: Error: Unexpected token 'if'. // Set set52 = {if (oracle("foo")) if (oracle()) ...[], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:39:48: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:52:62: Error: Unexpected token '...'. +// Map map52 = {if (oracle("foo")) if (oracle()) ...{}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:52:48: Error: Unexpected token 'if'. +// Map map52 = {if (oracle("foo")) if (oracle()) ...{}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:52:29: Error: Unexpected token 'if'. +// Map map52 = {if (oracle("foo")) if (oracle()) ...{}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:53:48: Error: Unexpected token '...'. // List> list60 = [if (oracle("foo")) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:39:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:53:29: Error: Unexpected token 'if'. // List> list60 = [if (oracle("foo")) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:40:46: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:54:46: Error: Unexpected token '...'. // Set> set60 = {if (oracle("foo")) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:40:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:54:27: Error: Unexpected token 'if'. // Set> set60 = {if (oracle("foo")) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:41:62: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:55:54: Error: Unexpected token '...'. +// Map> map60 = {if (oracle("foo")) ...{"bar": []}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:55:35: Error: Unexpected token 'if'. +// Map> map60 = {if (oracle("foo")) ...{"bar": []}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:56:62: Error: Unexpected token '...'. // List> list61 = [if (oracle("foo")) if (oracle()) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:41:48: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:56:48: Error: Unexpected token 'if'. // List> list61 = [if (oracle("foo")) if (oracle()) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:41:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:56:29: Error: Unexpected token 'if'. // List> list61 = [if (oracle("foo")) if (oracle()) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:42:60: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:57:60: Error: Unexpected token '...'. // Set> set61 = {if (oracle("foo")) if (oracle()) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:42:46: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:57:46: Error: Unexpected token 'if'. // Set> set61 = {if (oracle("foo")) if (oracle()) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:42:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:57:27: Error: Unexpected token 'if'. // Set> set61 = {if (oracle("foo")) if (oracle()) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:43:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:58:68: Error: Unexpected token '...'. +// Map> map61 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:58:54: Error: Unexpected token 'if'. +// Map> map61 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:58:35: Error: Unexpected token 'if'. +// Map> map61 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:59:29: Error: Unexpected token 'if'. // List> list70 = [if (oracle("foo")) []]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:44:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:60:27: Error: Unexpected token 'if'. // Set> set70 = {if (oracle("foo")) [], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:45:48: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:61:48: Error: Unexpected token 'if'. // List> list71 = [if (oracle("foo")) if (oracle()) []]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:45:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:61:29: Error: Unexpected token 'if'. // List> list71 = [if (oracle("foo")) if (oracle()) []]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:46:46: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:62:46: Error: Unexpected token 'if'. // Set> set71 = {if (oracle("foo")) if (oracle()) [], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:46:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:62:27: Error: Unexpected token 'if'. // Set> set71 = {if (oracle("foo")) if (oracle()) [], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:47:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:63:17: Error: Unexpected token 'if'. // var list80 = [if (oracle("foo")) 42 else 3.14]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:48:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:64:16: Error: Unexpected token 'if'. // var set80 = {if (oracle("foo")) 42 else 3.14, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:49:36: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:65:16: Error: Unexpected token 'if'. +// var map80 = {if (oracle("foo")) "bar": 42 else "bar": 3.14, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:66:36: Error: Unexpected token '...'. // var list81 = [if (oracle("foo")) ...listInt else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:49:52: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:66:52: Error: Unexpected token '...'. // var list81 = [if (oracle("foo")) ...listInt else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:49:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:66:17: Error: Unexpected token 'if'. // var list81 = [if (oracle("foo")) ...listInt else ...listDouble]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:50:35: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:67:35: Error: Unexpected token '...'. // var set81 = {if (oracle("foo")) ...listInt else ...listDouble, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:50:51: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:67:51: Error: Unexpected token '...'. // var set81 = {if (oracle("foo")) ...listInt else ...listDouble, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:50:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:67:16: Error: Unexpected token 'if'. // var set81 = {if (oracle("foo")) ...listInt else ...listDouble, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:51:36: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:68:35: Error: Unexpected token '...'. +// var map81 = {if (oracle("foo")) ...mapToInt else ...mapToDouble, null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:68:52: Error: Unexpected token '...'. +// var map81 = {if (oracle("foo")) ...mapToInt else ...mapToDouble, null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:68:16: Error: Unexpected token 'if'. +// var map81 = {if (oracle("foo")) ...mapToInt else ...mapToDouble, null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:69:36: Error: Unexpected token '...'. // var list82 = [if (oracle("foo")) ...listInt else ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:51:52: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:69:52: Error: Unexpected token '...'. // var list82 = [if (oracle("foo")) ...listInt else ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:51:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:69:17: Error: Unexpected token 'if'. // var list82 = [if (oracle("foo")) ...listInt else ...dynVar]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:52:35: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:70:35: Error: Unexpected token '...'. // var set82 = {if (oracle("foo")) ...listInt else ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:52:51: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:70:51: Error: Unexpected token '...'. // var set82 = {if (oracle("foo")) ...listInt else ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:52:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:70:16: Error: Unexpected token 'if'. // var set82 = {if (oracle("foo")) ...listInt else ...dynVar, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:53:44: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:71:35: Error: Unexpected token '...'. +// var map82 = {if (oracle("foo")) ...mapToInt else ...dynVar, null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:71:52: Error: Unexpected token '...'. +// var map82 = {if (oracle("foo")) ...mapToInt else ...dynVar, null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:71:16: Error: Unexpected token 'if'. +// var map82 = {if (oracle("foo")) ...mapToInt else ...dynVar, null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:72:44: Error: Unexpected token '...'. // var list83 = [if (oracle("foo")) 42 else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:53:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:72:17: Error: Unexpected token 'if'. // var list83 = [if (oracle("foo")) 42 else ...listDouble]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:54:35: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:73:35: Error: Unexpected token '...'. // var set83 = {if (oracle("foo")) ...listInt else 3.14, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:54:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:73:16: Error: Unexpected token 'if'. // var set83 = {if (oracle("foo")) ...listInt else 3.14, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:55:23: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:74:35: Error: Unexpected token '...'. +// var map83 = {if (oracle("foo")) ...mapToInt else 3.14, null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:74:16: Error: Unexpected token 'if'. +// var map83 = {if (oracle("foo")) ...mapToInt else 3.14, null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:75:23: Error: Unexpected token 'if'. // List list90 = [if (oracle("foo")) dynVar]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:56:21: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:76:21: Error: Unexpected token 'if'. // Set set90 = {if (oracle("foo")) dynVar, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:57:42: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:77:29: Error: Unexpected token 'if'. +// Map map90 = {if (oracle("foo")) "bar": dynVar, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:78:42: Error: Unexpected token '...'. // List list91 = [if (oracle("foo")) ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:57:23: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:78:23: Error: Unexpected token 'if'. // List list91 = [if (oracle("foo")) ...dynVar]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:58:40: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:79:40: Error: Unexpected token '...'. // Set set91 = {if (oracle("foo")) ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:58:21: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:79:21: Error: Unexpected token 'if'. // Set set91 = {if (oracle("foo")) ...dynVar, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:62:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:80:48: Error: Unexpected token '...'. +// Map map91 = {if (oracle("foo")) ...dynVar, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:80:29: Error: Unexpected token 'if'. +// Map map91 = {if (oracle("foo")) ...dynVar, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:84:9: Error: Unexpected token 'if'. // [if (oracle("foo")) "bar"]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:63:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:85:9: Error: Unexpected token 'if'. // {if (oracle("foo")) "bar", null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:64:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:86:17: Error: Unexpected token 'if'. +// {if (oracle("foo")) "bar": "bar", "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:87:28: Error: Unexpected token '...'. // [if (oracle("foo")) ...["bar"]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:64:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:87:9: Error: Unexpected token 'if'. // [if (oracle("foo")) ...["bar"]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:65:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:88:28: Error: Unexpected token '...'. // {if (oracle("foo")) ...["bar"], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:65:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:88:9: Error: Unexpected token 'if'. // {if (oracle("foo")) ...["bar"], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:66:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:89:36: Error: Unexpected token '...'. +// {if (oracle("foo")) ...{"bar": "bar"}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:89:17: Error: Unexpected token 'if'. +// {if (oracle("foo")) ...{"bar": "bar"}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:90:28: Error: Unexpected token '...'. // [if (oracle("foo")) ...map]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:66:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:90:9: Error: Unexpected token 'if'. // [if (oracle("foo")) ...map]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:67:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:91:28: Error: Unexpected token '...'. // {if (oracle("foo")) ...map, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:67:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:91:9: Error: Unexpected token 'if'. // {if (oracle("foo")) ...map, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:68:12: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:92:36: Error: Unexpected token '...'. +// {if (oracle("foo")) ...["bar"], "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:92:17: Error: Unexpected token 'if'. +// {if (oracle("foo")) ...["bar"], "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:93:12: Error: Unexpected token 'if'. // [if (oracle("foo")) 42 else 3.14]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:69:12: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:94:12: Error: Unexpected token 'if'. // {if (oracle("foo")) 42 else 3.14, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:70:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:95:20: Error: Unexpected token 'if'. +// {if (oracle("foo")) "bar": 42 else "baz": 3.14, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:96:28: Error: Unexpected token '...'. // [if (oracle("foo")) ...map else 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:70:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:96:9: Error: Unexpected token 'if'. // [if (oracle("foo")) ...map else 42]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:71:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:97:28: Error: Unexpected token '...'. // {if (oracle("foo")) ...map else 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:71:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:97:9: Error: Unexpected token 'if'. // {if (oracle("foo")) ...map else 42, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:72:36: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:98:36: Error: Unexpected token '...'. +// {if (oracle("foo")) ...[42] else {"bar": 42}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:98:17: Error: Unexpected token 'if'. +// {if (oracle("foo")) ...[42] else {"bar": 42}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:99:36: Error: Unexpected token '...'. // [if (oracle("foo")) 42 else ...map]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:72:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:99:9: Error: Unexpected token 'if'. // [if (oracle("foo")) 42 else ...map]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:73:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:100:28: Error: Unexpected token '...'. // {if (oracle("foo")) ...map else 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:73:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:100:9: Error: Unexpected token 'if'. // {if (oracle("foo")) ...map else 42, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:78:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:101:53: Error: Unexpected token '...'. +// {if (oracle("foo")) {"bar": 42} else ...[42], "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:101:17: Error: Unexpected token 'if'. +// {if (oracle("foo")) {"bar": 42} else ...[42], "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:106:17: Error: Unexpected token 'for'. // var list10 = [for (int i = 0; oracle("foo"); i++) 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:79:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:107:16: Error: Unexpected token 'for'. // var set10 = {for (int i = 0; oracle("foo"); i++) 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:80:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:108:17: Error: Unexpected token 'for'. // var list11 = [for (int i = 0; oracle("foo"); i++) dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:81:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:109:16: Error: Unexpected token 'for'. // var set11 = {for (int i = 0; oracle("foo"); i++) dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:82:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:110:17: Error: Unexpected token 'for'. // var list12 = [for (int i = 0; oracle("foo"); i++) [42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:83:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:111:16: Error: Unexpected token 'for'. // var set12 = {for (int i = 0; oracle("foo"); i++) [42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:84:53: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:112:53: Error: Unexpected token '...'. // var list20 = [for (int i = 0; oracle("foo"); i++) ...[42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:84:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:112:17: Error: Unexpected token 'for'. // var list20 = [for (int i = 0; oracle("foo"); i++) ...[42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:85:52: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:113:52: Error: Unexpected token '...'. // var set20 = {for (int i = 0; oracle("foo"); i++) ...[42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:85:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:113:16: Error: Unexpected token 'for'. // var set20 = {for (int i = 0; oracle("foo"); i++) ...[42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:86:53: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:114:53: Error: Unexpected token '...'. // var list21 = [for (int i = 0; oracle("foo"); i++) ...[dynVar]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:86:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:114:17: Error: Unexpected token 'for'. // var list21 = [for (int i = 0; oracle("foo"); i++) ...[dynVar]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:87:52: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:115:52: Error: Unexpected token '...'. // var set21 = {for (int i = 0; oracle("foo"); i++) ...[dynVar], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:87:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:115:16: Error: Unexpected token 'for'. // var set21 = {for (int i = 0; oracle("foo"); i++) ...[dynVar], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:88:53: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:116:53: Error: Unexpected token '...'. // var list22 = [for (int i = 0; oracle("foo"); i++) ...[[42]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:88:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:116:17: Error: Unexpected token 'for'. // var list22 = [for (int i = 0; oracle("foo"); i++) ...[[42]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:89:52: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:117:52: Error: Unexpected token '...'. // var set22 = {for (int i = 0; oracle("foo"); i++) ...[[42]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:89:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:117:16: Error: Unexpected token 'for'. // var set22 = {for (int i = 0; oracle("foo"); i++) ...[[42]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:90:67: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:118:67: Error: Unexpected token '...'. // var list30 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:90:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:118:53: Error: Unexpected token 'if'. // var list30 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:90:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:118:17: Error: Unexpected token 'for'. // var list30 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:91:66: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:119:66: Error: Unexpected token '...'. // var set30 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:91:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:119:52: Error: Unexpected token 'if'. // var set30 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:91:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:119:16: Error: Unexpected token 'for'. // var set30 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:92:67: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:120:67: Error: Unexpected token '...'. // var list31 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:92:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:120:53: Error: Unexpected token 'if'. // var list31 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:92:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:120:17: Error: Unexpected token 'for'. // var list31 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:93:66: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:121:66: Error: Unexpected token '...'. // var set31 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:93:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:121:52: Error: Unexpected token 'if'. // var set31 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:93:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:121:16: Error: Unexpected token 'for'. // var set31 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:94:67: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:122:67: Error: Unexpected token '...'. // var list33 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:94:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:122:53: Error: Unexpected token 'if'. // var list33 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:94:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:122:17: Error: Unexpected token 'for'. // var list33 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:95:66: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:123:66: Error: Unexpected token '...'. // var set33 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:95:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:123:52: Error: Unexpected token 'if'. // var set33 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:95:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:123:16: Error: Unexpected token 'for'. // var set33 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:96:65: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:124:65: Error: Unexpected token '...'. // List> list40 = [for (int i = 0; oracle("foo"); i++) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:96:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:124:29: Error: Unexpected token 'for'. // List> list40 = [for (int i = 0; oracle("foo"); i++) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:97:63: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:125:63: Error: Unexpected token '...'. // Set> set40 = {for (int i = 0; oracle("foo"); i++) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:97:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:125:27: Error: Unexpected token 'for'. // Set> set40 = {for (int i = 0; oracle("foo"); i++) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:98:65: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:126:65: Error: Unexpected token '...'. // List> list41 = [for (int i = 0; oracle("foo"); i++) ...{[]}]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:98:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:126:29: Error: Unexpected token 'for'. // List> list41 = [for (int i = 0; oracle("foo"); i++) ...{[]}]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:99:63: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:127:63: Error: Unexpected token '...'. // Set> set41 = {for (int i = 0; oracle("foo"); i++) ...{[]}, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:99:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:127:27: Error: Unexpected token 'for'. // Set> set41 = {for (int i = 0; oracle("foo"); i++) ...{[]}, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:100:79: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:128:79: Error: Unexpected token '...'. // List> list42 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:100:65: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:128:65: Error: Unexpected token 'if'. // List> list42 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:100:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:128:29: Error: Unexpected token 'for'. // List> list42 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:101:77: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:129:77: Error: Unexpected token '...'. // Set> set42 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:101:63: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:129:63: Error: Unexpected token 'if'. // Set> set42 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:101:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:129:27: Error: Unexpected token 'for'. // Set> set42 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:102:59: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:130:59: Error: Unexpected token '...'. // List list50 = [for (int i = 0; oracle("foo"); i++) ...[]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:102:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:130:23: Error: Unexpected token 'for'. // List list50 = [for (int i = 0; oracle("foo"); i++) ...[]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:103:57: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:131:57: Error: Unexpected token '...'. // Set set50 = {for (int i = 0; oracle("foo"); i++) ...[], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:103:21: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:131:21: Error: Unexpected token 'for'. // Set set50 = {for (int i = 0; oracle("foo"); i++) ...[], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:104:59: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:132:59: Error: Unexpected token '...'. // List list51 = [for (int i = 0; oracle("foo"); i++) ...{}]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:104:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:132:23: Error: Unexpected token 'for'. // List list51 = [for (int i = 0; oracle("foo"); i++) ...{}]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:105:57: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:133:57: Error: Unexpected token '...'. // Set set51 = {for (int i = 0; oracle("foo"); i++) ...{}, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:105:21: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:133:21: Error: Unexpected token 'for'. // Set set51 = {for (int i = 0; oracle("foo"); i++) ...{}, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:106:73: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:134:73: Error: Unexpected token '...'. // List list52 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:106:59: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:134:59: Error: Unexpected token 'if'. // List list52 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:106:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:134:23: Error: Unexpected token 'for'. // List list52 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:107:71: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:135:71: Error: Unexpected token '...'. // Set set52 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:107:57: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:135:57: Error: Unexpected token 'if'. // Set set52 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:107:21: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:135:21: Error: Unexpected token 'for'. // Set set52 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:108:65: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:136:65: Error: Unexpected token '...'. // List> list60 = [for (int i = 0; oracle("foo"); i++) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:108:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:136:29: Error: Unexpected token 'for'. // List> list60 = [for (int i = 0; oracle("foo"); i++) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:109:63: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:137:63: Error: Unexpected token '...'. // Set> set60 = {for (int i = 0; oracle("foo"); i++) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:109:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:137:27: Error: Unexpected token 'for'. // Set> set60 = {for (int i = 0; oracle("foo"); i++) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:110:79: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:138:79: Error: Unexpected token '...'. // List> list61 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:110:65: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:138:65: Error: Unexpected token 'if'. // List> list61 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:110:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:138:29: Error: Unexpected token 'for'. // List> list61 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:111:77: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:139:77: Error: Unexpected token '...'. // Set> set61 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:111:63: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:139:63: Error: Unexpected token 'if'. // Set> set61 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:111:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:139:27: Error: Unexpected token 'for'. // Set> set61 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:112:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:140:29: Error: Unexpected token 'for'. // List> list70 = [for (int i = 0; oracle("foo"); i++) []]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:113:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:141:27: Error: Unexpected token 'for'. // Set> set70 = {for (int i = 0; oracle("foo"); i++) [], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:114:65: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:142:65: Error: Unexpected token 'if'. // List> list71 = [for (int i = 0; oracle("foo"); i++) if (oracle()) []]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:114:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:142:29: Error: Unexpected token 'for'. // List> list71 = [for (int i = 0; oracle("foo"); i++) if (oracle()) []]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:115:63: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:143:63: Error: Unexpected token 'if'. // Set> set71 = {for (int i = 0; oracle("foo"); i++) if (oracle()) [], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:115:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:143:27: Error: Unexpected token 'for'. // Set> set71 = {for (int i = 0; oracle("foo"); i++) if (oracle()) [], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:116:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:144:53: Error: Unexpected token 'if'. // var list80 = [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:116:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:144:17: Error: Unexpected token 'for'. // var list80 = [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:117:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:145:52: Error: Unexpected token 'if'. // var set80 = {for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:117:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:145:16: Error: Unexpected token 'for'. // var set80 = {for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:118:67: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:146:67: Error: Unexpected token '...'. // var list81 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:118:83: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:146:83: Error: Unexpected token '...'. // var list81 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:118:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:146:53: Error: Unexpected token 'if'. // var list81 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:118:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:146:17: Error: Unexpected token 'for'. // var list81 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:119:66: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:147:66: Error: Unexpected token '...'. // var set81 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:119:82: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:147:82: Error: Unexpected token '...'. // var set81 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:119:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:147:52: Error: Unexpected token 'if'. // var set81 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:119:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:147:16: Error: Unexpected token 'for'. // var set81 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:120:67: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:148:67: Error: Unexpected token '...'. // var list82 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:120:83: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:148:83: Error: Unexpected token '...'. // var list82 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:120:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:148:53: Error: Unexpected token 'if'. // var list82 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:120:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:148:17: Error: Unexpected token 'for'. // var list82 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:121:66: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:149:66: Error: Unexpected token '...'. // var set82 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:121:82: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:149:82: Error: Unexpected token '...'. // var set82 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:121:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:149:52: Error: Unexpected token 'if'. // var set82 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:121:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:149:16: Error: Unexpected token 'for'. // var set82 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:122:75: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:150:75: Error: Unexpected token '...'. // var list83 = [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:122:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:150:53: Error: Unexpected token 'if'. // var list83 = [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...listDouble]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:122:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:150:17: Error: Unexpected token 'for'. // var list83 = [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:123:66: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:151:66: Error: Unexpected token '...'. // var set83 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else 3.14, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:123:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:151:52: Error: Unexpected token 'if'. // var set83 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else 3.14, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:123:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:151:16: Error: Unexpected token 'for'. // var set83 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else 3.14, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:124:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:152:23: Error: Unexpected token 'for'. // List list90 = [for (int i = 0; oracle("foo"); i++) dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:125:21: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:153:21: Error: Unexpected token 'for'. // Set set90 = {for (int i = 0; oracle("foo"); i++) dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:126:59: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:154:59: Error: Unexpected token '...'. // List list91 = [for (int i = 0; oracle("foo"); i++) ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:126:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:154:23: Error: Unexpected token 'for'. // List list91 = [for (int i = 0; oracle("foo"); i++) ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:127:57: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:155:57: Error: Unexpected token '...'. // Set set91 = {for (int i = 0; oracle("foo"); i++) ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:127:21: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:155:21: Error: Unexpected token 'for'. // Set set91 = {for (int i = 0; oracle("foo"); i++) ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:128:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:156:29: Error: Unexpected token 'for'. // List list100 = [for (index = 0; oracle("foo"); index++) 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:129:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:157:27: Error: Unexpected token 'for'. // Set set100 = {for (index = 0; oracle("foo"); index++) 42}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:130:18: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:158:18: Error: Unexpected token 'for'. // var list110 = [for (var i in [1, 2, 3]) i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:131:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:159:17: Error: Unexpected token 'for'. // var set110 = {for (var i in [1, 2, 3]) i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:132:24: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:160:24: Error: Unexpected token 'for'. // List list120 = [for (var i in dynVar) i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:133:22: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:161:22: Error: Unexpected token 'for'. // Set set120 = {for (var i in dynVar) i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:137:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:165:9: Error: Unexpected token 'for'. // [for (int i = 0; oracle("foo"); i++) "bar"]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:138:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:166:9: Error: Unexpected token 'for'. // {for (int i = 0; oracle("foo"); i++) "bar", null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:139:45: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:167:45: Error: Unexpected token '...'. // [for (int i = 0; oracle("foo"); i++) ...["bar"]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:139:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:167:9: Error: Unexpected token 'for'. // [for (int i = 0; oracle("foo"); i++) ...["bar"]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:140:45: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:168:45: Error: Unexpected token '...'. // {for (int i = 0; oracle("foo"); i++) ...["bar"], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:140:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:168:9: Error: Unexpected token 'for'. // {for (int i = 0; oracle("foo"); i++) ...["bar"], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:141:45: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:169:45: Error: Unexpected token '...'. // [for (int i = 0; oracle("foo"); i++) ...map]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:141:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:169:9: Error: Unexpected token 'for'. // [for (int i = 0; oracle("foo"); i++) ...map]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:142:45: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:170:45: Error: Unexpected token '...'. // {for (int i = 0; oracle("foo"); i++) ...map, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:142:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:170:9: Error: Unexpected token 'for'. // {for (int i = 0; oracle("foo"); i++) ...map, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:143:48: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:171:48: Error: Unexpected token 'if'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:143:12: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:171:12: Error: Unexpected token 'for'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:144:48: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:172:48: Error: Unexpected token 'if'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:144:12: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:172:12: Error: Unexpected token 'for'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:145:59: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:173:59: Error: Unexpected token '...'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:145:45: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:173:45: Error: Unexpected token 'if'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:145:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:173:9: Error: Unexpected token 'for'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:146:59: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:174:59: Error: Unexpected token '...'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:146:45: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:174:45: Error: Unexpected token 'if'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:146:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:174:9: Error: Unexpected token 'for'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:147:67: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:175:67: Error: Unexpected token '...'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...map]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:147:45: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:175:45: Error: Unexpected token 'if'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...map]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:147:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:175:9: Error: Unexpected token 'for'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...map]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:148:59: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:176:59: Error: Unexpected token '...'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:148:45: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:176:45: Error: Unexpected token 'if'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:148:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:176:9: Error: Unexpected token 'for'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:151:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:179:9: Error: Unexpected token 'for'. // [for (i in [1]) i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:152:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:180:9: Error: Unexpected token 'for'. // {for (i in [1]) i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:154:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:182:17: Error: Unexpected token 'for'. // var list10 = [for (var i in "not iterable") i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:155:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:183:16: Error: Unexpected token 'for'. // var set10 = {for (var i in "not iterable") i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:156:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:184:17: Error: Unexpected token 'for'. // var list20 = [for (int i in ["not", "int"]) i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:157:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:185:16: Error: Unexpected token 'for'. // var set20 = {for (int i in ["not", "int"]) i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:158:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:186:23: Error: Unexpected token 'for'. // var list30 = [await for (var i in "not stream") i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:159:22: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:187:22: Error: Unexpected token 'for'. // var set30 = {await for (var i in "not stream") i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:160:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:188:23: Error: Unexpected token 'for'. // var list40 = [await for (int i in Stream.fromIterable(["not", "int"])) i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:161:22: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:189:22: Error: Unexpected token 'for'. // var set40 = {await for (int i in Stream.fromIterable(["not", "int"])) i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:162:17: Error: The keyword 'await' isn't allowed for a normal 'for' statement. +// pkg/front_end/testcases/control_flow_collection_inference.dart:190:17: Error: The keyword 'await' isn't allowed for a normal 'for' statement. // Try removing the keyword, or use a for-each statement. // var list50 = [await for (;;) 42]; // ^^^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:162:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:190:23: Error: Unexpected token 'for'. // var list50 = [await for (;;) 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:163:16: Error: The keyword 'await' isn't allowed for a normal 'for' statement. +// pkg/front_end/testcases/control_flow_collection_inference.dart:191:16: Error: The keyword 'await' isn't allowed for a normal 'for' statement. // Try removing the keyword, or use a for-each statement. // var set50 = {await for (;;) 42, null}; // ^^^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:163:22: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:191:22: Error: Unexpected token 'for'. // var set50 = {await for (;;) 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:164:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:192:17: Error: Unexpected token 'for'. // var list60 = [for (; "not bool";) 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:165:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:193:16: Error: Unexpected token 'for'. // var set60 = {for (; "not bool";) 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:169:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:197:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. // Try marking the function body with either 'async' or 'async*', or removing the 'await' before the for loop. // [await for (int i in stream) i]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:169:15: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:197:15: Error: Unexpected token 'for'. // [await for (int i in stream) i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:170:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:198:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. // Try marking the function body with either 'async' or 'async*', or removing the 'await' before the for loop. // {await for (int i in stream) i}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:170:15: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:198:15: Error: Unexpected token 'for'. // {await for (int i in stream) i}; // ^^^ // @@ -1164,71 +1388,98 @@ import "dart:async" as asy; static method oracle([self::oracle::T t = null]) → dynamic return true; -static method testIfElement(dynamic dynVar, core::List listInt, core::List listDouble) → dynamic { +static method testIfElement(dynamic dynVar, core::List listInt, core::List listDouble, core::Map mapToInt, core::Map mapToDouble) → dynamic { dynamic list10 = []; dynamic set10 = {null}; + dynamic map10 = {"baz": null}; dynamic list11 = []; dynamic set11 = {null}; + dynamic map11 = {"baz": null}; dynamic list12 = []; dynamic set12 = {null}; + dynamic map12 = {"baz": null}; dynamic list20 = []; dynamic set20 = {null}; + dynamic map20 = {"baz": null}; dynamic list21 = []; dynamic set21 = {null}; + dynamic map21 = {"baz": null}; dynamic list22 = []; dynamic set22 = {null}; + dynamic map22 = {"baz": null}; dynamic list30 = []; dynamic set30 = {null}; + dynamic map30 = {"baz": null}; dynamic list31 = []; dynamic set31 = {null}; + dynamic map31 = {"baz": null}; dynamic list33 = []; dynamic set33 = {null}; + dynamic map33 = {"baz": null}; core::List> list40 = []; core::Set> set40 = {null}; + core::Map> map40 = {"baz": null}; core::List> list41 = []; core::Set> set41 = {null}; core::List> list42 = []; core::Set> set42 = {null}; + core::Map> map42 = {"baz": null}; core::List list50 = []; core::Set set50 = {null}; + core::Map map50 = {"baz": null}; core::List list51 = []; core::Set set51 = {null}; core::List list52 = []; core::Set set52 = {null}; + core::Map map52 = {"baz": null}; core::List> list60 = []; core::Set> set60 = {null}; + core::Map> map60 = {"baz": null}; core::List> list61 = []; core::Set> set61 = {null}; + core::Map> map61 = {"baz": null}; core::List> list70 = []; core::Set> set70 = {null}; core::List> list71 = []; core::Set> set71 = {null}; dynamic list80 = []; dynamic set80 = {null}; + dynamic map80 = {"baz": null}; dynamic list81 = []; dynamic set81 = {null}; + dynamic map81 = {null}; dynamic list82 = []; dynamic set82 = {null}; + dynamic map82 = {null}; dynamic list83 = []; dynamic set83 = {null}; + dynamic map83 = {null}; core::List list90 = []; core::Set set90 = {null}; + core::Map map90 = {"baz": null}; core::List list91 = []; core::Set set91 = {null}; + core::Map map91 = {"baz": null}; } static method testIfElementErrors(core::Map map) → dynamic { []; {null}; + {"baz": null}; []; {null}; + {"baz": null}; []; {null}; + {"baz": null}; []; {null}; + {"baz": null}; []; {null}; + {"baz": null}; []; {null}; + {"baz": null}; } static method testForElement(dynamic dynVar, core::List listInt, core::List listDouble, core::int index) → dynamic { dynamic list10 = []; diff --git a/pkg/front_end/testcases/control_flow_collection_inference.dart.legacy.transformed.expect b/pkg/front_end/testcases/control_flow_collection_inference.dart.legacy.transformed.expect index 3f29426ebeca..7658edf16ccb 100644 --- a/pkg/front_end/testcases/control_flow_collection_inference.dart.legacy.transformed.expect +++ b/pkg/front_end/testcases/control_flow_collection_inference.dart.legacy.transformed.expect @@ -2,1159 +2,1383 @@ library; // // Problems in library: // -// pkg/front_end/testcases/control_flow_collection_inference.dart:9:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:10:17: Error: Unexpected token 'if'. // var list10 = [if (oracle("foo")) 42]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:10:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:11:16: Error: Unexpected token 'if'. // var set10 = {if (oracle("foo")) 42, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:11:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:12:16: Error: Unexpected token 'if'. +// var map10 = {if (oracle("foo")) "bar": 42, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:13:17: Error: Unexpected token 'if'. // var list11 = [if (oracle("foo")) dynVar]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:12:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:14:16: Error: Unexpected token 'if'. // var set11 = {if (oracle("foo")) dynVar, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:13:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:15:16: Error: Unexpected token 'if'. +// var map11 = {if (oracle("foo")) "bar": dynVar, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:16:17: Error: Unexpected token 'if'. // var list12 = [if (oracle("foo")) [42]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:14:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:17:16: Error: Unexpected token 'if'. // var set12 = {if (oracle("foo")) [42], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:15:36: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:18:16: Error: Unexpected token 'if'. +// var map12 = {if (oracle("foo")) "bar": [42], "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:19:36: Error: Unexpected token '...'. // var list20 = [if (oracle("foo")) ...[42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:15:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:19:17: Error: Unexpected token 'if'. // var list20 = [if (oracle("foo")) ...[42]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:16:35: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:20:35: Error: Unexpected token '...'. // var set20 = {if (oracle("foo")) ...[42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:16:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:20:16: Error: Unexpected token 'if'. // var set20 = {if (oracle("foo")) ...[42], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:17:36: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:21:35: Error: Unexpected token '...'. +// var map20 = {if (oracle("foo")) ...{"bar": 42}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:21:16: Error: Unexpected token 'if'. +// var map20 = {if (oracle("foo")) ...{"bar": 42}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:22:36: Error: Unexpected token '...'. // var list21 = [if (oracle("foo")) ...[dynVar]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:17:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:22:17: Error: Unexpected token 'if'. // var list21 = [if (oracle("foo")) ...[dynVar]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:18:35: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:23:35: Error: Unexpected token '...'. // var set21 = {if (oracle("foo")) ...[dynVar], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:18:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:23:16: Error: Unexpected token 'if'. // var set21 = {if (oracle("foo")) ...[dynVar], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:19:36: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:24:35: Error: Unexpected token '...'. +// var map21 = {if (oracle("foo")) ...{"bar": dynVar}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:24:16: Error: Unexpected token 'if'. +// var map21 = {if (oracle("foo")) ...{"bar": dynVar}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:25:36: Error: Unexpected token '...'. // var list22 = [if (oracle("foo")) ...[[42]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:19:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:25:17: Error: Unexpected token 'if'. // var list22 = [if (oracle("foo")) ...[[42]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:20:35: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:26:35: Error: Unexpected token '...'. // var set22 = {if (oracle("foo")) ...[[42]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:20:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:26:16: Error: Unexpected token 'if'. // var set22 = {if (oracle("foo")) ...[[42]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:21:50: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:27:35: Error: Unexpected token '...'. +// var map22 = {if (oracle("foo")) ...{"bar": [42]}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:27:16: Error: Unexpected token 'if'. +// var map22 = {if (oracle("foo")) ...{"bar": [42]}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:28:50: Error: Unexpected token '...'. // var list30 = [if (oracle("foo")) if (oracle()) ...[42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:21:36: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:28:36: Error: Unexpected token 'if'. // var list30 = [if (oracle("foo")) if (oracle()) ...[42]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:21:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:28:17: Error: Unexpected token 'if'. // var list30 = [if (oracle("foo")) if (oracle()) ...[42]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:22:49: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:29:49: Error: Unexpected token '...'. // var set30 = {if (oracle("foo")) if (oracle()) ...[42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:22:35: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:29:35: Error: Unexpected token 'if'. // var set30 = {if (oracle("foo")) if (oracle()) ...[42], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:22:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:29:16: Error: Unexpected token 'if'. // var set30 = {if (oracle("foo")) if (oracle()) ...[42], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:23:50: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:30:49: Error: Unexpected token '...'. +// var map30 = {if (oracle("foo")) if (oracle()) ...{"bar": 42}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:30:35: Error: Unexpected token 'if'. +// var map30 = {if (oracle("foo")) if (oracle()) ...{"bar": 42}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:30:16: Error: Unexpected token 'if'. +// var map30 = {if (oracle("foo")) if (oracle()) ...{"bar": 42}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:31:50: Error: Unexpected token '...'. // var list31 = [if (oracle("foo")) if (oracle()) ...[dynVar]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:23:36: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:31:36: Error: Unexpected token 'if'. // var list31 = [if (oracle("foo")) if (oracle()) ...[dynVar]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:23:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:31:17: Error: Unexpected token 'if'. // var list31 = [if (oracle("foo")) if (oracle()) ...[dynVar]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:24:49: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:32:49: Error: Unexpected token '...'. // var set31 = {if (oracle("foo")) if (oracle()) ...[dynVar], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:24:35: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:32:35: Error: Unexpected token 'if'. // var set31 = {if (oracle("foo")) if (oracle()) ...[dynVar], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:24:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:32:16: Error: Unexpected token 'if'. // var set31 = {if (oracle("foo")) if (oracle()) ...[dynVar], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:25:50: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:33:49: Error: Unexpected token '...'. +// var map31 = {if (oracle("foo")) if (oracle()) ...{"bar": dynVar}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:33:35: Error: Unexpected token 'if'. +// var map31 = {if (oracle("foo")) if (oracle()) ...{"bar": dynVar}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:33:16: Error: Unexpected token 'if'. +// var map31 = {if (oracle("foo")) if (oracle()) ...{"bar": dynVar}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:34:50: Error: Unexpected token '...'. // var list33 = [if (oracle("foo")) if (oracle()) ...[[42]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:25:36: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:34:36: Error: Unexpected token 'if'. // var list33 = [if (oracle("foo")) if (oracle()) ...[[42]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:25:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:34:17: Error: Unexpected token 'if'. // var list33 = [if (oracle("foo")) if (oracle()) ...[[42]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:26:49: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:35:49: Error: Unexpected token '...'. // var set33 = {if (oracle("foo")) if (oracle()) ...[[42]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:26:35: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:35:35: Error: Unexpected token 'if'. // var set33 = {if (oracle("foo")) if (oracle()) ...[[42]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:26:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:35:16: Error: Unexpected token 'if'. // var set33 = {if (oracle("foo")) if (oracle()) ...[[42]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:27:48: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:36:49: Error: Unexpected token '...'. +// var map33 = {if (oracle("foo")) if (oracle()) ...{"bar": [42]}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:36:35: Error: Unexpected token 'if'. +// var map33 = {if (oracle("foo")) if (oracle()) ...{"bar": [42]}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:36:16: Error: Unexpected token 'if'. +// var map33 = {if (oracle("foo")) if (oracle()) ...{"bar": [42]}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:37:48: Error: Unexpected token '...'. // List> list40 = [if (oracle("foo")) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:27:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:37:29: Error: Unexpected token 'if'. // List> list40 = [if (oracle("foo")) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:28:46: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:38:46: Error: Unexpected token '...'. // Set> set40 = {if (oracle("foo")) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:28:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:38:27: Error: Unexpected token 'if'. // Set> set40 = {if (oracle("foo")) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:29:48: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:39:54: Error: Unexpected token '...'. +// Map> map40 = {if (oracle("foo")) ...{"bar", []}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:39:35: Error: Unexpected token 'if'. +// Map> map40 = {if (oracle("foo")) ...{"bar", []}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:40:48: Error: Unexpected token '...'. // List> list41 = [if (oracle("foo")) ...{[]}]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:29:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:40:29: Error: Unexpected token 'if'. // List> list41 = [if (oracle("foo")) ...{[]}]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:30:46: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:41:46: Error: Unexpected token '...'. // Set> set41 = {if (oracle("foo")) ...{[]}, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:30:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:41:27: Error: Unexpected token 'if'. // Set> set41 = {if (oracle("foo")) ...{[]}, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:31:62: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:42:62: Error: Unexpected token '...'. // List> list42 = [if (oracle("foo")) if (oracle()) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:31:48: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:42:48: Error: Unexpected token 'if'. // List> list42 = [if (oracle("foo")) if (oracle()) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:31:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:42:29: Error: Unexpected token 'if'. // List> list42 = [if (oracle("foo")) if (oracle()) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:32:60: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:43:60: Error: Unexpected token '...'. // Set> set42 = {if (oracle("foo")) if (oracle()) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:32:46: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:43:46: Error: Unexpected token 'if'. // Set> set42 = {if (oracle("foo")) if (oracle()) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:32:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:43:27: Error: Unexpected token 'if'. // Set> set42 = {if (oracle("foo")) if (oracle()) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:33:42: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:44:68: Error: Unexpected token '...'. +// Map> map42 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:44:54: Error: Unexpected token 'if'. +// Map> map42 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:44:35: Error: Unexpected token 'if'. +// Map> map42 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:45:42: Error: Unexpected token '...'. // List list50 = [if (oracle("foo")) ...[]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:33:23: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:45:23: Error: Unexpected token 'if'. // List list50 = [if (oracle("foo")) ...[]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:34:40: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:46:40: Error: Unexpected token '...'. // Set set50 = {if (oracle("foo")) ...[], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:34:21: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:46:21: Error: Unexpected token 'if'. // Set set50 = {if (oracle("foo")) ...[], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:35:42: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:47:3: Warning: Expected 2 type arguments. +// Map map50 = {if (oracle("foo")) ...{}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:47:40: Error: Unexpected token '...'. +// Map map50 = {if (oracle("foo")) ...{}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:47:21: Error: Unexpected token 'if'. +// Map map50 = {if (oracle("foo")) ...{}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:48:42: Error: Unexpected token '...'. // List list51 = [if (oracle("foo")) ...{}]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:35:23: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:48:23: Error: Unexpected token 'if'. // List list51 = [if (oracle("foo")) ...{}]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:36:40: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:49:40: Error: Unexpected token '...'. // Set set51 = {if (oracle("foo")) ...{}, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:36:21: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:49:21: Error: Unexpected token 'if'. // Set set51 = {if (oracle("foo")) ...{}, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:37:56: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:50:56: Error: Unexpected token '...'. // List list52 = [if (oracle("foo")) if (oracle()) ...[]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:37:42: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:50:42: Error: Unexpected token 'if'. // List list52 = [if (oracle("foo")) if (oracle()) ...[]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:37:23: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:50:23: Error: Unexpected token 'if'. // List list52 = [if (oracle("foo")) if (oracle()) ...[]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:38:54: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:51:54: Error: Unexpected token '...'. // Set set52 = {if (oracle("foo")) if (oracle()) ...[], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:38:40: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:51:40: Error: Unexpected token 'if'. // Set set52 = {if (oracle("foo")) if (oracle()) ...[], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:38:21: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:51:21: Error: Unexpected token 'if'. // Set set52 = {if (oracle("foo")) if (oracle()) ...[], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:39:48: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:52:62: Error: Unexpected token '...'. +// Map map52 = {if (oracle("foo")) if (oracle()) ...{}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:52:48: Error: Unexpected token 'if'. +// Map map52 = {if (oracle("foo")) if (oracle()) ...{}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:52:29: Error: Unexpected token 'if'. +// Map map52 = {if (oracle("foo")) if (oracle()) ...{}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:53:48: Error: Unexpected token '...'. // List> list60 = [if (oracle("foo")) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:39:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:53:29: Error: Unexpected token 'if'. // List> list60 = [if (oracle("foo")) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:40:46: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:54:46: Error: Unexpected token '...'. // Set> set60 = {if (oracle("foo")) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:40:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:54:27: Error: Unexpected token 'if'. // Set> set60 = {if (oracle("foo")) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:41:62: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:55:54: Error: Unexpected token '...'. +// Map> map60 = {if (oracle("foo")) ...{"bar": []}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:55:35: Error: Unexpected token 'if'. +// Map> map60 = {if (oracle("foo")) ...{"bar": []}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:56:62: Error: Unexpected token '...'. // List> list61 = [if (oracle("foo")) if (oracle()) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:41:48: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:56:48: Error: Unexpected token 'if'. // List> list61 = [if (oracle("foo")) if (oracle()) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:41:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:56:29: Error: Unexpected token 'if'. // List> list61 = [if (oracle("foo")) if (oracle()) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:42:60: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:57:60: Error: Unexpected token '...'. // Set> set61 = {if (oracle("foo")) if (oracle()) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:42:46: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:57:46: Error: Unexpected token 'if'. // Set> set61 = {if (oracle("foo")) if (oracle()) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:42:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:57:27: Error: Unexpected token 'if'. // Set> set61 = {if (oracle("foo")) if (oracle()) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:43:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:58:68: Error: Unexpected token '...'. +// Map> map61 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:58:54: Error: Unexpected token 'if'. +// Map> map61 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:58:35: Error: Unexpected token 'if'. +// Map> map61 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:59:29: Error: Unexpected token 'if'. // List> list70 = [if (oracle("foo")) []]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:44:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:60:27: Error: Unexpected token 'if'. // Set> set70 = {if (oracle("foo")) [], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:45:48: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:61:48: Error: Unexpected token 'if'. // List> list71 = [if (oracle("foo")) if (oracle()) []]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:45:29: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:61:29: Error: Unexpected token 'if'. // List> list71 = [if (oracle("foo")) if (oracle()) []]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:46:46: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:62:46: Error: Unexpected token 'if'. // Set> set71 = {if (oracle("foo")) if (oracle()) [], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:46:27: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:62:27: Error: Unexpected token 'if'. // Set> set71 = {if (oracle("foo")) if (oracle()) [], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:47:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:63:17: Error: Unexpected token 'if'. // var list80 = [if (oracle("foo")) 42 else 3.14]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:48:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:64:16: Error: Unexpected token 'if'. // var set80 = {if (oracle("foo")) 42 else 3.14, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:49:36: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:65:16: Error: Unexpected token 'if'. +// var map80 = {if (oracle("foo")) "bar": 42 else "bar": 3.14, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:66:36: Error: Unexpected token '...'. // var list81 = [if (oracle("foo")) ...listInt else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:49:52: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:66:52: Error: Unexpected token '...'. // var list81 = [if (oracle("foo")) ...listInt else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:49:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:66:17: Error: Unexpected token 'if'. // var list81 = [if (oracle("foo")) ...listInt else ...listDouble]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:50:35: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:67:35: Error: Unexpected token '...'. // var set81 = {if (oracle("foo")) ...listInt else ...listDouble, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:50:51: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:67:51: Error: Unexpected token '...'. // var set81 = {if (oracle("foo")) ...listInt else ...listDouble, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:50:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:67:16: Error: Unexpected token 'if'. // var set81 = {if (oracle("foo")) ...listInt else ...listDouble, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:51:36: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:68:35: Error: Unexpected token '...'. +// var map81 = {if (oracle("foo")) ...mapToInt else ...mapToDouble, null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:68:52: Error: Unexpected token '...'. +// var map81 = {if (oracle("foo")) ...mapToInt else ...mapToDouble, null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:68:16: Error: Unexpected token 'if'. +// var map81 = {if (oracle("foo")) ...mapToInt else ...mapToDouble, null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:69:36: Error: Unexpected token '...'. // var list82 = [if (oracle("foo")) ...listInt else ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:51:52: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:69:52: Error: Unexpected token '...'. // var list82 = [if (oracle("foo")) ...listInt else ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:51:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:69:17: Error: Unexpected token 'if'. // var list82 = [if (oracle("foo")) ...listInt else ...dynVar]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:52:35: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:70:35: Error: Unexpected token '...'. // var set82 = {if (oracle("foo")) ...listInt else ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:52:51: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:70:51: Error: Unexpected token '...'. // var set82 = {if (oracle("foo")) ...listInt else ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:52:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:70:16: Error: Unexpected token 'if'. // var set82 = {if (oracle("foo")) ...listInt else ...dynVar, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:53:44: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:71:35: Error: Unexpected token '...'. +// var map82 = {if (oracle("foo")) ...mapToInt else ...dynVar, null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:71:52: Error: Unexpected token '...'. +// var map82 = {if (oracle("foo")) ...mapToInt else ...dynVar, null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:71:16: Error: Unexpected token 'if'. +// var map82 = {if (oracle("foo")) ...mapToInt else ...dynVar, null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:72:44: Error: Unexpected token '...'. // var list83 = [if (oracle("foo")) 42 else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:53:17: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:72:17: Error: Unexpected token 'if'. // var list83 = [if (oracle("foo")) 42 else ...listDouble]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:54:35: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:73:35: Error: Unexpected token '...'. // var set83 = {if (oracle("foo")) ...listInt else 3.14, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:54:16: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:73:16: Error: Unexpected token 'if'. // var set83 = {if (oracle("foo")) ...listInt else 3.14, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:55:23: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:74:35: Error: Unexpected token '...'. +// var map83 = {if (oracle("foo")) ...mapToInt else 3.14, null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:74:16: Error: Unexpected token 'if'. +// var map83 = {if (oracle("foo")) ...mapToInt else 3.14, null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:75:23: Error: Unexpected token 'if'. // List list90 = [if (oracle("foo")) dynVar]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:56:21: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:76:21: Error: Unexpected token 'if'. // Set set90 = {if (oracle("foo")) dynVar, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:57:42: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:77:29: Error: Unexpected token 'if'. +// Map map90 = {if (oracle("foo")) "bar": dynVar, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:78:42: Error: Unexpected token '...'. // List list91 = [if (oracle("foo")) ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:57:23: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:78:23: Error: Unexpected token 'if'. // List list91 = [if (oracle("foo")) ...dynVar]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:58:40: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:79:40: Error: Unexpected token '...'. // Set set91 = {if (oracle("foo")) ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:58:21: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:79:21: Error: Unexpected token 'if'. // Set set91 = {if (oracle("foo")) ...dynVar, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:62:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:80:48: Error: Unexpected token '...'. +// Map map91 = {if (oracle("foo")) ...dynVar, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:80:29: Error: Unexpected token 'if'. +// Map map91 = {if (oracle("foo")) ...dynVar, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:84:9: Error: Unexpected token 'if'. // [if (oracle("foo")) "bar"]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:63:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:85:9: Error: Unexpected token 'if'. // {if (oracle("foo")) "bar", null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:64:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:86:17: Error: Unexpected token 'if'. +// {if (oracle("foo")) "bar": "bar", "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:87:28: Error: Unexpected token '...'. // [if (oracle("foo")) ...["bar"]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:64:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:87:9: Error: Unexpected token 'if'. // [if (oracle("foo")) ...["bar"]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:65:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:88:28: Error: Unexpected token '...'. // {if (oracle("foo")) ...["bar"], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:65:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:88:9: Error: Unexpected token 'if'. // {if (oracle("foo")) ...["bar"], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:66:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:89:36: Error: Unexpected token '...'. +// {if (oracle("foo")) ...{"bar": "bar"}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:89:17: Error: Unexpected token 'if'. +// {if (oracle("foo")) ...{"bar": "bar"}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:90:28: Error: Unexpected token '...'. // [if (oracle("foo")) ...map]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:66:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:90:9: Error: Unexpected token 'if'. // [if (oracle("foo")) ...map]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:67:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:91:28: Error: Unexpected token '...'. // {if (oracle("foo")) ...map, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:67:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:91:9: Error: Unexpected token 'if'. // {if (oracle("foo")) ...map, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:68:12: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:92:36: Error: Unexpected token '...'. +// {if (oracle("foo")) ...["bar"], "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:92:17: Error: Unexpected token 'if'. +// {if (oracle("foo")) ...["bar"], "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:93:12: Error: Unexpected token 'if'. // [if (oracle("foo")) 42 else 3.14]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:69:12: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:94:12: Error: Unexpected token 'if'. // {if (oracle("foo")) 42 else 3.14, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:70:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:95:20: Error: Unexpected token 'if'. +// {if (oracle("foo")) "bar": 42 else "baz": 3.14, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:96:28: Error: Unexpected token '...'. // [if (oracle("foo")) ...map else 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:70:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:96:9: Error: Unexpected token 'if'. // [if (oracle("foo")) ...map else 42]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:71:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:97:28: Error: Unexpected token '...'. // {if (oracle("foo")) ...map else 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:71:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:97:9: Error: Unexpected token 'if'. // {if (oracle("foo")) ...map else 42, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:72:36: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:98:36: Error: Unexpected token '...'. +// {if (oracle("foo")) ...[42] else {"bar": 42}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:98:17: Error: Unexpected token 'if'. +// {if (oracle("foo")) ...[42] else {"bar": 42}, "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:99:36: Error: Unexpected token '...'. // [if (oracle("foo")) 42 else ...map]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:72:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:99:9: Error: Unexpected token 'if'. // [if (oracle("foo")) 42 else ...map]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:73:28: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:100:28: Error: Unexpected token '...'. // {if (oracle("foo")) ...map else 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:73:9: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:100:9: Error: Unexpected token 'if'. // {if (oracle("foo")) ...map else 42, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:78:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:101:53: Error: Unexpected token '...'. +// {if (oracle("foo")) {"bar": 42} else ...[42], "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:101:17: Error: Unexpected token 'if'. +// {if (oracle("foo")) {"bar": 42} else ...[42], "baz": null}; +// ^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:106:17: Error: Unexpected token 'for'. // var list10 = [for (int i = 0; oracle("foo"); i++) 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:79:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:107:16: Error: Unexpected token 'for'. // var set10 = {for (int i = 0; oracle("foo"); i++) 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:80:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:108:17: Error: Unexpected token 'for'. // var list11 = [for (int i = 0; oracle("foo"); i++) dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:81:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:109:16: Error: Unexpected token 'for'. // var set11 = {for (int i = 0; oracle("foo"); i++) dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:82:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:110:17: Error: Unexpected token 'for'. // var list12 = [for (int i = 0; oracle("foo"); i++) [42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:83:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:111:16: Error: Unexpected token 'for'. // var set12 = {for (int i = 0; oracle("foo"); i++) [42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:84:53: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:112:53: Error: Unexpected token '...'. // var list20 = [for (int i = 0; oracle("foo"); i++) ...[42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:84:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:112:17: Error: Unexpected token 'for'. // var list20 = [for (int i = 0; oracle("foo"); i++) ...[42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:85:52: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:113:52: Error: Unexpected token '...'. // var set20 = {for (int i = 0; oracle("foo"); i++) ...[42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:85:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:113:16: Error: Unexpected token 'for'. // var set20 = {for (int i = 0; oracle("foo"); i++) ...[42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:86:53: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:114:53: Error: Unexpected token '...'. // var list21 = [for (int i = 0; oracle("foo"); i++) ...[dynVar]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:86:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:114:17: Error: Unexpected token 'for'. // var list21 = [for (int i = 0; oracle("foo"); i++) ...[dynVar]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:87:52: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:115:52: Error: Unexpected token '...'. // var set21 = {for (int i = 0; oracle("foo"); i++) ...[dynVar], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:87:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:115:16: Error: Unexpected token 'for'. // var set21 = {for (int i = 0; oracle("foo"); i++) ...[dynVar], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:88:53: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:116:53: Error: Unexpected token '...'. // var list22 = [for (int i = 0; oracle("foo"); i++) ...[[42]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:88:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:116:17: Error: Unexpected token 'for'. // var list22 = [for (int i = 0; oracle("foo"); i++) ...[[42]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:89:52: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:117:52: Error: Unexpected token '...'. // var set22 = {for (int i = 0; oracle("foo"); i++) ...[[42]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:89:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:117:16: Error: Unexpected token 'for'. // var set22 = {for (int i = 0; oracle("foo"); i++) ...[[42]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:90:67: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:118:67: Error: Unexpected token '...'. // var list30 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:90:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:118:53: Error: Unexpected token 'if'. // var list30 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:90:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:118:17: Error: Unexpected token 'for'. // var list30 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:91:66: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:119:66: Error: Unexpected token '...'. // var set30 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:91:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:119:52: Error: Unexpected token 'if'. // var set30 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:91:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:119:16: Error: Unexpected token 'for'. // var set30 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:92:67: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:120:67: Error: Unexpected token '...'. // var list31 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:92:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:120:53: Error: Unexpected token 'if'. // var list31 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:92:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:120:17: Error: Unexpected token 'for'. // var list31 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:93:66: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:121:66: Error: Unexpected token '...'. // var set31 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:93:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:121:52: Error: Unexpected token 'if'. // var set31 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:93:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:121:16: Error: Unexpected token 'for'. // var set31 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:94:67: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:122:67: Error: Unexpected token '...'. // var list33 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:94:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:122:53: Error: Unexpected token 'if'. // var list33 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:94:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:122:17: Error: Unexpected token 'for'. // var list33 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:95:66: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:123:66: Error: Unexpected token '...'. // var set33 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:95:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:123:52: Error: Unexpected token 'if'. // var set33 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:95:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:123:16: Error: Unexpected token 'for'. // var set33 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:96:65: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:124:65: Error: Unexpected token '...'. // List> list40 = [for (int i = 0; oracle("foo"); i++) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:96:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:124:29: Error: Unexpected token 'for'. // List> list40 = [for (int i = 0; oracle("foo"); i++) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:97:63: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:125:63: Error: Unexpected token '...'. // Set> set40 = {for (int i = 0; oracle("foo"); i++) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:97:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:125:27: Error: Unexpected token 'for'. // Set> set40 = {for (int i = 0; oracle("foo"); i++) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:98:65: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:126:65: Error: Unexpected token '...'. // List> list41 = [for (int i = 0; oracle("foo"); i++) ...{[]}]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:98:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:126:29: Error: Unexpected token 'for'. // List> list41 = [for (int i = 0; oracle("foo"); i++) ...{[]}]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:99:63: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:127:63: Error: Unexpected token '...'. // Set> set41 = {for (int i = 0; oracle("foo"); i++) ...{[]}, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:99:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:127:27: Error: Unexpected token 'for'. // Set> set41 = {for (int i = 0; oracle("foo"); i++) ...{[]}, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:100:79: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:128:79: Error: Unexpected token '...'. // List> list42 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:100:65: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:128:65: Error: Unexpected token 'if'. // List> list42 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:100:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:128:29: Error: Unexpected token 'for'. // List> list42 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:101:77: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:129:77: Error: Unexpected token '...'. // Set> set42 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:101:63: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:129:63: Error: Unexpected token 'if'. // Set> set42 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:101:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:129:27: Error: Unexpected token 'for'. // Set> set42 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:102:59: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:130:59: Error: Unexpected token '...'. // List list50 = [for (int i = 0; oracle("foo"); i++) ...[]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:102:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:130:23: Error: Unexpected token 'for'. // List list50 = [for (int i = 0; oracle("foo"); i++) ...[]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:103:57: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:131:57: Error: Unexpected token '...'. // Set set50 = {for (int i = 0; oracle("foo"); i++) ...[], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:103:21: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:131:21: Error: Unexpected token 'for'. // Set set50 = {for (int i = 0; oracle("foo"); i++) ...[], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:104:59: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:132:59: Error: Unexpected token '...'. // List list51 = [for (int i = 0; oracle("foo"); i++) ...{}]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:104:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:132:23: Error: Unexpected token 'for'. // List list51 = [for (int i = 0; oracle("foo"); i++) ...{}]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:105:57: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:133:57: Error: Unexpected token '...'. // Set set51 = {for (int i = 0; oracle("foo"); i++) ...{}, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:105:21: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:133:21: Error: Unexpected token 'for'. // Set set51 = {for (int i = 0; oracle("foo"); i++) ...{}, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:106:73: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:134:73: Error: Unexpected token '...'. // List list52 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:106:59: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:134:59: Error: Unexpected token 'if'. // List list52 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:106:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:134:23: Error: Unexpected token 'for'. // List list52 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:107:71: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:135:71: Error: Unexpected token '...'. // Set set52 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:107:57: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:135:57: Error: Unexpected token 'if'. // Set set52 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:107:21: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:135:21: Error: Unexpected token 'for'. // Set set52 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:108:65: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:136:65: Error: Unexpected token '...'. // List> list60 = [for (int i = 0; oracle("foo"); i++) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:108:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:136:29: Error: Unexpected token 'for'. // List> list60 = [for (int i = 0; oracle("foo"); i++) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:109:63: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:137:63: Error: Unexpected token '...'. // Set> set60 = {for (int i = 0; oracle("foo"); i++) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:109:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:137:27: Error: Unexpected token 'for'. // Set> set60 = {for (int i = 0; oracle("foo"); i++) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:110:79: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:138:79: Error: Unexpected token '...'. // List> list61 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:110:65: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:138:65: Error: Unexpected token 'if'. // List> list61 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:110:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:138:29: Error: Unexpected token 'for'. // List> list61 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:111:77: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:139:77: Error: Unexpected token '...'. // Set> set61 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:111:63: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:139:63: Error: Unexpected token 'if'. // Set> set61 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:111:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:139:27: Error: Unexpected token 'for'. // Set> set61 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:112:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:140:29: Error: Unexpected token 'for'. // List> list70 = [for (int i = 0; oracle("foo"); i++) []]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:113:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:141:27: Error: Unexpected token 'for'. // Set> set70 = {for (int i = 0; oracle("foo"); i++) [], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:114:65: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:142:65: Error: Unexpected token 'if'. // List> list71 = [for (int i = 0; oracle("foo"); i++) if (oracle()) []]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:114:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:142:29: Error: Unexpected token 'for'. // List> list71 = [for (int i = 0; oracle("foo"); i++) if (oracle()) []]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:115:63: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:143:63: Error: Unexpected token 'if'. // Set> set71 = {for (int i = 0; oracle("foo"); i++) if (oracle()) [], null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:115:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:143:27: Error: Unexpected token 'for'. // Set> set71 = {for (int i = 0; oracle("foo"); i++) if (oracle()) [], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:116:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:144:53: Error: Unexpected token 'if'. // var list80 = [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:116:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:144:17: Error: Unexpected token 'for'. // var list80 = [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:117:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:145:52: Error: Unexpected token 'if'. // var set80 = {for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:117:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:145:16: Error: Unexpected token 'for'. // var set80 = {for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:118:67: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:146:67: Error: Unexpected token '...'. // var list81 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:118:83: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:146:83: Error: Unexpected token '...'. // var list81 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:118:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:146:53: Error: Unexpected token 'if'. // var list81 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:118:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:146:17: Error: Unexpected token 'for'. // var list81 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:119:66: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:147:66: Error: Unexpected token '...'. // var set81 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:119:82: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:147:82: Error: Unexpected token '...'. // var set81 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:119:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:147:52: Error: Unexpected token 'if'. // var set81 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:119:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:147:16: Error: Unexpected token 'for'. // var set81 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:120:67: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:148:67: Error: Unexpected token '...'. // var list82 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:120:83: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:148:83: Error: Unexpected token '...'. // var list82 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:120:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:148:53: Error: Unexpected token 'if'. // var list82 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:120:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:148:17: Error: Unexpected token 'for'. // var list82 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:121:66: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:149:66: Error: Unexpected token '...'. // var set82 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:121:82: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:149:82: Error: Unexpected token '...'. // var set82 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:121:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:149:52: Error: Unexpected token 'if'. // var set82 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:121:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:149:16: Error: Unexpected token 'for'. // var set82 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:122:75: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:150:75: Error: Unexpected token '...'. // var list83 = [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:122:53: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:150:53: Error: Unexpected token 'if'. // var list83 = [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...listDouble]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:122:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:150:17: Error: Unexpected token 'for'. // var list83 = [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...listDouble]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:123:66: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:151:66: Error: Unexpected token '...'. // var set83 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else 3.14, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:123:52: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:151:52: Error: Unexpected token 'if'. // var set83 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else 3.14, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:123:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:151:16: Error: Unexpected token 'for'. // var set83 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else 3.14, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:124:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:152:23: Error: Unexpected token 'for'. // List list90 = [for (int i = 0; oracle("foo"); i++) dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:125:21: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:153:21: Error: Unexpected token 'for'. // Set set90 = {for (int i = 0; oracle("foo"); i++) dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:126:59: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:154:59: Error: Unexpected token '...'. // List list91 = [for (int i = 0; oracle("foo"); i++) ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:126:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:154:23: Error: Unexpected token 'for'. // List list91 = [for (int i = 0; oracle("foo"); i++) ...dynVar]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:127:57: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:155:57: Error: Unexpected token '...'. // Set set91 = {for (int i = 0; oracle("foo"); i++) ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:127:21: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:155:21: Error: Unexpected token 'for'. // Set set91 = {for (int i = 0; oracle("foo"); i++) ...dynVar, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:128:29: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:156:29: Error: Unexpected token 'for'. // List list100 = [for (index = 0; oracle("foo"); index++) 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:129:27: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:157:27: Error: Unexpected token 'for'. // Set set100 = {for (index = 0; oracle("foo"); index++) 42}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:130:18: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:158:18: Error: Unexpected token 'for'. // var list110 = [for (var i in [1, 2, 3]) i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:131:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:159:17: Error: Unexpected token 'for'. // var set110 = {for (var i in [1, 2, 3]) i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:132:24: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:160:24: Error: Unexpected token 'for'. // List list120 = [for (var i in dynVar) i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:133:22: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:161:22: Error: Unexpected token 'for'. // Set set120 = {for (var i in dynVar) i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:137:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:165:9: Error: Unexpected token 'for'. // [for (int i = 0; oracle("foo"); i++) "bar"]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:138:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:166:9: Error: Unexpected token 'for'. // {for (int i = 0; oracle("foo"); i++) "bar", null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:139:45: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:167:45: Error: Unexpected token '...'. // [for (int i = 0; oracle("foo"); i++) ...["bar"]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:139:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:167:9: Error: Unexpected token 'for'. // [for (int i = 0; oracle("foo"); i++) ...["bar"]]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:140:45: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:168:45: Error: Unexpected token '...'. // {for (int i = 0; oracle("foo"); i++) ...["bar"], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:140:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:168:9: Error: Unexpected token 'for'. // {for (int i = 0; oracle("foo"); i++) ...["bar"], null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:141:45: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:169:45: Error: Unexpected token '...'. // [for (int i = 0; oracle("foo"); i++) ...map]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:141:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:169:9: Error: Unexpected token 'for'. // [for (int i = 0; oracle("foo"); i++) ...map]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:142:45: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:170:45: Error: Unexpected token '...'. // {for (int i = 0; oracle("foo"); i++) ...map, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:142:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:170:9: Error: Unexpected token 'for'. // {for (int i = 0; oracle("foo"); i++) ...map, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:143:48: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:171:48: Error: Unexpected token 'if'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:143:12: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:171:12: Error: Unexpected token 'for'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:144:48: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:172:48: Error: Unexpected token 'if'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:144:12: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:172:12: Error: Unexpected token 'for'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:145:59: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:173:59: Error: Unexpected token '...'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:145:45: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:173:45: Error: Unexpected token 'if'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:145:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:173:9: Error: Unexpected token 'for'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:146:59: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:174:59: Error: Unexpected token '...'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:146:45: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:174:45: Error: Unexpected token 'if'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:146:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:174:9: Error: Unexpected token 'for'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:147:67: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:175:67: Error: Unexpected token '...'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...map]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:147:45: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:175:45: Error: Unexpected token 'if'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...map]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:147:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:175:9: Error: Unexpected token 'for'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...map]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:148:59: Error: Unexpected token '...'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:176:59: Error: Unexpected token '...'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:148:45: Error: Unexpected token 'if'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:176:45: Error: Unexpected token 'if'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:148:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:176:9: Error: Unexpected token 'for'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:151:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:179:9: Error: Unexpected token 'for'. // [for (i in [1]) i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:152:9: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:180:9: Error: Unexpected token 'for'. // {for (i in [1]) i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:154:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:182:17: Error: Unexpected token 'for'. // var list10 = [for (var i in "not iterable") i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:155:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:183:16: Error: Unexpected token 'for'. // var set10 = {for (var i in "not iterable") i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:156:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:184:17: Error: Unexpected token 'for'. // var list20 = [for (int i in ["not", "int"]) i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:157:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:185:16: Error: Unexpected token 'for'. // var set20 = {for (int i in ["not", "int"]) i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:158:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:186:23: Error: Unexpected token 'for'. // var list30 = [await for (var i in "not stream") i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:159:22: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:187:22: Error: Unexpected token 'for'. // var set30 = {await for (var i in "not stream") i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:160:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:188:23: Error: Unexpected token 'for'. // var list40 = [await for (int i in Stream.fromIterable(["not", "int"])) i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:161:22: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:189:22: Error: Unexpected token 'for'. // var set40 = {await for (int i in Stream.fromIterable(["not", "int"])) i, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:162:17: Error: The keyword 'await' isn't allowed for a normal 'for' statement. +// pkg/front_end/testcases/control_flow_collection_inference.dart:190:17: Error: The keyword 'await' isn't allowed for a normal 'for' statement. // Try removing the keyword, or use a for-each statement. // var list50 = [await for (;;) 42]; // ^^^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:162:23: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:190:23: Error: Unexpected token 'for'. // var list50 = [await for (;;) 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:163:16: Error: The keyword 'await' isn't allowed for a normal 'for' statement. +// pkg/front_end/testcases/control_flow_collection_inference.dart:191:16: Error: The keyword 'await' isn't allowed for a normal 'for' statement. // Try removing the keyword, or use a for-each statement. // var set50 = {await for (;;) 42, null}; // ^^^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:163:22: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:191:22: Error: Unexpected token 'for'. // var set50 = {await for (;;) 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:164:17: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:192:17: Error: Unexpected token 'for'. // var list60 = [for (; "not bool";) 42]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:165:16: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:193:16: Error: Unexpected token 'for'. // var set60 = {for (; "not bool";) 42, null}; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:169:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:197:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. // Try marking the function body with either 'async' or 'async*', or removing the 'await' before the for loop. // [await for (int i in stream) i]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:169:15: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:197:15: Error: Unexpected token 'for'. // [await for (int i in stream) i]; // ^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:170:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:198:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. // Try marking the function body with either 'async' or 'async*', or removing the 'await' before the for loop. // {await for (int i in stream) i}; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:170:15: Error: Unexpected token 'for'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:198:15: Error: Unexpected token 'for'. // {await for (int i in stream) i}; // ^^^ // @@ -1164,71 +1388,98 @@ import "dart:async" as asy; static method oracle([self::oracle::T t = null]) → dynamic return true; -static method testIfElement(dynamic dynVar, core::List listInt, core::List listDouble) → dynamic { +static method testIfElement(dynamic dynVar, core::List listInt, core::List listDouble, core::Map mapToInt, core::Map mapToDouble) → dynamic { dynamic list10 = []; dynamic set10 = {null}; + dynamic map10 = {"baz": null}; dynamic list11 = []; dynamic set11 = {null}; + dynamic map11 = {"baz": null}; dynamic list12 = []; dynamic set12 = {null}; + dynamic map12 = {"baz": null}; dynamic list20 = []; dynamic set20 = {null}; + dynamic map20 = {"baz": null}; dynamic list21 = []; dynamic set21 = {null}; + dynamic map21 = {"baz": null}; dynamic list22 = []; dynamic set22 = {null}; + dynamic map22 = {"baz": null}; dynamic list30 = []; dynamic set30 = {null}; + dynamic map30 = {"baz": null}; dynamic list31 = []; dynamic set31 = {null}; + dynamic map31 = {"baz": null}; dynamic list33 = []; dynamic set33 = {null}; + dynamic map33 = {"baz": null}; core::List> list40 = []; core::Set> set40 = {null}; + core::Map> map40 = {"baz": null}; core::List> list41 = []; core::Set> set41 = {null}; core::List> list42 = []; core::Set> set42 = {null}; + core::Map> map42 = {"baz": null}; core::List list50 = []; core::Set set50 = {null}; + core::Map map50 = {"baz": null}; core::List list51 = []; core::Set set51 = {null}; core::List list52 = []; core::Set set52 = {null}; + core::Map map52 = {"baz": null}; core::List> list60 = []; core::Set> set60 = {null}; + core::Map> map60 = {"baz": null}; core::List> list61 = []; core::Set> set61 = {null}; + core::Map> map61 = {"baz": null}; core::List> list70 = []; core::Set> set70 = {null}; core::List> list71 = []; core::Set> set71 = {null}; dynamic list80 = []; dynamic set80 = {null}; + dynamic map80 = {"baz": null}; dynamic list81 = []; dynamic set81 = {null}; + dynamic map81 = {null}; dynamic list82 = []; dynamic set82 = {null}; + dynamic map82 = {null}; dynamic list83 = []; dynamic set83 = {null}; + dynamic map83 = {null}; core::List list90 = []; core::Set set90 = {null}; + core::Map map90 = {"baz": null}; core::List list91 = []; core::Set set91 = {null}; + core::Map map91 = {"baz": null}; } static method testIfElementErrors(core::Map map) → dynamic { []; {null}; + {"baz": null}; []; {null}; + {"baz": null}; []; {null}; + {"baz": null}; []; {null}; + {"baz": null}; []; {null}; + {"baz": null}; []; {null}; + {"baz": null}; } static method testForElement(dynamic dynVar, core::List listInt, core::List listDouble, core::int index) → dynamic { dynamic list10 = []; diff --git a/pkg/front_end/testcases/control_flow_collection_inference.dart.outline.expect b/pkg/front_end/testcases/control_flow_collection_inference.dart.outline.expect index db2b93c105ad..e6a13d19dc87 100644 --- a/pkg/front_end/testcases/control_flow_collection_inference.dart.outline.expect +++ b/pkg/front_end/testcases/control_flow_collection_inference.dart.outline.expect @@ -5,7 +5,7 @@ import "dart:async" as asy; static method oracle([self::oracle::T t]) → dynamic ; -static method testIfElement(dynamic dynVar, core::List listInt, core::List listDouble) → dynamic +static method testIfElement(dynamic dynVar, core::List listInt, core::List listDouble, core::Map mapToInt, core::Map mapToDouble) → dynamic ; static method testIfElementErrors(core::Map map) → dynamic ; diff --git a/pkg/front_end/testcases/control_flow_collection_inference.dart.strong.expect b/pkg/front_end/testcases/control_flow_collection_inference.dart.strong.expect index ac144bcd4f27..7c6cb4631eae 100644 --- a/pkg/front_end/testcases/control_flow_collection_inference.dart.strong.expect +++ b/pkg/front_end/testcases/control_flow_collection_inference.dart.strong.expect @@ -2,220 +2,317 @@ library; // // Problems in library: // -// pkg/front_end/testcases/control_flow_collection_inference.dart:62:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:21:16: Error: Expected ':' after this. +// var map20 = {if (oracle("foo")) ...{"bar": 42}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:24:16: Error: Expected ':' after this. +// var map21 = {if (oracle("foo")) ...{"bar": dynVar}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:27:16: Error: Expected ':' after this. +// var map22 = {if (oracle("foo")) ...{"bar": [42]}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:30:16: Error: Expected ':' after this. +// var map30 = {if (oracle("foo")) if (oracle()) ...{"bar": 42}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:33:16: Error: Expected ':' after this. +// var map31 = {if (oracle("foo")) if (oracle()) ...{"bar": dynVar}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:36:16: Error: Expected ':' after this. +// var map33 = {if (oracle("foo")) if (oracle()) ...{"bar": [42]}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:39:35: Error: Expected ':' after this. +// Map> map40 = {if (oracle("foo")) ...{"bar", []}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:44:35: Error: Expected ':' after this. +// Map> map42 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:47:3: Error: Expected 2 type arguments. +// Map map50 = {if (oracle("foo")) ...{}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:47:21: Error: Expected ':' after this. +// Map map50 = {if (oracle("foo")) ...{}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:52:29: Error: Expected ':' after this. +// Map map52 = {if (oracle("foo")) if (oracle()) ...{}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:55:35: Error: Expected ':' after this. +// Map> map60 = {if (oracle("foo")) ...{"bar": []}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:58:35: Error: Expected ':' after this. +// Map> map61 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:80:29: Error: Expected ':' after this. +// Map map91 = {if (oracle("foo")) ...dynVar, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:68:38: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// - 'Map' is from 'dart:core'. +// var map81 = {if (oracle("foo")) ...mapToInt else ...mapToDouble, null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:68:55: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// - 'Map' is from 'dart:core'. +// var map81 = {if (oracle("foo")) ...mapToInt else ...mapToDouble, null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:74:38: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// - 'Map' is from 'dart:core'. +// var map83 = {if (oracle("foo")) ...mapToInt else 3.14, null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:89:17: Error: Expected ':' after this. +// {if (oracle("foo")) ...{"bar": "bar"}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:92:17: Error: Expected ':' after this. +// {if (oracle("foo")) ...["bar"], "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:98:17: Error: Expected ':' after this. +// {if (oracle("foo")) ...[42] else {"bar": 42}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:101:17: Error: Expected ':' after this. +// {if (oracle("foo")) {"bar": 42} else ...[42], "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:84:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // [if (oracle("foo")) "bar"]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:63:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:85:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // {if (oracle("foo")) "bar", null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:64:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:86:41: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// Try changing the type of the left hand side, or casting the right hand side to 'int'. +// {if (oracle("foo")) "bar": "bar", "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:87:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // [if (oracle("foo")) ...["bar"]]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:65:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:88:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // {if (oracle("foo")) ...["bar"], null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:66:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:90:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // [if (oracle("foo")) ...map]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:67:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:91:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // {if (oracle("foo")) ...map, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:68:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:93:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. // Try changing the type of the left hand side, or casting the right hand side to 'String'. // [if (oracle("foo")) 42 else 3.14]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:69:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:94:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. // Try changing the type of the left hand side, or casting the right hand side to 'String'. // {if (oracle("foo")) 42 else 3.14, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:70:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:95:20: Error: A value of type 'num' can't be assigned to a variable of type 'String'. +// Try changing the type of the left hand side, or casting the right hand side to 'String'. +// {if (oracle("foo")) "bar": 42 else "baz": 3.14, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:96:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // [if (oracle("foo")) ...map else 42]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:71:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:97:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // {if (oracle("foo")) ...map else 42, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:72:39: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:99:39: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // [if (oracle("foo")) 42 else ...map]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:73:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:100:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // {if (oracle("foo")) ...map else 42, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:151:14: Error: Setter not found: 'i'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:179:14: Error: Setter not found: 'i'. // [for (i in [1]) i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:152:14: Error: Setter not found: 'i'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:180:14: Error: Setter not found: 'i'. // {for (i in [1]) i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:162:17: Error: The keyword 'await' isn't allowed for a normal 'for' statement. +// pkg/front_end/testcases/control_flow_collection_inference.dart:190:17: Error: The keyword 'await' isn't allowed for a normal 'for' statement. // Try removing the keyword, or use a for-each statement. // var list50 = [await for (;;) 42]; // ^^^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:163:16: Error: The keyword 'await' isn't allowed for a normal 'for' statement. +// pkg/front_end/testcases/control_flow_collection_inference.dart:191:16: Error: The keyword 'await' isn't allowed for a normal 'for' statement. // Try removing the keyword, or use a for-each statement. // var set50 = {await for (;;) 42, null}; // ^^^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:137:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:165:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // [for (int i = 0; oracle("foo"); i++) "bar"]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:138:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:166:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // {for (int i = 0; oracle("foo"); i++) "bar", null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:139:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:167:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // [for (int i = 0; oracle("foo"); i++) ...["bar"]]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:140:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:168:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // {for (int i = 0; oracle("foo"); i++) ...["bar"], null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:141:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:169:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // [for (int i = 0; oracle("foo"); i++) ...map]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:142:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:170:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // {for (int i = 0; oracle("foo"); i++) ...map, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:143:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:171:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. // Try changing the type of the left hand side, or casting the right hand side to 'String'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:144:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:172:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. // Try changing the type of the left hand side, or casting the right hand side to 'String'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:145:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:173:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:146:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:174:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:147:70: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:175:70: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...map]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:148:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:176:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:154:31: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:182:31: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. // - 'Iterable' is from 'dart:core'. // var list10 = [for (var i in "not iterable") i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:155:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:183:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. // - 'Iterable' is from 'dart:core'. // var set10 = {for (var i in "not iterable") i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:156:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:184:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var list20 = [for (int i in ["not", "int"]) i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:156:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:184:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var list20 = [for (int i in ["not", "int"]) i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:157:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:185:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var set20 = {for (int i in ["not", "int"]) i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:157:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:185:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var set20 = {for (int i in ["not", "int"]) i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:158:37: Error: The type 'String' used in the 'for' loop must implement 'Stream'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:186:37: Error: The type 'String' used in the 'for' loop must implement 'Stream'. // - 'Stream' is from 'dart:async'. // var list30 = [await for (var i in "not stream") i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:159:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:187:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. // - 'Stream' is from 'dart:async'. // var set30 = {await for (var i in "not stream") i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:160:58: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:188:58: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var list40 = [await for (int i in Stream.fromIterable(["not", "int"])) i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:160:65: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:188:65: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var list40 = [await for (int i in Stream.fromIterable(["not", "int"])) i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:161:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:189:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var set40 = {await for (int i in Stream.fromIterable(["not", "int"])) i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:161:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:189:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var set40 = {await for (int i in Stream.fromIterable(["not", "int"])) i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:164:24: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:192:24: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. // Try changing the type of the left hand side, or casting the right hand side to 'bool'. // var list60 = [for (; "not bool";) 42]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:165:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:193:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. // Try changing the type of the left hand side, or casting the right hand side to 'bool'. // var set60 = {for (; "not bool";) 42, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:169:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:197:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. // Try marking the function body with either 'async' or 'async*', or removing the 'await' before the for loop. // [await for (int i in stream) i]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:170:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:198:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. // Try marking the function body with either 'async' or 'async*', or removing the 'await' before the for loop. // {await for (int i in stream) i}; // ^^ @@ -227,7 +324,7 @@ import "dart:async" as asy; static method oracle([self::oracle::T t = null]) → dynamic return true; -static method testIfElement(dynamic dynVar, core::List listInt, core::List listDouble) → dynamic { +static method testIfElement(dynamic dynVar, core::List listInt, core::List listDouble, core::Map mapToInt, core::Map mapToDouble) → dynamic { core::List list10 = block { final core::List #t1 = []; if(self::oracle("foo")) @@ -239,1062 +336,1154 @@ static method testIfElement(dynamic dynVar, core::List listInt, core: #t2.{core::Set::add}(42); #t2.{core::Set::add}(null); } =>#t2; - core::List list11 = block { - final core::List #t3 = []; + core::Map map10 = block { + final core::Map #t3 = {}; if(self::oracle("foo")) - #t3.{core::List::add}(dynVar); + #t3.{core::Map::[]=}("bar", 42); + #t3.{core::Map::[]=}("baz", null); } =>#t3; - core::Set set11 = block { - final core::Set #t4 = col::LinkedHashSet::•(); + core::List list11 = block { + final core::List #t4 = []; if(self::oracle("foo")) - #t4.{core::Set::add}(dynVar); - #t4.{core::Set::add}(null); + #t4.{core::List::add}(dynVar); } =>#t4; - core::List> list12 = block { - final core::List> #t5 = >[]; + core::Set set11 = block { + final core::Set #t5 = col::LinkedHashSet::•(); if(self::oracle("foo")) - #t5.{core::List::add}([42]); + #t5.{core::Set::add}(dynVar); + #t5.{core::Set::add}(null); } =>#t5; - core::Set> set12 = block { - final core::Set> #t6 = col::LinkedHashSet::•>(); + core::Map map11 = block { + final core::Map #t6 = {}; if(self::oracle("foo")) - #t6.{core::Set::add}([42]); - #t6.{core::Set::add}(null); + #t6.{core::Map::[]=}("bar", dynVar); + #t6.{core::Map::[]=}("baz", null); } =>#t6; - core::List list20 = block { - final core::List #t7 = []; + core::List> list12 = block { + final core::List> #t7 = >[]; if(self::oracle("foo")) - for (final core::int #t8 in [42]) - #t7.{core::List::add}(#t8); + #t7.{core::List::add}([42]); } =>#t7; - core::Set set20 = block { - final core::Set #t9 = col::LinkedHashSet::•(); + core::Set> set12 = block { + final core::Set> #t8 = col::LinkedHashSet::•>(); + if(self::oracle("foo")) + #t8.{core::Set::add}([42]); + #t8.{core::Set::add}(null); + } =>#t8; + core::Map> map12 = block { + final core::Map> #t9 = >{}; if(self::oracle("foo")) - for (final core::int #t10 in [42]) - #t9.{core::Set::add}(#t10); - #t9.{core::Set::add}(null); + #t9.{core::Map::[]=}("bar", [42]); + #t9.{core::Map::[]=}("baz", null); } =>#t9; + core::List list20 = block { + final core::List #t10 = []; + if(self::oracle("foo")) + for (final core::int #t11 in [42]) + #t10.{core::List::add}(#t11); + } =>#t10; + core::Set set20 = block { + final core::Set #t12 = col::LinkedHashSet::•(); + if(self::oracle("foo")) + for (final core::int #t13 in [42]) + #t12.{core::Set::add}(#t13); + #t12.{core::Set::add}(null); + } =>#t12; + core::Map map20 = {"baz": null}; core::List list21 = block { - final core::List #t11 = []; + final core::List #t14 = []; if(self::oracle("foo")) - for (final dynamic #t12 in [dynVar]) - #t11.{core::List::add}(#t12); - } =>#t11; + for (final dynamic #t15 in [dynVar]) + #t14.{core::List::add}(#t15); + } =>#t14; core::Set set21 = block { - final core::Set #t13 = col::LinkedHashSet::•(); + final core::Set #t16 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final dynamic #t14 in [dynVar]) - #t13.{core::Set::add}(#t14); - #t13.{core::Set::add}(null); - } =>#t13; + for (final dynamic #t17 in [dynVar]) + #t16.{core::Set::add}(#t17); + #t16.{core::Set::add}(null); + } =>#t16; + core::Map map21 = {"baz": null}; core::List> list22 = block { - final core::List> #t15 = >[]; + final core::List> #t18 = >[]; if(self::oracle("foo")) - for (final core::List #t16 in >[[42]]) - #t15.{core::List::add}(#t16); - } =>#t15; + for (final core::List #t19 in >[[42]]) + #t18.{core::List::add}(#t19); + } =>#t18; core::Set> set22 = block { - final core::Set> #t17 = col::LinkedHashSet::•>(); + final core::Set> #t20 = col::LinkedHashSet::•>(); if(self::oracle("foo")) - for (final core::List #t18 in >[[42]]) - #t17.{core::Set::add}(#t18); - #t17.{core::Set::add}(null); - } =>#t17; + for (final core::List #t21 in >[[42]]) + #t20.{core::Set::add}(#t21); + #t20.{core::Set::add}(null); + } =>#t20; + core::Map map22 = {"baz": null}; core::List list30 = block { - final core::List #t19 = []; + final core::List #t22 = []; if(self::oracle("foo")) if(self::oracle()) - for (final core::int #t20 in [42]) - #t19.{core::List::add}(#t20); - } =>#t19; + for (final core::int #t23 in [42]) + #t22.{core::List::add}(#t23); + } =>#t22; core::Set set30 = block { - final core::Set #t21 = col::LinkedHashSet::•(); + final core::Set #t24 = col::LinkedHashSet::•(); if(self::oracle("foo")) if(self::oracle()) - for (final core::int #t22 in [42]) - #t21.{core::Set::add}(#t22); - #t21.{core::Set::add}(null); - } =>#t21; + for (final core::int #t25 in [42]) + #t24.{core::Set::add}(#t25); + #t24.{core::Set::add}(null); + } =>#t24; + core::Map map30 = {"baz": null}; core::List list31 = block { - final core::List #t23 = []; + final core::List #t26 = []; if(self::oracle("foo")) if(self::oracle()) - for (final dynamic #t24 in [dynVar]) - #t23.{core::List::add}(#t24); - } =>#t23; + for (final dynamic #t27 in [dynVar]) + #t26.{core::List::add}(#t27); + } =>#t26; core::Set set31 = block { - final core::Set #t25 = col::LinkedHashSet::•(); + final core::Set #t28 = col::LinkedHashSet::•(); if(self::oracle("foo")) if(self::oracle()) - for (final dynamic #t26 in [dynVar]) - #t25.{core::Set::add}(#t26); - #t25.{core::Set::add}(null); - } =>#t25; + for (final dynamic #t29 in [dynVar]) + #t28.{core::Set::add}(#t29); + #t28.{core::Set::add}(null); + } =>#t28; + core::Map map31 = {"baz": null}; core::List> list33 = block { - final core::List> #t27 = >[]; + final core::List> #t30 = >[]; if(self::oracle("foo")) if(self::oracle()) - for (final core::List #t28 in >[[42]]) - #t27.{core::List::add}(#t28); - } =>#t27; + for (final core::List #t31 in >[[42]]) + #t30.{core::List::add}(#t31); + } =>#t30; core::Set> set33 = block { - final core::Set> #t29 = col::LinkedHashSet::•>(); + final core::Set> #t32 = col::LinkedHashSet::•>(); if(self::oracle("foo")) if(self::oracle()) - for (final core::List #t30 in >[[42]]) - #t29.{core::Set::add}(#t30); - #t29.{core::Set::add}(null); - } =>#t29; + for (final core::List #t33 in >[[42]]) + #t32.{core::Set::add}(#t33); + #t32.{core::Set::add}(null); + } =>#t32; + core::Map map33 = {"baz": null}; core::List> list40 = block { - final core::List> #t31 = >[]; + final core::List> #t34 = >[]; if(self::oracle("foo")) - for (final core::List #t32 in >[[]]) - #t31.{core::List::add}(#t32); - } =>#t31; + for (final core::List #t35 in >[[]]) + #t34.{core::List::add}(#t35); + } =>#t34; core::Set> set40 = block { - final core::Set> #t33 = col::LinkedHashSet::•>(); + final core::Set> #t36 = col::LinkedHashSet::•>(); if(self::oracle("foo")) - for (final core::List #t34 in >[[]]) - #t33.{core::Set::add}(#t34); - #t33.{core::Set::add}(null); - } =>#t33; + for (final core::List #t37 in >[[]]) + #t36.{core::Set::add}(#t37); + #t36.{core::Set::add}(null); + } =>#t36; + core::Map> map40 = >{"baz": null}; core::List> list41 = block { - final core::List> #t35 = >[]; + final core::List> #t38 = >[]; if(self::oracle("foo")) - for (final core::List #t36 in let final core::Set> #t37 = col::LinkedHashSet::•>() in let final dynamic #t38 = #t37.{core::Set::add}([]) in #t37) - #t35.{core::List::add}(#t36); - } =>#t35; + for (final core::List #t39 in let final core::Set> #t40 = col::LinkedHashSet::•>() in let final dynamic #t41 = #t40.{core::Set::add}([]) in #t40) + #t38.{core::List::add}(#t39); + } =>#t38; core::Set> set41 = block { - final core::Set> #t39 = col::LinkedHashSet::•>(); + final core::Set> #t42 = col::LinkedHashSet::•>(); if(self::oracle("foo")) - for (final core::List #t40 in let final core::Set> #t41 = col::LinkedHashSet::•>() in let final dynamic #t42 = #t41.{core::Set::add}([]) in #t41) - #t39.{core::Set::add}(#t40); - #t39.{core::Set::add}(null); - } =>#t39; + for (final core::List #t43 in let final core::Set> #t44 = col::LinkedHashSet::•>() in let final dynamic #t45 = #t44.{core::Set::add}([]) in #t44) + #t42.{core::Set::add}(#t43); + #t42.{core::Set::add}(null); + } =>#t42; core::List> list42 = block { - final core::List> #t43 = >[]; + final core::List> #t46 = >[]; if(self::oracle("foo")) if(self::oracle()) - for (final core::List #t44 in >[[]]) - #t43.{core::List::add}(#t44); - } =>#t43; + for (final core::List #t47 in >[[]]) + #t46.{core::List::add}(#t47); + } =>#t46; core::Set> set42 = block { - final core::Set> #t45 = col::LinkedHashSet::•>(); + final core::Set> #t48 = col::LinkedHashSet::•>(); if(self::oracle("foo")) if(self::oracle()) - for (final core::List #t46 in >[[]]) - #t45.{core::Set::add}(#t46); - #t45.{core::Set::add}(null); - } =>#t45; + for (final core::List #t49 in >[[]]) + #t48.{core::Set::add}(#t49); + #t48.{core::Set::add}(null); + } =>#t48; + core::Map> map42 = >{"baz": null}; core::List list50 = block { - final core::List #t47 = []; + final core::List #t50 = []; if(self::oracle("foo")) - for (final core::int #t48 in []) - #t47.{core::List::add}(#t48); - } =>#t47; + for (final core::int #t51 in []) + #t50.{core::List::add}(#t51); + } =>#t50; core::Set set50 = block { - final core::Set #t49 = col::LinkedHashSet::•(); + final core::Set #t52 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final core::int #t50 in []) - #t49.{core::Set::add}(#t50); - #t49.{core::Set::add}(null); - } =>#t49; + for (final core::int #t53 in []) + #t52.{core::Set::add}(#t53); + #t52.{core::Set::add}(null); + } =>#t52; + core::Map map50 = {"baz": null}; core::List list51 = block { - final core::List #t51 = []; - if(self::oracle("foo")) - for (final core::int #t52 in let final core::Set #t53 = col::LinkedHashSet::•() in #t53) - #t51.{core::List::add}(#t52); - } =>#t51; - core::Set set51 = block { - final core::Set #t54 = col::LinkedHashSet::•(); + final core::List #t54 = []; if(self::oracle("foo")) for (final core::int #t55 in let final core::Set #t56 = col::LinkedHashSet::•() in #t56) - #t54.{core::Set::add}(#t55); - #t54.{core::Set::add}(null); + #t54.{core::List::add}(#t55); } =>#t54; + core::Set set51 = block { + final core::Set #t57 = col::LinkedHashSet::•(); + if(self::oracle("foo")) + for (final core::int #t58 in let final core::Set #t59 = col::LinkedHashSet::•() in #t59) + #t57.{core::Set::add}(#t58); + #t57.{core::Set::add}(null); + } =>#t57; core::List list52 = block { - final core::List #t57 = []; + final core::List #t60 = []; if(self::oracle("foo")) if(self::oracle()) - for (final core::int #t58 in []) - #t57.{core::List::add}(#t58); - } =>#t57; + for (final core::int #t61 in []) + #t60.{core::List::add}(#t61); + } =>#t60; core::Set set52 = block { - final core::Set #t59 = col::LinkedHashSet::•(); + final core::Set #t62 = col::LinkedHashSet::•(); if(self::oracle("foo")) if(self::oracle()) - for (final core::int #t60 in []) - #t59.{core::Set::add}(#t60); - #t59.{core::Set::add}(null); - } =>#t59; + for (final core::int #t63 in []) + #t62.{core::Set::add}(#t63); + #t62.{core::Set::add}(null); + } =>#t62; + core::Map map52 = {"baz": null}; core::List> list60 = block { - final core::List> #t61 = >[]; + final core::List> #t64 = >[]; if(self::oracle("foo")) - for (final core::List #t62 in >[[]]) - #t61.{core::List::add}(#t62); - } =>#t61; + for (final core::List #t65 in >[[]]) + #t64.{core::List::add}(#t65); + } =>#t64; core::Set> set60 = block { - final core::Set> #t63 = col::LinkedHashSet::•>(); + final core::Set> #t66 = col::LinkedHashSet::•>(); if(self::oracle("foo")) - for (final core::List #t64 in >[[]]) - #t63.{core::Set::add}(#t64); - #t63.{core::Set::add}(null); - } =>#t63; + for (final core::List #t67 in >[[]]) + #t66.{core::Set::add}(#t67); + #t66.{core::Set::add}(null); + } =>#t66; + core::Map> map60 = >{"baz": null}; core::List> list61 = block { - final core::List> #t65 = >[]; + final core::List> #t68 = >[]; if(self::oracle("foo")) if(self::oracle()) - for (final core::List #t66 in >[[]]) - #t65.{core::List::add}(#t66); - } =>#t65; + for (final core::List #t69 in >[[]]) + #t68.{core::List::add}(#t69); + } =>#t68; core::Set> set61 = block { - final core::Set> #t67 = col::LinkedHashSet::•>(); + final core::Set> #t70 = col::LinkedHashSet::•>(); if(self::oracle("foo")) if(self::oracle()) - for (final core::List #t68 in >[[]]) - #t67.{core::Set::add}(#t68); - #t67.{core::Set::add}(null); - } =>#t67; + for (final core::List #t71 in >[[]]) + #t70.{core::Set::add}(#t71); + #t70.{core::Set::add}(null); + } =>#t70; + core::Map> map61 = >{"baz": null}; core::List> list70 = block { - final core::List> #t69 = >[]; + final core::List> #t72 = >[]; if(self::oracle("foo")) - #t69.{core::List::add}([]); - } =>#t69; + #t72.{core::List::add}([]); + } =>#t72; core::Set> set70 = block { - final core::Set> #t70 = col::LinkedHashSet::•>(); + final core::Set> #t73 = col::LinkedHashSet::•>(); if(self::oracle("foo")) - #t70.{core::Set::add}([]); - #t70.{core::Set::add}(null); - } =>#t70; + #t73.{core::Set::add}([]); + #t73.{core::Set::add}(null); + } =>#t73; core::List> list71 = block { - final core::List> #t71 = >[]; + final core::List> #t74 = >[]; if(self::oracle("foo")) if(self::oracle()) - #t71.{core::List::add}([]); - } =>#t71; + #t74.{core::List::add}([]); + } =>#t74; core::Set> set71 = block { - final core::Set> #t72 = col::LinkedHashSet::•>(); + final core::Set> #t75 = col::LinkedHashSet::•>(); if(self::oracle("foo")) if(self::oracle()) - #t72.{core::Set::add}([]); - #t72.{core::Set::add}(null); - } =>#t72; + #t75.{core::Set::add}([]); + #t75.{core::Set::add}(null); + } =>#t75; core::List list80 = block { - final core::List #t73 = []; + final core::List #t76 = []; if(self::oracle("foo")) - #t73.{core::List::add}(42); + #t76.{core::List::add}(42); else - #t73.{core::List::add}(3.14); - } =>#t73; + #t76.{core::List::add}(3.14); + } =>#t76; core::Set set80 = block { - final core::Set #t74 = col::LinkedHashSet::•(); + final core::Set #t77 = col::LinkedHashSet::•(); if(self::oracle("foo")) - #t74.{core::Set::add}(42); + #t77.{core::Set::add}(42); else - #t74.{core::Set::add}(3.14); - #t74.{core::Set::add}(null); - } =>#t74; + #t77.{core::Set::add}(3.14); + #t77.{core::Set::add}(null); + } =>#t77; + core::Map map80 = block { + final core::Map #t78 = {}; + if(self::oracle("foo")) + #t78.{core::Map::[]=}("bar", 42); + else + #t78.{core::Map::[]=}("bar", 3.14); + #t78.{core::Map::[]=}("baz", null); + } =>#t78; core::List list81 = block { - final core::List #t75 = []; + final core::List #t79 = []; if(self::oracle("foo")) - for (final core::num #t76 in listInt) - #t75.{core::List::add}(#t76); + for (final core::num #t80 in listInt) + #t79.{core::List::add}(#t80); else - for (final core::num #t77 in listDouble) - #t75.{core::List::add}(#t77); - } =>#t75; + for (final core::num #t81 in listDouble) + #t79.{core::List::add}(#t81); + } =>#t79; core::Set set81 = block { - final core::Set #t78 = col::LinkedHashSet::•(); + final core::Set #t82 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final core::num #t79 in listInt) - #t78.{core::Set::add}(#t79); + for (final core::num #t83 in listInt) + #t82.{core::Set::add}(#t83); else - for (final core::num #t80 in listDouble) - #t78.{core::Set::add}(#t80); - #t78.{core::Set::add}(null); - } =>#t78; + for (final core::num #t84 in listDouble) + #t82.{core::Set::add}(#t84); + #t82.{core::Set::add}(null); + } =>#t82; + core::Set map81 = block { + final core::Set #t85 = col::LinkedHashSet::•(); + if(self::oracle("foo")) + #t85.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:68:38: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + - 'Map' is from 'dart:core'. + var map81 = {if (oracle(\"foo\")) ...mapToInt else ...mapToDouble, null}; + ^"); + else + #t85.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:68:55: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + - 'Map' is from 'dart:core'. + var map81 = {if (oracle(\"foo\")) ...mapToInt else ...mapToDouble, null}; + ^"); + #t85.{core::Set::add}(null); + } =>#t85; core::List list82 = block { - final core::List #t81 = []; + final core::List #t86 = []; if(self::oracle("foo")) - for (final dynamic #t82 in listInt as{TypeError} core::Iterable) - #t81.{core::List::add}(#t82); + for (final dynamic #t87 in listInt as{TypeError} core::Iterable) + #t86.{core::List::add}(#t87); else - for (final dynamic #t83 in dynVar as{TypeError} core::Iterable) - #t81.{core::List::add}(#t83); - } =>#t81; + for (final dynamic #t88 in dynVar as{TypeError} core::Iterable) + #t86.{core::List::add}(#t88); + } =>#t86; core::Set set82 = block { - final core::Set #t84 = col::LinkedHashSet::•(); + final core::Set #t89 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final dynamic #t85 in listInt as{TypeError} core::Iterable) - #t84.{core::Set::add}(#t85); + for (final dynamic #t90 in listInt as{TypeError} core::Iterable) + #t89.{core::Set::add}(#t90); else - for (final dynamic #t86 in dynVar as{TypeError} core::Iterable) - #t84.{core::Set::add}(#t86); - #t84.{core::Set::add}(null); - } =>#t84; + for (final dynamic #t91 in dynVar as{TypeError} core::Iterable) + #t89.{core::Set::add}(#t91); + #t89.{core::Set::add}(null); + } =>#t89; + core::Set map82 = block { + final core::Set #t92 = col::LinkedHashSet::•(); + if(self::oracle("foo")) + for (final dynamic #t93 in mapToInt as{TypeError} core::Iterable) + #t92.{core::Set::add}(#t93); + else + for (final dynamic #t94 in dynVar as{TypeError} core::Iterable) + #t92.{core::Set::add}(#t94); + #t92.{core::Set::add}(null); + } =>#t92; core::List list83 = block { - final core::List #t87 = []; + final core::List #t95 = []; if(self::oracle("foo")) - #t87.{core::List::add}(42); + #t95.{core::List::add}(42); else - for (final core::num #t88 in listDouble) - #t87.{core::List::add}(#t88); - } =>#t87; + for (final core::num #t96 in listDouble) + #t95.{core::List::add}(#t96); + } =>#t95; core::Set set83 = block { - final core::Set #t89 = col::LinkedHashSet::•(); + final core::Set #t97 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final core::num #t90 in listInt) - #t89.{core::Set::add}(#t90); + for (final core::num #t98 in listInt) + #t97.{core::Set::add}(#t98); else - #t89.{core::Set::add}(3.14); - #t89.{core::Set::add}(null); - } =>#t89; + #t97.{core::Set::add}(3.14); + #t97.{core::Set::add}(null); + } =>#t97; + core::Set map83 = block { + final core::Set #t99 = col::LinkedHashSet::•(); + if(self::oracle("foo")) + #t99.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:74:38: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + - 'Map' is from 'dart:core'. + var map83 = {if (oracle(\"foo\")) ...mapToInt else 3.14, null}; + ^"); + else + #t99.{core::Set::add}(3.14); + #t99.{core::Set::add}(null); + } =>#t99; core::List list90 = block { - final core::List #t91 = []; + final core::List #t100 = []; if(self::oracle("foo")) - #t91.{core::List::add}(dynVar as{TypeError} core::int); - } =>#t91; + #t100.{core::List::add}(dynVar as{TypeError} core::int); + } =>#t100; core::Set set90 = block { - final core::Set #t92 = col::LinkedHashSet::•(); + final core::Set #t101 = col::LinkedHashSet::•(); if(self::oracle("foo")) - #t92.{core::Set::add}(dynVar as{TypeError} core::int); - #t92.{core::Set::add}(null); - } =>#t92; + #t101.{core::Set::add}(dynVar as{TypeError} core::int); + #t101.{core::Set::add}(null); + } =>#t101; + core::Map map90 = block { + final core::Map #t102 = {}; + if(self::oracle("foo")) + #t102.{core::Map::[]=}("bar", dynVar); + #t102.{core::Map::[]=}("baz", null); + } =>#t102; core::List list91 = block { - final core::List #t93 = []; + final core::List #t103 = []; if(self::oracle("foo")) - for (final core::int #t94 in dynVar as{TypeError} core::Iterable) - #t93.{core::List::add}(#t94); - } =>#t93; + for (final core::int #t104 in dynVar as{TypeError} core::Iterable) + #t103.{core::List::add}(#t104); + } =>#t103; core::Set set91 = block { - final core::Set #t95 = col::LinkedHashSet::•(); + final core::Set #t105 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final core::int #t96 in dynVar as{TypeError} core::Iterable) - #t95.{core::Set::add}(#t96); - #t95.{core::Set::add}(null); - } =>#t95; + for (final core::int #t106 in dynVar as{TypeError} core::Iterable) + #t105.{core::Set::add}(#t106); + #t105.{core::Set::add}(null); + } =>#t105; + core::Map map91 = {"baz": null}; } static method testIfElementErrors(core::Map map) → dynamic { - [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:62:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:84:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. [if (oracle(\"foo\")) \"bar\"]; ^"]; - let final core::Set #t97 = col::LinkedHashSet::•() in let final dynamic #t98 = #t97.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:63:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + let final core::Set #t107 = col::LinkedHashSet::•() in let final dynamic #t108 = #t107.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:85:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. {if (oracle(\"foo\")) \"bar\", null}; - ^") in let final dynamic #t99 = #t97.{core::Set::add}(null) in #t97; + ^") in let final dynamic #t109 = #t107.{core::Set::add}(null) in #t107; + {null: invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:86:41: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +Try changing the type of the left hand side, or casting the right hand side to 'int'. + {if (oracle(\"foo\")) \"bar\": \"bar\", \"baz\": null}; + ^", "baz": null}; block { - final core::List #t100 = []; + final core::List #t110 = []; if(self::oracle("foo")) - for (final core::int #t101 in [let final #t102 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:64:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + for (final core::int #t111 in [let final #t112 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:87:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. [if (oracle(\"foo\")) ...[\"bar\"]]; ^" in "bar" as{TypeError} core::int]) - #t100.{core::List::add}(#t101); - } =>#t100; + #t110.{core::List::add}(#t111); + } =>#t110; block { - final core::Set #t103 = col::LinkedHashSet::•(); + final core::Set #t113 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final core::int #t104 in [let final #t105 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:65:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + for (final core::int #t114 in [let final #t115 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:88:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. {if (oracle(\"foo\")) ...[\"bar\"], null}; ^" in "bar" as{TypeError} core::int]) - #t103.{core::Set::add}(#t104); - #t103.{core::Set::add}(null); - } =>#t103; + #t113.{core::Set::add}(#t114); + #t113.{core::Set::add}(null); + } =>#t113; + {"baz": null}; block { - final core::List #t106 = []; + final core::List #t116 = []; if(self::oracle("foo")) - #t106.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:66:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t116.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:90:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [if (oracle(\"foo\")) ...map]; ^"); - } =>#t106; + } =>#t116; block { - final core::Set #t107 = col::LinkedHashSet::•(); + final core::Set #t117 = col::LinkedHashSet::•(); if(self::oracle("foo")) - #t107.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:67:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t117.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:91:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {if (oracle(\"foo\")) ...map, null}; ^"); - #t107.{core::Set::add}(null); - } =>#t107; - [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:68:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. + #t117.{core::Set::add}(null); + } =>#t117; + {"baz": null}; + [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:93:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. Try changing the type of the left hand side, or casting the right hand side to 'String'. [if (oracle(\"foo\")) 42 else 3.14]; ^"]; - let final core::Set #t108 = col::LinkedHashSet::•() in let final dynamic #t109 = #t108.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:69:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. + let final core::Set #t118 = col::LinkedHashSet::•() in let final dynamic #t119 = #t118.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:94:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. Try changing the type of the left hand side, or casting the right hand side to 'String'. {if (oracle(\"foo\")) 42 else 3.14, null}; - ^") in let final dynamic #t110 = #t108.{core::Set::add}(null) in #t108; + ^") in let final dynamic #t120 = #t118.{core::Set::add}(null) in #t118; + {null: invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:95:20: Error: A value of type 'num' can't be assigned to a variable of type 'String'. +Try changing the type of the left hand side, or casting the right hand side to 'String'. + {if (oracle(\"foo\")) \"bar\": 42 else \"baz\": 3.14, \"baz\": null}; + ^", "baz": null}; block { - final core::List #t111 = []; + final core::List #t121 = []; if(self::oracle("foo")) - #t111.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:70:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t121.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:96:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [if (oracle(\"foo\")) ...map else 42]; ^"); else - #t111.{core::List::add}(42 as{TypeError} core::int); - } =>#t111; + #t121.{core::List::add}(42 as{TypeError} core::int); + } =>#t121; block { - final core::Set #t112 = col::LinkedHashSet::•(); + final core::Set #t122 = col::LinkedHashSet::•(); if(self::oracle("foo")) - #t112.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:71:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t122.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:97:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {if (oracle(\"foo\")) ...map else 42, null}; ^"); else - #t112.{core::Set::add}(42 as{TypeError} core::int); - #t112.{core::Set::add}(null); - } =>#t112; + #t122.{core::Set::add}(42 as{TypeError} core::int); + #t122.{core::Set::add}(null); + } =>#t122; + {"baz": null}; block { - final core::List #t113 = []; + final core::List #t123 = []; if(self::oracle("foo")) - #t113.{core::List::add}(42 as{TypeError} core::int); + #t123.{core::List::add}(42 as{TypeError} core::int); else - #t113.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:72:39: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t123.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:99:39: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [if (oracle(\"foo\")) 42 else ...map]; ^"); - } =>#t113; + } =>#t123; block { - final core::Set #t114 = col::LinkedHashSet::•(); + final core::Set #t124 = col::LinkedHashSet::•(); if(self::oracle("foo")) - #t114.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:73:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t124.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:100:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {if (oracle(\"foo\")) ...map else 42, null}; ^"); else - #t114.{core::Set::add}(42 as{TypeError} core::int); - #t114.{core::Set::add}(null); - } =>#t114; + #t124.{core::Set::add}(42 as{TypeError} core::int); + #t124.{core::Set::add}(null); + } =>#t124; + {"baz": null}; } static method testForElement(dynamic dynVar, core::List listInt, core::List listDouble, core::int index) → dynamic { core::List list10 = block { - final core::List #t115 = []; + final core::List #t125 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t115.{core::List::add}(42); - } =>#t115; + #t125.{core::List::add}(42); + } =>#t125; core::Set set10 = block { - final core::Set #t116 = col::LinkedHashSet::•(); + final core::Set #t126 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t116.{core::Set::add}(42); - #t116.{core::Set::add}(null); - } =>#t116; + #t126.{core::Set::add}(42); + #t126.{core::Set::add}(null); + } =>#t126; core::List list11 = block { - final core::List #t117 = []; + final core::List #t127 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t117.{core::List::add}(dynVar); - } =>#t117; + #t127.{core::List::add}(dynVar); + } =>#t127; core::Set set11 = block { - final core::Set #t118 = col::LinkedHashSet::•(); + final core::Set #t128 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t118.{core::Set::add}(dynVar); - #t118.{core::Set::add}(null); - } =>#t118; + #t128.{core::Set::add}(dynVar); + #t128.{core::Set::add}(null); + } =>#t128; core::List> list12 = block { - final core::List> #t119 = >[]; + final core::List> #t129 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t119.{core::List::add}([42]); - } =>#t119; + #t129.{core::List::add}([42]); + } =>#t129; core::Set> set12 = block { - final core::Set> #t120 = col::LinkedHashSet::•>(); + final core::Set> #t130 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t120.{core::Set::add}([42]); - #t120.{core::Set::add}(null); - } =>#t120; + #t130.{core::Set::add}([42]); + #t130.{core::Set::add}(null); + } =>#t130; core::List list20 = block { - final core::List #t121 = []; + final core::List #t131 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t122 in [42]) - #t121.{core::List::add}(#t122); - } =>#t121; + for (final core::int #t132 in [42]) + #t131.{core::List::add}(#t132); + } =>#t131; core::Set set20 = block { - final core::Set #t123 = col::LinkedHashSet::•(); + final core::Set #t133 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t124 in [42]) - #t123.{core::Set::add}(#t124); - #t123.{core::Set::add}(null); - } =>#t123; + for (final core::int #t134 in [42]) + #t133.{core::Set::add}(#t134); + #t133.{core::Set::add}(null); + } =>#t133; core::List list21 = block { - final core::List #t125 = []; + final core::List #t135 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final dynamic #t126 in [dynVar]) - #t125.{core::List::add}(#t126); - } =>#t125; + for (final dynamic #t136 in [dynVar]) + #t135.{core::List::add}(#t136); + } =>#t135; core::Set set21 = block { - final core::Set #t127 = col::LinkedHashSet::•(); + final core::Set #t137 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final dynamic #t128 in [dynVar]) - #t127.{core::Set::add}(#t128); - #t127.{core::Set::add}(null); - } =>#t127; + for (final dynamic #t138 in [dynVar]) + #t137.{core::Set::add}(#t138); + #t137.{core::Set::add}(null); + } =>#t137; core::List> list22 = block { - final core::List> #t129 = >[]; + final core::List> #t139 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t130 in >[[42]]) - #t129.{core::List::add}(#t130); - } =>#t129; + for (final core::List #t140 in >[[42]]) + #t139.{core::List::add}(#t140); + } =>#t139; core::Set> set22 = block { - final core::Set> #t131 = col::LinkedHashSet::•>(); + final core::Set> #t141 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t132 in >[[42]]) - #t131.{core::Set::add}(#t132); - #t131.{core::Set::add}(null); - } =>#t131; + for (final core::List #t142 in >[[42]]) + #t141.{core::Set::add}(#t142); + #t141.{core::Set::add}(null); + } =>#t141; core::List list30 = block { - final core::List #t133 = []; + final core::List #t143 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::int #t134 in [42]) - #t133.{core::List::add}(#t134); - } =>#t133; + for (final core::int #t144 in [42]) + #t143.{core::List::add}(#t144); + } =>#t143; core::Set set30 = block { - final core::Set #t135 = col::LinkedHashSet::•(); + final core::Set #t145 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::int #t136 in [42]) - #t135.{core::Set::add}(#t136); - #t135.{core::Set::add}(null); - } =>#t135; + for (final core::int #t146 in [42]) + #t145.{core::Set::add}(#t146); + #t145.{core::Set::add}(null); + } =>#t145; core::List list31 = block { - final core::List #t137 = []; + final core::List #t147 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final dynamic #t138 in [dynVar]) - #t137.{core::List::add}(#t138); - } =>#t137; + for (final dynamic #t148 in [dynVar]) + #t147.{core::List::add}(#t148); + } =>#t147; core::Set set31 = block { - final core::Set #t139 = col::LinkedHashSet::•(); + final core::Set #t149 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final dynamic #t140 in [dynVar]) - #t139.{core::Set::add}(#t140); - #t139.{core::Set::add}(null); - } =>#t139; + for (final dynamic #t150 in [dynVar]) + #t149.{core::Set::add}(#t150); + #t149.{core::Set::add}(null); + } =>#t149; core::List> list33 = block { - final core::List> #t141 = >[]; + final core::List> #t151 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::List #t142 in >[[42]]) - #t141.{core::List::add}(#t142); - } =>#t141; + for (final core::List #t152 in >[[42]]) + #t151.{core::List::add}(#t152); + } =>#t151; core::Set> set33 = block { - final core::Set> #t143 = col::LinkedHashSet::•>(); + final core::Set> #t153 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::List #t144 in >[[42]]) - #t143.{core::Set::add}(#t144); - #t143.{core::Set::add}(null); - } =>#t143; + for (final core::List #t154 in >[[42]]) + #t153.{core::Set::add}(#t154); + #t153.{core::Set::add}(null); + } =>#t153; core::List> list40 = block { - final core::List> #t145 = >[]; + final core::List> #t155 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t146 in >[[]]) - #t145.{core::List::add}(#t146); - } =>#t145; + for (final core::List #t156 in >[[]]) + #t155.{core::List::add}(#t156); + } =>#t155; core::Set> set40 = block { - final core::Set> #t147 = col::LinkedHashSet::•>(); + final core::Set> #t157 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t148 in >[[]]) - #t147.{core::Set::add}(#t148); - #t147.{core::Set::add}(null); - } =>#t147; + for (final core::List #t158 in >[[]]) + #t157.{core::Set::add}(#t158); + #t157.{core::Set::add}(null); + } =>#t157; core::List> list41 = block { - final core::List> #t149 = >[]; + final core::List> #t159 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t150 in let final core::Set> #t151 = col::LinkedHashSet::•>() in let final dynamic #t152 = #t151.{core::Set::add}([]) in #t151) - #t149.{core::List::add}(#t150); - } =>#t149; + for (final core::List #t160 in let final core::Set> #t161 = col::LinkedHashSet::•>() in let final dynamic #t162 = #t161.{core::Set::add}([]) in #t161) + #t159.{core::List::add}(#t160); + } =>#t159; core::Set> set41 = block { - final core::Set> #t153 = col::LinkedHashSet::•>(); + final core::Set> #t163 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t154 in let final core::Set> #t155 = col::LinkedHashSet::•>() in let final dynamic #t156 = #t155.{core::Set::add}([]) in #t155) - #t153.{core::Set::add}(#t154); - #t153.{core::Set::add}(null); - } =>#t153; + for (final core::List #t164 in let final core::Set> #t165 = col::LinkedHashSet::•>() in let final dynamic #t166 = #t165.{core::Set::add}([]) in #t165) + #t163.{core::Set::add}(#t164); + #t163.{core::Set::add}(null); + } =>#t163; core::List> list42 = block { - final core::List> #t157 = >[]; + final core::List> #t167 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::List #t158 in >[[]]) - #t157.{core::List::add}(#t158); - } =>#t157; + for (final core::List #t168 in >[[]]) + #t167.{core::List::add}(#t168); + } =>#t167; core::Set> set42 = block { - final core::Set> #t159 = col::LinkedHashSet::•>(); + final core::Set> #t169 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::List #t160 in >[[]]) - #t159.{core::Set::add}(#t160); - #t159.{core::Set::add}(null); - } =>#t159; + for (final core::List #t170 in >[[]]) + #t169.{core::Set::add}(#t170); + #t169.{core::Set::add}(null); + } =>#t169; core::List list50 = block { - final core::List #t161 = []; + final core::List #t171 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t162 in []) - #t161.{core::List::add}(#t162); - } =>#t161; + for (final core::int #t172 in []) + #t171.{core::List::add}(#t172); + } =>#t171; core::Set set50 = block { - final core::Set #t163 = col::LinkedHashSet::•(); + final core::Set #t173 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t164 in []) - #t163.{core::Set::add}(#t164); - #t163.{core::Set::add}(null); - } =>#t163; + for (final core::int #t174 in []) + #t173.{core::Set::add}(#t174); + #t173.{core::Set::add}(null); + } =>#t173; core::List list51 = block { - final core::List #t165 = []; + final core::List #t175 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t166 in let final core::Set #t167 = col::LinkedHashSet::•() in #t167) - #t165.{core::List::add}(#t166); - } =>#t165; + for (final core::int #t176 in let final core::Set #t177 = col::LinkedHashSet::•() in #t177) + #t175.{core::List::add}(#t176); + } =>#t175; core::Set set51 = block { - final core::Set #t168 = col::LinkedHashSet::•(); + final core::Set #t178 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t169 in let final core::Set #t170 = col::LinkedHashSet::•() in #t170) - #t168.{core::Set::add}(#t169); - #t168.{core::Set::add}(null); - } =>#t168; + for (final core::int #t179 in let final core::Set #t180 = col::LinkedHashSet::•() in #t180) + #t178.{core::Set::add}(#t179); + #t178.{core::Set::add}(null); + } =>#t178; core::List list52 = block { - final core::List #t171 = []; + final core::List #t181 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::int #t172 in []) - #t171.{core::List::add}(#t172); - } =>#t171; + for (final core::int #t182 in []) + #t181.{core::List::add}(#t182); + } =>#t181; core::Set set52 = block { - final core::Set #t173 = col::LinkedHashSet::•(); + final core::Set #t183 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::int #t174 in []) - #t173.{core::Set::add}(#t174); - #t173.{core::Set::add}(null); - } =>#t173; + for (final core::int #t184 in []) + #t183.{core::Set::add}(#t184); + #t183.{core::Set::add}(null); + } =>#t183; core::List> list60 = block { - final core::List> #t175 = >[]; + final core::List> #t185 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t176 in >[[]]) - #t175.{core::List::add}(#t176); - } =>#t175; + for (final core::List #t186 in >[[]]) + #t185.{core::List::add}(#t186); + } =>#t185; core::Set> set60 = block { - final core::Set> #t177 = col::LinkedHashSet::•>(); + final core::Set> #t187 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t178 in >[[]]) - #t177.{core::Set::add}(#t178); - #t177.{core::Set::add}(null); - } =>#t177; + for (final core::List #t188 in >[[]]) + #t187.{core::Set::add}(#t188); + #t187.{core::Set::add}(null); + } =>#t187; core::List> list61 = block { - final core::List> #t179 = >[]; + final core::List> #t189 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::List #t180 in >[[]]) - #t179.{core::List::add}(#t180); - } =>#t179; + for (final core::List #t190 in >[[]]) + #t189.{core::List::add}(#t190); + } =>#t189; core::Set> set61 = block { - final core::Set> #t181 = col::LinkedHashSet::•>(); + final core::Set> #t191 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::List #t182 in >[[]]) - #t181.{core::Set::add}(#t182); - #t181.{core::Set::add}(null); - } =>#t181; + for (final core::List #t192 in >[[]]) + #t191.{core::Set::add}(#t192); + #t191.{core::Set::add}(null); + } =>#t191; core::List> list70 = block { - final core::List> #t183 = >[]; + final core::List> #t193 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t183.{core::List::add}([]); - } =>#t183; + #t193.{core::List::add}([]); + } =>#t193; core::Set> set70 = block { - final core::Set> #t184 = col::LinkedHashSet::•>(); + final core::Set> #t194 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t184.{core::Set::add}([]); - #t184.{core::Set::add}(null); - } =>#t184; + #t194.{core::Set::add}([]); + #t194.{core::Set::add}(null); + } =>#t194; core::List> list71 = block { - final core::List> #t185 = >[]; + final core::List> #t195 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t185.{core::List::add}([]); - } =>#t185; + #t195.{core::List::add}([]); + } =>#t195; core::Set> set71 = block { - final core::Set> #t186 = col::LinkedHashSet::•>(); + final core::Set> #t196 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t186.{core::Set::add}([]); - #t186.{core::Set::add}(null); - } =>#t186; + #t196.{core::Set::add}([]); + #t196.{core::Set::add}(null); + } =>#t196; core::List list80 = block { - final core::List #t187 = []; + final core::List #t197 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t187.{core::List::add}(42); + #t197.{core::List::add}(42); else - #t187.{core::List::add}(3.14); - } =>#t187; + #t197.{core::List::add}(3.14); + } =>#t197; core::Set set80 = block { - final core::Set #t188 = col::LinkedHashSet::•(); + final core::Set #t198 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t188.{core::Set::add}(42); + #t198.{core::Set::add}(42); else - #t188.{core::Set::add}(3.14); - #t188.{core::Set::add}(null); - } =>#t188; + #t198.{core::Set::add}(3.14); + #t198.{core::Set::add}(null); + } =>#t198; core::List list81 = block { - final core::List #t189 = []; + final core::List #t199 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::num #t190 in listInt) - #t189.{core::List::add}(#t190); + for (final core::num #t200 in listInt) + #t199.{core::List::add}(#t200); else - for (final core::num #t191 in listDouble) - #t189.{core::List::add}(#t191); - } =>#t189; + for (final core::num #t201 in listDouble) + #t199.{core::List::add}(#t201); + } =>#t199; core::Set set81 = block { - final core::Set #t192 = col::LinkedHashSet::•(); + final core::Set #t202 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::num #t193 in listInt) - #t192.{core::Set::add}(#t193); + for (final core::num #t203 in listInt) + #t202.{core::Set::add}(#t203); else - for (final core::num #t194 in listDouble) - #t192.{core::Set::add}(#t194); - #t192.{core::Set::add}(null); - } =>#t192; + for (final core::num #t204 in listDouble) + #t202.{core::Set::add}(#t204); + #t202.{core::Set::add}(null); + } =>#t202; core::List list82 = block { - final core::List #t195 = []; + final core::List #t205 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final dynamic #t196 in listInt as{TypeError} core::Iterable) - #t195.{core::List::add}(#t196); + for (final dynamic #t206 in listInt as{TypeError} core::Iterable) + #t205.{core::List::add}(#t206); else - for (final dynamic #t197 in dynVar as{TypeError} core::Iterable) - #t195.{core::List::add}(#t197); - } =>#t195; + for (final dynamic #t207 in dynVar as{TypeError} core::Iterable) + #t205.{core::List::add}(#t207); + } =>#t205; core::Set set82 = block { - final core::Set #t198 = col::LinkedHashSet::•(); + final core::Set #t208 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final dynamic #t199 in listInt as{TypeError} core::Iterable) - #t198.{core::Set::add}(#t199); + for (final dynamic #t209 in listInt as{TypeError} core::Iterable) + #t208.{core::Set::add}(#t209); else - for (final dynamic #t200 in dynVar as{TypeError} core::Iterable) - #t198.{core::Set::add}(#t200); - #t198.{core::Set::add}(null); - } =>#t198; + for (final dynamic #t210 in dynVar as{TypeError} core::Iterable) + #t208.{core::Set::add}(#t210); + #t208.{core::Set::add}(null); + } =>#t208; core::List list83 = block { - final core::List #t201 = []; + final core::List #t211 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t201.{core::List::add}(42); + #t211.{core::List::add}(42); else - for (final core::num #t202 in listDouble) - #t201.{core::List::add}(#t202); - } =>#t201; + for (final core::num #t212 in listDouble) + #t211.{core::List::add}(#t212); + } =>#t211; core::Set set83 = block { - final core::Set #t203 = col::LinkedHashSet::•(); + final core::Set #t213 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::num #t204 in listInt) - #t203.{core::Set::add}(#t204); + for (final core::num #t214 in listInt) + #t213.{core::Set::add}(#t214); else - #t203.{core::Set::add}(3.14); - #t203.{core::Set::add}(null); - } =>#t203; + #t213.{core::Set::add}(3.14); + #t213.{core::Set::add}(null); + } =>#t213; core::List list90 = block { - final core::List #t205 = []; + final core::List #t215 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t205.{core::List::add}(dynVar as{TypeError} core::int); - } =>#t205; + #t215.{core::List::add}(dynVar as{TypeError} core::int); + } =>#t215; core::Set set90 = block { - final core::Set #t206 = col::LinkedHashSet::•(); + final core::Set #t216 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t206.{core::Set::add}(dynVar as{TypeError} core::int); - #t206.{core::Set::add}(null); - } =>#t206; + #t216.{core::Set::add}(dynVar as{TypeError} core::int); + #t216.{core::Set::add}(null); + } =>#t216; core::List list91 = block { - final core::List #t207 = []; + final core::List #t217 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t208 in dynVar as{TypeError} core::Iterable) - #t207.{core::List::add}(#t208); - } =>#t207; + for (final core::int #t218 in dynVar as{TypeError} core::Iterable) + #t217.{core::List::add}(#t218); + } =>#t217; core::Set set91 = block { - final core::Set #t209 = col::LinkedHashSet::•(); + final core::Set #t219 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t210 in dynVar as{TypeError} core::Iterable) - #t209.{core::Set::add}(#t210); - #t209.{core::Set::add}(null); - } =>#t209; + for (final core::int #t220 in dynVar as{TypeError} core::Iterable) + #t219.{core::Set::add}(#t220); + #t219.{core::Set::add}(null); + } =>#t219; core::List list100 = block { - final core::List #t211 = []; - for (final dynamic #t212 = index = 0; self::oracle("foo") as{TypeError} core::bool; index = index.{core::num::+}(1)) - #t211.{core::List::add}(42); - } =>#t211; + final core::List #t221 = []; + for (final dynamic #t222 = index = 0; self::oracle("foo") as{TypeError} core::bool; index = index.{core::num::+}(1)) + #t221.{core::List::add}(42); + } =>#t221; core::Set set100 = block { - final core::Set #t213 = col::LinkedHashSet::•(); - for (final dynamic #t214 = index = 0; self::oracle("foo") as{TypeError} core::bool; index = index.{core::num::+}(1)) - #t213.{core::Set::add}(42); - } =>#t213; + final core::Set #t223 = col::LinkedHashSet::•(); + for (final dynamic #t224 = index = 0; self::oracle("foo") as{TypeError} core::bool; index = index.{core::num::+}(1)) + #t223.{core::Set::add}(42); + } =>#t223; core::List list110 = block { - final core::List #t215 = []; + final core::List #t225 = []; for (core::int i in [1, 2, 3]) - #t215.{core::List::add}(i); - } =>#t215; + #t225.{core::List::add}(i); + } =>#t225; core::Set set110 = block { - final core::Set #t216 = col::LinkedHashSet::•(); + final core::Set #t226 = col::LinkedHashSet::•(); for (core::int i in [1, 2, 3]) - #t216.{core::Set::add}(i); - #t216.{core::Set::add}(null); - } =>#t216; + #t226.{core::Set::add}(i); + #t226.{core::Set::add}(null); + } =>#t226; core::List list120 = block { - final core::List #t217 = []; + final core::List #t227 = []; for (dynamic i in dynVar as{TypeError} core::Iterable) - #t217.{core::List::add}(i as{TypeError} core::int); - } =>#t217; + #t227.{core::List::add}(i as{TypeError} core::int); + } =>#t227; core::Set set120 = block { - final core::Set #t218 = col::LinkedHashSet::•(); + final core::Set #t228 = col::LinkedHashSet::•(); for (dynamic i in dynVar as{TypeError} core::Iterable) - #t218.{core::Set::add}(i as{TypeError} core::int); - #t218.{core::Set::add}(null); - } =>#t218; + #t228.{core::Set::add}(i as{TypeError} core::int); + #t228.{core::Set::add}(null); + } =>#t228; } static method testForElementErrors(core::Map map) → dynamic async { - [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:137:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:165:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. [for (int i = 0; oracle(\"foo\"); i++) \"bar\"]; ^"]; - let final core::Set #t219 = col::LinkedHashSet::•() in let final dynamic #t220 = #t219.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:138:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + let final core::Set #t229 = col::LinkedHashSet::•() in let final dynamic #t230 = #t229.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:166:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. {for (int i = 0; oracle(\"foo\"); i++) \"bar\", null}; - ^") in let final dynamic #t221 = #t219.{core::Set::add}(null) in #t219; + ^") in let final dynamic #t231 = #t229.{core::Set::add}(null) in #t229; block { - final core::List #t222 = []; + final core::List #t232 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t223 in [let final #t224 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:139:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + for (final core::int #t233 in [let final #t234 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:167:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. [for (int i = 0; oracle(\"foo\"); i++) ...[\"bar\"]]; ^" in "bar" as{TypeError} core::int]) - #t222.{core::List::add}(#t223); - } =>#t222; + #t232.{core::List::add}(#t233); + } =>#t232; block { - final core::Set #t225 = col::LinkedHashSet::•(); + final core::Set #t235 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t226 in [let final #t227 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:140:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + for (final core::int #t236 in [let final #t237 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:168:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. {for (int i = 0; oracle(\"foo\"); i++) ...[\"bar\"], null}; ^" in "bar" as{TypeError} core::int]) - #t225.{core::Set::add}(#t226); - #t225.{core::Set::add}(null); - } =>#t225; + #t235.{core::Set::add}(#t236); + #t235.{core::Set::add}(null); + } =>#t235; block { - final core::List #t228 = []; + final core::List #t238 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t228.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:141:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t238.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:169:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [for (int i = 0; oracle(\"foo\"); i++) ...map]; ^"); - } =>#t228; + } =>#t238; block { - final core::Set #t229 = col::LinkedHashSet::•(); + final core::Set #t239 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t229.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:142:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t239.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:170:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {for (int i = 0; oracle(\"foo\"); i++) ...map, null}; ^"); - #t229.{core::Set::add}(null); - } =>#t229; - [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:143:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. + #t239.{core::Set::add}(null); + } =>#t239; + [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:171:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. Try changing the type of the left hand side, or casting the right hand side to 'String'. [for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else 3.14]; ^"]; - let final core::Set #t230 = col::LinkedHashSet::•() in let final dynamic #t231 = #t230.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:144:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. + let final core::Set #t240 = col::LinkedHashSet::•() in let final dynamic #t241 = #t240.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:172:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. Try changing the type of the left hand side, or casting the right hand side to 'String'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else 3.14, null}; - ^") in let final dynamic #t232 = #t230.{core::Set::add}(null) in #t230; + ^") in let final dynamic #t242 = #t240.{core::Set::add}(null) in #t240; block { - final core::List #t233 = []; + final core::List #t243 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t233.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:145:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t243.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:173:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [for (int i = 0; oracle(\"foo\"); i++) if (oracle()) ...map else 42]; ^"); else - #t233.{core::List::add}(42 as{TypeError} core::int); - } =>#t233; + #t243.{core::List::add}(42 as{TypeError} core::int); + } =>#t243; block { - final core::Set #t234 = col::LinkedHashSet::•(); + final core::Set #t244 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t234.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:146:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t244.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:174:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) ...map else 42, null}; ^"); else - #t234.{core::Set::add}(42 as{TypeError} core::int); - #t234.{core::Set::add}(null); - } =>#t234; + #t244.{core::Set::add}(42 as{TypeError} core::int); + #t244.{core::Set::add}(null); + } =>#t244; block { - final core::List #t235 = []; + final core::List #t245 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t235.{core::List::add}(42 as{TypeError} core::int); + #t245.{core::List::add}(42 as{TypeError} core::int); else - #t235.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:147:70: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t245.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:175:70: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else ...map]; ^"); - } =>#t235; + } =>#t245; block { - final core::Set #t236 = col::LinkedHashSet::•(); + final core::Set #t246 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t236.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:148:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t246.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:176:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) ...map else 42, null}; ^"); else - #t236.{core::Set::add}(42 as{TypeError} core::int); - #t236.{core::Set::add}(null); - } =>#t236; + #t246.{core::Set::add}(42 as{TypeError} core::int); + #t246.{core::Set::add}(null); + } =>#t246; final core::int i = 0; block { - final core::List #t237 = []; - for (final core::int #t238 in [1]) { - invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:151:14: Error: Setter not found: 'i'. + final core::List #t247 = []; + for (final core::int #t248 in [1]) { + invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:179:14: Error: Setter not found: 'i'. [for (i in [1]) i]; ^"; - #t237.{core::List::add}(i); + #t247.{core::List::add}(i); } - } =>#t237; + } =>#t247; block { - final core::Set #t239 = col::LinkedHashSet::•(); - for (final core::int #t240 in [1]) { - invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:152:14: Error: Setter not found: 'i'. + final core::Set #t249 = col::LinkedHashSet::•(); + for (final core::int #t250 in [1]) { + invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:180:14: Error: Setter not found: 'i'. {for (i in [1]) i, null}; ^"; - #t239.{core::Set::add}(i); + #t249.{core::Set::add}(i); } - #t239.{core::Set::add}(null); - } =>#t239; + #t249.{core::Set::add}(null); + } =>#t249; core::List list10 = block { - final core::List #t241 = []; - for (dynamic i in let final #t242 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:154:31: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + final core::List #t251 = []; + for (dynamic i in let final #t252 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:182:31: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. - 'Iterable' is from 'dart:core'. var list10 = [for (var i in \"not iterable\") i]; ^" in "not iterable" as{TypeError} core::Iterable) - #t241.{core::List::add}(i); - } =>#t241; + #t251.{core::List::add}(i); + } =>#t251; core::Set set10 = block { - final core::Set #t243 = col::LinkedHashSet::•(); - for (dynamic i in let final #t244 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:155:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + final core::Set #t253 = col::LinkedHashSet::•(); + for (dynamic i in let final #t254 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:183:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. - 'Iterable' is from 'dart:core'. var set10 = {for (var i in \"not iterable\") i, null}; ^" in "not iterable" as{TypeError} core::Iterable) - #t243.{core::Set::add}(i); - #t243.{core::Set::add}(null); - } =>#t243; + #t253.{core::Set::add}(i); + #t253.{core::Set::add}(null); + } =>#t253; core::List list20 = block { - final core::List #t245 = []; - for (core::int i in [let final #t246 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:156:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + final core::List #t255 = []; + for (core::int i in [let final #t256 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:184:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var list20 = [for (int i in [\"not\", \"int\"]) i]; - ^" in "not" as{TypeError} core::int, let final #t247 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:156:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int, let final #t257 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:184:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var list20 = [for (int i in [\"not\", \"int\"]) i]; ^" in "int" as{TypeError} core::int]) - #t245.{core::List::add}(i); - } =>#t245; + #t255.{core::List::add}(i); + } =>#t255; core::Set set20 = block { - final core::Set #t248 = col::LinkedHashSet::•(); - for (core::int i in [let final #t249 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:157:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + final core::Set #t258 = col::LinkedHashSet::•(); + for (core::int i in [let final #t259 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:185:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var set20 = {for (int i in [\"not\", \"int\"]) i, null}; - ^" in "not" as{TypeError} core::int, let final #t250 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:157:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int, let final #t260 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:185:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var set20 = {for (int i in [\"not\", \"int\"]) i, null}; ^" in "int" as{TypeError} core::int]) - #t248.{core::Set::add}(i); - #t248.{core::Set::add}(null); - } =>#t248; + #t258.{core::Set::add}(i); + #t258.{core::Set::add}(null); + } =>#t258; core::List list30 = block { - final core::List #t251 = []; - await for (dynamic i in let final #t252 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:158:37: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + final core::List #t261 = []; + await for (dynamic i in let final #t262 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:186:37: Error: The type 'String' used in the 'for' loop must implement 'Stream'. - 'Stream' is from 'dart:async'. var list30 = [await for (var i in \"not stream\") i]; ^" in "not stream" as{TypeError} asy::Stream) - #t251.{core::List::add}(i); - } =>#t251; + #t261.{core::List::add}(i); + } =>#t261; core::Set set30 = block { - final core::Set #t253 = col::LinkedHashSet::•(); - await for (dynamic i in let final #t254 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:159:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + final core::Set #t263 = col::LinkedHashSet::•(); + await for (dynamic i in let final #t264 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:187:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. - 'Stream' is from 'dart:async'. var set30 = {await for (var i in \"not stream\") i, null}; ^" in "not stream" as{TypeError} asy::Stream) - #t253.{core::Set::add}(i); - #t253.{core::Set::add}(null); - } =>#t253; + #t263.{core::Set::add}(i); + #t263.{core::Set::add}(null); + } =>#t263; core::List list40 = block { - final core::List #t255 = []; - await for (core::int i in asy::Stream::fromIterable([let final #t256 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:160:58: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + final core::List #t265 = []; + await for (core::int i in asy::Stream::fromIterable([let final #t266 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:188:58: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var list40 = [await for (int i in Stream.fromIterable([\"not\", \"int\"])) i]; - ^" in "not" as{TypeError} core::int, let final #t257 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:160:65: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int, let final #t267 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:188:65: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var list40 = [await for (int i in Stream.fromIterable([\"not\", \"int\"])) i]; ^" in "int" as{TypeError} core::int])) - #t255.{core::List::add}(i); - } =>#t255; + #t265.{core::List::add}(i); + } =>#t265; core::Set set40 = block { - final core::Set #t258 = col::LinkedHashSet::•(); - await for (core::int i in asy::Stream::fromIterable([let final #t259 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:161:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + final core::Set #t268 = col::LinkedHashSet::•(); + await for (core::int i in asy::Stream::fromIterable([let final #t269 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:189:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var set40 = {await for (int i in Stream.fromIterable([\"not\", \"int\"])) i, null}; - ^" in "not" as{TypeError} core::int, let final #t260 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:161:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int, let final #t270 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:189:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var set40 = {await for (int i in Stream.fromIterable([\"not\", \"int\"])) i, null}; ^" in "int" as{TypeError} core::int])) - #t258.{core::Set::add}(i); - #t258.{core::Set::add}(null); - } =>#t258; + #t268.{core::Set::add}(i); + #t268.{core::Set::add}(null); + } =>#t268; core::List list50 = block { - final core::List #t261 = []; + final core::List #t271 = []; for (; ; ) - #t261.{core::List::add}(42); - } =>#t261; + #t271.{core::List::add}(42); + } =>#t271; core::Set set50 = block { - final core::Set #t262 = col::LinkedHashSet::•(); + final core::Set #t272 = col::LinkedHashSet::•(); for (; ; ) - #t262.{core::Set::add}(42); - #t262.{core::Set::add}(null); - } =>#t262; + #t272.{core::Set::add}(42); + #t272.{core::Set::add}(null); + } =>#t272; core::List list60 = block { - final core::List #t263 = []; - for (; let final #t264 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:164:24: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. + final core::List #t273 = []; + for (; let final #t274 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:192:24: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. Try changing the type of the left hand side, or casting the right hand side to 'bool'. var list60 = [for (; \"not bool\";) 42]; ^" in "not bool" as{TypeError} core::bool; ) - #t263.{core::List::add}(42); - } =>#t263; + #t273.{core::List::add}(42); + } =>#t273; core::Set set60 = block { - final core::Set #t265 = col::LinkedHashSet::•(); - for (; let final #t266 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:165:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. + final core::Set #t275 = col::LinkedHashSet::•(); + for (; let final #t276 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:193:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. Try changing the type of the left hand side, or casting the right hand side to 'bool'. var set60 = {for (; \"not bool\";) 42, null}; ^" in "not bool" as{TypeError} core::bool; ) - #t265.{core::Set::add}(42); - #t265.{core::Set::add}(null); - } =>#t265; + #t275.{core::Set::add}(42); + #t275.{core::Set::add}(null); + } =>#t275; } static method testForElementErrorsNotAsync(asy::Stream stream) → dynamic { block { - final core::List #t267 = []; + final core::List #t277 = []; await for (core::int i in stream) - #t267.{core::List::add}(i); - } =>#t267; + #t277.{core::List::add}(i); + } =>#t277; block { - final core::Set #t268 = col::LinkedHashSet::•(); + final core::Set #t278 = col::LinkedHashSet::•(); await for (core::int i in stream) - #t268.{core::Set::add}(i); - } =>#t268; + #t278.{core::Set::add}(i); + } =>#t278; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/control_flow_collection_inference.dart.strong.transformed.expect b/pkg/front_end/testcases/control_flow_collection_inference.dart.strong.transformed.expect index 4f6f84fcf909..f657cd77e8bd 100644 --- a/pkg/front_end/testcases/control_flow_collection_inference.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/control_flow_collection_inference.dart.strong.transformed.expect @@ -2,220 +2,317 @@ library; // // Problems in library: // -// pkg/front_end/testcases/control_flow_collection_inference.dart:62:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:21:16: Error: Expected ':' after this. +// var map20 = {if (oracle("foo")) ...{"bar": 42}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:24:16: Error: Expected ':' after this. +// var map21 = {if (oracle("foo")) ...{"bar": dynVar}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:27:16: Error: Expected ':' after this. +// var map22 = {if (oracle("foo")) ...{"bar": [42]}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:30:16: Error: Expected ':' after this. +// var map30 = {if (oracle("foo")) if (oracle()) ...{"bar": 42}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:33:16: Error: Expected ':' after this. +// var map31 = {if (oracle("foo")) if (oracle()) ...{"bar": dynVar}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:36:16: Error: Expected ':' after this. +// var map33 = {if (oracle("foo")) if (oracle()) ...{"bar": [42]}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:39:35: Error: Expected ':' after this. +// Map> map40 = {if (oracle("foo")) ...{"bar", []}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:44:35: Error: Expected ':' after this. +// Map> map42 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:47:3: Error: Expected 2 type arguments. +// Map map50 = {if (oracle("foo")) ...{}, "baz": null}; +// ^^^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:47:21: Error: Expected ':' after this. +// Map map50 = {if (oracle("foo")) ...{}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:52:29: Error: Expected ':' after this. +// Map map52 = {if (oracle("foo")) if (oracle()) ...{}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:55:35: Error: Expected ':' after this. +// Map> map60 = {if (oracle("foo")) ...{"bar": []}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:58:35: Error: Expected ':' after this. +// Map> map61 = {if (oracle("foo")) if (oracle()) ...{"bar": []}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:80:29: Error: Expected ':' after this. +// Map map91 = {if (oracle("foo")) ...dynVar, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:68:38: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// - 'Map' is from 'dart:core'. +// var map81 = {if (oracle("foo")) ...mapToInt else ...mapToDouble, null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:68:55: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// - 'Map' is from 'dart:core'. +// var map81 = {if (oracle("foo")) ...mapToInt else ...mapToDouble, null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:74:38: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// - 'Map' is from 'dart:core'. +// var map83 = {if (oracle("foo")) ...mapToInt else 3.14, null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:89:17: Error: Expected ':' after this. +// {if (oracle("foo")) ...{"bar": "bar"}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:92:17: Error: Expected ':' after this. +// {if (oracle("foo")) ...["bar"], "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:98:17: Error: Expected ':' after this. +// {if (oracle("foo")) ...[42] else {"bar": 42}, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:101:17: Error: Expected ':' after this. +// {if (oracle("foo")) {"bar": 42} else ...[42], "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:84:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // [if (oracle("foo")) "bar"]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:63:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:85:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // {if (oracle("foo")) "bar", null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:64:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:86:41: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// Try changing the type of the left hand side, or casting the right hand side to 'int'. +// {if (oracle("foo")) "bar": "bar", "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:87:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // [if (oracle("foo")) ...["bar"]]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:65:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:88:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // {if (oracle("foo")) ...["bar"], null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:66:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:90:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // [if (oracle("foo")) ...map]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:67:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:91:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // {if (oracle("foo")) ...map, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:68:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:93:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. // Try changing the type of the left hand side, or casting the right hand side to 'String'. // [if (oracle("foo")) 42 else 3.14]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:69:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:94:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. // Try changing the type of the left hand side, or casting the right hand side to 'String'. // {if (oracle("foo")) 42 else 3.14, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:70:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:95:20: Error: A value of type 'num' can't be assigned to a variable of type 'String'. +// Try changing the type of the left hand side, or casting the right hand side to 'String'. +// {if (oracle("foo")) "bar": 42 else "baz": 3.14, "baz": null}; +// ^ +// +// pkg/front_end/testcases/control_flow_collection_inference.dart:96:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // [if (oracle("foo")) ...map else 42]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:71:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:97:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // {if (oracle("foo")) ...map else 42, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:72:39: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:99:39: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // [if (oracle("foo")) 42 else ...map]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:73:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:100:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // {if (oracle("foo")) ...map else 42, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:151:14: Error: Setter not found: 'i'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:179:14: Error: Setter not found: 'i'. // [for (i in [1]) i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:152:14: Error: Setter not found: 'i'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:180:14: Error: Setter not found: 'i'. // {for (i in [1]) i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:162:17: Error: The keyword 'await' isn't allowed for a normal 'for' statement. +// pkg/front_end/testcases/control_flow_collection_inference.dart:190:17: Error: The keyword 'await' isn't allowed for a normal 'for' statement. // Try removing the keyword, or use a for-each statement. // var list50 = [await for (;;) 42]; // ^^^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:163:16: Error: The keyword 'await' isn't allowed for a normal 'for' statement. +// pkg/front_end/testcases/control_flow_collection_inference.dart:191:16: Error: The keyword 'await' isn't allowed for a normal 'for' statement. // Try removing the keyword, or use a for-each statement. // var set50 = {await for (;;) 42, null}; // ^^^^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:137:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:165:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // [for (int i = 0; oracle("foo"); i++) "bar"]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:138:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:166:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // {for (int i = 0; oracle("foo"); i++) "bar", null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:139:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:167:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // [for (int i = 0; oracle("foo"); i++) ...["bar"]]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:140:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:168:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // {for (int i = 0; oracle("foo"); i++) ...["bar"], null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:141:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:169:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // [for (int i = 0; oracle("foo"); i++) ...map]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:142:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:170:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // {for (int i = 0; oracle("foo"); i++) ...map, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:143:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:171:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. // Try changing the type of the left hand side, or casting the right hand side to 'String'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:144:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:172:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. // Try changing the type of the left hand side, or casting the right hand side to 'String'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:145:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:173:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:146:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:174:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:147:70: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:175:70: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...map]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:148:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. +// pkg/front_end/testcases/control_flow_collection_inference.dart:176:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. // - 'Map' is from 'dart:core'. // {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:154:31: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:182:31: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. // - 'Iterable' is from 'dart:core'. // var list10 = [for (var i in "not iterable") i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:155:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:183:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. // - 'Iterable' is from 'dart:core'. // var set10 = {for (var i in "not iterable") i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:156:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:184:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var list20 = [for (int i in ["not", "int"]) i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:156:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:184:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var list20 = [for (int i in ["not", "int"]) i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:157:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:185:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var set20 = {for (int i in ["not", "int"]) i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:157:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:185:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var set20 = {for (int i in ["not", "int"]) i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:158:37: Error: The type 'String' used in the 'for' loop must implement 'Stream'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:186:37: Error: The type 'String' used in the 'for' loop must implement 'Stream'. // - 'Stream' is from 'dart:async'. // var list30 = [await for (var i in "not stream") i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:159:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:187:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. // - 'Stream' is from 'dart:async'. // var set30 = {await for (var i in "not stream") i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:160:58: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:188:58: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var list40 = [await for (int i in Stream.fromIterable(["not", "int"])) i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:160:65: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:188:65: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var list40 = [await for (int i in Stream.fromIterable(["not", "int"])) i]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:161:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:189:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var set40 = {await for (int i in Stream.fromIterable(["not", "int"])) i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:161:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:189:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. // Try changing the type of the left hand side, or casting the right hand side to 'int'. // var set40 = {await for (int i in Stream.fromIterable(["not", "int"])) i, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:164:24: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:192:24: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. // Try changing the type of the left hand side, or casting the right hand side to 'bool'. // var list60 = [for (; "not bool";) 42]; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:165:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:193:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. // Try changing the type of the left hand side, or casting the right hand side to 'bool'. // var set60 = {for (; "not bool";) 42, null}; // ^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:169:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:197:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. // Try marking the function body with either 'async' or 'async*', or removing the 'await' before the for loop. // [await for (int i in stream) i]; // ^^ // -// pkg/front_end/testcases/control_flow_collection_inference.dart:170:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. +// pkg/front_end/testcases/control_flow_collection_inference.dart:198:26: Error: The asynchronous for-in can only be used in functions marked with 'async' or 'async*'. // Try marking the function body with either 'async' or 'async*', or removing the 'await' before the for loop. // {await for (int i in stream) i}; // ^^ @@ -227,7 +324,7 @@ import "dart:async" as asy; static method oracle([self::oracle::T t = null]) → dynamic return true; -static method testIfElement(dynamic dynVar, core::List listInt, core::List listDouble) → dynamic { +static method testIfElement(dynamic dynVar, core::List listInt, core::List listDouble, core::Map mapToInt, core::Map mapToDouble) → dynamic { core::List list10 = block { final core::List #t1 = []; if(self::oracle("foo")) @@ -239,823 +336,915 @@ static method testIfElement(dynamic dynVar, core::List listInt, core: #t2.{core::Set::add}(42); #t2.{core::Set::add}(null); } =>#t2; - core::List list11 = block { - final core::List #t3 = []; + core::Map map10 = block { + final core::Map #t3 = {}; if(self::oracle("foo")) - #t3.{core::List::add}(dynVar); + #t3.{core::Map::[]=}("bar", 42); + #t3.{core::Map::[]=}("baz", null); } =>#t3; - core::Set set11 = block { - final core::Set #t4 = col::LinkedHashSet::•(); + core::List list11 = block { + final core::List #t4 = []; if(self::oracle("foo")) - #t4.{core::Set::add}(dynVar); - #t4.{core::Set::add}(null); + #t4.{core::List::add}(dynVar); } =>#t4; - core::List> list12 = block { - final core::List> #t5 = >[]; + core::Set set11 = block { + final core::Set #t5 = col::LinkedHashSet::•(); if(self::oracle("foo")) - #t5.{core::List::add}([42]); + #t5.{core::Set::add}(dynVar); + #t5.{core::Set::add}(null); } =>#t5; - core::Set> set12 = block { - final core::Set> #t6 = col::LinkedHashSet::•>(); + core::Map map11 = block { + final core::Map #t6 = {}; if(self::oracle("foo")) - #t6.{core::Set::add}([42]); - #t6.{core::Set::add}(null); + #t6.{core::Map::[]=}("bar", dynVar); + #t6.{core::Map::[]=}("baz", null); } =>#t6; - core::List list20 = block { - final core::List #t7 = []; + core::List> list12 = block { + final core::List> #t7 = >[]; if(self::oracle("foo")) - for (final core::int #t8 in [42]) - #t7.{core::List::add}(#t8); + #t7.{core::List::add}([42]); } =>#t7; - core::Set set20 = block { - final core::Set #t9 = col::LinkedHashSet::•(); + core::Set> set12 = block { + final core::Set> #t8 = col::LinkedHashSet::•>(); + if(self::oracle("foo")) + #t8.{core::Set::add}([42]); + #t8.{core::Set::add}(null); + } =>#t8; + core::Map> map12 = block { + final core::Map> #t9 = >{}; if(self::oracle("foo")) - for (final core::int #t10 in [42]) - #t9.{core::Set::add}(#t10); - #t9.{core::Set::add}(null); + #t9.{core::Map::[]=}("bar", [42]); + #t9.{core::Map::[]=}("baz", null); } =>#t9; + core::List list20 = block { + final core::List #t10 = []; + if(self::oracle("foo")) + for (final core::int #t11 in [42]) + #t10.{core::List::add}(#t11); + } =>#t10; + core::Set set20 = block { + final core::Set #t12 = col::LinkedHashSet::•(); + if(self::oracle("foo")) + for (final core::int #t13 in [42]) + #t12.{core::Set::add}(#t13); + #t12.{core::Set::add}(null); + } =>#t12; + core::Map map20 = {"baz": null}; core::List list21 = block { - final core::List #t11 = []; + final core::List #t14 = []; if(self::oracle("foo")) - for (final dynamic #t12 in [dynVar]) - #t11.{core::List::add}(#t12); - } =>#t11; + for (final dynamic #t15 in [dynVar]) + #t14.{core::List::add}(#t15); + } =>#t14; core::Set set21 = block { - final core::Set #t13 = col::LinkedHashSet::•(); + final core::Set #t16 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final dynamic #t14 in [dynVar]) - #t13.{core::Set::add}(#t14); - #t13.{core::Set::add}(null); - } =>#t13; + for (final dynamic #t17 in [dynVar]) + #t16.{core::Set::add}(#t17); + #t16.{core::Set::add}(null); + } =>#t16; + core::Map map21 = {"baz": null}; core::List> list22 = block { - final core::List> #t15 = >[]; + final core::List> #t18 = >[]; if(self::oracle("foo")) - for (final core::List #t16 in >[[42]]) - #t15.{core::List::add}(#t16); - } =>#t15; + for (final core::List #t19 in >[[42]]) + #t18.{core::List::add}(#t19); + } =>#t18; core::Set> set22 = block { - final core::Set> #t17 = col::LinkedHashSet::•>(); + final core::Set> #t20 = col::LinkedHashSet::•>(); if(self::oracle("foo")) - for (final core::List #t18 in >[[42]]) - #t17.{core::Set::add}(#t18); - #t17.{core::Set::add}(null); - } =>#t17; + for (final core::List #t21 in >[[42]]) + #t20.{core::Set::add}(#t21); + #t20.{core::Set::add}(null); + } =>#t20; + core::Map map22 = {"baz": null}; core::List list30 = block { - final core::List #t19 = []; + final core::List #t22 = []; if(self::oracle("foo")) if(self::oracle()) - for (final core::int #t20 in [42]) - #t19.{core::List::add}(#t20); - } =>#t19; + for (final core::int #t23 in [42]) + #t22.{core::List::add}(#t23); + } =>#t22; core::Set set30 = block { - final core::Set #t21 = col::LinkedHashSet::•(); + final core::Set #t24 = col::LinkedHashSet::•(); if(self::oracle("foo")) if(self::oracle()) - for (final core::int #t22 in [42]) - #t21.{core::Set::add}(#t22); - #t21.{core::Set::add}(null); - } =>#t21; + for (final core::int #t25 in [42]) + #t24.{core::Set::add}(#t25); + #t24.{core::Set::add}(null); + } =>#t24; + core::Map map30 = {"baz": null}; core::List list31 = block { - final core::List #t23 = []; + final core::List #t26 = []; if(self::oracle("foo")) if(self::oracle()) - for (final dynamic #t24 in [dynVar]) - #t23.{core::List::add}(#t24); - } =>#t23; + for (final dynamic #t27 in [dynVar]) + #t26.{core::List::add}(#t27); + } =>#t26; core::Set set31 = block { - final core::Set #t25 = col::LinkedHashSet::•(); + final core::Set #t28 = col::LinkedHashSet::•(); if(self::oracle("foo")) if(self::oracle()) - for (final dynamic #t26 in [dynVar]) - #t25.{core::Set::add}(#t26); - #t25.{core::Set::add}(null); - } =>#t25; + for (final dynamic #t29 in [dynVar]) + #t28.{core::Set::add}(#t29); + #t28.{core::Set::add}(null); + } =>#t28; + core::Map map31 = {"baz": null}; core::List> list33 = block { - final core::List> #t27 = >[]; + final core::List> #t30 = >[]; if(self::oracle("foo")) if(self::oracle()) - for (final core::List #t28 in >[[42]]) - #t27.{core::List::add}(#t28); - } =>#t27; + for (final core::List #t31 in >[[42]]) + #t30.{core::List::add}(#t31); + } =>#t30; core::Set> set33 = block { - final core::Set> #t29 = col::LinkedHashSet::•>(); + final core::Set> #t32 = col::LinkedHashSet::•>(); if(self::oracle("foo")) if(self::oracle()) - for (final core::List #t30 in >[[42]]) - #t29.{core::Set::add}(#t30); - #t29.{core::Set::add}(null); - } =>#t29; + for (final core::List #t33 in >[[42]]) + #t32.{core::Set::add}(#t33); + #t32.{core::Set::add}(null); + } =>#t32; + core::Map map33 = {"baz": null}; core::List> list40 = block { - final core::List> #t31 = >[]; + final core::List> #t34 = >[]; if(self::oracle("foo")) - for (final core::List #t32 in >[[]]) - #t31.{core::List::add}(#t32); - } =>#t31; + for (final core::List #t35 in >[[]]) + #t34.{core::List::add}(#t35); + } =>#t34; core::Set> set40 = block { - final core::Set> #t33 = col::LinkedHashSet::•>(); + final core::Set> #t36 = col::LinkedHashSet::•>(); if(self::oracle("foo")) - for (final core::List #t34 in >[[]]) - #t33.{core::Set::add}(#t34); - #t33.{core::Set::add}(null); - } =>#t33; + for (final core::List #t37 in >[[]]) + #t36.{core::Set::add}(#t37); + #t36.{core::Set::add}(null); + } =>#t36; + core::Map> map40 = >{"baz": null}; core::List> list41 = block { - final core::List> #t35 = >[]; + final core::List> #t38 = >[]; if(self::oracle("foo")) - for (final core::List #t36 in let final core::Set> #t37 = col::LinkedHashSet::•>() in let final core::bool #t38 = #t37.{core::Set::add}([]) in #t37) - #t35.{core::List::add}(#t36); - } =>#t35; + for (final core::List #t39 in let final core::Set> #t40 = col::LinkedHashSet::•>() in let final core::bool #t41 = #t40.{core::Set::add}([]) in #t40) + #t38.{core::List::add}(#t39); + } =>#t38; core::Set> set41 = block { - final core::Set> #t39 = col::LinkedHashSet::•>(); + final core::Set> #t42 = col::LinkedHashSet::•>(); if(self::oracle("foo")) - for (final core::List #t40 in let final core::Set> #t41 = col::LinkedHashSet::•>() in let final core::bool #t42 = #t41.{core::Set::add}([]) in #t41) - #t39.{core::Set::add}(#t40); - #t39.{core::Set::add}(null); - } =>#t39; + for (final core::List #t43 in let final core::Set> #t44 = col::LinkedHashSet::•>() in let final core::bool #t45 = #t44.{core::Set::add}([]) in #t44) + #t42.{core::Set::add}(#t43); + #t42.{core::Set::add}(null); + } =>#t42; core::List> list42 = block { - final core::List> #t43 = >[]; + final core::List> #t46 = >[]; if(self::oracle("foo")) if(self::oracle()) - for (final core::List #t44 in >[[]]) - #t43.{core::List::add}(#t44); - } =>#t43; + for (final core::List #t47 in >[[]]) + #t46.{core::List::add}(#t47); + } =>#t46; core::Set> set42 = block { - final core::Set> #t45 = col::LinkedHashSet::•>(); + final core::Set> #t48 = col::LinkedHashSet::•>(); if(self::oracle("foo")) if(self::oracle()) - for (final core::List #t46 in >[[]]) - #t45.{core::Set::add}(#t46); - #t45.{core::Set::add}(null); - } =>#t45; + for (final core::List #t49 in >[[]]) + #t48.{core::Set::add}(#t49); + #t48.{core::Set::add}(null); + } =>#t48; + core::Map> map42 = >{"baz": null}; core::List list50 = block { - final core::List #t47 = []; + final core::List #t50 = []; if(self::oracle("foo")) - for (final core::int #t48 in []) - #t47.{core::List::add}(#t48); - } =>#t47; + for (final core::int #t51 in []) + #t50.{core::List::add}(#t51); + } =>#t50; core::Set set50 = block { - final core::Set #t49 = col::LinkedHashSet::•(); + final core::Set #t52 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final core::int #t50 in []) - #t49.{core::Set::add}(#t50); - #t49.{core::Set::add}(null); - } =>#t49; + for (final core::int #t53 in []) + #t52.{core::Set::add}(#t53); + #t52.{core::Set::add}(null); + } =>#t52; + core::Map map50 = {"baz": null}; core::List list51 = block { - final core::List #t51 = []; - if(self::oracle("foo")) - for (final core::int #t52 in let final core::Set #t53 = col::LinkedHashSet::•() in #t53) - #t51.{core::List::add}(#t52); - } =>#t51; - core::Set set51 = block { - final core::Set #t54 = col::LinkedHashSet::•(); + final core::List #t54 = []; if(self::oracle("foo")) for (final core::int #t55 in let final core::Set #t56 = col::LinkedHashSet::•() in #t56) - #t54.{core::Set::add}(#t55); - #t54.{core::Set::add}(null); + #t54.{core::List::add}(#t55); } =>#t54; + core::Set set51 = block { + final core::Set #t57 = col::LinkedHashSet::•(); + if(self::oracle("foo")) + for (final core::int #t58 in let final core::Set #t59 = col::LinkedHashSet::•() in #t59) + #t57.{core::Set::add}(#t58); + #t57.{core::Set::add}(null); + } =>#t57; core::List list52 = block { - final core::List #t57 = []; + final core::List #t60 = []; if(self::oracle("foo")) if(self::oracle()) - for (final core::int #t58 in []) - #t57.{core::List::add}(#t58); - } =>#t57; + for (final core::int #t61 in []) + #t60.{core::List::add}(#t61); + } =>#t60; core::Set set52 = block { - final core::Set #t59 = col::LinkedHashSet::•(); + final core::Set #t62 = col::LinkedHashSet::•(); if(self::oracle("foo")) if(self::oracle()) - for (final core::int #t60 in []) - #t59.{core::Set::add}(#t60); - #t59.{core::Set::add}(null); - } =>#t59; + for (final core::int #t63 in []) + #t62.{core::Set::add}(#t63); + #t62.{core::Set::add}(null); + } =>#t62; + core::Map map52 = {"baz": null}; core::List> list60 = block { - final core::List> #t61 = >[]; + final core::List> #t64 = >[]; if(self::oracle("foo")) - for (final core::List #t62 in >[[]]) - #t61.{core::List::add}(#t62); - } =>#t61; + for (final core::List #t65 in >[[]]) + #t64.{core::List::add}(#t65); + } =>#t64; core::Set> set60 = block { - final core::Set> #t63 = col::LinkedHashSet::•>(); + final core::Set> #t66 = col::LinkedHashSet::•>(); if(self::oracle("foo")) - for (final core::List #t64 in >[[]]) - #t63.{core::Set::add}(#t64); - #t63.{core::Set::add}(null); - } =>#t63; + for (final core::List #t67 in >[[]]) + #t66.{core::Set::add}(#t67); + #t66.{core::Set::add}(null); + } =>#t66; + core::Map> map60 = >{"baz": null}; core::List> list61 = block { - final core::List> #t65 = >[]; + final core::List> #t68 = >[]; if(self::oracle("foo")) if(self::oracle()) - for (final core::List #t66 in >[[]]) - #t65.{core::List::add}(#t66); - } =>#t65; + for (final core::List #t69 in >[[]]) + #t68.{core::List::add}(#t69); + } =>#t68; core::Set> set61 = block { - final core::Set> #t67 = col::LinkedHashSet::•>(); + final core::Set> #t70 = col::LinkedHashSet::•>(); if(self::oracle("foo")) if(self::oracle()) - for (final core::List #t68 in >[[]]) - #t67.{core::Set::add}(#t68); - #t67.{core::Set::add}(null); - } =>#t67; + for (final core::List #t71 in >[[]]) + #t70.{core::Set::add}(#t71); + #t70.{core::Set::add}(null); + } =>#t70; + core::Map> map61 = >{"baz": null}; core::List> list70 = block { - final core::List> #t69 = >[]; + final core::List> #t72 = >[]; if(self::oracle("foo")) - #t69.{core::List::add}([]); - } =>#t69; + #t72.{core::List::add}([]); + } =>#t72; core::Set> set70 = block { - final core::Set> #t70 = col::LinkedHashSet::•>(); + final core::Set> #t73 = col::LinkedHashSet::•>(); if(self::oracle("foo")) - #t70.{core::Set::add}([]); - #t70.{core::Set::add}(null); - } =>#t70; + #t73.{core::Set::add}([]); + #t73.{core::Set::add}(null); + } =>#t73; core::List> list71 = block { - final core::List> #t71 = >[]; + final core::List> #t74 = >[]; if(self::oracle("foo")) if(self::oracle()) - #t71.{core::List::add}([]); - } =>#t71; + #t74.{core::List::add}([]); + } =>#t74; core::Set> set71 = block { - final core::Set> #t72 = col::LinkedHashSet::•>(); + final core::Set> #t75 = col::LinkedHashSet::•>(); if(self::oracle("foo")) if(self::oracle()) - #t72.{core::Set::add}([]); - #t72.{core::Set::add}(null); - } =>#t72; + #t75.{core::Set::add}([]); + #t75.{core::Set::add}(null); + } =>#t75; core::List list80 = block { - final core::List #t73 = []; + final core::List #t76 = []; if(self::oracle("foo")) - #t73.{core::List::add}(42); + #t76.{core::List::add}(42); else - #t73.{core::List::add}(3.14); - } =>#t73; + #t76.{core::List::add}(3.14); + } =>#t76; core::Set set80 = block { - final core::Set #t74 = col::LinkedHashSet::•(); + final core::Set #t77 = col::LinkedHashSet::•(); if(self::oracle("foo")) - #t74.{core::Set::add}(42); + #t77.{core::Set::add}(42); else - #t74.{core::Set::add}(3.14); - #t74.{core::Set::add}(null); - } =>#t74; + #t77.{core::Set::add}(3.14); + #t77.{core::Set::add}(null); + } =>#t77; + core::Map map80 = block { + final core::Map #t78 = {}; + if(self::oracle("foo")) + #t78.{core::Map::[]=}("bar", 42); + else + #t78.{core::Map::[]=}("bar", 3.14); + #t78.{core::Map::[]=}("baz", null); + } =>#t78; core::List list81 = block { - final core::List #t75 = []; + final core::List #t79 = []; if(self::oracle("foo")) - for (final core::num #t76 in listInt) - #t75.{core::List::add}(#t76); + for (final core::num #t80 in listInt) + #t79.{core::List::add}(#t80); else - for (final core::num #t77 in listDouble) - #t75.{core::List::add}(#t77); - } =>#t75; + for (final core::num #t81 in listDouble) + #t79.{core::List::add}(#t81); + } =>#t79; core::Set set81 = block { - final core::Set #t78 = col::LinkedHashSet::•(); + final core::Set #t82 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final core::num #t79 in listInt) - #t78.{core::Set::add}(#t79); + for (final core::num #t83 in listInt) + #t82.{core::Set::add}(#t83); else - for (final core::num #t80 in listDouble) - #t78.{core::Set::add}(#t80); - #t78.{core::Set::add}(null); - } =>#t78; + for (final core::num #t84 in listDouble) + #t82.{core::Set::add}(#t84); + #t82.{core::Set::add}(null); + } =>#t82; + core::Set map81 = block { + final core::Set #t85 = col::LinkedHashSet::•(); + if(self::oracle("foo")) + #t85.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:68:38: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + - 'Map' is from 'dart:core'. + var map81 = {if (oracle(\"foo\")) ...mapToInt else ...mapToDouble, null}; + ^"); + else + #t85.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:68:55: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + - 'Map' is from 'dart:core'. + var map81 = {if (oracle(\"foo\")) ...mapToInt else ...mapToDouble, null}; + ^"); + #t85.{core::Set::add}(null); + } =>#t85; core::List list82 = block { - final core::List #t81 = []; + final core::List #t86 = []; if(self::oracle("foo")) - for (final dynamic #t82 in listInt as{TypeError} core::Iterable) - #t81.{core::List::add}(#t82); + for (final dynamic #t87 in listInt as{TypeError} core::Iterable) + #t86.{core::List::add}(#t87); else - for (final dynamic #t83 in dynVar as{TypeError} core::Iterable) - #t81.{core::List::add}(#t83); - } =>#t81; + for (final dynamic #t88 in dynVar as{TypeError} core::Iterable) + #t86.{core::List::add}(#t88); + } =>#t86; core::Set set82 = block { - final core::Set #t84 = col::LinkedHashSet::•(); + final core::Set #t89 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final dynamic #t85 in listInt as{TypeError} core::Iterable) - #t84.{core::Set::add}(#t85); + for (final dynamic #t90 in listInt as{TypeError} core::Iterable) + #t89.{core::Set::add}(#t90); + else + for (final dynamic #t91 in dynVar as{TypeError} core::Iterable) + #t89.{core::Set::add}(#t91); + #t89.{core::Set::add}(null); + } =>#t89; + core::Set map82 = block { + final core::Set #t92 = col::LinkedHashSet::•(); + if(self::oracle("foo")) + for (final dynamic #t93 in mapToInt as{TypeError} core::Iterable) + #t92.{core::Set::add}(#t93); else - for (final dynamic #t86 in dynVar as{TypeError} core::Iterable) - #t84.{core::Set::add}(#t86); - #t84.{core::Set::add}(null); - } =>#t84; + for (final dynamic #t94 in dynVar as{TypeError} core::Iterable) + #t92.{core::Set::add}(#t94); + #t92.{core::Set::add}(null); + } =>#t92; core::List list83 = block { - final core::List #t87 = []; + final core::List #t95 = []; if(self::oracle("foo")) - #t87.{core::List::add}(42); + #t95.{core::List::add}(42); else - for (final core::num #t88 in listDouble) - #t87.{core::List::add}(#t88); - } =>#t87; + for (final core::num #t96 in listDouble) + #t95.{core::List::add}(#t96); + } =>#t95; core::Set set83 = block { - final core::Set #t89 = col::LinkedHashSet::•(); + final core::Set #t97 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final core::num #t90 in listInt) - #t89.{core::Set::add}(#t90); + for (final core::num #t98 in listInt) + #t97.{core::Set::add}(#t98); else - #t89.{core::Set::add}(3.14); - #t89.{core::Set::add}(null); - } =>#t89; + #t97.{core::Set::add}(3.14); + #t97.{core::Set::add}(null); + } =>#t97; + core::Set map83 = block { + final core::Set #t99 = col::LinkedHashSet::•(); + if(self::oracle("foo")) + #t99.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:74:38: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + - 'Map' is from 'dart:core'. + var map83 = {if (oracle(\"foo\")) ...mapToInt else 3.14, null}; + ^"); + else + #t99.{core::Set::add}(3.14); + #t99.{core::Set::add}(null); + } =>#t99; core::List list90 = block { - final core::List #t91 = []; + final core::List #t100 = []; if(self::oracle("foo")) - #t91.{core::List::add}(dynVar as{TypeError} core::int); - } =>#t91; + #t100.{core::List::add}(dynVar as{TypeError} core::int); + } =>#t100; core::Set set90 = block { - final core::Set #t92 = col::LinkedHashSet::•(); + final core::Set #t101 = col::LinkedHashSet::•(); if(self::oracle("foo")) - #t92.{core::Set::add}(dynVar as{TypeError} core::int); - #t92.{core::Set::add}(null); - } =>#t92; + #t101.{core::Set::add}(dynVar as{TypeError} core::int); + #t101.{core::Set::add}(null); + } =>#t101; + core::Map map90 = block { + final core::Map #t102 = {}; + if(self::oracle("foo")) + #t102.{core::Map::[]=}("bar", dynVar); + #t102.{core::Map::[]=}("baz", null); + } =>#t102; core::List list91 = block { - final core::List #t93 = []; + final core::List #t103 = []; if(self::oracle("foo")) - for (final core::int #t94 in dynVar as{TypeError} core::Iterable) - #t93.{core::List::add}(#t94); - } =>#t93; + for (final core::int #t104 in dynVar as{TypeError} core::Iterable) + #t103.{core::List::add}(#t104); + } =>#t103; core::Set set91 = block { - final core::Set #t95 = col::LinkedHashSet::•(); + final core::Set #t105 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final core::int #t96 in dynVar as{TypeError} core::Iterable) - #t95.{core::Set::add}(#t96); - #t95.{core::Set::add}(null); - } =>#t95; + for (final core::int #t106 in dynVar as{TypeError} core::Iterable) + #t105.{core::Set::add}(#t106); + #t105.{core::Set::add}(null); + } =>#t105; + core::Map map91 = {"baz": null}; } static method testIfElementErrors(core::Map map) → dynamic { - [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:62:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:84:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. [if (oracle(\"foo\")) \"bar\"]; ^"]; - let final core::Set #t97 = col::LinkedHashSet::•() in let final core::bool #t98 = #t97.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:63:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + let final core::Set #t107 = col::LinkedHashSet::•() in let final core::bool #t108 = #t107.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:85:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. {if (oracle(\"foo\")) \"bar\", null}; - ^") in let final core::bool #t99 = #t97.{core::Set::add}(null) in #t97; + ^") in let final core::bool #t109 = #t107.{core::Set::add}(null) in #t107; + {null: invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:86:41: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +Try changing the type of the left hand side, or casting the right hand side to 'int'. + {if (oracle(\"foo\")) \"bar\": \"bar\", \"baz\": null}; + ^", "baz": null}; block { - final core::List #t100 = []; + final core::List #t110 = []; if(self::oracle("foo")) - for (final core::int #t101 in [let final #t102 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:64:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + for (final core::int #t111 in [let final #t112 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:87:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. [if (oracle(\"foo\")) ...[\"bar\"]]; ^" in "bar" as{TypeError} core::int]) - #t100.{core::List::add}(#t101); - } =>#t100; + #t110.{core::List::add}(#t111); + } =>#t110; block { - final core::Set #t103 = col::LinkedHashSet::•(); + final core::Set #t113 = col::LinkedHashSet::•(); if(self::oracle("foo")) - for (final core::int #t104 in [let final #t105 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:65:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + for (final core::int #t114 in [let final #t115 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:88:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. {if (oracle(\"foo\")) ...[\"bar\"], null}; ^" in "bar" as{TypeError} core::int]) - #t103.{core::Set::add}(#t104); - #t103.{core::Set::add}(null); - } =>#t103; + #t113.{core::Set::add}(#t114); + #t113.{core::Set::add}(null); + } =>#t113; + {"baz": null}; block { - final core::List #t106 = []; + final core::List #t116 = []; if(self::oracle("foo")) - #t106.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:66:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t116.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:90:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [if (oracle(\"foo\")) ...map]; ^"); - } =>#t106; + } =>#t116; block { - final core::Set #t107 = col::LinkedHashSet::•(); + final core::Set #t117 = col::LinkedHashSet::•(); if(self::oracle("foo")) - #t107.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:67:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t117.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:91:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {if (oracle(\"foo\")) ...map, null}; ^"); - #t107.{core::Set::add}(null); - } =>#t107; - [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:68:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. + #t117.{core::Set::add}(null); + } =>#t117; + {"baz": null}; + [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:93:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. Try changing the type of the left hand side, or casting the right hand side to 'String'. [if (oracle(\"foo\")) 42 else 3.14]; ^"]; - let final core::Set #t108 = col::LinkedHashSet::•() in let final core::bool #t109 = #t108.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:69:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. + let final core::Set #t118 = col::LinkedHashSet::•() in let final core::bool #t119 = #t118.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:94:12: Error: A value of type 'num' can't be assigned to a variable of type 'String'. Try changing the type of the left hand side, or casting the right hand side to 'String'. {if (oracle(\"foo\")) 42 else 3.14, null}; - ^") in let final core::bool #t110 = #t108.{core::Set::add}(null) in #t108; + ^") in let final core::bool #t120 = #t118.{core::Set::add}(null) in #t118; + {null: invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:95:20: Error: A value of type 'num' can't be assigned to a variable of type 'String'. +Try changing the type of the left hand side, or casting the right hand side to 'String'. + {if (oracle(\"foo\")) \"bar\": 42 else \"baz\": 3.14, \"baz\": null}; + ^", "baz": null}; block { - final core::List #t111 = []; + final core::List #t121 = []; if(self::oracle("foo")) - #t111.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:70:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t121.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:96:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [if (oracle(\"foo\")) ...map else 42]; ^"); else - #t111.{core::List::add}(42 as{TypeError} core::int); - } =>#t111; + #t121.{core::List::add}(42 as{TypeError} core::int); + } =>#t121; block { - final core::Set #t112 = col::LinkedHashSet::•(); + final core::Set #t122 = col::LinkedHashSet::•(); if(self::oracle("foo")) - #t112.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:71:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t122.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:97:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {if (oracle(\"foo\")) ...map else 42, null}; ^"); else - #t112.{core::Set::add}(42 as{TypeError} core::int); - #t112.{core::Set::add}(null); - } =>#t112; + #t122.{core::Set::add}(42 as{TypeError} core::int); + #t122.{core::Set::add}(null); + } =>#t122; + {"baz": null}; block { - final core::List #t113 = []; + final core::List #t123 = []; if(self::oracle("foo")) - #t113.{core::List::add}(42 as{TypeError} core::int); + #t123.{core::List::add}(42 as{TypeError} core::int); else - #t113.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:72:39: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t123.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:99:39: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [if (oracle(\"foo\")) 42 else ...map]; ^"); - } =>#t113; + } =>#t123; block { - final core::Set #t114 = col::LinkedHashSet::•(); + final core::Set #t124 = col::LinkedHashSet::•(); if(self::oracle("foo")) - #t114.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:73:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t124.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:100:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {if (oracle(\"foo\")) ...map else 42, null}; ^"); else - #t114.{core::Set::add}(42 as{TypeError} core::int); - #t114.{core::Set::add}(null); - } =>#t114; + #t124.{core::Set::add}(42 as{TypeError} core::int); + #t124.{core::Set::add}(null); + } =>#t124; + {"baz": null}; } static method testForElement(dynamic dynVar, core::List listInt, core::List listDouble, core::int index) → dynamic { core::List list10 = block { - final core::List #t115 = []; + final core::List #t125 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t115.{core::List::add}(42); - } =>#t115; + #t125.{core::List::add}(42); + } =>#t125; core::Set set10 = block { - final core::Set #t116 = col::LinkedHashSet::•(); + final core::Set #t126 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t116.{core::Set::add}(42); - #t116.{core::Set::add}(null); - } =>#t116; + #t126.{core::Set::add}(42); + #t126.{core::Set::add}(null); + } =>#t126; core::List list11 = block { - final core::List #t117 = []; + final core::List #t127 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t117.{core::List::add}(dynVar); - } =>#t117; + #t127.{core::List::add}(dynVar); + } =>#t127; core::Set set11 = block { - final core::Set #t118 = col::LinkedHashSet::•(); + final core::Set #t128 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t118.{core::Set::add}(dynVar); - #t118.{core::Set::add}(null); - } =>#t118; + #t128.{core::Set::add}(dynVar); + #t128.{core::Set::add}(null); + } =>#t128; core::List> list12 = block { - final core::List> #t119 = >[]; + final core::List> #t129 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t119.{core::List::add}([42]); - } =>#t119; + #t129.{core::List::add}([42]); + } =>#t129; core::Set> set12 = block { - final core::Set> #t120 = col::LinkedHashSet::•>(); + final core::Set> #t130 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t120.{core::Set::add}([42]); - #t120.{core::Set::add}(null); - } =>#t120; + #t130.{core::Set::add}([42]); + #t130.{core::Set::add}(null); + } =>#t130; core::List list20 = block { - final core::List #t121 = []; + final core::List #t131 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t122 in [42]) - #t121.{core::List::add}(#t122); - } =>#t121; + for (final core::int #t132 in [42]) + #t131.{core::List::add}(#t132); + } =>#t131; core::Set set20 = block { - final core::Set #t123 = col::LinkedHashSet::•(); + final core::Set #t133 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t124 in [42]) - #t123.{core::Set::add}(#t124); - #t123.{core::Set::add}(null); - } =>#t123; + for (final core::int #t134 in [42]) + #t133.{core::Set::add}(#t134); + #t133.{core::Set::add}(null); + } =>#t133; core::List list21 = block { - final core::List #t125 = []; + final core::List #t135 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final dynamic #t126 in [dynVar]) - #t125.{core::List::add}(#t126); - } =>#t125; + for (final dynamic #t136 in [dynVar]) + #t135.{core::List::add}(#t136); + } =>#t135; core::Set set21 = block { - final core::Set #t127 = col::LinkedHashSet::•(); + final core::Set #t137 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final dynamic #t128 in [dynVar]) - #t127.{core::Set::add}(#t128); - #t127.{core::Set::add}(null); - } =>#t127; + for (final dynamic #t138 in [dynVar]) + #t137.{core::Set::add}(#t138); + #t137.{core::Set::add}(null); + } =>#t137; core::List> list22 = block { - final core::List> #t129 = >[]; + final core::List> #t139 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t130 in >[[42]]) - #t129.{core::List::add}(#t130); - } =>#t129; + for (final core::List #t140 in >[[42]]) + #t139.{core::List::add}(#t140); + } =>#t139; core::Set> set22 = block { - final core::Set> #t131 = col::LinkedHashSet::•>(); + final core::Set> #t141 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t132 in >[[42]]) - #t131.{core::Set::add}(#t132); - #t131.{core::Set::add}(null); - } =>#t131; + for (final core::List #t142 in >[[42]]) + #t141.{core::Set::add}(#t142); + #t141.{core::Set::add}(null); + } =>#t141; core::List list30 = block { - final core::List #t133 = []; + final core::List #t143 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::int #t134 in [42]) - #t133.{core::List::add}(#t134); - } =>#t133; + for (final core::int #t144 in [42]) + #t143.{core::List::add}(#t144); + } =>#t143; core::Set set30 = block { - final core::Set #t135 = col::LinkedHashSet::•(); + final core::Set #t145 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::int #t136 in [42]) - #t135.{core::Set::add}(#t136); - #t135.{core::Set::add}(null); - } =>#t135; + for (final core::int #t146 in [42]) + #t145.{core::Set::add}(#t146); + #t145.{core::Set::add}(null); + } =>#t145; core::List list31 = block { - final core::List #t137 = []; + final core::List #t147 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final dynamic #t138 in [dynVar]) - #t137.{core::List::add}(#t138); - } =>#t137; + for (final dynamic #t148 in [dynVar]) + #t147.{core::List::add}(#t148); + } =>#t147; core::Set set31 = block { - final core::Set #t139 = col::LinkedHashSet::•(); + final core::Set #t149 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final dynamic #t140 in [dynVar]) - #t139.{core::Set::add}(#t140); - #t139.{core::Set::add}(null); - } =>#t139; + for (final dynamic #t150 in [dynVar]) + #t149.{core::Set::add}(#t150); + #t149.{core::Set::add}(null); + } =>#t149; core::List> list33 = block { - final core::List> #t141 = >[]; + final core::List> #t151 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::List #t142 in >[[42]]) - #t141.{core::List::add}(#t142); - } =>#t141; + for (final core::List #t152 in >[[42]]) + #t151.{core::List::add}(#t152); + } =>#t151; core::Set> set33 = block { - final core::Set> #t143 = col::LinkedHashSet::•>(); + final core::Set> #t153 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::List #t144 in >[[42]]) - #t143.{core::Set::add}(#t144); - #t143.{core::Set::add}(null); - } =>#t143; + for (final core::List #t154 in >[[42]]) + #t153.{core::Set::add}(#t154); + #t153.{core::Set::add}(null); + } =>#t153; core::List> list40 = block { - final core::List> #t145 = >[]; + final core::List> #t155 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t146 in >[[]]) - #t145.{core::List::add}(#t146); - } =>#t145; + for (final core::List #t156 in >[[]]) + #t155.{core::List::add}(#t156); + } =>#t155; core::Set> set40 = block { - final core::Set> #t147 = col::LinkedHashSet::•>(); + final core::Set> #t157 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t148 in >[[]]) - #t147.{core::Set::add}(#t148); - #t147.{core::Set::add}(null); - } =>#t147; + for (final core::List #t158 in >[[]]) + #t157.{core::Set::add}(#t158); + #t157.{core::Set::add}(null); + } =>#t157; core::List> list41 = block { - final core::List> #t149 = >[]; + final core::List> #t159 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t150 in let final core::Set> #t151 = col::LinkedHashSet::•>() in let final core::bool #t152 = #t151.{core::Set::add}([]) in #t151) - #t149.{core::List::add}(#t150); - } =>#t149; + for (final core::List #t160 in let final core::Set> #t161 = col::LinkedHashSet::•>() in let final core::bool #t162 = #t161.{core::Set::add}([]) in #t161) + #t159.{core::List::add}(#t160); + } =>#t159; core::Set> set41 = block { - final core::Set> #t153 = col::LinkedHashSet::•>(); + final core::Set> #t163 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t154 in let final core::Set> #t155 = col::LinkedHashSet::•>() in let final core::bool #t156 = #t155.{core::Set::add}([]) in #t155) - #t153.{core::Set::add}(#t154); - #t153.{core::Set::add}(null); - } =>#t153; + for (final core::List #t164 in let final core::Set> #t165 = col::LinkedHashSet::•>() in let final core::bool #t166 = #t165.{core::Set::add}([]) in #t165) + #t163.{core::Set::add}(#t164); + #t163.{core::Set::add}(null); + } =>#t163; core::List> list42 = block { - final core::List> #t157 = >[]; + final core::List> #t167 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::List #t158 in >[[]]) - #t157.{core::List::add}(#t158); - } =>#t157; + for (final core::List #t168 in >[[]]) + #t167.{core::List::add}(#t168); + } =>#t167; core::Set> set42 = block { - final core::Set> #t159 = col::LinkedHashSet::•>(); + final core::Set> #t169 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::List #t160 in >[[]]) - #t159.{core::Set::add}(#t160); - #t159.{core::Set::add}(null); - } =>#t159; + for (final core::List #t170 in >[[]]) + #t169.{core::Set::add}(#t170); + #t169.{core::Set::add}(null); + } =>#t169; core::List list50 = block { - final core::List #t161 = []; + final core::List #t171 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t162 in []) - #t161.{core::List::add}(#t162); - } =>#t161; + for (final core::int #t172 in []) + #t171.{core::List::add}(#t172); + } =>#t171; core::Set set50 = block { - final core::Set #t163 = col::LinkedHashSet::•(); + final core::Set #t173 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t164 in []) - #t163.{core::Set::add}(#t164); - #t163.{core::Set::add}(null); - } =>#t163; + for (final core::int #t174 in []) + #t173.{core::Set::add}(#t174); + #t173.{core::Set::add}(null); + } =>#t173; core::List list51 = block { - final core::List #t165 = []; + final core::List #t175 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t166 in let final core::Set #t167 = col::LinkedHashSet::•() in #t167) - #t165.{core::List::add}(#t166); - } =>#t165; + for (final core::int #t176 in let final core::Set #t177 = col::LinkedHashSet::•() in #t177) + #t175.{core::List::add}(#t176); + } =>#t175; core::Set set51 = block { - final core::Set #t168 = col::LinkedHashSet::•(); + final core::Set #t178 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t169 in let final core::Set #t170 = col::LinkedHashSet::•() in #t170) - #t168.{core::Set::add}(#t169); - #t168.{core::Set::add}(null); - } =>#t168; + for (final core::int #t179 in let final core::Set #t180 = col::LinkedHashSet::•() in #t180) + #t178.{core::Set::add}(#t179); + #t178.{core::Set::add}(null); + } =>#t178; core::List list52 = block { - final core::List #t171 = []; + final core::List #t181 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::int #t172 in []) - #t171.{core::List::add}(#t172); - } =>#t171; + for (final core::int #t182 in []) + #t181.{core::List::add}(#t182); + } =>#t181; core::Set set52 = block { - final core::Set #t173 = col::LinkedHashSet::•(); + final core::Set #t183 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::int #t174 in []) - #t173.{core::Set::add}(#t174); - #t173.{core::Set::add}(null); - } =>#t173; + for (final core::int #t184 in []) + #t183.{core::Set::add}(#t184); + #t183.{core::Set::add}(null); + } =>#t183; core::List> list60 = block { - final core::List> #t175 = >[]; + final core::List> #t185 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t176 in >[[]]) - #t175.{core::List::add}(#t176); - } =>#t175; + for (final core::List #t186 in >[[]]) + #t185.{core::List::add}(#t186); + } =>#t185; core::Set> set60 = block { - final core::Set> #t177 = col::LinkedHashSet::•>(); + final core::Set> #t187 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::List #t178 in >[[]]) - #t177.{core::Set::add}(#t178); - #t177.{core::Set::add}(null); - } =>#t177; + for (final core::List #t188 in >[[]]) + #t187.{core::Set::add}(#t188); + #t187.{core::Set::add}(null); + } =>#t187; core::List> list61 = block { - final core::List> #t179 = >[]; + final core::List> #t189 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::List #t180 in >[[]]) - #t179.{core::List::add}(#t180); - } =>#t179; + for (final core::List #t190 in >[[]]) + #t189.{core::List::add}(#t190); + } =>#t189; core::Set> set61 = block { - final core::Set> #t181 = col::LinkedHashSet::•>(); + final core::Set> #t191 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::List #t182 in >[[]]) - #t181.{core::Set::add}(#t182); - #t181.{core::Set::add}(null); - } =>#t181; + for (final core::List #t192 in >[[]]) + #t191.{core::Set::add}(#t192); + #t191.{core::Set::add}(null); + } =>#t191; core::List> list70 = block { - final core::List> #t183 = >[]; + final core::List> #t193 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t183.{core::List::add}([]); - } =>#t183; + #t193.{core::List::add}([]); + } =>#t193; core::Set> set70 = block { - final core::Set> #t184 = col::LinkedHashSet::•>(); + final core::Set> #t194 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t184.{core::Set::add}([]); - #t184.{core::Set::add}(null); - } =>#t184; + #t194.{core::Set::add}([]); + #t194.{core::Set::add}(null); + } =>#t194; core::List> list71 = block { - final core::List> #t185 = >[]; + final core::List> #t195 = >[]; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t185.{core::List::add}([]); - } =>#t185; + #t195.{core::List::add}([]); + } =>#t195; core::Set> set71 = block { - final core::Set> #t186 = col::LinkedHashSet::•>(); + final core::Set> #t196 = col::LinkedHashSet::•>(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t186.{core::Set::add}([]); - #t186.{core::Set::add}(null); - } =>#t186; + #t196.{core::Set::add}([]); + #t196.{core::Set::add}(null); + } =>#t196; core::List list80 = block { - final core::List #t187 = []; + final core::List #t197 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t187.{core::List::add}(42); + #t197.{core::List::add}(42); else - #t187.{core::List::add}(3.14); - } =>#t187; + #t197.{core::List::add}(3.14); + } =>#t197; core::Set set80 = block { - final core::Set #t188 = col::LinkedHashSet::•(); + final core::Set #t198 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t188.{core::Set::add}(42); + #t198.{core::Set::add}(42); else - #t188.{core::Set::add}(3.14); - #t188.{core::Set::add}(null); - } =>#t188; + #t198.{core::Set::add}(3.14); + #t198.{core::Set::add}(null); + } =>#t198; core::List list81 = block { - final core::List #t189 = []; + final core::List #t199 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::num #t190 in listInt) - #t189.{core::List::add}(#t190); + for (final core::num #t200 in listInt) + #t199.{core::List::add}(#t200); else - for (final core::num #t191 in listDouble) - #t189.{core::List::add}(#t191); - } =>#t189; + for (final core::num #t201 in listDouble) + #t199.{core::List::add}(#t201); + } =>#t199; core::Set set81 = block { - final core::Set #t192 = col::LinkedHashSet::•(); + final core::Set #t202 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::num #t193 in listInt) - #t192.{core::Set::add}(#t193); + for (final core::num #t203 in listInt) + #t202.{core::Set::add}(#t203); else - for (final core::num #t194 in listDouble) - #t192.{core::Set::add}(#t194); - #t192.{core::Set::add}(null); - } =>#t192; + for (final core::num #t204 in listDouble) + #t202.{core::Set::add}(#t204); + #t202.{core::Set::add}(null); + } =>#t202; core::List list82 = block { - final core::List #t195 = []; + final core::List #t205 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final dynamic #t196 in listInt as{TypeError} core::Iterable) - #t195.{core::List::add}(#t196); + for (final dynamic #t206 in listInt as{TypeError} core::Iterable) + #t205.{core::List::add}(#t206); else - for (final dynamic #t197 in dynVar as{TypeError} core::Iterable) - #t195.{core::List::add}(#t197); - } =>#t195; + for (final dynamic #t207 in dynVar as{TypeError} core::Iterable) + #t205.{core::List::add}(#t207); + } =>#t205; core::Set set82 = block { - final core::Set #t198 = col::LinkedHashSet::•(); + final core::Set #t208 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final dynamic #t199 in listInt as{TypeError} core::Iterable) - #t198.{core::Set::add}(#t199); + for (final dynamic #t209 in listInt as{TypeError} core::Iterable) + #t208.{core::Set::add}(#t209); else - for (final dynamic #t200 in dynVar as{TypeError} core::Iterable) - #t198.{core::Set::add}(#t200); - #t198.{core::Set::add}(null); - } =>#t198; + for (final dynamic #t210 in dynVar as{TypeError} core::Iterable) + #t208.{core::Set::add}(#t210); + #t208.{core::Set::add}(null); + } =>#t208; core::List list83 = block { - final core::List #t201 = []; + final core::List #t211 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t201.{core::List::add}(42); + #t211.{core::List::add}(42); else - for (final core::num #t202 in listDouble) - #t201.{core::List::add}(#t202); - } =>#t201; + for (final core::num #t212 in listDouble) + #t211.{core::List::add}(#t212); + } =>#t211; core::Set set83 = block { - final core::Set #t203 = col::LinkedHashSet::•(); + final core::Set #t213 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - for (final core::num #t204 in listInt) - #t203.{core::Set::add}(#t204); + for (final core::num #t214 in listInt) + #t213.{core::Set::add}(#t214); else - #t203.{core::Set::add}(3.14); - #t203.{core::Set::add}(null); - } =>#t203; + #t213.{core::Set::add}(3.14); + #t213.{core::Set::add}(null); + } =>#t213; core::List list90 = block { - final core::List #t205 = []; + final core::List #t215 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t205.{core::List::add}(dynVar as{TypeError} core::int); - } =>#t205; + #t215.{core::List::add}(dynVar as{TypeError} core::int); + } =>#t215; core::Set set90 = block { - final core::Set #t206 = col::LinkedHashSet::•(); + final core::Set #t216 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t206.{core::Set::add}(dynVar as{TypeError} core::int); - #t206.{core::Set::add}(null); - } =>#t206; + #t216.{core::Set::add}(dynVar as{TypeError} core::int); + #t216.{core::Set::add}(null); + } =>#t216; core::List list91 = block { - final core::List #t207 = []; + final core::List #t217 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t208 in dynVar as{TypeError} core::Iterable) - #t207.{core::List::add}(#t208); - } =>#t207; + for (final core::int #t218 in dynVar as{TypeError} core::Iterable) + #t217.{core::List::add}(#t218); + } =>#t217; core::Set set91 = block { - final core::Set #t209 = col::LinkedHashSet::•(); + final core::Set #t219 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t210 in dynVar as{TypeError} core::Iterable) - #t209.{core::Set::add}(#t210); - #t209.{core::Set::add}(null); - } =>#t209; + for (final core::int #t220 in dynVar as{TypeError} core::Iterable) + #t219.{core::Set::add}(#t220); + #t219.{core::Set::add}(null); + } =>#t219; core::List list100 = block { - final core::List #t211 = []; - for (final dynamic #t212 = index = 0; self::oracle("foo") as{TypeError} core::bool; index = index.{core::num::+}(1)) - #t211.{core::List::add}(42); - } =>#t211; + final core::List #t221 = []; + for (final dynamic #t222 = index = 0; self::oracle("foo") as{TypeError} core::bool; index = index.{core::num::+}(1)) + #t221.{core::List::add}(42); + } =>#t221; core::Set set100 = block { - final core::Set #t213 = col::LinkedHashSet::•(); - for (final dynamic #t214 = index = 0; self::oracle("foo") as{TypeError} core::bool; index = index.{core::num::+}(1)) - #t213.{core::Set::add}(42); - } =>#t213; + final core::Set #t223 = col::LinkedHashSet::•(); + for (final dynamic #t224 = index = 0; self::oracle("foo") as{TypeError} core::bool; index = index.{core::num::+}(1)) + #t223.{core::Set::add}(42); + } =>#t223; core::List list110 = block { - final core::List #t215 = []; + final core::List #t225 = []; for (core::int i in [1, 2, 3]) - #t215.{core::List::add}(i); - } =>#t215; + #t225.{core::List::add}(i); + } =>#t225; core::Set set110 = block { - final core::Set #t216 = col::LinkedHashSet::•(); + final core::Set #t226 = col::LinkedHashSet::•(); for (core::int i in [1, 2, 3]) - #t216.{core::Set::add}(i); - #t216.{core::Set::add}(null); - } =>#t216; + #t226.{core::Set::add}(i); + #t226.{core::Set::add}(null); + } =>#t226; core::List list120 = block { - final core::List #t217 = []; + final core::List #t227 = []; for (dynamic i in dynVar as{TypeError} core::Iterable) - #t217.{core::List::add}(i as{TypeError} core::int); - } =>#t217; + #t227.{core::List::add}(i as{TypeError} core::int); + } =>#t227; core::Set set120 = block { - final core::Set #t218 = col::LinkedHashSet::•(); + final core::Set #t228 = col::LinkedHashSet::•(); for (dynamic i in dynVar as{TypeError} core::Iterable) - #t218.{core::Set::add}(i as{TypeError} core::int); - #t218.{core::Set::add}(null); - } =>#t218; + #t228.{core::Set::add}(i as{TypeError} core::int); + #t228.{core::Set::add}(null); + } =>#t228; } static method testForElementErrors(core::Map map) → dynamic /* originally async */ { final asy::_AsyncAwaitCompleter :async_completer = new asy::_AsyncAwaitCompleter::•(); @@ -1069,232 +1258,232 @@ static method testForElementErrors(core::Map map) → dyna try { #L1: { - [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:137:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:165:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. [for (int i = 0; oracle(\"foo\"); i++) \"bar\"]; ^"]; - let final core::Set #t219 = col::LinkedHashSet::•() in let final core::bool #t220 = #t219.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:138:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + let final core::Set #t229 = col::LinkedHashSet::•() in let final core::bool #t230 = #t229.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:166:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. {for (int i = 0; oracle(\"foo\"); i++) \"bar\", null}; - ^") in let final core::bool #t221 = #t219.{core::Set::add}(null) in #t219; + ^") in let final core::bool #t231 = #t229.{core::Set::add}(null) in #t229; block { - final core::List #t222 = []; + final core::List #t232 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t223 in [let final #t224 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:139:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + for (final core::int #t233 in [let final #t234 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:167:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. [for (int i = 0; oracle(\"foo\"); i++) ...[\"bar\"]]; ^" in "bar" as{TypeError} core::int]) - #t222.{core::List::add}(#t223); - } =>#t222; + #t232.{core::List::add}(#t233); + } =>#t232; block { - final core::Set #t225 = col::LinkedHashSet::•(); + final core::Set #t235 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - for (final core::int #t226 in [let final #t227 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:140:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + for (final core::int #t236 in [let final #t237 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:168:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. {for (int i = 0; oracle(\"foo\"); i++) ...[\"bar\"], null}; ^" in "bar" as{TypeError} core::int]) - #t225.{core::Set::add}(#t226); - #t225.{core::Set::add}(null); - } =>#t225; + #t235.{core::Set::add}(#t236); + #t235.{core::Set::add}(null); + } =>#t235; block { - final core::List #t228 = []; + final core::List #t238 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t228.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:141:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t238.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:169:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [for (int i = 0; oracle(\"foo\"); i++) ...map]; ^"); - } =>#t228; + } =>#t238; block { - final core::Set #t229 = col::LinkedHashSet::•(); + final core::Set #t239 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) - #t229.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:142:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t239.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:170:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {for (int i = 0; oracle(\"foo\"); i++) ...map, null}; ^"); - #t229.{core::Set::add}(null); - } =>#t229; - [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:143:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. + #t239.{core::Set::add}(null); + } =>#t239; + [invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:171:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. Try changing the type of the left hand side, or casting the right hand side to 'String'. [for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else 3.14]; ^"]; - let final core::Set #t230 = col::LinkedHashSet::•() in let final core::bool #t231 = #t230.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:144:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. + let final core::Set #t240 = col::LinkedHashSet::•() in let final core::bool #t241 = #t240.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:172:48: Error: A value of type 'num' can't be assigned to a variable of type 'String'. Try changing the type of the left hand side, or casting the right hand side to 'String'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else 3.14, null}; - ^") in let final core::bool #t232 = #t230.{core::Set::add}(null) in #t230; + ^") in let final core::bool #t242 = #t240.{core::Set::add}(null) in #t240; block { - final core::List #t233 = []; + final core::List #t243 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t233.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:145:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t243.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:173:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [for (int i = 0; oracle(\"foo\"); i++) if (oracle()) ...map else 42]; ^"); else - #t233.{core::List::add}(42 as{TypeError} core::int); - } =>#t233; + #t243.{core::List::add}(42 as{TypeError} core::int); + } =>#t243; block { - final core::Set #t234 = col::LinkedHashSet::•(); + final core::Set #t244 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t234.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:146:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t244.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:174:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) ...map else 42, null}; ^"); else - #t234.{core::Set::add}(42 as{TypeError} core::int); - #t234.{core::Set::add}(null); - } =>#t234; + #t244.{core::Set::add}(42 as{TypeError} core::int); + #t244.{core::Set::add}(null); + } =>#t244; block { - final core::List #t235 = []; + final core::List #t245 = []; for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t235.{core::List::add}(42 as{TypeError} core::int); + #t245.{core::List::add}(42 as{TypeError} core::int); else - #t235.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:147:70: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t245.{core::List::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:175:70: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else ...map]; ^"); - } =>#t235; + } =>#t245; block { - final core::Set #t236 = col::LinkedHashSet::•(); + final core::Set #t246 = col::LinkedHashSet::•(); for (core::int i = 0; self::oracle("foo") as{TypeError} core::bool; i = i.{core::num::+}(1)) if(self::oracle()) - #t236.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:148:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t246.{core::Set::add}(invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:176:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) ...map else 42, null}; ^"); else - #t236.{core::Set::add}(42 as{TypeError} core::int); - #t236.{core::Set::add}(null); - } =>#t236; + #t246.{core::Set::add}(42 as{TypeError} core::int); + #t246.{core::Set::add}(null); + } =>#t246; final core::int i = 0; block { - final core::List #t237 = []; - for (final core::int #t238 in [1]) { - invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:151:14: Error: Setter not found: 'i'. + final core::List #t247 = []; + for (final core::int #t248 in [1]) { + invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:179:14: Error: Setter not found: 'i'. [for (i in [1]) i]; ^"; - #t237.{core::List::add}(i); + #t247.{core::List::add}(i); } - } =>#t237; + } =>#t247; block { - final core::Set #t239 = col::LinkedHashSet::•(); - for (final core::int #t240 in [1]) { - invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:152:14: Error: Setter not found: 'i'. + final core::Set #t249 = col::LinkedHashSet::•(); + for (final core::int #t250 in [1]) { + invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:180:14: Error: Setter not found: 'i'. {for (i in [1]) i, null}; ^"; - #t239.{core::Set::add}(i); + #t249.{core::Set::add}(i); } - #t239.{core::Set::add}(null); - } =>#t239; + #t249.{core::Set::add}(null); + } =>#t249; core::List list10 = block { - final core::List #t241 = []; - for (dynamic i in let final #t242 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:154:31: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + final core::List #t251 = []; + for (dynamic i in let final #t252 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:182:31: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. - 'Iterable' is from 'dart:core'. var list10 = [for (var i in \"not iterable\") i]; ^" in "not iterable" as{TypeError} core::Iterable) - #t241.{core::List::add}(i); - } =>#t241; + #t251.{core::List::add}(i); + } =>#t251; core::Set set10 = block { - final core::Set #t243 = col::LinkedHashSet::•(); - for (dynamic i in let final #t244 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:155:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + final core::Set #t253 = col::LinkedHashSet::•(); + for (dynamic i in let final #t254 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:183:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. - 'Iterable' is from 'dart:core'. var set10 = {for (var i in \"not iterable\") i, null}; ^" in "not iterable" as{TypeError} core::Iterable) - #t243.{core::Set::add}(i); - #t243.{core::Set::add}(null); - } =>#t243; + #t253.{core::Set::add}(i); + #t253.{core::Set::add}(null); + } =>#t253; core::List list20 = block { - final core::List #t245 = []; - for (core::int i in [let final #t246 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:156:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + final core::List #t255 = []; + for (core::int i in [let final #t256 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:184:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var list20 = [for (int i in [\"not\", \"int\"]) i]; - ^" in "not" as{TypeError} core::int, let final #t247 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:156:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int, let final #t257 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:184:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var list20 = [for (int i in [\"not\", \"int\"]) i]; ^" in "int" as{TypeError} core::int]) - #t245.{core::List::add}(i); - } =>#t245; + #t255.{core::List::add}(i); + } =>#t255; core::Set set20 = block { - final core::Set #t248 = col::LinkedHashSet::•(); - for (core::int i in [let final #t249 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:157:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + final core::Set #t258 = col::LinkedHashSet::•(); + for (core::int i in [let final #t259 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:185:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var set20 = {for (int i in [\"not\", \"int\"]) i, null}; - ^" in "not" as{TypeError} core::int, let final #t250 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:157:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int, let final #t260 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:185:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var set20 = {for (int i in [\"not\", \"int\"]) i, null}; ^" in "int" as{TypeError} core::int]) - #t248.{core::Set::add}(i); - #t248.{core::Set::add}(null); - } =>#t248; + #t258.{core::Set::add}(i); + #t258.{core::Set::add}(null); + } =>#t258; core::List list30 = block { - final core::List #t251 = []; - await for (dynamic i in let final #t252 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:158:37: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + final core::List #t261 = []; + await for (dynamic i in let final #t262 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:186:37: Error: The type 'String' used in the 'for' loop must implement 'Stream'. - 'Stream' is from 'dart:async'. var list30 = [await for (var i in \"not stream\") i]; ^" in "not stream" as{TypeError} asy::Stream) - #t251.{core::List::add}(i); - } =>#t251; + #t261.{core::List::add}(i); + } =>#t261; core::Set set30 = block { - final core::Set #t253 = col::LinkedHashSet::•(); - await for (dynamic i in let final #t254 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:159:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + final core::Set #t263 = col::LinkedHashSet::•(); + await for (dynamic i in let final #t264 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:187:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. - 'Stream' is from 'dart:async'. var set30 = {await for (var i in \"not stream\") i, null}; ^" in "not stream" as{TypeError} asy::Stream) - #t253.{core::Set::add}(i); - #t253.{core::Set::add}(null); - } =>#t253; + #t263.{core::Set::add}(i); + #t263.{core::Set::add}(null); + } =>#t263; core::List list40 = block { - final core::List #t255 = []; - await for (core::int i in asy::Stream::fromIterable([let final #t256 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:160:58: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + final core::List #t265 = []; + await for (core::int i in asy::Stream::fromIterable([let final #t266 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:188:58: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var list40 = [await for (int i in Stream.fromIterable([\"not\", \"int\"])) i]; - ^" in "not" as{TypeError} core::int, let final #t257 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:160:65: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int, let final #t267 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:188:65: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var list40 = [await for (int i in Stream.fromIterable([\"not\", \"int\"])) i]; ^" in "int" as{TypeError} core::int])) - #t255.{core::List::add}(i); - } =>#t255; + #t265.{core::List::add}(i); + } =>#t265; core::Set set40 = block { - final core::Set #t258 = col::LinkedHashSet::•(); - await for (core::int i in asy::Stream::fromIterable([let final #t259 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:161:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + final core::Set #t268 = col::LinkedHashSet::•(); + await for (core::int i in asy::Stream::fromIterable([let final #t269 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:189:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var set40 = {await for (int i in Stream.fromIterable([\"not\", \"int\"])) i, null}; - ^" in "not" as{TypeError} core::int, let final #t260 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:161:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int, let final #t270 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:189:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. Try changing the type of the left hand side, or casting the right hand side to 'int'. var set40 = {await for (int i in Stream.fromIterable([\"not\", \"int\"])) i, null}; ^" in "int" as{TypeError} core::int])) - #t258.{core::Set::add}(i); - #t258.{core::Set::add}(null); - } =>#t258; + #t268.{core::Set::add}(i); + #t268.{core::Set::add}(null); + } =>#t268; core::List list50 = block { - final core::List #t261 = []; + final core::List #t271 = []; for (; ; ) - #t261.{core::List::add}(42); - } =>#t261; + #t271.{core::List::add}(42); + } =>#t271; core::Set set50 = block { - final core::Set #t262 = col::LinkedHashSet::•(); + final core::Set #t272 = col::LinkedHashSet::•(); for (; ; ) - #t262.{core::Set::add}(42); - #t262.{core::Set::add}(null); - } =>#t262; + #t272.{core::Set::add}(42); + #t272.{core::Set::add}(null); + } =>#t272; core::List list60 = block { - final core::List #t263 = []; - for (; let final #t264 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:164:24: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. + final core::List #t273 = []; + for (; let final #t274 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:192:24: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. Try changing the type of the left hand side, or casting the right hand side to 'bool'. var list60 = [for (; \"not bool\";) 42]; ^" in "not bool" as{TypeError} core::bool; ) - #t263.{core::List::add}(42); - } =>#t263; + #t273.{core::List::add}(42); + } =>#t273; core::Set set60 = block { - final core::Set #t265 = col::LinkedHashSet::•(); - for (; let final #t266 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:165:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. + final core::Set #t275 = col::LinkedHashSet::•(); + for (; let final #t276 = invalid-expression "pkg/front_end/testcases/control_flow_collection_inference.dart:193:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. Try changing the type of the left hand side, or casting the right hand side to 'bool'. var set60 = {for (; \"not bool\";) 42, null}; ^" in "not bool" as{TypeError} core::bool; ) - #t265.{core::Set::add}(42); - #t265.{core::Set::add}(null); - } =>#t265; + #t275.{core::Set::add}(42); + #t275.{core::Set::add}(null); + } =>#t275; } asy::_completeOnAsyncReturn(:async_completer, :return_value); return; @@ -1310,14 +1499,14 @@ Try changing the type of the left hand side, or casting the right hand side to ' } static method testForElementErrorsNotAsync(asy::Stream stream) → dynamic { block { - final core::List #t267 = []; + final core::List #t277 = []; await for (core::int i in stream) - #t267.{core::List::add}(i); - } =>#t267; + #t277.{core::List::add}(i); + } =>#t277; block { - final core::Set #t268 = col::LinkedHashSet::•(); + final core::Set #t278 = col::LinkedHashSet::•(); await for (core::int i in stream) - #t268.{core::Set::add}(i); - } =>#t268; + #t278.{core::Set::add}(i); + } =>#t278; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/control_flow_collection_inference.dart.type_promotion.expect b/pkg/front_end/testcases/control_flow_collection_inference.dart.type_promotion.expect index 995da92310e4..439b13cf15cf 100644 --- a/pkg/front_end/testcases/control_flow_collection_inference.dart.type_promotion.expect +++ b/pkg/front_end/testcases/control_flow_collection_inference.dart.type_promotion.expect @@ -1,198 +1,198 @@ -pkg/front_end/testcases/control_flow_collection_inference.dart:78:49: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:106:49: Context: Write to i@6001 var list10 = [for (int i = 0; oracle("foo"); i++) 42]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:79:48: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:107:48: Context: Write to i@6001 var set10 = {for (int i = 0; oracle("foo"); i++) 42, null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:80:49: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:108:49: Context: Write to i@6001 var list11 = [for (int i = 0; oracle("foo"); i++) dynVar]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:81:48: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:109:48: Context: Write to i@6001 var set11 = {for (int i = 0; oracle("foo"); i++) dynVar, null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:82:49: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:110:49: Context: Write to i@6001 var list12 = [for (int i = 0; oracle("foo"); i++) [42]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:83:48: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:111:48: Context: Write to i@6001 var set12 = {for (int i = 0; oracle("foo"); i++) [42], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:84:49: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:112:49: Context: Write to i@6001 var list20 = [for (int i = 0; oracle("foo"); i++) ...[42]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:85:48: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:113:48: Context: Write to i@6001 var set20 = {for (int i = 0; oracle("foo"); i++) ...[42], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:86:49: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:114:49: Context: Write to i@6001 var list21 = [for (int i = 0; oracle("foo"); i++) ...[dynVar]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:87:48: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:115:48: Context: Write to i@6001 var set21 = {for (int i = 0; oracle("foo"); i++) ...[dynVar], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:88:49: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:116:49: Context: Write to i@6001 var list22 = [for (int i = 0; oracle("foo"); i++) ...[[42]]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:89:48: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:117:48: Context: Write to i@6001 var set22 = {for (int i = 0; oracle("foo"); i++) ...[[42]], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:90:49: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:118:49: Context: Write to i@6001 var list30 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:91:48: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:119:48: Context: Write to i@6001 var set30 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[42], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:92:49: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:120:49: Context: Write to i@6001 var list31 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:93:48: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:121:48: Context: Write to i@6001 var set31 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[dynVar], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:94:49: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:122:49: Context: Write to i@6001 var list33 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:95:48: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:123:48: Context: Write to i@6001 var set33 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[42]], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:96:61: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:124:61: Context: Write to i@6001 List> list40 = [for (int i = 0; oracle("foo"); i++) ...[[]]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:97:59: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:125:59: Context: Write to i@6001 Set> set40 = {for (int i = 0; oracle("foo"); i++) ...[[]], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:98:61: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:126:61: Context: Write to i@6001 List> list41 = [for (int i = 0; oracle("foo"); i++) ...{[]}]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:99:59: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:127:59: Context: Write to i@6001 Set> set41 = {for (int i = 0; oracle("foo"); i++) ...{[]}, null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:100:61: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:128:61: Context: Write to i@6001 List> list42 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:101:59: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:129:59: Context: Write to i@6001 Set> set42 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:102:55: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:130:55: Context: Write to i@6001 List list50 = [for (int i = 0; oracle("foo"); i++) ...[]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:103:53: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:131:53: Context: Write to i@6001 Set set50 = {for (int i = 0; oracle("foo"); i++) ...[], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:104:55: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:132:55: Context: Write to i@6001 List list51 = [for (int i = 0; oracle("foo"); i++) ...{}]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:105:53: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:133:53: Context: Write to i@6001 Set set51 = {for (int i = 0; oracle("foo"); i++) ...{}, null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:106:55: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:134:55: Context: Write to i@6001 List list52 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:107:53: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:135:53: Context: Write to i@6001 Set set52 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:108:61: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:136:61: Context: Write to i@6001 List> list60 = [for (int i = 0; oracle("foo"); i++) ...[[]]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:109:59: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:137:59: Context: Write to i@6001 Set> set60 = {for (int i = 0; oracle("foo"); i++) ...[[]], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:110:61: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:138:61: Context: Write to i@6001 List> list61 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:111:59: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:139:59: Context: Write to i@6001 Set> set61 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...[[]], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:112:61: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:140:61: Context: Write to i@6001 List> list70 = [for (int i = 0; oracle("foo"); i++) []]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:113:59: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:141:59: Context: Write to i@6001 Set> set70 = {for (int i = 0; oracle("foo"); i++) [], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:114:61: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:142:61: Context: Write to i@6001 List> list71 = [for (int i = 0; oracle("foo"); i++) if (oracle()) []]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:115:59: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:143:59: Context: Write to i@6001 Set> set71 = {for (int i = 0; oracle("foo"); i++) if (oracle()) [], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:116:49: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:144:49: Context: Write to i@6001 var list80 = [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:117:48: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:145:48: Context: Write to i@6001 var set80 = {for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14, null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:118:49: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:146:49: Context: Write to i@6001 var list81 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:119:48: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:147:48: Context: Write to i@6001 var set81 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...listDouble, null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:120:49: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:148:49: Context: Write to i@6001 var list82 = [for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:121:48: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:149:48: Context: Write to i@6001 var set82 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else ...dynVar, null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:122:49: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:150:49: Context: Write to i@6001 var list83 = [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...listDouble]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:123:48: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:151:48: Context: Write to i@6001 var set83 = {for (int i = 0; oracle("foo"); i++) if (oracle()) ...listInt else 3.14, null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:124:55: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:152:55: Context: Write to i@6001 List list90 = [for (int i = 0; oracle("foo"); i++) dynVar]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:125:53: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:153:53: Context: Write to i@6001 Set set90 = {for (int i = 0; oracle("foo"); i++) dynVar, null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:126:55: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:154:55: Context: Write to i@6001 List list91 = [for (int i = 0; oracle("foo"); i++) ...dynVar]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:127:53: Context: Write to i@3961 +pkg/front_end/testcases/control_flow_collection_inference.dart:155:53: Context: Write to i@6001 Set set91 = {for (int i = 0; oracle("foo"); i++) ...dynVar, null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:128:40: Context: Write to index@3927 +pkg/front_end/testcases/control_flow_collection_inference.dart:156:40: Context: Write to index@5967 List list100 = [for (index = 0; oracle("foo"); index++) 42]; ^ -pkg/front_end/testcases/control_flow_collection_inference.dart:128:65: Context: Write to index@3927 +pkg/front_end/testcases/control_flow_collection_inference.dart:156:65: Context: Write to index@5967 List list100 = [for (index = 0; oracle("foo"); index++) 42]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:129:38: Context: Write to index@3927 +pkg/front_end/testcases/control_flow_collection_inference.dart:157:38: Context: Write to index@5967 Set set100 = {for (index = 0; oracle("foo"); index++) 42}; ^ -pkg/front_end/testcases/control_flow_collection_inference.dart:129:63: Context: Write to index@3927 +pkg/front_end/testcases/control_flow_collection_inference.dart:157:63: Context: Write to index@5967 Set set100 = {for (index = 0; oracle("foo"); index++) 42}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:137:41: Context: Write to i@8189 +pkg/front_end/testcases/control_flow_collection_inference.dart:165:41: Context: Write to i@10229 [for (int i = 0; oracle("foo"); i++) "bar"]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:138:41: Context: Write to i@8189 +pkg/front_end/testcases/control_flow_collection_inference.dart:166:41: Context: Write to i@10229 {for (int i = 0; oracle("foo"); i++) "bar", null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:139:41: Context: Write to i@8189 +pkg/front_end/testcases/control_flow_collection_inference.dart:167:41: Context: Write to i@10229 [for (int i = 0; oracle("foo"); i++) ...["bar"]]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:140:41: Context: Write to i@8189 +pkg/front_end/testcases/control_flow_collection_inference.dart:168:41: Context: Write to i@10229 {for (int i = 0; oracle("foo"); i++) ...["bar"], null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:141:41: Context: Write to i@8189 +pkg/front_end/testcases/control_flow_collection_inference.dart:169:41: Context: Write to i@10229 [for (int i = 0; oracle("foo"); i++) ...map]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:142:41: Context: Write to i@8189 +pkg/front_end/testcases/control_flow_collection_inference.dart:170:41: Context: Write to i@10229 {for (int i = 0; oracle("foo"); i++) ...map, null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:143:44: Context: Write to i@8189 +pkg/front_end/testcases/control_flow_collection_inference.dart:171:44: Context: Write to i@10229 [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:144:44: Context: Write to i@8189 +pkg/front_end/testcases/control_flow_collection_inference.dart:172:44: Context: Write to i@10229 {for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else 3.14, null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:145:41: Context: Write to i@8189 +pkg/front_end/testcases/control_flow_collection_inference.dart:173:41: Context: Write to i@10229 [for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:146:41: Context: Write to i@8189 +pkg/front_end/testcases/control_flow_collection_inference.dart:174:41: Context: Write to i@10229 {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:147:41: Context: Write to i@8189 +pkg/front_end/testcases/control_flow_collection_inference.dart:175:41: Context: Write to i@10229 [for (int i = 0; oracle("foo"); i++) if (oracle()) 42 else ...map]; ^^ -pkg/front_end/testcases/control_flow_collection_inference.dart:148:41: Context: Write to i@8189 +pkg/front_end/testcases/control_flow_collection_inference.dart:176:41: Context: Write to i@10229 {for (int i = 0; oracle("foo"); i++) if (oracle()) ...map else 42, null}; ^^ diff --git a/tests/co19_2/co19_2-kernel.status b/tests/co19_2/co19_2-kernel.status index 0cb96d95b2c6..b03b6729dabb 100644 --- a/tests/co19_2/co19_2-kernel.status +++ b/tests/co19_2/co19_2-kernel.status @@ -141,44 +141,18 @@ LanguageFeatures/Control-flow-collections/const_collections_A07_t01: CompileTime LanguageFeatures/Control-flow-collections/const_collections_A07_t02: CompileTimeError LanguageFeatures/Control-flow-collections/dynamic_semantics_map_A03_t01: CompileTimeError LanguageFeatures/Control-flow-collections/dynamic_semantics_set_A03_t01: CompileTimeError -LanguageFeatures/Control-flow-collections/static_errors_A02_t01/01: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_errors_A02_t01/02: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_errors_A02_t01/03: MissingCompileTimeError LanguageFeatures/Control-flow-collections/static_errors_A02_t01/04: MissingCompileTimeError LanguageFeatures/Control-flow-collections/static_errors_A02_t01/05: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_errors_A03_t01/01: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_errors_A03_t01/02: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_errors_A03_t01/03: MissingCompileTimeError LanguageFeatures/Control-flow-collections/static_errors_A03_t01/04: MissingCompileTimeError LanguageFeatures/Control-flow-collections/static_errors_A03_t01/05: MissingCompileTimeError LanguageFeatures/Control-flow-collections/static_errors_A04_t01/01: MissingCompileTimeError LanguageFeatures/Control-flow-collections/static_errors_A04_t01/02: MissingCompileTimeError LanguageFeatures/Control-flow-collections/static_errors_A04_t01/03: MissingCompileTimeError LanguageFeatures/Control-flow-collections/static_errors_A04_t01/04: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/01: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/02: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/03: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/04: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/05: MissingCompileTimeError LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/06: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/07: MissingCompileTimeError LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/08: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/09: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/10: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/11: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/12: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/13: MissingCompileTimeError LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/14: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/15: MissingCompileTimeError LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/16: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/17: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/18: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/19: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/20: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/21: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/22: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/23: MissingCompileTimeError -LanguageFeatures/Control-flow-collections/static_semantics_A02_t02/24: MissingCompileTimeError LanguageFeatures/Control-flow-collections/syntax_A02_t01: CompileTimeError LanguageFeatures/Control-flow-collections/type_inference_A05_t01: CompileTimeError LanguageFeatures/Control-flow-collections/type_inference_A06_t01: CompileTimeError diff --git a/tests/language_2/language_2_kernel.status b/tests/language_2/language_2_kernel.status index d3dbc7139830..b142eaa6659c 100644 --- a/tests/language_2/language_2_kernel.status +++ b/tests/language_2/language_2_kernel.status @@ -238,8 +238,6 @@ control_flow_collections/syntax_test: CompileTimeError control_flow_collections/type_error_test/00: MissingCompileTimeError control_flow_collections/type_error_test/01: MissingCompileTimeError control_flow_collections/type_error_test/02: MissingCompileTimeError -control_flow_collections/type_error_test/07: MissingCompileTimeError -control_flow_collections/type_error_test/08: MissingCompileTimeError control_flow_collections/type_error_test/10: MissingCompileTimeError control_flow_collections/type_error_test/11: MissingCompileTimeError control_flow_collections/type_error_test/12: MissingCompileTimeError