diff --git a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart index 771e607d38a..b550c58ce35 100644 --- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart +++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart @@ -6094,7 +6094,9 @@ class BodyBuilder extends ScopeListener @override Expression buildProblem(Message message, int charOffset, int length, - {List? context, bool suppressMessage: false}) { + {List? context, + bool suppressMessage: false, + Expression? expression}) { if (!suppressMessage) { addProblem(message, charOffset, length, wasHandled: true, context: context); @@ -6102,9 +6104,7 @@ class BodyBuilder extends ScopeListener String text = libraryBuilder.loader.target.context .format(message.withLocation(uri, charOffset, length), Severity.error) .plain; - InvalidExpression expression = new InvalidExpression(text) - ..fileOffset = charOffset; - return expression; + return new InvalidExpression(text, expression)..fileOffset = charOffset; } @override @@ -6131,15 +6131,9 @@ class BodyBuilder extends ScopeListener if (offset == -1) { offset = message.charOffset; } - return new Let( - new VariableDeclaration.forValue( - buildProblem( - message.messageObject, message.charOffset, message.length, - context: context), - type: NeverType.fromNullability(libraryBuilder.nonNullable)) - ..fileOffset = offset, - expression) - ..fileOffset = offset; + return buildProblem( + message.messageObject, message.charOffset, message.length, + context: context, expression: expression); } Expression buildFallThroughError(int charOffset) { 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 e820080a99b..63705890e17 100644 --- a/pkg/front_end/lib/src/fasta/kernel/inference_visitor.dart +++ b/pkg/front_end/lib/src/fasta/kernel/inference_visitor.dart @@ -334,9 +334,13 @@ class InferenceVisitor @override ExpressionInferenceResult visitInvalidExpression( InvalidExpression node, DartType typeContext) { - // TODO(johnniwinther): The inferred type should be an InvalidType. Using - // BottomType leads to cascading errors so we use DynamicType for now. - return new ExpressionInferenceResult(const DynamicType(), node); + if (node.expression != null) { + ExpressionInferenceResult result = inferrer.inferExpression( + node.expression!, typeContext, !inferrer.isTopLevel, + isVoidAllowed: true); + node.expression = result.expression..parent = node; + } + return new ExpressionInferenceResult(const InvalidType(), node); } @override diff --git a/pkg/front_end/lib/src/fasta/type_inference/inference_helper.dart b/pkg/front_end/lib/src/fasta/type_inference/inference_helper.dart index e449a1e0ca9..e8e2c9125cc 100644 --- a/pkg/front_end/lib/src/fasta/type_inference/inference_helper.dart +++ b/pkg/front_end/lib/src/fasta/type_inference/inference_helper.dart @@ -16,7 +16,9 @@ abstract class InferenceHelper { set transformSetLiterals(bool value); Expression buildProblem(Message message, int charOffset, int length, - {List? context, bool suppressMessage = false}); + {List? context, + bool suppressMessage = false, + Expression? expression}); LocatedMessage? checkArgumentsForType( FunctionType function, Arguments arguments, int offset, diff --git a/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.strong.expect b/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.strong.expect index 539ee45aa95..aff37fe60be 100644 --- a/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.strong.expect +++ b/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.strong.expect @@ -78,7 +78,7 @@ Try removing the return type. return Simple2(this.name); ^"; static const field self::B var3 = invalid-expression "This assertion failed."; -static const field dynamic var4 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart:41:14: Error: Cannot invoke a non-'const' constructor where a const expression is expected. +static const field invalid-type var4 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart:41:14: Error: Cannot invoke a non-'const' constructor where a const expression is expected. Try using a constructor or factory that is 'const'. const var4 = C(); ^"; diff --git a/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.strong.transformed.expect b/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.strong.transformed.expect index 1fd70dc7138..3b12ad15adc 100644 --- a/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.strong.transformed.expect @@ -78,7 +78,7 @@ Try removing the return type. return Simple2(this.name); ^"; static const field self::B var3 = invalid-expression "This assertion failed."; -static const field dynamic var4 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart:41:14: Error: Cannot invoke a non-'const' constructor where a const expression is expected. +static const field invalid-type var4 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart:41:14: Error: Cannot invoke a non-'const' constructor where a const expression is expected. Try using a constructor or factory that is 'const'. const var4 = C(); ^"; diff --git a/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.expect b/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.expect index 539ee45aa95..aff37fe60be 100644 --- a/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.expect +++ b/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.expect @@ -78,7 +78,7 @@ Try removing the return type. return Simple2(this.name); ^"; static const field self::B var3 = invalid-expression "This assertion failed."; -static const field dynamic var4 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart:41:14: Error: Cannot invoke a non-'const' constructor where a const expression is expected. +static const field invalid-type var4 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart:41:14: Error: Cannot invoke a non-'const' constructor where a const expression is expected. Try using a constructor or factory that is 'const'. const var4 = C(); ^"; diff --git a/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.outline.expect b/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.outline.expect index f6cf6a09ad5..67ae15b77a1 100644 --- a/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.outline.expect +++ b/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.outline.expect @@ -43,7 +43,7 @@ static const field core::String printString = "print"; static const field self::Simple var1 = const self::Simple::•(self::printString); static const field self::Simple2 var2 = const self::Simple2::•(self::printString); static const field self::B var3 = const self::B::•(); -static const field dynamic var4 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart:41:14: Error: Cannot invoke a non-'const' constructor where a const expression is expected. +static const field invalid-type var4 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart:41:14: Error: Cannot invoke a non-'const' constructor where a const expression is expected. Try using a constructor or factory that is 'const'. const var4 = C(); ^"; diff --git a/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.transformed.expect b/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.transformed.expect index 1fd70dc7138..3b12ad15adc 100644 --- a/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart.weak.transformed.expect @@ -78,7 +78,7 @@ Try removing the return type. return Simple2(this.name); ^"; static const field self::B var3 = invalid-expression "This assertion failed."; -static const field dynamic var4 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart:41:14: Error: Cannot invoke a non-'const' constructor where a const expression is expected. +static const field invalid-type var4 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_const_ctor_error.dart:41:14: Error: Cannot invoke a non-'const' constructor where a const expression is expected. Try using a constructor or factory that is 'const'. const var4 = C(); ^"; diff --git a/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.strong.expect b/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.strong.expect index f4af2aa127e..e4908743cfa 100644 --- a/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.strong.expect +++ b/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.strong.expect @@ -107,7 +107,7 @@ static method getWithIndexExceptionFn2() → core::int { return (#C5).{core::List::[]}(1.{core::int::unary-}(){() → core::int}){(core::int) → core::int}; } static method getWithIndexExceptionFn3() → core::int { - return (#C5).{core::List::[]}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_list_error.dart:54:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + return (#C5).{core::List::[]}(invalid-expression "pkg/front_end/testcases/const_functions/const_functions_list_error.dart:54:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. return x[0.1]; ^" in 0.1 as{TypeError,ForNonNullableByDefault} core::int){(core::int) → core::int}; } diff --git a/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.strong.transformed.expect b/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.strong.transformed.expect index 6afdb3330df..5929224869b 100644 --- a/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.strong.transformed.expect @@ -107,7 +107,7 @@ static method getWithIndexExceptionFn2() → core::int { return (#C5).{core::List::[]}(1.{core::int::unary-}(){() → core::int}){(core::int) → core::int}; } static method getWithIndexExceptionFn3() → core::int { - return (#C5).{core::List::[]}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_list_error.dart:54:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + return (#C5).{core::List::[]}(invalid-expression "pkg/front_end/testcases/const_functions/const_functions_list_error.dart:54:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. return x[0.1]; ^" in 0.1 as{TypeError,ForNonNullableByDefault} core::int){(core::int) → core::int}; } @@ -127,4 +127,4 @@ constants { Extra constant evaluation status: Evaluated: InstanceInvocation @ org-dartlang-testcase:///const_functions_list_error.dart:48:12 -> IntConstant(-1) -Extra constant evaluation: evaluated: 11, effectively constant: 1 +Extra constant evaluation: evaluated: 9, effectively constant: 1 diff --git a/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.weak.expect b/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.weak.expect index 4accbb01781..8b0f4c1c9b1 100644 --- a/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.weak.expect +++ b/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.weak.expect @@ -107,7 +107,7 @@ static method getWithIndexExceptionFn2() → core::int { return (#C5).{core::List::[]}(1.{core::int::unary-}(){() → core::int}){(core::int) → core::int}; } static method getWithIndexExceptionFn3() → core::int { - return (#C5).{core::List::[]}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_list_error.dart:54:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + return (#C5).{core::List::[]}(invalid-expression "pkg/front_end/testcases/const_functions/const_functions_list_error.dart:54:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. return x[0.1]; ^" in 0.1 as{TypeError,ForNonNullableByDefault} core::int){(core::int) → core::int}; } diff --git a/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.weak.transformed.expect b/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.weak.transformed.expect index 670f5fc81b6..f235e32fb8c 100644 --- a/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/const_functions/const_functions_list_error.dart.weak.transformed.expect @@ -107,7 +107,7 @@ static method getWithIndexExceptionFn2() → core::int { return (#C5).{core::List::[]}(1.{core::int::unary-}(){() → core::int}){(core::int) → core::int}; } static method getWithIndexExceptionFn3() → core::int { - return (#C5).{core::List::[]}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_list_error.dart:54:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + return (#C5).{core::List::[]}(invalid-expression "pkg/front_end/testcases/const_functions/const_functions_list_error.dart:54:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. return x[0.1]; ^" in 0.1 as{TypeError,ForNonNullableByDefault} core::int){(core::int) → core::int}; } @@ -127,4 +127,4 @@ constants { Extra constant evaluation status: Evaluated: InstanceInvocation @ org-dartlang-testcase:///const_functions_list_error.dart:48:12 -> IntConstant(-1) -Extra constant evaluation: evaluated: 11, effectively constant: 1 +Extra constant evaluation: evaluated: 9, effectively constant: 1 diff --git a/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.strong.expect b/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.strong.expect index 7511ee3e2fb..60746247880 100644 --- a/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.strong.expect +++ b/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.strong.expect @@ -57,7 +57,7 @@ static method fn2() → dynamic { } static method fn3() → dynamic { core::String s = "str"; - return (#C1).{core::String::[]}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_string_error.dart:28:14: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + return (#C1).{core::String::[]}(invalid-expression "pkg/front_end/testcases/const_functions/const_functions_string_error.dart:28:14: Error: A value of type 'double' can't be assigned to a variable of type 'int'. return str[1.1]; ^" in 1.1 as{TypeError,ForNonNullableByDefault} core::int){(core::int) → core::String}; } diff --git a/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.strong.transformed.expect b/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.strong.transformed.expect index 04e045d7c5d..9cd6e7015d8 100644 --- a/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.strong.transformed.expect @@ -57,7 +57,7 @@ static method fn2() → dynamic { } static method fn3() → dynamic { core::String s = "str"; - return (#C1).{core::String::[]}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_string_error.dart:28:14: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + return (#C1).{core::String::[]}(invalid-expression "pkg/front_end/testcases/const_functions/const_functions_string_error.dart:28:14: Error: A value of type 'double' can't be assigned to a variable of type 'int'. return str[1.1]; ^" in 1.1 as{TypeError,ForNonNullableByDefault} core::int){(core::int) → core::String}; } @@ -69,4 +69,4 @@ constants { Extra constant evaluation status: Evaluated: InstanceInvocation @ org-dartlang-testcase:///const_functions_string_error.dart:16:14 -> IntConstant(-1) -Extra constant evaluation: evaluated: 6, effectively constant: 1 +Extra constant evaluation: evaluated: 4, effectively constant: 1 diff --git a/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.weak.expect b/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.weak.expect index 7511ee3e2fb..60746247880 100644 --- a/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.weak.expect +++ b/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.weak.expect @@ -57,7 +57,7 @@ static method fn2() → dynamic { } static method fn3() → dynamic { core::String s = "str"; - return (#C1).{core::String::[]}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_string_error.dart:28:14: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + return (#C1).{core::String::[]}(invalid-expression "pkg/front_end/testcases/const_functions/const_functions_string_error.dart:28:14: Error: A value of type 'double' can't be assigned to a variable of type 'int'. return str[1.1]; ^" in 1.1 as{TypeError,ForNonNullableByDefault} core::int){(core::int) → core::String}; } diff --git a/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.weak.transformed.expect b/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.weak.transformed.expect index 04e045d7c5d..9cd6e7015d8 100644 --- a/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/const_functions/const_functions_string_error.dart.weak.transformed.expect @@ -57,7 +57,7 @@ static method fn2() → dynamic { } static method fn3() → dynamic { core::String s = "str"; - return (#C1).{core::String::[]}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/const_functions/const_functions_string_error.dart:28:14: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + return (#C1).{core::String::[]}(invalid-expression "pkg/front_end/testcases/const_functions/const_functions_string_error.dart:28:14: Error: A value of type 'double' can't be assigned to a variable of type 'int'. return str[1.1]; ^" in 1.1 as{TypeError,ForNonNullableByDefault} core::int){(core::int) → core::String}; } @@ -69,4 +69,4 @@ constants { Extra constant evaluation status: Evaluated: InstanceInvocation @ org-dartlang-testcase:///const_functions_string_error.dart:16:14 -> IntConstant(-1) -Extra constant evaluation: evaluated: 6, effectively constant: 1 +Extra constant evaluation: evaluated: 4, effectively constant: 1 diff --git a/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.strong.expect index fe25279b887..edfaeac9b46 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.strong.expect @@ -16,7 +16,7 @@ import self as self; import "dart:core" as core; static field (T%) → T% funcValue = #C1; -static field (core::int) → core::int f = let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart:7:33: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. +static field (core::int) → core::int f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart:7:33: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. int Function(int) f = funcValue.call; // Disallowed! ^" in self::funcValue.call as{TypeError,ForNonNullableByDefault} (core::int) → core::int; static field (core::int) → core::int g = self::funcValue.call; diff --git a/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.strong.transformed.expect index bdc66d10b55..4c7d3632265 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.strong.transformed.expect @@ -10,7 +10,7 @@ import self as self; import "dart:core" as core; static field (T%) → T% funcValue = #C1; -static field (core::int) → core::int f = let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart:7:33: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. +static field (core::int) → core::int f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart:7:33: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. int Function(int) f = funcValue.call; // Disallowed! ^" in self::funcValue.call as{TypeError,ForNonNullableByDefault} (core::int) → core::int; static method func(self::func::T% value) → self::func::T% diff --git a/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.weak.expect index fe25279b887..edfaeac9b46 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.weak.expect @@ -16,7 +16,7 @@ import self as self; import "dart:core" as core; static field (T%) → T% funcValue = #C1; -static field (core::int) → core::int f = let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart:7:33: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. +static field (core::int) → core::int f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart:7:33: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. int Function(int) f = funcValue.call; // Disallowed! ^" in self::funcValue.call as{TypeError,ForNonNullableByDefault} (core::int) → core::int; static field (core::int) → core::int g = self::funcValue.call; diff --git a/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.weak.transformed.expect index bdc66d10b55..4c7d3632265 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart.weak.transformed.expect @@ -10,7 +10,7 @@ import self as self; import "dart:core" as core; static field (T%) → T% funcValue = #C1; -static field (core::int) → core::int f = let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart:7:33: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. +static field (core::int) → core::int f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/call_instantiation.dart:7:33: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. int Function(int) f = funcValue.call; // Disallowed! ^" in self::funcValue.call as{TypeError,ForNonNullableByDefault} (core::int) → core::int; static method func(self::func::T% value) → self::func::T% diff --git a/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.strong.expect index fdd4fb7321d..43820077a15 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.strong.expect @@ -70,21 +70,21 @@ class A extends core::Object { static method test1() → (X%) → self::A return #C1; static method test2() → (X%) → self::A - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:13:32: Error: A value of type 'A Function(X/*1*/, int)' can't be returned from a function with return type 'A Function(X/*2*/)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:13:32: Error: A value of type 'A Function(X/*1*/, int)' can't be returned from a function with return type 'A Function(X/*2*/)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. - 'X/*1*/' is from 'unknown'. - 'X/*2*/' is from 'unknown'. A Function(X) test2() => A.foo2; // Error. ^" in (#C2) as{TypeError,ForNonNullableByDefault} Never; static method test3() → (X%) → self::A - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:14:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:14:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. - 'X/*1*/' is from 'unknown'. - 'X/*2*/' is from 'unknown'. A Function(X) test3() => A.new; // Error. ^" in (#C3) as{TypeError,ForNonNullableByDefault} Never; static method test4() → (X%) → self::A - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:15:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:15:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. A Function(X) test4() => A.new; // Error. ^" in (#C4) as{TypeError,ForNonNullableByDefault} Never; @@ -94,7 +94,7 @@ Try removing the extra type arguments. A Function(X) test5() => A.new; // Error. ^"; static method test6() → (X%) → self::A - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:17:32: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function(X)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:17:32: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function(X)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. A Function(X) test6() => A.foo1; // Error. ^" in (#C5) as{TypeError,ForNonNullableByDefault} Never; @@ -104,7 +104,7 @@ Try removing the extra type arguments. A Function(X) test7() => A.foo1; // Error. ^"; static method test8() → (X%) → self::A - return let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:19:32: Error: A value of type 'A Function(int, int)' can't be returned from a function with return type 'A Function(X)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:19:32: Error: A value of type 'A Function(int, int)' can't be returned from a function with return type 'A Function(X)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. A Function(X) test8() => A.foo2; // Error. ^" in (#C6) as{TypeError,ForNonNullableByDefault} Never; @@ -116,7 +116,7 @@ A Function(X) test9() => A.foo2; // Error. static method test10() → () → self::A return #C7; static method test11() → (X%) → self::A - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:22:33: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:22:33: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. - 'X/*1*/' is from 'unknown'. - 'X/*2*/' is from 'unknown'. diff --git a/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.strong.transformed.expect index fdd4fb7321d..43820077a15 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.strong.transformed.expect @@ -70,21 +70,21 @@ class A extends core::Object { static method test1() → (X%) → self::A return #C1; static method test2() → (X%) → self::A - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:13:32: Error: A value of type 'A Function(X/*1*/, int)' can't be returned from a function with return type 'A Function(X/*2*/)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:13:32: Error: A value of type 'A Function(X/*1*/, int)' can't be returned from a function with return type 'A Function(X/*2*/)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. - 'X/*1*/' is from 'unknown'. - 'X/*2*/' is from 'unknown'. A Function(X) test2() => A.foo2; // Error. ^" in (#C2) as{TypeError,ForNonNullableByDefault} Never; static method test3() → (X%) → self::A - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:14:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:14:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. - 'X/*1*/' is from 'unknown'. - 'X/*2*/' is from 'unknown'. A Function(X) test3() => A.new; // Error. ^" in (#C3) as{TypeError,ForNonNullableByDefault} Never; static method test4() → (X%) → self::A - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:15:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:15:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. A Function(X) test4() => A.new; // Error. ^" in (#C4) as{TypeError,ForNonNullableByDefault} Never; @@ -94,7 +94,7 @@ Try removing the extra type arguments. A Function(X) test5() => A.new; // Error. ^"; static method test6() → (X%) → self::A - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:17:32: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function(X)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:17:32: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function(X)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. A Function(X) test6() => A.foo1; // Error. ^" in (#C5) as{TypeError,ForNonNullableByDefault} Never; @@ -104,7 +104,7 @@ Try removing the extra type arguments. A Function(X) test7() => A.foo1; // Error. ^"; static method test8() → (X%) → self::A - return let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:19:32: Error: A value of type 'A Function(int, int)' can't be returned from a function with return type 'A Function(X)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:19:32: Error: A value of type 'A Function(int, int)' can't be returned from a function with return type 'A Function(X)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. A Function(X) test8() => A.foo2; // Error. ^" in (#C6) as{TypeError,ForNonNullableByDefault} Never; @@ -116,7 +116,7 @@ A Function(X) test9() => A.foo2; // Error. static method test10() → () → self::A return #C7; static method test11() → (X%) → self::A - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:22:33: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:22:33: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. - 'X/*1*/' is from 'unknown'. - 'X/*2*/' is from 'unknown'. diff --git a/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.weak.expect index b0da904b1ea..1b4c49e88b9 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.weak.expect @@ -70,21 +70,21 @@ class A extends core::Object { static method test1() → (X%) → self::A return #C1; static method test2() → (X%) → self::A - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:13:32: Error: A value of type 'A Function(X/*1*/, int)' can't be returned from a function with return type 'A Function(X/*2*/)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:13:32: Error: A value of type 'A Function(X/*1*/, int)' can't be returned from a function with return type 'A Function(X/*2*/)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. - 'X/*1*/' is from 'unknown'. - 'X/*2*/' is from 'unknown'. A Function(X) test2() => A.foo2; // Error. ^" in (#C2) as{TypeError,ForNonNullableByDefault} Never; static method test3() → (X%) → self::A - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:14:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:14:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. - 'X/*1*/' is from 'unknown'. - 'X/*2*/' is from 'unknown'. A Function(X) test3() => A.new; // Error. ^" in (#C3) as{TypeError,ForNonNullableByDefault} Never; static method test4() → (X%) → self::A - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:15:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:15:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. A Function(X) test4() => A.new; // Error. ^" in (#C4) as{TypeError,ForNonNullableByDefault} Never; @@ -94,7 +94,7 @@ Try removing the extra type arguments. A Function(X) test5() => A.new; // Error. ^"; static method test6() → (X%) → self::A - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:17:32: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function(X)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:17:32: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function(X)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. A Function(X) test6() => A.foo1; // Error. ^" in (#C5) as{TypeError,ForNonNullableByDefault} Never; @@ -104,7 +104,7 @@ Try removing the extra type arguments. A Function(X) test7() => A.foo1; // Error. ^"; static method test8() → (X%) → self::A - return let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:19:32: Error: A value of type 'A Function(int, int)' can't be returned from a function with return type 'A Function(X)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:19:32: Error: A value of type 'A Function(int, int)' can't be returned from a function with return type 'A Function(X)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. A Function(X) test8() => A.foo2; // Error. ^" in (#C6) as{TypeError,ForNonNullableByDefault} Never; @@ -116,7 +116,7 @@ A Function(X) test9() => A.foo2; // Error. static method test10() → () → self::A return #C7; static method test11() → (X%) → self::A - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:22:33: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:22:33: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. - 'X/*1*/' is from 'unknown'. - 'X/*2*/' is from 'unknown'. diff --git a/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.weak.transformed.expect index b0da904b1ea..1b4c49e88b9 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart.weak.transformed.expect @@ -70,21 +70,21 @@ class A extends core::Object { static method test1() → (X%) → self::A return #C1; static method test2() → (X%) → self::A - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:13:32: Error: A value of type 'A Function(X/*1*/, int)' can't be returned from a function with return type 'A Function(X/*2*/)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:13:32: Error: A value of type 'A Function(X/*1*/, int)' can't be returned from a function with return type 'A Function(X/*2*/)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. - 'X/*1*/' is from 'unknown'. - 'X/*2*/' is from 'unknown'. A Function(X) test2() => A.foo2; // Error. ^" in (#C2) as{TypeError,ForNonNullableByDefault} Never; static method test3() → (X%) → self::A - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:14:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:14:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. - 'X/*1*/' is from 'unknown'. - 'X/*2*/' is from 'unknown'. A Function(X) test3() => A.new; // Error. ^" in (#C3) as{TypeError,ForNonNullableByDefault} Never; static method test4() → (X%) → self::A - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:15:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:15:32: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. A Function(X) test4() => A.new; // Error. ^" in (#C4) as{TypeError,ForNonNullableByDefault} Never; @@ -94,7 +94,7 @@ Try removing the extra type arguments. A Function(X) test5() => A.new; // Error. ^"; static method test6() → (X%) → self::A - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:17:32: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function(X)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:17:32: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function(X)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. A Function(X) test6() => A.foo1; // Error. ^" in (#C5) as{TypeError,ForNonNullableByDefault} Never; @@ -104,7 +104,7 @@ Try removing the extra type arguments. A Function(X) test7() => A.foo1; // Error. ^"; static method test8() → (X%) → self::A - return let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:19:32: Error: A value of type 'A Function(int, int)' can't be returned from a function with return type 'A Function(X)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:19:32: Error: A value of type 'A Function(int, int)' can't be returned from a function with return type 'A Function(X)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. A Function(X) test8() => A.foo2; // Error. ^" in (#C6) as{TypeError,ForNonNullableByDefault} Never; @@ -116,7 +116,7 @@ A Function(X) test9() => A.foo2; // Error. static method test10() → () → self::A return #C7; static method test11() → (X%) → self::A - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:22:33: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart:22:33: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(X/*2*/)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/generic_tearoff_with_context.dart'. - 'X/*1*/' is from 'unknown'. - 'X/*2*/' is from 'unknown'. diff --git a/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.strong.expect index e2692d726ca..5857e8c7710 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.strong.expect @@ -45,7 +45,7 @@ static method testInferred() → dynamic { self::Class1 c1a = f1a(0){(core::int) → self::Class1}; self::expect(true, c1a is{ForNonNullableByDefault} self::Class1); () → Null { - f1a(let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f1a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f1a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class1}; }; @@ -59,7 +59,7 @@ static method testInferred() → dynamic { self::Class2 c2a = f2a(0){(core::int) → self::Class2}; self::expect(true, c2a is{ForNonNullableByDefault} self::Class2); () → Null { - f2a(let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f2a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f2a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class2}; }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.strong.transformed.expect index 6a6db602a03..2438c7cdb94 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.strong.transformed.expect @@ -45,7 +45,7 @@ static method testInferred() → dynamic { self::Class1 c1a = f1a(0){(core::int) → self::Class1}; self::expect(true, c1a is{ForNonNullableByDefault} self::Class1); () → Null { - f1a(let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f1a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f1a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class1}; }; @@ -59,7 +59,7 @@ static method testInferred() → dynamic { self::Class2 c2a = f2a(0){(core::int) → self::Class2}; self::expect(true, c2a is{ForNonNullableByDefault} self::Class2); () → Null { - f2a(let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f2a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f2a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class2}; }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.weak.expect index e2692d726ca..5857e8c7710 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.weak.expect @@ -45,7 +45,7 @@ static method testInferred() → dynamic { self::Class1 c1a = f1a(0){(core::int) → self::Class1}; self::expect(true, c1a is{ForNonNullableByDefault} self::Class1); () → Null { - f1a(let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f1a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f1a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class1}; }; @@ -59,7 +59,7 @@ static method testInferred() → dynamic { self::Class2 c2a = f2a(0){(core::int) → self::Class2}; self::expect(true, c2a is{ForNonNullableByDefault} self::Class2); () → Null { - f2a(let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f2a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f2a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class2}; }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.weak.transformed.expect index 6a6db602a03..2438c7cdb94 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart.weak.transformed.expect @@ -45,7 +45,7 @@ static method testInferred() → dynamic { self::Class1 c1a = f1a(0){(core::int) → self::Class1}; self::expect(true, c1a is{ForNonNullableByDefault} self::Class1); () → Null { - f1a(let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f1a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f1a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class1}; }; @@ -59,7 +59,7 @@ static method testInferred() → dynamic { self::Class2 c2a = f2a(0){(core::int) → self::Class2}; self::expect(true, c2a is{ForNonNullableByDefault} self::Class2); () → Null { - f2a(let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f2a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f2a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class2}; }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.strong.expect index 2dac5ed1162..678c59b65aa 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.strong.expect @@ -121,10 +121,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:73:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:73:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:74:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:74:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -140,7 +140,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:89:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:89:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -155,10 +155,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:103:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:103:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:104:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:104:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -172,17 +172,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:116:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:116:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:117:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:117:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:118:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:118:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:119:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:119:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.strong.transformed.expect index 67d30a7f19f..0637a6f8e1d 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.strong.transformed.expect @@ -121,10 +121,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:73:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:73:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:74:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:74:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -140,7 +140,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:89:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:89:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -155,10 +155,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:103:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:103:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:104:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:104:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -172,17 +172,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:116:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:116:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:117:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:117:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:118:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:118:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:119:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:119:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.weak.expect index 2dac5ed1162..678c59b65aa 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.weak.expect @@ -121,10 +121,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:73:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:73:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:74:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:74:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -140,7 +140,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:89:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:89:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -155,10 +155,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:103:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:103:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:104:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:104:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -172,17 +172,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:116:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:116:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:117:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:117:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:118:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:118:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:119:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:119:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.weak.transformed.expect index 67d30a7f19f..0637a6f8e1d 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart.weak.transformed.expect @@ -121,10 +121,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:73:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:73:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:74:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:74:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -140,7 +140,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:89:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:89:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -155,10 +155,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:103:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:103:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:104:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:104:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -172,17 +172,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:116:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:116:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:117:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:117:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:118:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:118:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:119:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off.dart:119:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.strong.expect index 066aa724c05..9db8c5f90ed 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.strong.expect @@ -43,7 +43,7 @@ static method testDefaultValues() → void { self::Class1 c1b = f1a(87){([core::int]) → self::Class1}; self::expect(87, c1b.{self::Class1::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:31:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:31:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1a(42, 87); // error ^" in f1a{}.(42, 87); @@ -60,7 +60,7 @@ Try removing the extra positional arguments. self::Class2 c2b = f2a(field: 87){({field: core::int}) → self::Class2}; self::expect(87, c2b.{self::Class2::field}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:47:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:47:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(87); // error ^" in f2a{}.(87); diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.strong.transformed.expect index c76d2394d79..6d3c10291a0 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.strong.transformed.expect @@ -43,7 +43,7 @@ static method testDefaultValues() → void { self::Class1 c1b = f1a(87){([core::int]) → self::Class1}; self::expect(87, c1b.{self::Class1::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:31:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:31:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1a(42, 87); // error ^" in f1a{}.(42, 87); @@ -60,7 +60,7 @@ Try removing the extra positional arguments. self::Class2 c2b = f2a(field: 87){({field: core::int}) → self::Class2}; self::expect(87, c2b.{self::Class2::field}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:47:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:47:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(87); // error ^" in f2a{}.(87); diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.weak.expect index 066aa724c05..9db8c5f90ed 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.weak.expect @@ -43,7 +43,7 @@ static method testDefaultValues() → void { self::Class1 c1b = f1a(87){([core::int]) → self::Class1}; self::expect(87, c1b.{self::Class1::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:31:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:31:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1a(42, 87); // error ^" in f1a{}.(42, 87); @@ -60,7 +60,7 @@ Try removing the extra positional arguments. self::Class2 c2b = f2a(field: 87){({field: core::int}) → self::Class2}; self::expect(87, c2b.{self::Class2::field}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:47:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:47:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(87); // error ^" in f2a{}.(87); diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.weak.transformed.expect index c76d2394d79..6d3c10291a0 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart.weak.transformed.expect @@ -43,7 +43,7 @@ static method testDefaultValues() → void { self::Class1 c1b = f1a(87){([core::int]) → self::Class1}; self::expect(87, c1b.{self::Class1::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:31:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:31:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1a(42, 87); // error ^" in f1a{}.(42, 87); @@ -60,7 +60,7 @@ Try removing the extra positional arguments. self::Class2 c2b = f2a(field: 87){({field: core::int}) → self::Class2}; self::expect(87, c2b.{self::Class2::field}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:47:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_default_values.dart:47:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(87); // error ^" in f2a{}.(87); diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.strong.expect index 007285e3143..9957901a929 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.strong.expect @@ -20,7 +20,7 @@ class Class extends core::Object { // from org-dartlang-testcase:///constructor_ } static method main() → dynamic {} static method /* from org-dartlang-testcase:///constructor_tear_off_uri_part.dart */ test() → dynamic { - (core::int) → self::Class f = let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri_part.dart:8:27: Error: A value of type 'Class Function()' can't be assigned to a variable of type 'Class Function(int)'. + (core::int) → self::Class f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri_part.dart:8:27: Error: A value of type 'Class Function()' can't be assigned to a variable of type 'Class Function(int)'. - 'Class' is from 'pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart'. Class Function(int) f = Class.new; ^" in (#C1) as{TypeError,ForNonNullableByDefault} (core::int) → self::Class; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.strong.transformed.expect index 007285e3143..9957901a929 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.strong.transformed.expect @@ -20,7 +20,7 @@ class Class extends core::Object { // from org-dartlang-testcase:///constructor_ } static method main() → dynamic {} static method /* from org-dartlang-testcase:///constructor_tear_off_uri_part.dart */ test() → dynamic { - (core::int) → self::Class f = let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri_part.dart:8:27: Error: A value of type 'Class Function()' can't be assigned to a variable of type 'Class Function(int)'. + (core::int) → self::Class f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri_part.dart:8:27: Error: A value of type 'Class Function()' can't be assigned to a variable of type 'Class Function(int)'. - 'Class' is from 'pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart'. Class Function(int) f = Class.new; ^" in (#C1) as{TypeError,ForNonNullableByDefault} (core::int) → self::Class; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.weak.expect index 007285e3143..9957901a929 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.weak.expect @@ -20,7 +20,7 @@ class Class extends core::Object { // from org-dartlang-testcase:///constructor_ } static method main() → dynamic {} static method /* from org-dartlang-testcase:///constructor_tear_off_uri_part.dart */ test() → dynamic { - (core::int) → self::Class f = let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri_part.dart:8:27: Error: A value of type 'Class Function()' can't be assigned to a variable of type 'Class Function(int)'. + (core::int) → self::Class f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri_part.dart:8:27: Error: A value of type 'Class Function()' can't be assigned to a variable of type 'Class Function(int)'. - 'Class' is from 'pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart'. Class Function(int) f = Class.new; ^" in (#C1) as{TypeError,ForNonNullableByDefault} (core::int) → self::Class; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.weak.transformed.expect index 007285e3143..9957901a929 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart.weak.transformed.expect @@ -20,7 +20,7 @@ class Class extends core::Object { // from org-dartlang-testcase:///constructor_ } static method main() → dynamic {} static method /* from org-dartlang-testcase:///constructor_tear_off_uri_part.dart */ test() → dynamic { - (core::int) → self::Class f = let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri_part.dart:8:27: Error: A value of type 'Class Function()' can't be assigned to a variable of type 'Class Function(int)'. + (core::int) → self::Class f = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri_part.dart:8:27: Error: A value of type 'Class Function()' can't be assigned to a variable of type 'Class Function(int)'. - 'Class' is from 'pkg/front_end/testcases/constructor_tearoffs/lowering/constructor_tear_off_uri.dart'. Class Function(int) f = Class.new; ^" in (#C1) as{TypeError,ForNonNullableByDefault} (core::int) → self::Class; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.strong.expect index 7c14634dec1..68c70e19474 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.strong.expect @@ -145,10 +145,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:82:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:82:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:83:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:83:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -164,7 +164,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:98:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:98:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -179,10 +179,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:112:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:112:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:113:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:113:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -196,17 +196,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:125:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:125:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:126:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:126:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:127:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:127:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:128:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:128:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.strong.transformed.expect index ebe5432ce61..ae147ff652c 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.strong.transformed.expect @@ -145,10 +145,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:82:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:82:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:83:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:83:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -164,7 +164,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:98:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:98:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -179,10 +179,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:112:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:112:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:113:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:113:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -196,17 +196,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:125:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:125:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:126:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:126:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:127:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:127:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:128:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:128:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.weak.expect index 7c14634dec1..68c70e19474 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.weak.expect @@ -145,10 +145,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:82:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:82:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:83:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:83:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -164,7 +164,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:98:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:98:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -179,10 +179,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:112:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:112:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:113:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:113:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -196,17 +196,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:125:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:125:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:126:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:126:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:127:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:127:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:128:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:128:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.weak.transformed.expect index ebe5432ce61..ae147ff652c 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart.weak.transformed.expect @@ -145,10 +145,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:82:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:82:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:83:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:83:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -164,7 +164,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:98:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:98:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -179,10 +179,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:112:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:112:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:113:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:113:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -196,17 +196,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:125:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:125:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:126:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:126:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:127:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:127:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:128:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off.dart:128:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.strong.expect index bcc5942ff10..6ef9f152b66 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.strong.expect @@ -51,7 +51,7 @@ static method testDefaultValues() → void { self::Class1 c1b = f1a(87){([core::int]) → self::Class1}; self::expect(87, c1b.{self::Class1::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1a(42, 87); // error ^" in f1a{}.(42, 87); @@ -68,7 +68,7 @@ Try removing the extra positional arguments. self::Class2 c2b = f2a(field: 87){({field: core::int}) → self::Class2}; self::expect(87, c2b.{self::Class2::field}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(87); // error ^" in f2a{}.(87); diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.strong.transformed.expect index db9b0fa8d68..2c3136ae8ff 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.strong.transformed.expect @@ -51,7 +51,7 @@ static method testDefaultValues() → void { self::Class1 c1b = f1a(87){([core::int]) → self::Class1}; self::expect(87, c1b.{self::Class1::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1a(42, 87); // error ^" in f1a{}.(42, 87); @@ -68,7 +68,7 @@ Try removing the extra positional arguments. self::Class2 c2b = f2a(field: 87){({field: core::int}) → self::Class2}; self::expect(87, c2b.{self::Class2::field}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(87); // error ^" in f2a{}.(87); diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.weak.expect index bcc5942ff10..6ef9f152b66 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.weak.expect @@ -51,7 +51,7 @@ static method testDefaultValues() → void { self::Class1 c1b = f1a(87){([core::int]) → self::Class1}; self::expect(87, c1b.{self::Class1::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1a(42, 87); // error ^" in f1a{}.(42, 87); @@ -68,7 +68,7 @@ Try removing the extra positional arguments. self::Class2 c2b = f2a(field: 87){({field: core::int}) → self::Class2}; self::expect(87, c2b.{self::Class2::field}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(87); // error ^" in f2a{}.(87); diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.weak.transformed.expect index db9b0fa8d68..2c3136ae8ff 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart.weak.transformed.expect @@ -51,7 +51,7 @@ static method testDefaultValues() → void { self::Class1 c1b = f1a(87){([core::int]) → self::Class1}; self::expect(87, c1b.{self::Class1::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1a(42, 87); // error ^" in f1a{}.(42, 87); @@ -68,7 +68,7 @@ Try removing the extra positional arguments. self::Class2 c2b = f2a(field: 87){({field: core::int}) → self::Class2}; self::expect(87, c2b.{self::Class2::field}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(87); // error ^" in f2a{}.(87); diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.strong.expect index 1806fdc3a88..613a456fce0 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.strong.expect @@ -69,10 +69,10 @@ static method main() → dynamic { mai::Class3 c3a = f3a(42){(core::int) → mai::Class3}; self::expect(42, c3a.{mai::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:44:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:44:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:45:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:45:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -90,7 +90,7 @@ Try removing the extra positional arguments. self::expect(true, c4b is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4b is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:62:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:62:8: Error: Expected 1 type arguments. f4a(); // error ^" in f4a{}.(); }; @@ -99,7 +99,7 @@ Try removing the extra positional arguments. self::expect(true, c4c is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4c is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:70:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:70:8: Error: Expected 0 type arguments. f4b(); // error ^" in f4b{}.(); }; @@ -116,7 +116,7 @@ Try removing the extra positional arguments. self::expect(true, c4f is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4f is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:87:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:87:8: Error: Expected 1 type arguments. f4d(); // error ^" in f4d{}.(); }; @@ -125,7 +125,7 @@ Try removing the extra positional arguments. self::expect(true, c4g is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4g is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:95:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:95:8: Error: Expected 0 type arguments. f4e(); // error ^" in f4e{}.(); }; @@ -143,7 +143,7 @@ Try removing the extra positional arguments. self::expect(false, c5b is{ForNonNullableByDefault} mai::Class5); () → Null { f5a(){() → mai::Class5}; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:113:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:113:8: Error: Expected 1 type arguments. f5a(); // error ^" in f5a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.strong.transformed.expect index 9edd33af547..0a6f7060ef0 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.strong.transformed.expect @@ -69,10 +69,10 @@ static method main() → dynamic { mai::Class3 c3a = f3a(42){(core::int) → mai::Class3}; self::expect(42, c3a.{mai::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:44:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:44:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:45:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:45:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -90,7 +90,7 @@ Try removing the extra positional arguments. self::expect(true, c4b is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4b is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:62:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:62:8: Error: Expected 1 type arguments. f4a(); // error ^" in f4a{}.(); }; @@ -99,7 +99,7 @@ Try removing the extra positional arguments. self::expect(true, c4c is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4c is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:70:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:70:8: Error: Expected 0 type arguments. f4b(); // error ^" in f4b{}.(); }; @@ -116,7 +116,7 @@ Try removing the extra positional arguments. self::expect(true, c4f is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4f is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:87:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:87:8: Error: Expected 1 type arguments. f4d(); // error ^" in f4d{}.(); }; @@ -125,7 +125,7 @@ Try removing the extra positional arguments. self::expect(true, c4g is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4g is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:95:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:95:8: Error: Expected 0 type arguments. f4e(); // error ^" in f4e{}.(); }; @@ -143,7 +143,7 @@ Try removing the extra positional arguments. self::expect(false, c5b is{ForNonNullableByDefault} mai::Class5); () → Null { f5a(){() → mai::Class5}; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:113:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:113:8: Error: Expected 1 type arguments. f5a(); // error ^" in f5a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.weak.expect index 1806fdc3a88..613a456fce0 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.weak.expect @@ -69,10 +69,10 @@ static method main() → dynamic { mai::Class3 c3a = f3a(42){(core::int) → mai::Class3}; self::expect(42, c3a.{mai::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:44:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:44:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:45:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:45:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -90,7 +90,7 @@ Try removing the extra positional arguments. self::expect(true, c4b is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4b is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:62:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:62:8: Error: Expected 1 type arguments. f4a(); // error ^" in f4a{}.(); }; @@ -99,7 +99,7 @@ Try removing the extra positional arguments. self::expect(true, c4c is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4c is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:70:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:70:8: Error: Expected 0 type arguments. f4b(); // error ^" in f4b{}.(); }; @@ -116,7 +116,7 @@ Try removing the extra positional arguments. self::expect(true, c4f is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4f is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:87:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:87:8: Error: Expected 1 type arguments. f4d(); // error ^" in f4d{}.(); }; @@ -125,7 +125,7 @@ Try removing the extra positional arguments. self::expect(true, c4g is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4g is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:95:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:95:8: Error: Expected 0 type arguments. f4e(); // error ^" in f4e{}.(); }; @@ -143,7 +143,7 @@ Try removing the extra positional arguments. self::expect(false, c5b is{ForNonNullableByDefault} mai::Class5); () → Null { f5a(){() → mai::Class5}; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:113:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:113:8: Error: Expected 1 type arguments. f5a(); // error ^" in f5a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.weak.transformed.expect index 9edd33af547..0a6f7060ef0 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart.weak.transformed.expect @@ -69,10 +69,10 @@ static method main() → dynamic { mai::Class3 c3a = f3a(42){(core::int) → mai::Class3}; self::expect(42, c3a.{mai::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:44:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:44:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:45:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:45:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -90,7 +90,7 @@ Try removing the extra positional arguments. self::expect(true, c4b is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4b is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:62:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:62:8: Error: Expected 1 type arguments. f4a(); // error ^" in f4a{}.(); }; @@ -99,7 +99,7 @@ Try removing the extra positional arguments. self::expect(true, c4c is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4c is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:70:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:70:8: Error: Expected 0 type arguments. f4b(); // error ^" in f4b{}.(); }; @@ -116,7 +116,7 @@ Try removing the extra positional arguments. self::expect(true, c4f is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4f is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:87:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:87:8: Error: Expected 1 type arguments. f4d(); // error ^" in f4d{}.(); }; @@ -125,7 +125,7 @@ Try removing the extra positional arguments. self::expect(true, c4g is{ForNonNullableByDefault} mai::Class4); self::expect(false, c4g is{ForNonNullableByDefault} mai::Class4); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:95:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:95:8: Error: Expected 0 type arguments. f4e(); // error ^" in f4e{}.(); }; @@ -143,7 +143,7 @@ Try removing the extra positional arguments. self::expect(false, c5b is{ForNonNullableByDefault} mai::Class5); () → Null { f5a(){() → mai::Class5}; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:113:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/from_dill/main.dart:113:8: Error: Expected 1 type arguments. f5a(); // error ^" in f5a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.strong.expect index 1802229e7c7..7cca76ea654 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.strong.expect @@ -84,7 +84,7 @@ static method testGeneric() → dynamic { self::expect(true, c1b is{ForNonNullableByDefault} self::Class1); self::expect(false, c1b is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:24:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:24:8: Error: Expected 1 type arguments. f1a(); // error ^" in f1a{}.(); }; @@ -93,7 +93,7 @@ static method testGeneric() → dynamic { self::expect(true, c1c is{ForNonNullableByDefault} self::Class1); self::expect(false, c1c is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:32:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:32:8: Error: Expected 0 type arguments. f1b(); // error ^" in f1b{}.(); }; @@ -113,7 +113,7 @@ static method testBounded() → dynamic { self::expect(false, c2b is{ForNonNullableByDefault} self::Class2); () → Null { f2a(){() → self::Class2}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:60:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:60:8: Error: Expected 1 type arguments. f2a(); // error ^" in f2a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.strong.transformed.expect index d13da4bec10..bc46c71fe5b 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.strong.transformed.expect @@ -84,7 +84,7 @@ static method testGeneric() → dynamic { self::expect(true, c1b is{ForNonNullableByDefault} self::Class1); self::expect(false, c1b is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:24:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:24:8: Error: Expected 1 type arguments. f1a(); // error ^" in f1a{}.(); }; @@ -93,7 +93,7 @@ static method testGeneric() → dynamic { self::expect(true, c1c is{ForNonNullableByDefault} self::Class1); self::expect(false, c1c is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:32:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:32:8: Error: Expected 0 type arguments. f1b(); // error ^" in f1b{}.(); }; @@ -113,7 +113,7 @@ static method testBounded() → dynamic { self::expect(false, c2b is{ForNonNullableByDefault} self::Class2); () → Null { f2a(){() → self::Class2}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:60:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:60:8: Error: Expected 1 type arguments. f2a(); // error ^" in f2a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.weak.expect index 1802229e7c7..7cca76ea654 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.weak.expect @@ -84,7 +84,7 @@ static method testGeneric() → dynamic { self::expect(true, c1b is{ForNonNullableByDefault} self::Class1); self::expect(false, c1b is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:24:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:24:8: Error: Expected 1 type arguments. f1a(); // error ^" in f1a{}.(); }; @@ -93,7 +93,7 @@ static method testGeneric() → dynamic { self::expect(true, c1c is{ForNonNullableByDefault} self::Class1); self::expect(false, c1c is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:32:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:32:8: Error: Expected 0 type arguments. f1b(); // error ^" in f1b{}.(); }; @@ -113,7 +113,7 @@ static method testBounded() → dynamic { self::expect(false, c2b is{ForNonNullableByDefault} self::Class2); () → Null { f2a(){() → self::Class2}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:60:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:60:8: Error: Expected 1 type arguments. f2a(); // error ^" in f2a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.weak.transformed.expect index d13da4bec10..bc46c71fe5b 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart.weak.transformed.expect @@ -84,7 +84,7 @@ static method testGeneric() → dynamic { self::expect(true, c1b is{ForNonNullableByDefault} self::Class1); self::expect(false, c1b is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:24:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:24:8: Error: Expected 1 type arguments. f1a(); // error ^" in f1a{}.(); }; @@ -93,7 +93,7 @@ static method testGeneric() → dynamic { self::expect(true, c1c is{ForNonNullableByDefault} self::Class1); self::expect(false, c1c is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:32:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:32:8: Error: Expected 0 type arguments. f1b(); // error ^" in f1b{}.(); }; @@ -113,7 +113,7 @@ static method testBounded() → dynamic { self::expect(false, c2b is{ForNonNullableByDefault} self::Class2); () → Null { f2a(){() → self::Class2}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:60:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_constructor_tear_off.dart:60:8: Error: Expected 1 type arguments. f2a(); // error ^" in f2a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.strong.expect index eae54df568c..2addbc7b750 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.strong.expect @@ -104,7 +104,7 @@ static method testGeneric() → dynamic { self::expect(true, c1b is{ForNonNullableByDefault} self::Class1); self::expect(false, c1b is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. f1a(); // error ^" in f1a{}.(); }; @@ -113,7 +113,7 @@ static method testGeneric() → dynamic { self::expect(true, c1c is{ForNonNullableByDefault} self::Class1); self::expect(false, c1c is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. f1b(); // error ^" in f1b{}.(); }; @@ -133,7 +133,7 @@ static method testBounded() → dynamic { self::expect(false, c2b is{ForNonNullableByDefault} self::Class2); () → Null { f2a(){() → self::Class2}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. f2a(); // error ^" in f2a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.strong.transformed.expect index 552fe7e6dd3..11d7673f96e 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.strong.transformed.expect @@ -104,7 +104,7 @@ static method testGeneric() → dynamic { self::expect(true, c1b is{ForNonNullableByDefault} self::Class1); self::expect(false, c1b is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. f1a(); // error ^" in f1a{}.(); }; @@ -113,7 +113,7 @@ static method testGeneric() → dynamic { self::expect(true, c1c is{ForNonNullableByDefault} self::Class1); self::expect(false, c1c is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. f1b(); // error ^" in f1b{}.(); }; @@ -133,7 +133,7 @@ static method testBounded() → dynamic { self::expect(false, c2b is{ForNonNullableByDefault} self::Class2); () → Null { f2a(){() → self::Class2}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. f2a(); // error ^" in f2a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.weak.expect index eae54df568c..2addbc7b750 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.weak.expect @@ -104,7 +104,7 @@ static method testGeneric() → dynamic { self::expect(true, c1b is{ForNonNullableByDefault} self::Class1); self::expect(false, c1b is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. f1a(); // error ^" in f1a{}.(); }; @@ -113,7 +113,7 @@ static method testGeneric() → dynamic { self::expect(true, c1c is{ForNonNullableByDefault} self::Class1); self::expect(false, c1c is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. f1b(); // error ^" in f1b{}.(); }; @@ -133,7 +133,7 @@ static method testBounded() → dynamic { self::expect(false, c2b is{ForNonNullableByDefault} self::Class2); () → Null { f2a(){() → self::Class2}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. f2a(); // error ^" in f2a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.weak.transformed.expect index 552fe7e6dd3..11d7673f96e 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart.weak.transformed.expect @@ -104,7 +104,7 @@ static method testGeneric() → dynamic { self::expect(true, c1b is{ForNonNullableByDefault} self::Class1); self::expect(false, c1b is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. f1a(); // error ^" in f1a{}.(); }; @@ -113,7 +113,7 @@ static method testGeneric() → dynamic { self::expect(true, c1c is{ForNonNullableByDefault} self::Class1); self::expect(false, c1c is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. f1b(); // error ^" in f1b{}.(); }; @@ -133,7 +133,7 @@ static method testBounded() → dynamic { self::expect(false, c2b is{ForNonNullableByDefault} self::Class2); () → Null { f2a(){() → self::Class2}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. f2a(); // error ^" in f2a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.strong.expect index 14303b7c549..e617e7dee90 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.strong.expect @@ -109,7 +109,7 @@ static method testGeneric() → dynamic { self::expect(true, c1b is{ForNonNullableByDefault} self::Class1); self::expect(false, c1b is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. f1a(); // error ^" in f1a{}.(); }; @@ -118,7 +118,7 @@ static method testGeneric() → dynamic { self::expect(true, c1c is{ForNonNullableByDefault} self::Class1); self::expect(false, c1c is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. f1b(); // error ^" in f1b{}.(); }; @@ -138,7 +138,7 @@ static method testBounded() → dynamic { self::expect(false, c2b is{ForNonNullableByDefault} self::Class2); () → Null { f2a(){() → self::Class2}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. f2a(); // error ^" in f2a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.strong.transformed.expect index 2ede93c7abd..93bb73052b0 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.strong.transformed.expect @@ -109,7 +109,7 @@ static method testGeneric() → dynamic { self::expect(true, c1b is{ForNonNullableByDefault} self::Class1); self::expect(false, c1b is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. f1a(); // error ^" in f1a{}.(); }; @@ -118,7 +118,7 @@ static method testGeneric() → dynamic { self::expect(true, c1c is{ForNonNullableByDefault} self::Class1); self::expect(false, c1c is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. f1b(); // error ^" in f1b{}.(); }; @@ -138,7 +138,7 @@ static method testBounded() → dynamic { self::expect(false, c2b is{ForNonNullableByDefault} self::Class2); () → Null { f2a(){() → self::Class2}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. f2a(); // error ^" in f2a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.weak.expect index 14303b7c549..e617e7dee90 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.weak.expect @@ -109,7 +109,7 @@ static method testGeneric() → dynamic { self::expect(true, c1b is{ForNonNullableByDefault} self::Class1); self::expect(false, c1b is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. f1a(); // error ^" in f1a{}.(); }; @@ -118,7 +118,7 @@ static method testGeneric() → dynamic { self::expect(true, c1c is{ForNonNullableByDefault} self::Class1); self::expect(false, c1c is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. f1b(); // error ^" in f1b{}.(); }; @@ -138,7 +138,7 @@ static method testBounded() → dynamic { self::expect(false, c2b is{ForNonNullableByDefault} self::Class2); () → Null { f2a(){() → self::Class2}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. f2a(); // error ^" in f2a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.weak.transformed.expect index 2ede93c7abd..93bb73052b0 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart.weak.transformed.expect @@ -109,7 +109,7 @@ static method testGeneric() → dynamic { self::expect(true, c1b is{ForNonNullableByDefault} self::Class1); self::expect(false, c1b is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:27:8: Error: Expected 1 type arguments. f1a(); // error ^" in f1a{}.(); }; @@ -118,7 +118,7 @@ static method testGeneric() → dynamic { self::expect(true, c1c is{ForNonNullableByDefault} self::Class1); self::expect(false, c1c is{ForNonNullableByDefault} self::Class1); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:35:8: Error: Expected 0 type arguments. f1b(); // error ^" in f1b{}.(); }; @@ -138,7 +138,7 @@ static method testBounded() → dynamic { self::expect(false, c2b is{ForNonNullableByDefault} self::Class2); () → Null { f2a(){() → self::Class2}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/generic_redirecting_factory_tear_off.dart:75:8: Error: Expected 1 type arguments. f2a(); // error ^" in f2a{}.(); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.strong.expect index fa85f711f43..da679362734 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.strong.expect @@ -49,7 +49,7 @@ static method testInferred() → dynamic { self::Class1 c1a = f1a(0){(core::int) → self::Class1}; self::expect(true, c1a is{ForNonNullableByDefault} self::Class1); () → Null { - f1a(let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f1a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f1a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class1}; }; @@ -63,7 +63,7 @@ static method testInferred() → dynamic { self::Class2 c2a = f2a(0){(core::int) → self::Class2}; self::expect(true, c2a is{ForNonNullableByDefault} self::Class2); () → Null { - f2a(let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f2a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f2a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class2}; }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.strong.transformed.expect index 2664cf02425..8897cd5908e 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.strong.transformed.expect @@ -49,7 +49,7 @@ static method testInferred() → dynamic { self::Class1 c1a = f1a(0){(core::int) → self::Class1}; self::expect(true, c1a is{ForNonNullableByDefault} self::Class1); () → Null { - f1a(let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f1a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f1a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class1}; }; @@ -63,7 +63,7 @@ static method testInferred() → dynamic { self::Class2 c2a = f2a(0){(core::int) → self::Class2}; self::expect(true, c2a is{ForNonNullableByDefault} self::Class2); () → Null { - f2a(let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f2a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f2a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class2}; }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.weak.expect index fa85f711f43..da679362734 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.weak.expect @@ -49,7 +49,7 @@ static method testInferred() → dynamic { self::Class1 c1a = f1a(0){(core::int) → self::Class1}; self::expect(true, c1a is{ForNonNullableByDefault} self::Class1); () → Null { - f1a(let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f1a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f1a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class1}; }; @@ -63,7 +63,7 @@ static method testInferred() → dynamic { self::Class2 c2a = f2a(0){(core::int) → self::Class2}; self::expect(true, c2a is{ForNonNullableByDefault} self::Class2); () → Null { - f2a(let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f2a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f2a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class2}; }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.weak.transformed.expect index 2664cf02425..8897cd5908e 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart.weak.transformed.expect @@ -49,7 +49,7 @@ static method testInferred() → dynamic { self::Class1 c1a = f1a(0){(core::int) → self::Class1}; self::expect(true, c1a is{ForNonNullableByDefault} self::Class1); () → Null { - f1a(let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f1a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:38:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f1a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class1}; }; @@ -63,7 +63,7 @@ static method testInferred() → dynamic { self::Class2 c2a = f2a(0){(core::int) → self::Class2}; self::expect(true, c2a is{ForNonNullableByDefault} self::Class2); () → Null { - f2a(let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + f2a(invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/inferred_constructor_tear_off.dart:52:9: Error: The argument type 'String' can't be assigned to the parameter type 'int'. f2a(''); // error ^" in "" as{TypeError,ForNonNullableByDefault} core::int){(core::int) → self::Class2}; }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.strong.expect index a1151261211..aed844f9e5d 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.strong.expect @@ -183,10 +183,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -202,7 +202,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -217,10 +217,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -234,17 +234,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.strong.transformed.expect index 02a46144b9e..ab369c97d9e 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.strong.transformed.expect @@ -183,10 +183,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -202,7 +202,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -217,10 +217,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -234,17 +234,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.weak.expect index a1151261211..aed844f9e5d 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.weak.expect @@ -183,10 +183,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -202,7 +202,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -217,10 +217,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -234,17 +234,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.weak.transformed.expect index 02a46144b9e..ab369c97d9e 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart.weak.transformed.expect @@ -183,10 +183,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -202,7 +202,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -217,10 +217,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -234,17 +234,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.strong.expect index 873e7a943f1..8d0766ce42c 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.strong.expect @@ -53,7 +53,7 @@ static method testDefaultValues() → void { self::Class1 c1b = f1a(87){([core::int]) → self::Class1}; self::expect(87, c1b.{self::Class1::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1a(42, 87); // error ^" in f1a{}.(42, 87); @@ -70,7 +70,7 @@ Try removing the extra positional arguments. self::Class2 c2b = f2a(field: 87){({field: core::int}) → self::Class2}; self::expect(87, c2b.{self::Class2::field}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(87); // error ^" in f2a{}.(87); diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.strong.transformed.expect index fe92fac5ed7..726cb479c03 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.strong.transformed.expect @@ -53,7 +53,7 @@ static method testDefaultValues() → void { self::Class1 c1b = f1a(87){([core::int]) → self::Class1}; self::expect(87, c1b.{self::Class1::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1a(42, 87); // error ^" in f1a{}.(42, 87); @@ -70,7 +70,7 @@ Try removing the extra positional arguments. self::Class2 c2b = f2a(field: 87){({field: core::int}) → self::Class2}; self::expect(87, c2b.{self::Class2::field}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(87); // error ^" in f2a{}.(87); diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.weak.expect index 873e7a943f1..8d0766ce42c 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.weak.expect @@ -53,7 +53,7 @@ static method testDefaultValues() → void { self::Class1 c1b = f1a(87){([core::int]) → self::Class1}; self::expect(87, c1b.{self::Class1::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1a(42, 87); // error ^" in f1a{}.(42, 87); @@ -70,7 +70,7 @@ Try removing the extra positional arguments. self::Class2 c2b = f2a(field: 87){({field: core::int}) → self::Class2}; self::expect(87, c2b.{self::Class2::field}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(87); // error ^" in f2a{}.(87); diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.weak.transformed.expect index fe92fac5ed7..726cb479c03 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart.weak.transformed.expect @@ -53,7 +53,7 @@ static method testDefaultValues() → void { self::Class1 c1b = f1a(87){([core::int]) → self::Class1}; self::expect(87, c1b.{self::Class1::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:33:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1a(42, 87); // error ^" in f1a{}.(42, 87); @@ -70,7 +70,7 @@ Try removing the extra positional arguments. self::Class2 c2b = f2a(field: 87){({field: core::int}) → self::Class2}; self::expect(87, c2b.{self::Class2::field}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values.dart:49:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(87); // error ^" in f2a{}.(87); diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.strong.expect index 6d9d20562a4..dcd89adaecb 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.strong.expect @@ -111,7 +111,7 @@ static method testDefaultValues() → dynamic { self::expect(42, c1e.{self::Class1::field1}{core::int}); self::expect(2, c1e.{self::Class1::field2}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:58:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:58:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1b(42, 87); // error ^" in f1b{}.(42, 87); @@ -121,11 +121,11 @@ Try removing the extra positional arguments. self::expect(1, c1f.{self::Class1::field1}{core::int}); self::expect(2, c1f.{self::Class1::field2}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:66:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:66:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f1c(42); // error ^" in f1c{}.(42); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:67:8: Error: Too many positional arguments: 0 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:67:8: Error: Too many positional arguments: 0 allowed, but 2 found. Try removing the extra positional arguments. f1c(42, 87); // error ^" in f1c{}.(42, 87); @@ -170,7 +170,7 @@ Try removing the extra positional arguments. self::expect(42, c4b.{self::Class1::field1}{core::int}); self::expect(2, c4b.{self::Class1::field2}{core::int}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:112:21: Error: No named parameter with the name 'field2'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:112:21: Error: No named parameter with the name 'field2'. f2c(field1: 42, field2: 87); // error ^^^^^^" in f2c{}.(field1: 42, field2: 87); }; @@ -182,7 +182,7 @@ Try removing the extra positional arguments. self::expect(1, c5b.{self::Class1::field1}{core::int}); self::expect(87, c5b.{self::Class1::field2}{core::int}); () → Null { - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:123:9: Error: No named parameter with the name 'field1'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:123:9: Error: No named parameter with the name 'field1'. f2d(field1: 42, field2: 87); // error ^^^^^^" in f2d{}.(field1: 42, field2: 87); }; @@ -191,13 +191,13 @@ Try removing the extra positional arguments. self::expect(1, c6a.{self::Class1::field1}{core::int}); self::expect(2, c6a.{self::Class1::field2}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:131:9: Error: No named parameter with the name 'field1'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:131:9: Error: No named parameter with the name 'field1'. f2e(field1: 42); // error ^^^^^^" in f2e{}.(field1: 42); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:132:9: Error: No named parameter with the name 'field2'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:132:9: Error: No named parameter with the name 'field2'. f2e(field2: 87); // error ^^^^^^" in f2e{}.(field2: 87); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:133:9: Error: No named parameter with the name 'field1'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:133:9: Error: No named parameter with the name 'field1'. f2e(field1: 42, field2: 87); // error ^^^^^^" in f2e{}.(field1: 42, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.strong.transformed.expect index ae52285efd8..e90c3708d4c 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.strong.transformed.expect @@ -111,7 +111,7 @@ static method testDefaultValues() → dynamic { self::expect(42, c1e.{self::Class1::field1}{core::int}); self::expect(2, c1e.{self::Class1::field2}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:58:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:58:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1b(42, 87); // error ^" in f1b{}.(42, 87); @@ -121,11 +121,11 @@ Try removing the extra positional arguments. self::expect(1, c1f.{self::Class1::field1}{core::int}); self::expect(2, c1f.{self::Class1::field2}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:66:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:66:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f1c(42); // error ^" in f1c{}.(42); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:67:8: Error: Too many positional arguments: 0 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:67:8: Error: Too many positional arguments: 0 allowed, but 2 found. Try removing the extra positional arguments. f1c(42, 87); // error ^" in f1c{}.(42, 87); @@ -170,7 +170,7 @@ Try removing the extra positional arguments. self::expect(42, c4b.{self::Class1::field1}{core::int}); self::expect(2, c4b.{self::Class1::field2}{core::int}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:112:21: Error: No named parameter with the name 'field2'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:112:21: Error: No named parameter with the name 'field2'. f2c(field1: 42, field2: 87); // error ^^^^^^" in f2c{}.(field1: 42, field2: 87); }; @@ -182,7 +182,7 @@ Try removing the extra positional arguments. self::expect(1, c5b.{self::Class1::field1}{core::int}); self::expect(87, c5b.{self::Class1::field2}{core::int}); () → Null { - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:123:9: Error: No named parameter with the name 'field1'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:123:9: Error: No named parameter with the name 'field1'. f2d(field1: 42, field2: 87); // error ^^^^^^" in f2d{}.(field1: 42, field2: 87); }; @@ -191,13 +191,13 @@ Try removing the extra positional arguments. self::expect(1, c6a.{self::Class1::field1}{core::int}); self::expect(2, c6a.{self::Class1::field2}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:131:9: Error: No named parameter with the name 'field1'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:131:9: Error: No named parameter with the name 'field1'. f2e(field1: 42); // error ^^^^^^" in f2e{}.(field1: 42); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:132:9: Error: No named parameter with the name 'field2'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:132:9: Error: No named parameter with the name 'field2'. f2e(field2: 87); // error ^^^^^^" in f2e{}.(field2: 87); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:133:9: Error: No named parameter with the name 'field1'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:133:9: Error: No named parameter with the name 'field1'. f2e(field1: 42, field2: 87); // error ^^^^^^" in f2e{}.(field1: 42, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.weak.expect index 6d9d20562a4..dcd89adaecb 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.weak.expect @@ -111,7 +111,7 @@ static method testDefaultValues() → dynamic { self::expect(42, c1e.{self::Class1::field1}{core::int}); self::expect(2, c1e.{self::Class1::field2}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:58:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:58:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1b(42, 87); // error ^" in f1b{}.(42, 87); @@ -121,11 +121,11 @@ Try removing the extra positional arguments. self::expect(1, c1f.{self::Class1::field1}{core::int}); self::expect(2, c1f.{self::Class1::field2}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:66:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:66:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f1c(42); // error ^" in f1c{}.(42); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:67:8: Error: Too many positional arguments: 0 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:67:8: Error: Too many positional arguments: 0 allowed, but 2 found. Try removing the extra positional arguments. f1c(42, 87); // error ^" in f1c{}.(42, 87); @@ -170,7 +170,7 @@ Try removing the extra positional arguments. self::expect(42, c4b.{self::Class1::field1}{core::int}); self::expect(2, c4b.{self::Class1::field2}{core::int}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:112:21: Error: No named parameter with the name 'field2'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:112:21: Error: No named parameter with the name 'field2'. f2c(field1: 42, field2: 87); // error ^^^^^^" in f2c{}.(field1: 42, field2: 87); }; @@ -182,7 +182,7 @@ Try removing the extra positional arguments. self::expect(1, c5b.{self::Class1::field1}{core::int}); self::expect(87, c5b.{self::Class1::field2}{core::int}); () → Null { - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:123:9: Error: No named parameter with the name 'field1'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:123:9: Error: No named parameter with the name 'field1'. f2d(field1: 42, field2: 87); // error ^^^^^^" in f2d{}.(field1: 42, field2: 87); }; @@ -191,13 +191,13 @@ Try removing the extra positional arguments. self::expect(1, c6a.{self::Class1::field1}{core::int}); self::expect(2, c6a.{self::Class1::field2}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:131:9: Error: No named parameter with the name 'field1'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:131:9: Error: No named parameter with the name 'field1'. f2e(field1: 42); // error ^^^^^^" in f2e{}.(field1: 42); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:132:9: Error: No named parameter with the name 'field2'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:132:9: Error: No named parameter with the name 'field2'. f2e(field2: 87); // error ^^^^^^" in f2e{}.(field2: 87); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:133:9: Error: No named parameter with the name 'field1'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:133:9: Error: No named parameter with the name 'field1'. f2e(field1: 42, field2: 87); // error ^^^^^^" in f2e{}.(field1: 42, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.weak.transformed.expect index ae52285efd8..e90c3708d4c 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart.weak.transformed.expect @@ -111,7 +111,7 @@ static method testDefaultValues() → dynamic { self::expect(42, c1e.{self::Class1::field1}{core::int}); self::expect(2, c1e.{self::Class1::field2}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:58:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:58:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f1b(42, 87); // error ^" in f1b{}.(42, 87); @@ -121,11 +121,11 @@ Try removing the extra positional arguments. self::expect(1, c1f.{self::Class1::field1}{core::int}); self::expect(2, c1f.{self::Class1::field2}{core::int}); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:66:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:66:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f1c(42); // error ^" in f1c{}.(42); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:67:8: Error: Too many positional arguments: 0 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:67:8: Error: Too many positional arguments: 0 allowed, but 2 found. Try removing the extra positional arguments. f1c(42, 87); // error ^" in f1c{}.(42, 87); @@ -170,7 +170,7 @@ Try removing the extra positional arguments. self::expect(42, c4b.{self::Class1::field1}{core::int}); self::expect(2, c4b.{self::Class1::field2}{core::int}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:112:21: Error: No named parameter with the name 'field2'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:112:21: Error: No named parameter with the name 'field2'. f2c(field1: 42, field2: 87); // error ^^^^^^" in f2c{}.(field1: 42, field2: 87); }; @@ -182,7 +182,7 @@ Try removing the extra positional arguments. self::expect(1, c5b.{self::Class1::field1}{core::int}); self::expect(87, c5b.{self::Class1::field2}{core::int}); () → Null { - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:123:9: Error: No named parameter with the name 'field1'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:123:9: Error: No named parameter with the name 'field1'. f2d(field1: 42, field2: 87); // error ^^^^^^" in f2d{}.(field1: 42, field2: 87); }; @@ -191,13 +191,13 @@ Try removing the extra positional arguments. self::expect(1, c6a.{self::Class1::field1}{core::int}); self::expect(2, c6a.{self::Class1::field2}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:131:9: Error: No named parameter with the name 'field1'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:131:9: Error: No named parameter with the name 'field1'. f2e(field1: 42); // error ^^^^^^" in f2e{}.(field1: 42); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:132:9: Error: No named parameter with the name 'field2'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:132:9: Error: No named parameter with the name 'field2'. f2e(field2: 87); // error ^^^^^^" in f2e{}.(field2: 87); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:133:9: Error: No named parameter with the name 'field1'. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/redirecting_factory_tear_off_default_values_complex.dart:133:9: Error: No named parameter with the name 'field1'. f2e(field1: 42, field2: 87); // error ^^^^^^" in f2e{}.(field1: 42, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.strong.expect index 848dbdd01bc..2e24a016129 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.strong.expect @@ -124,7 +124,7 @@ static method main() → dynamic { self::A c1a = f1a(){() → self::A}; self::expect(true, c1a is{ForNonNullableByDefault} self::A); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:34:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:34:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f1a(0); // error ^" in f1a{}.(0); @@ -137,7 +137,7 @@ Try removing the extra positional arguments. self::A c2a = f2a(){() → self::A}; self::expect(true, c2a is{ForNonNullableByDefault} self::A); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:46:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:46:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(0); // error ^" in f2a{}.(0); @@ -157,11 +157,11 @@ Try removing the extra positional arguments. self::expect(0, c3a.{self::B::field1}{core::int}); self::expect("", c3a.{self::B::field2}{core::String}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:65:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:65:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f3a(0); // error ^" in f3a{}.(0); - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:66:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:66:8: Error: Expected 0 type arguments. f3a(); // error ^" in f3a{}.(); }; @@ -180,14 +180,14 @@ Try removing the extra positional arguments. self::expect(42, c3c.{self::B::field1}{core::int}); self::expect("", c3c.{self::B::field2}{core::String}); () → Null { - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:85:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:85:8: Error: Too few positional arguments: 1 required, 0 given. f3c(); // error ^" in f3c{}.(); - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:86:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:86:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3c(0, 0); // error ^" in f3c{}.(0, 0); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:87:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:87:8: Error: Expected 0 type arguments. f3c(0); // error ^" in f3c{}.(0); }; @@ -207,13 +207,13 @@ Try removing the extra positional arguments. self::expect(42, c3e.{self::B::field1}{core::int}); self::expect("foo", c3e.{self::B::field2}{core::String}); () → Null { - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:107:8: Error: Too few positional arguments: 2 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:107:8: Error: Too few positional arguments: 2 required, 0 given. f3e(); // error ^" in f3e{}.(); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:108:8: Error: Too few positional arguments: 2 required, 1 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:108:8: Error: Too few positional arguments: 2 required, 1 given. f3e(0); // error ^" in f3e{}.(0); - let final Never #t10 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:109:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:109:8: Error: Expected 0 type arguments. f3e(0, ''); // error ^" in f3e{}.(0, ""); }; @@ -234,7 +234,7 @@ Try removing the extra positional arguments. self::expect(true, c4b is{ForNonNullableByDefault} self::B); self::expect(false, c4b is{ForNonNullableByDefault} self::B); () → Null { - let final Never #t11 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:130:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:130:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f4a(0); // error ^" in f4a{}.(0); @@ -257,11 +257,11 @@ Try removing the extra positional arguments. self::expect(true, c5b is{ForNonNullableByDefault} self::B); self::expect(false, c5b is{ForNonNullableByDefault} self::B); () → Null { - let final Never #t12 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:152:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:152:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f5a(0); // error ^" in f5a{}.(0); - let final Never #t13 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:153:8: Error: Expected 2 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:153:8: Error: Expected 2 type arguments. f5a(); // error ^" in f5a{}.(); f5a(){() → self::B}; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.strong.transformed.expect index 7c8571b7dca..64496bed15e 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.strong.transformed.expect @@ -124,7 +124,7 @@ static method main() → dynamic { self::A c1a = f1a(){() → self::A}; self::expect(true, c1a is{ForNonNullableByDefault} self::A); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:34:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:34:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f1a(0); // error ^" in f1a{}.(0); @@ -137,7 +137,7 @@ Try removing the extra positional arguments. self::A c2a = f2a(){() → self::A}; self::expect(true, c2a is{ForNonNullableByDefault} self::A); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:46:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:46:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(0); // error ^" in f2a{}.(0); @@ -157,11 +157,11 @@ Try removing the extra positional arguments. self::expect(0, c3a.{self::B::field1}{core::int}); self::expect("", c3a.{self::B::field2}{core::String}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:65:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:65:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f3a(0); // error ^" in f3a{}.(0); - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:66:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:66:8: Error: Expected 0 type arguments. f3a(); // error ^" in f3a{}.(); }; @@ -180,14 +180,14 @@ Try removing the extra positional arguments. self::expect(42, c3c.{self::B::field1}{core::int}); self::expect("", c3c.{self::B::field2}{core::String}); () → Null { - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:85:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:85:8: Error: Too few positional arguments: 1 required, 0 given. f3c(); // error ^" in f3c{}.(); - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:86:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:86:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3c(0, 0); // error ^" in f3c{}.(0, 0); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:87:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:87:8: Error: Expected 0 type arguments. f3c(0); // error ^" in f3c{}.(0); }; @@ -207,13 +207,13 @@ Try removing the extra positional arguments. self::expect(42, c3e.{self::B::field1}{core::int}); self::expect("foo", c3e.{self::B::field2}{core::String}); () → Null { - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:107:8: Error: Too few positional arguments: 2 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:107:8: Error: Too few positional arguments: 2 required, 0 given. f3e(); // error ^" in f3e{}.(); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:108:8: Error: Too few positional arguments: 2 required, 1 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:108:8: Error: Too few positional arguments: 2 required, 1 given. f3e(0); // error ^" in f3e{}.(0); - let final Never #t10 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:109:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:109:8: Error: Expected 0 type arguments. f3e(0, ''); // error ^" in f3e{}.(0, ""); }; @@ -234,7 +234,7 @@ Try removing the extra positional arguments. self::expect(true, c4b is{ForNonNullableByDefault} self::B); self::expect(false, c4b is{ForNonNullableByDefault} self::B); () → Null { - let final Never #t11 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:130:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:130:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f4a(0); // error ^" in f4a{}.(0); @@ -257,11 +257,11 @@ Try removing the extra positional arguments. self::expect(true, c5b is{ForNonNullableByDefault} self::B); self::expect(false, c5b is{ForNonNullableByDefault} self::B); () → Null { - let final Never #t12 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:152:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:152:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f5a(0); // error ^" in f5a{}.(0); - let final Never #t13 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:153:8: Error: Expected 2 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:153:8: Error: Expected 2 type arguments. f5a(); // error ^" in f5a{}.(); f5a(){() → self::B}; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.weak.expect index f4e5e89903b..b0722a9335d 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.weak.expect @@ -124,7 +124,7 @@ static method main() → dynamic { self::A c1a = f1a(){() → self::A}; self::expect(true, c1a is{ForNonNullableByDefault} self::A); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:34:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:34:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f1a(0); // error ^" in f1a{}.(0); @@ -137,7 +137,7 @@ Try removing the extra positional arguments. self::A c2a = f2a(){() → self::A}; self::expect(true, c2a is{ForNonNullableByDefault} self::A); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:46:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:46:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(0); // error ^" in f2a{}.(0); @@ -157,11 +157,11 @@ Try removing the extra positional arguments. self::expect(0, c3a.{self::B::field1}{core::int}); self::expect("", c3a.{self::B::field2}{core::String}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:65:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:65:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f3a(0); // error ^" in f3a{}.(0); - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:66:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:66:8: Error: Expected 0 type arguments. f3a(); // error ^" in f3a{}.(); }; @@ -180,14 +180,14 @@ Try removing the extra positional arguments. self::expect(42, c3c.{self::B::field1}{core::int}); self::expect("", c3c.{self::B::field2}{core::String}); () → Null { - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:85:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:85:8: Error: Too few positional arguments: 1 required, 0 given. f3c(); // error ^" in f3c{}.(); - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:86:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:86:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3c(0, 0); // error ^" in f3c{}.(0, 0); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:87:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:87:8: Error: Expected 0 type arguments. f3c(0); // error ^" in f3c{}.(0); }; @@ -207,13 +207,13 @@ Try removing the extra positional arguments. self::expect(42, c3e.{self::B::field1}{core::int}); self::expect("foo", c3e.{self::B::field2}{core::String}); () → Null { - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:107:8: Error: Too few positional arguments: 2 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:107:8: Error: Too few positional arguments: 2 required, 0 given. f3e(); // error ^" in f3e{}.(); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:108:8: Error: Too few positional arguments: 2 required, 1 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:108:8: Error: Too few positional arguments: 2 required, 1 given. f3e(0); // error ^" in f3e{}.(0); - let final Never #t10 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:109:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:109:8: Error: Expected 0 type arguments. f3e(0, ''); // error ^" in f3e{}.(0, ""); }; @@ -234,7 +234,7 @@ Try removing the extra positional arguments. self::expect(true, c4b is{ForNonNullableByDefault} self::B); self::expect(false, c4b is{ForNonNullableByDefault} self::B); () → Null { - let final Never #t11 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:130:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:130:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f4a(0); // error ^" in f4a{}.(0); @@ -257,11 +257,11 @@ Try removing the extra positional arguments. self::expect(true, c5b is{ForNonNullableByDefault} self::B); self::expect(false, c5b is{ForNonNullableByDefault} self::B); () → Null { - let final Never #t12 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:152:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:152:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f5a(0); // error ^" in f5a{}.(0); - let final Never #t13 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:153:8: Error: Expected 2 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:153:8: Error: Expected 2 type arguments. f5a(); // error ^" in f5a{}.(); f5a(){() → self::B}; diff --git a/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.weak.transformed.expect index 12bd083cc41..3242407bbad 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart.weak.transformed.expect @@ -124,7 +124,7 @@ static method main() → dynamic { self::A c1a = f1a(){() → self::A}; self::expect(true, c1a is{ForNonNullableByDefault} self::A); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:34:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:34:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f1a(0); // error ^" in f1a{}.(0); @@ -137,7 +137,7 @@ Try removing the extra positional arguments. self::A c2a = f2a(){() → self::A}; self::expect(true, c2a is{ForNonNullableByDefault} self::A); () → Null { - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:46:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:46:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f2a(0); // error ^" in f2a{}.(0); @@ -157,11 +157,11 @@ Try removing the extra positional arguments. self::expect(0, c3a.{self::B::field1}{core::int}); self::expect("", c3a.{self::B::field2}{core::String}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:65:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:65:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f3a(0); // error ^" in f3a{}.(0); - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:66:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:66:8: Error: Expected 0 type arguments. f3a(); // error ^" in f3a{}.(); }; @@ -180,14 +180,14 @@ Try removing the extra positional arguments. self::expect(42, c3c.{self::B::field1}{core::int}); self::expect("", c3c.{self::B::field2}{core::String}); () → Null { - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:85:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:85:8: Error: Too few positional arguments: 1 required, 0 given. f3c(); // error ^" in f3c{}.(); - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:86:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:86:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3c(0, 0); // error ^" in f3c{}.(0, 0); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:87:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:87:8: Error: Expected 0 type arguments. f3c(0); // error ^" in f3c{}.(0); }; @@ -207,13 +207,13 @@ Try removing the extra positional arguments. self::expect(42, c3e.{self::B::field1}{core::int}); self::expect("foo", c3e.{self::B::field2}{core::String}); () → Null { - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:107:8: Error: Too few positional arguments: 2 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:107:8: Error: Too few positional arguments: 2 required, 0 given. f3e(); // error ^" in f3e{}.(); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:108:8: Error: Too few positional arguments: 2 required, 1 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:108:8: Error: Too few positional arguments: 2 required, 1 given. f3e(0); // error ^" in f3e{}.(0); - let final Never #t10 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:109:8: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:109:8: Error: Expected 0 type arguments. f3e(0, ''); // error ^" in f3e{}.(0, ""); }; @@ -234,7 +234,7 @@ Try removing the extra positional arguments. self::expect(true, c4b is{ForNonNullableByDefault} self::B); self::expect(false, c4b is{ForNonNullableByDefault} self::B); () → Null { - let final Never #t11 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:130:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:130:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f4a(0); // error ^" in f4a{}.(0); @@ -257,11 +257,11 @@ Try removing the extra positional arguments. self::expect(true, c5b is{ForNonNullableByDefault} self::B); self::expect(false, c5b is{ForNonNullableByDefault} self::B); () → Null { - let final Never #t12 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:152:8: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:152:8: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. f5a(0); // error ^" in f5a{}.(0); - let final Never #t13 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:153:8: Error: Expected 2 type arguments. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/lowering/typedef_tear_off.dart:153:8: Error: Expected 2 type arguments. f5a(); // error ^" in f5a{}.(); f5a(){() → self::B}; diff --git a/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.strong.expect index 72924916f93..dfb83e120f8 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.strong.expect @@ -33,21 +33,21 @@ class A extends core::Object { static method test1() → () → self::A return #C1; static method test2() → () → self::A - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:13:25: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:13:25: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function()'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart'. A Function() test2() => A.foo2; // Error. ^" in (#C2) as{TypeError,ForNonNullableByDefault} () → self::A; static method test3() → () → self::A return #C3; static method test4() → (core::int) → self::A - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:15:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:15:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart'. A Function(int) test4() => A.new; // Error. ^" in (#C3) as{TypeError,ForNonNullableByDefault} (core::int) → self::A; static method test5() → () → self::A return #C4; static method test6() → (core::int) → self::A - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:17:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:17:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart'. A Function(int) test6() => A.bar1; // Error. ^" in (#C4) as{TypeError,ForNonNullableByDefault} (core::int) → self::A; diff --git a/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.strong.transformed.expect index 72924916f93..dfb83e120f8 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.strong.transformed.expect @@ -33,21 +33,21 @@ class A extends core::Object { static method test1() → () → self::A return #C1; static method test2() → () → self::A - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:13:25: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:13:25: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function()'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart'. A Function() test2() => A.foo2; // Error. ^" in (#C2) as{TypeError,ForNonNullableByDefault} () → self::A; static method test3() → () → self::A return #C3; static method test4() → (core::int) → self::A - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:15:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:15:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart'. A Function(int) test4() => A.new; // Error. ^" in (#C3) as{TypeError,ForNonNullableByDefault} (core::int) → self::A; static method test5() → () → self::A return #C4; static method test6() → (core::int) → self::A - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:17:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:17:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart'. A Function(int) test6() => A.bar1; // Error. ^" in (#C4) as{TypeError,ForNonNullableByDefault} (core::int) → self::A; diff --git a/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.weak.expect index 72924916f93..dfb83e120f8 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.weak.expect @@ -33,21 +33,21 @@ class A extends core::Object { static method test1() → () → self::A return #C1; static method test2() → () → self::A - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:13:25: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:13:25: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function()'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart'. A Function() test2() => A.foo2; // Error. ^" in (#C2) as{TypeError,ForNonNullableByDefault} () → self::A; static method test3() → () → self::A return #C3; static method test4() → (core::int) → self::A - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:15:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:15:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart'. A Function(int) test4() => A.new; // Error. ^" in (#C3) as{TypeError,ForNonNullableByDefault} (core::int) → self::A; static method test5() → () → self::A return #C4; static method test6() → (core::int) → self::A - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:17:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:17:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart'. A Function(int) test6() => A.bar1; // Error. ^" in (#C4) as{TypeError,ForNonNullableByDefault} (core::int) → self::A; diff --git a/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.weak.transformed.expect index 72924916f93..dfb83e120f8 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart.weak.transformed.expect @@ -33,21 +33,21 @@ class A extends core::Object { static method test1() → () → self::A return #C1; static method test2() → () → self::A - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:13:25: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:13:25: Error: A value of type 'A Function(int)' can't be returned from a function with return type 'A Function()'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart'. A Function() test2() => A.foo2; // Error. ^" in (#C2) as{TypeError,ForNonNullableByDefault} () → self::A; static method test3() → () → self::A return #C3; static method test4() → (core::int) → self::A - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:15:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:15:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart'. A Function(int) test4() => A.new; // Error. ^" in (#C3) as{TypeError,ForNonNullableByDefault} (core::int) → self::A; static method test5() → () → self::A return #C4; static method test6() → (core::int) → self::A - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:17:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:17:28: Error: A value of type 'A Function()' can't be returned from a function with return type 'A Function(int)'. - 'A' is from 'pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart'. A Function(int) test6() => A.bar1; // Error. ^" in (#C4) as{TypeError,ForNonNullableByDefault} (core::int) → self::A; diff --git a/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.strong.expect index ce07a22f2bf..4cbaccd98d5 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.strong.expect @@ -149,10 +149,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -168,7 +168,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -183,10 +183,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -200,17 +200,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.strong.transformed.expect index 872ae3619c6..9650d394d39 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.strong.transformed.expect @@ -149,10 +149,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -168,7 +168,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -183,10 +183,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -200,17 +200,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.weak.expect index ce07a22f2bf..4cbaccd98d5 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.weak.expect @@ -149,10 +149,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -168,7 +168,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -183,10 +183,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -200,17 +200,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.weak.transformed.expect index 872ae3619c6..9650d394d39 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart.weak.transformed.expect @@ -149,10 +149,10 @@ static method testArgs() → dynamic { self::Class3 c3a = f3a(42){(core::int) → self::Class3}; self::expect(42, c3a.{self::Class3::field}{core::int}); () → Null { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:99:8: Error: Too few positional arguments: 1 required, 0 given. f3a(); // error ^" in f3a{}.(); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:100:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f3a(42, 87); // error ^" in f3a{}.(42, 87); @@ -168,7 +168,7 @@ Try removing the extra positional arguments. self::Class4 c4b = f4a(42){([core::int?]) → self::Class4}; self::expect(42, c4b.{self::Class4::field}{core::int?}); () → Null { - let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:115:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f4a(42, 87); // error ^" in f4a{}.(42, 87); @@ -183,10 +183,10 @@ Try removing the extra positional arguments. self::expect(87, c5b.{self::Class5::field1}{core::int}); self::expect(42, c5b.{self::Class5::field2}{core::int?}); () → Null { - let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:129:8: Error: Too few positional arguments: 1 required, 0 given. f5a(); // error ^" in f5a{}.(); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:130:8: Error: Too many positional arguments: 2 allowed, but 3 found. Try removing the extra positional arguments. f5a(42, 87, 123); // error ^" in f5a{}.(42, 87, 123); @@ -200,17 +200,17 @@ Try removing the extra positional arguments. self::expect(null, c6a.{self::Class6::field2}{core::int?}); self::expect(87, c6a.{self::Class6::field3}{core::int}); () → Null { - let final Never #t6 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:142:8: Error: Too few positional arguments: 1 required, 0 given. f6a(); // error ^" in f6a{}.(); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:143:8: Error: Required named parameter 'field3' must be provided. f6a(42); // error ^" in f6a{}.(42); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:144:8: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. f6a(42, 87); // error ^" in f6a{}.(42, 87); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/constructor_tearoffs/redirecting_factory_tear_off.dart:145:8: Error: Too few positional arguments: 1 required, 0 given. f6a(field1: 87, field2: 87); // error ^" in f6a{}.(field1: 87, field2: 87); }; diff --git a/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.strong.expect b/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.strong.expect index b69871dbf2a..e445535ffac 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.strong.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.strong.expect @@ -75,7 +75,7 @@ static method test7() → () → self::B static method test8() → () → self::B return #C4; static method test9() → () → self::B - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:33:30: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:33:30: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test9() => DB1.new; // Error. ^" in (#C4) as{TypeError,ForNonNullableByDefault} () → self::B; @@ -94,13 +94,13 @@ static method test15() → () → self::B static method test16() → () → self::B return #C12; static method test17() → () → self::B - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test17() => DB2.new; // Error. - ^" in (let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. + ^" in invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test17() => DB2.new; // Error. - ^" in (#C12) as{TypeError,ForNonNullableByDefault} () → self::B) as{TypeError,ForNonNullableByDefault} () → self::B; + ^" in (#C12) as{TypeError,ForNonNullableByDefault} () → self::B as{TypeError,ForNonNullableByDefault} () → self::B; static method test18() → () → self::B return #C9; static method test19() → () → self::B @@ -112,13 +112,13 @@ static method test21() → () → self::B static method test22() → () → self::B return #C13; static method test23() → () → self::B - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test23() => DB3.new; // Error. - ^" in (let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. + ^" in invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test23() => DB3.new; // Error. - ^" in (#C13) as{TypeError,ForNonNullableByDefault} () → self::B) as{TypeError,ForNonNullableByDefault} () → self::B; + ^" in (#C13) as{TypeError,ForNonNullableByDefault} () → self::B as{TypeError,ForNonNullableByDefault} () → self::B; static method test24() → () → self::B return #C14; static method main() → dynamic {} diff --git a/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.strong.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.strong.transformed.expect index 382b745414d..ddc1a03b8e7 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.strong.transformed.expect @@ -75,7 +75,7 @@ static method test7() → () → self::B static method test8() → () → self::B return #C4; static method test9() → () → self::B - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:33:30: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:33:30: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test9() => DB1.new; // Error. ^" in (#C4) as{TypeError,ForNonNullableByDefault} () → self::B; @@ -94,10 +94,10 @@ static method test15() → () → self::B static method test16() → () → self::B return #C12; static method test17() → () → self::B - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test17() => DB2.new; // Error. - ^" in let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. + ^" in invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test17() => DB2.new; // Error. ^" in (#C12) as{TypeError,ForNonNullableByDefault} () → self::B; @@ -112,10 +112,10 @@ static method test21() → () → self::B static method test22() → () → self::B return #C13; static method test23() → () → self::B - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test23() => DB3.new; // Error. - ^" in let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. + ^" in invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test23() => DB3.new; // Error. ^" in (#C13) as{TypeError,ForNonNullableByDefault} () → self::B; diff --git a/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.weak.expect b/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.weak.expect index 10912e2e251..835e0352f74 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.weak.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.weak.expect @@ -75,7 +75,7 @@ static method test7() → () → self::B static method test8() → () → self::B return #C4; static method test9() → () → self::B - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:33:30: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:33:30: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test9() => DB1.new; // Error. ^" in (#C4) as{TypeError,ForNonNullableByDefault} () → self::B; @@ -94,13 +94,13 @@ static method test15() → () → self::B static method test16() → () → self::B return #C12; static method test17() → () → self::B - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test17() => DB2.new; // Error. - ^" in (let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. + ^" in invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test17() => DB2.new; // Error. - ^" in (#C12) as{TypeError,ForNonNullableByDefault} () → self::B) as{TypeError,ForNonNullableByDefault} () → self::B; + ^" in (#C12) as{TypeError,ForNonNullableByDefault} () → self::B as{TypeError,ForNonNullableByDefault} () → self::B; static method test18() → () → self::B return #C9; static method test19() → () → self::B @@ -112,13 +112,13 @@ static method test21() → () → self::B static method test22() → () → self::B return #C13; static method test23() → () → self::B - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test23() => DB3.new; // Error. - ^" in (let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. + ^" in invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test23() => DB3.new; // Error. - ^" in (#C13) as{TypeError,ForNonNullableByDefault} () → self::B) as{TypeError,ForNonNullableByDefault} () → self::B; + ^" in (#C13) as{TypeError,ForNonNullableByDefault} () → self::B as{TypeError,ForNonNullableByDefault} () → self::B; static method test24() → () → self::B return #C14; static method main() → dynamic {} diff --git a/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.weak.transformed.expect b/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.weak.transformed.expect index 86a1666938f..f6769ba0b2a 100644 --- a/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart.weak.transformed.expect @@ -75,7 +75,7 @@ static method test7() → () → self::B static method test8() → () → self::B return #C4; static method test9() → () → self::B - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:33:30: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:33:30: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test9() => DB1.new; // Error. ^" in (#C4) as{TypeError,ForNonNullableByDefault} () → self::B; @@ -94,10 +94,10 @@ static method test15() → () → self::B static method test16() → () → self::B return #C12; static method test17() → () → self::B - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test17() => DB2.new; // Error. - ^" in let final Never #t3 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. + ^" in invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:42:32: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test17() => DB2.new; // Error. ^" in (#C12) as{TypeError,ForNonNullableByDefault} () → self::B; @@ -112,10 +112,10 @@ static method test21() → () → self::B static method test22() → () → self::B return #C13; static method test23() → () → self::B - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. + return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be returned from a function with return type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test23() => DB3.new; // Error. - ^" in let final Never #t5 = invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. + ^" in invalid-expression "pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart:49:35: Error: A value of type 'B Function()' can't be assigned to a variable of type 'B Function()'. - 'B' is from 'pkg/front_end/testcases/constructor_tearoffs/typedef_tearoffs.dart'. B Function() test23() => DB3.new; // Error. ^" in (#C13) as{TypeError,ForNonNullableByDefault} () → self::B; diff --git a/pkg/front_end/testcases/expression/class_invalid_static_capture.expression.yaml.expect b/pkg/front_end/testcases/expression/class_invalid_static_capture.expression.yaml.expect index 330d032abb6..0b78207392b 100644 --- a/pkg/front_end/testcases/expression/class_invalid_static_capture.expression.yaml.expect +++ b/pkg/front_end/testcases/expression/class_invalid_static_capture.expression.yaml.expect @@ -7,6 +7,6 @@ Errors: { ^ } static method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic - return () → dynamic { - return invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:13: Error: Getter not found: 'x'.\n() { return x + y; }\n ^"{dynamic}.+(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:17: Error: Getter not found: 'y'.\n() { return x + y; }\n ^"); + return () → invalid-type { + return invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:13: Error: Getter not found: 'x'.\n() { return x + y; }\n ^"{}.+(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:17: Error: Getter not found: 'y'.\n() { return x + y; }\n ^"); }; diff --git a/pkg/front_end/testcases/expression/invalid.expression.yaml.expect b/pkg/front_end/testcases/expression/invalid.expression.yaml.expect index 9e16ada7100..de38a65e007 100644 --- a/pkg/front_end/testcases/expression/invalid.expression.yaml.expect +++ b/pkg/front_end/testcases/expression/invalid.expression.yaml.expect @@ -11,4 +11,4 @@ Errors: { ^^^ } method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic - return invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:1: Error: This couldn't be parsed.\n*foo(3,\n^"{dynamic}.*(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:2: Error: Method not found: 'foo'.\n*foo(3,\n ^^^"); + return invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:1: Error: This couldn't be parsed.\n*foo(3,\n^"{}.*(invalid-expression "org-dartlang-debug:synthetic_debug_expression:1:2: Error: Method not found: 'foo'.\n*foo(3,\n ^^^"); diff --git a/pkg/front_end/testcases/expression/type_param_shadow_arg_ctor_inferred.expression.yaml.expect b/pkg/front_end/testcases/expression/type_param_shadow_arg_ctor_inferred.expression.yaml.expect index 6e6bd3bdced..4b7f9b0e5ab 100644 --- a/pkg/front_end/testcases/expression/type_param_shadow_arg_ctor_inferred.expression.yaml.expect +++ b/pkg/front_end/testcases/expression/type_param_shadow_arg_ctor_inferred.expression.yaml.expect @@ -6,5 +6,5 @@ Errors: { } method /* from org-dartlang-debug:synthetic_debug_expression */ debugExpr() → dynamic return () → Null { - main::A::debugExpr::T* k = let final Never* #t1 = invalid-expression "org-dartlang-debug:synthetic_debug_expression:2:13: Error: A value of type 'A' can't be assigned to a variable of type 'T'.\n - 'A' is from 'pkg/front_end/testcases/expression/main.dart'.\n T k = new A();\n ^" in new main::A::•() as{TypeError} Never; + main::A::debugExpr::T* k = invalid-expression "org-dartlang-debug:synthetic_debug_expression:2:13: Error: A value of type 'A' can't be assigned to a variable of type 'T'.\n - 'A' is from 'pkg/front_end/testcases/expression/main.dart'.\n T k = new A();\n ^" in new main::A::•() as{TypeError} Never; }; diff --git a/pkg/front_end/testcases/extension_types/simple_setter_resolution.dart.strong.expect b/pkg/front_end/testcases/extension_types/simple_setter_resolution.dart.strong.expect index 1ce4b8237ab..435cd3667ba 100644 --- a/pkg/front_end/testcases/extension_types/simple_setter_resolution.dart.strong.expect +++ b/pkg/front_end/testcases/extension_types/simple_setter_resolution.dart.strong.expect @@ -66,12 +66,12 @@ Try correcting the name to the name of an existing setter, or defining a setter ^^^"; invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:26:3: Error: Getter not found: 'et'. et.foo = 42; // Error. - ^^"{dynamic}.foo = 42; + ^^"{}.foo = 42; invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:27:3: Error: Getter not found: 'et'. et.bar = 42; // Error. - ^^"{dynamic}.bar = 42; + ^^"{}.bar = 42; invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:28:3: Error: Getter not found: 'et'. et.baz = 42; // Ok. - ^^"{dynamic}.baz = 42; + ^^"{}.baz = 42; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/extension_types/simple_setter_resolution.dart.weak.expect b/pkg/front_end/testcases/extension_types/simple_setter_resolution.dart.weak.expect index 1ce4b8237ab..435cd3667ba 100644 --- a/pkg/front_end/testcases/extension_types/simple_setter_resolution.dart.weak.expect +++ b/pkg/front_end/testcases/extension_types/simple_setter_resolution.dart.weak.expect @@ -66,12 +66,12 @@ Try correcting the name to the name of an existing setter, or defining a setter ^^^"; invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:26:3: Error: Getter not found: 'et'. et.foo = 42; // Error. - ^^"{dynamic}.foo = 42; + ^^"{}.foo = 42; invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:27:3: Error: Getter not found: 'et'. et.bar = 42; // Error. - ^^"{dynamic}.bar = 42; + ^^"{}.bar = 42; invalid-expression "pkg/front_end/testcases/extension_types/simple_setter_resolution.dart:28:3: Error: Getter not found: 'et'. et.baz = 42; // Ok. - ^^"{dynamic}.baz = 42; + ^^"{}.baz = 42; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/extension_types/simple_show_hide.dart.strong.expect b/pkg/front_end/testcases/extension_types/simple_show_hide.dart.strong.expect index d246aca4f3f..45d82a5d837 100644 --- a/pkg/front_end/testcases/extension_types/simple_show_hide.dart.strong.expect +++ b/pkg/front_end/testcases/extension_types/simple_show_hide.dart.strong.expect @@ -228,10 +228,10 @@ Try correcting the name to the name of an existing getter, or defining a getter } static method floor() → invalid-type { core::int get; - function twice() → core::num + function twice() → core::double return 2.{core::num::*}(invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:29:24: Error: Expected identifier, but got 'this'. int get twice => 2 * this; - ^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::num){(core::num) → core::num}; + ^^^^"){(core::num) → core::double}; } static method test() → dynamic { self::MyInt m = 42; diff --git a/pkg/front_end/testcases/extension_types/simple_show_hide.dart.weak.expect b/pkg/front_end/testcases/extension_types/simple_show_hide.dart.weak.expect index d246aca4f3f..45d82a5d837 100644 --- a/pkg/front_end/testcases/extension_types/simple_show_hide.dart.weak.expect +++ b/pkg/front_end/testcases/extension_types/simple_show_hide.dart.weak.expect @@ -228,10 +228,10 @@ Try correcting the name to the name of an existing getter, or defining a getter } static method floor() → invalid-type { core::int get; - function twice() → core::num + function twice() → core::double return 2.{core::num::*}(invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide.dart:29:24: Error: Expected identifier, but got 'this'. int get twice => 2 * this; - ^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::num){(core::num) → core::num}; + ^^^^"){(core::num) → core::double}; } static method test() → dynamic { self::MyInt m = 42; diff --git a/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.strong.expect b/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.strong.expect index 6d6816022c9..b62bef79e7f 100644 --- a/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.strong.expect +++ b/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.strong.expect @@ -111,19 +111,19 @@ extension E3 on core::int { } static method num() → invalid-type { function ceil() → core::int { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:6:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:6:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int ceil() {} // Error. ^" in null; } } static method ceil() → invalid-type { function ceil() → core::int { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:10:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:10:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int ceil() {} // Ok. ^" in null; } function floor() → core::int { - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:11:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:11:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int floor() {} // Error. ^" in null; } @@ -134,7 +134,7 @@ static method isEven() → invalid-type { return throw 42; core::bool get = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:17:8: Error: 'get' is already declared in this scope. bool get isEven => throw 42; // Ok. - ^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; + ^^^"; function isEven() → Never return throw 42; } diff --git a/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.strong.transformed.expect b/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.strong.transformed.expect index 9fe722e4caa..b62bef79e7f 100644 --- a/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.strong.transformed.expect @@ -111,19 +111,19 @@ extension E3 on core::int { } static method num() → invalid-type { function ceil() → core::int { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:6:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:6:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int ceil() {} // Error. ^" in null; } } static method ceil() → invalid-type { function ceil() → core::int { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:10:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:10:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int ceil() {} // Ok. ^" in null; } function floor() → core::int { - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:11:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:11:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int floor() {} // Error. ^" in null; } diff --git a/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.weak.expect b/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.weak.expect index 6d6816022c9..b62bef79e7f 100644 --- a/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.weak.expect +++ b/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.weak.expect @@ -111,19 +111,19 @@ extension E3 on core::int { } static method num() → invalid-type { function ceil() → core::int { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:6:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:6:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int ceil() {} // Error. ^" in null; } } static method ceil() → invalid-type { function ceil() → core::int { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:10:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:10:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int ceil() {} // Ok. ^" in null; } function floor() → core::int { - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:11:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:11:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int floor() {} // Error. ^" in null; } @@ -134,7 +134,7 @@ static method isEven() → invalid-type { return throw 42; core::bool get = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:17:8: Error: 'get' is already declared in this scope. bool get isEven => throw 42; // Ok. - ^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; + ^^^"; function isEven() → Never return throw 42; } diff --git a/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.weak.transformed.expect b/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.weak.transformed.expect index 9fe722e4caa..b62bef79e7f 100644 --- a/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart.weak.transformed.expect @@ -111,19 +111,19 @@ extension E3 on core::int { } static method num() → invalid-type { function ceil() → core::int { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:6:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:6:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int ceil() {} // Error. ^" in null; } } static method ceil() → invalid-type { function ceil() → core::int { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:10:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:10:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int ceil() {} // Ok. ^" in null; } function floor() → core::int { - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:11:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/extension_types/simple_show_hide_conflicts.dart:11:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int floor() {} // Error. ^" in null; } diff --git a/pkg/front_end/testcases/extensions/call_methods.dart.weak.expect b/pkg/front_end/testcases/extensions/call_methods.dart.weak.expect index 6f3ad1d9871..9fbb059b245 100644 --- a/pkg/front_end/testcases/extensions/call_methods.dart.weak.expect +++ b/pkg/front_end/testcases/extensions/call_methods.dart.weak.expect @@ -138,19 +138,19 @@ extension _extension#1 on core::num* { extension _extension#2 on core::String* { get call = self::_extension#2|get#call; } -static field core::String* topLevel1 = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:29:18: Error: Too many positional arguments: 0 allowed, but 1 found. +static field core::String* topLevel1 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:29:18: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. var topLevel1 = 1(10); ^" in self::_extension#2|get#call(self::_extension#0|get#call(1)){}.(10); -static field core::String* topLevel2 = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:30:18: Error: Too many positional arguments: 0 allowed, but 1 found. +static field core::String* topLevel2 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:30:18: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. var topLevel2 = 1(\"10\"); ^" in self::_extension#2|get#call(self::_extension#0|get#call(1)){}.("10"); -static field core::String* topLevel3 = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:31:20: Error: Too many positional arguments: 0 allowed, but 1 found. +static field core::String* topLevel3 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:31:20: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. var topLevel3 = 1.0(10); ^" in self::_extension#2|get#call(self::_extension#1|get#call(1.0)){}.(10); -static field core::String* topLevel4 = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:32:20: Error: Too many positional arguments: 0 allowed, but 1 found. +static field core::String* topLevel4 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:32:20: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. var topLevel4 = 1.0(\"10\"); ^" in self::_extension#2|get#call(self::_extension#1|get#call(1.0)){}.("10"); @@ -176,19 +176,19 @@ static method main() → dynamic { self::_extension#2|get#call("")(){() →* core::String*}; } static method errors() → dynamic { - let final Never* #t5 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:39:4: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:39:4: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. 1(10); ^" in self::_extension#2|get#call(self::_extension#0|get#call(1)){}.(10); - let final Never* #t6 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:40:4: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:40:4: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. 1(\"10\"); ^" in self::_extension#2|get#call(self::_extension#0|get#call(1)){}.("10"); - let final Never* #t7 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:41:6: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:41:6: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. 1.0(10); ^" in self::_extension#2|get#call(self::_extension#1|get#call(1.0)){}.(10); - let final Never* #t8 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:42:6: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:42:6: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. 1.0(\"10\"); ^" in self::_extension#2|get#call(self::_extension#1|get#call(1.0)){}.("10"); diff --git a/pkg/front_end/testcases/extensions/call_methods.dart.weak.transformed.expect b/pkg/front_end/testcases/extensions/call_methods.dart.weak.transformed.expect index 55e391bcf94..f07583d8021 100644 --- a/pkg/front_end/testcases/extensions/call_methods.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/extensions/call_methods.dart.weak.transformed.expect @@ -138,19 +138,19 @@ extension _extension#1 on core::num* { extension _extension#2 on core::String* { get call = self::_extension#2|get#call; } -static field core::String* topLevel1 = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:29:18: Error: Too many positional arguments: 0 allowed, but 1 found. +static field core::String* topLevel1 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:29:18: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. var topLevel1 = 1(10); ^" in self::_extension#2|get#call(self::_extension#0|get#call(1)){}.(10); -static field core::String* topLevel2 = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:30:18: Error: Too many positional arguments: 0 allowed, but 1 found. +static field core::String* topLevel2 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:30:18: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. var topLevel2 = 1(\"10\"); ^" in self::_extension#2|get#call(self::_extension#0|get#call(1)){}.("10"); -static field core::String* topLevel3 = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:31:20: Error: Too many positional arguments: 0 allowed, but 1 found. +static field core::String* topLevel3 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:31:20: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. var topLevel3 = 1.0(10); ^" in self::_extension#2|get#call(self::_extension#1|get#call(1.0)){}.(10); -static field core::String* topLevel4 = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:32:20: Error: Too many positional arguments: 0 allowed, but 1 found. +static field core::String* topLevel4 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:32:20: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. var topLevel4 = 1.0(\"10\"); ^" in self::_extension#2|get#call(self::_extension#1|get#call(1.0)){}.("10"); @@ -176,19 +176,19 @@ static method main() → dynamic { self::_extension#2|get#call("")(){() →* core::String*}; } static method errors() → dynamic { - let final Never* #t5 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:39:4: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:39:4: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. 1(10); ^" in self::_extension#2|get#call(self::_extension#0|get#call(1)){}.(10); - let final Never* #t6 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:40:4: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:40:4: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. 1(\"10\"); ^" in self::_extension#2|get#call(self::_extension#0|get#call(1)){}.("10"); - let final Never* #t7 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:41:6: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:41:6: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. 1.0(10); ^" in self::_extension#2|get#call(self::_extension#1|get#call(1.0)){}.(10); - let final Never* #t8 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:42:6: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:42:6: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. 1.0(\"10\"); ^" in self::_extension#2|get#call(self::_extension#1|get#call(1.0)){}.("10"); diff --git a/pkg/front_end/testcases/extensions/conflict_with_object.dart.weak.expect b/pkg/front_end/testcases/extensions/conflict_with_object.dart.weak.expect index 96b1de2f75b..d5419ba8d1c 100644 --- a/pkg/front_end/testcases/extensions/conflict_with_object.dart.weak.expect +++ b/pkg/front_end/testcases/extensions/conflict_with_object.dart.weak.expect @@ -71,7 +71,7 @@ static method main() → dynamic { } static method errors() → dynamic { core::int* value; - value = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/extensions/conflict_with_object.dart:27:14: Error: A value of type 'dynamic Function(Invocation)' can't be assigned to a variable of type 'int'. + value = invalid-expression "pkg/front_end/testcases/extensions/conflict_with_object.dart:27:14: Error: A value of type 'dynamic Function(Invocation)' can't be assigned to a variable of type 'int'. - 'Invocation' is from 'dart:core'. value = \"\".noSuchMethod; ^" in "".{core::Object::noSuchMethod}{(core::Invocation*) →* dynamic} as{TypeError} core::int*; @@ -79,7 +79,7 @@ static method errors() → dynamic { Try correcting the name to the name of an existing setter, or defining a setter or field named 'hashCode'. \"\".hashCode = 42; ^^^^^^^^"; - value = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/extensions/conflict_with_object.dart:29:14: Error: A value of type 'Type' can't be assigned to a variable of type 'int'. + value = invalid-expression "pkg/front_end/testcases/extensions/conflict_with_object.dart:29:14: Error: A value of type 'Type' can't be assigned to a variable of type 'int'. - 'Type' is from 'dart:core'. value = \"\".runtimeType; ^" in "".{core::Object::runtimeType}{core::Type*} as{TypeError} core::int*; diff --git a/pkg/front_end/testcases/extensions/conflict_with_object.dart.weak.transformed.expect b/pkg/front_end/testcases/extensions/conflict_with_object.dart.weak.transformed.expect index 5c1250b906b..a934eda833e 100644 --- a/pkg/front_end/testcases/extensions/conflict_with_object.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/extensions/conflict_with_object.dart.weak.transformed.expect @@ -71,7 +71,7 @@ static method main() → dynamic { } static method errors() → dynamic { core::int* value; - value = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/extensions/conflict_with_object.dart:27:14: Error: A value of type 'dynamic Function(Invocation)' can't be assigned to a variable of type 'int'. + value = invalid-expression "pkg/front_end/testcases/extensions/conflict_with_object.dart:27:14: Error: A value of type 'dynamic Function(Invocation)' can't be assigned to a variable of type 'int'. - 'Invocation' is from 'dart:core'. value = \"\".noSuchMethod; ^" in "".{core::Object::noSuchMethod}{(core::Invocation*) →* dynamic} as{TypeError} core::int*; @@ -79,7 +79,7 @@ static method errors() → dynamic { Try correcting the name to the name of an existing setter, or defining a setter or field named 'hashCode'. \"\".hashCode = 42; ^^^^^^^^"; - value = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/extensions/conflict_with_object.dart:29:14: Error: A value of type 'Type' can't be assigned to a variable of type 'int'. + value = invalid-expression "pkg/front_end/testcases/extensions/conflict_with_object.dart:29:14: Error: A value of type 'Type' can't be assigned to a variable of type 'int'. - 'Type' is from 'dart:core'. value = \"\".runtimeType; ^" in "".{core::Object::runtimeType}{core::Type*} as{TypeError} core::int*; @@ -93,4 +93,4 @@ static method expect(dynamic expected, dynamic actual) → dynamic { Extra constant evaluation status: Evaluated: EqualsCall @ org-dartlang-testcase:///conflict_with_object.dart:21:19 -> BoolConstant(true) -Extra constant evaluation: evaluated: 37, effectively constant: 1 +Extra constant evaluation: evaluated: 31, effectively constant: 1 diff --git a/pkg/front_end/testcases/extensions/extension_setter_error.dart.weak.expect b/pkg/front_end/testcases/extensions/extension_setter_error.dart.weak.expect index 9f115ce5a6d..9811ed6ff56 100644 --- a/pkg/front_end/testcases/extensions/extension_setter_error.dart.weak.expect +++ b/pkg/front_end/testcases/extensions/extension_setter_error.dart.weak.expect @@ -31,10 +31,10 @@ extension GenericExtension on self::GenericCl static method GenericExtension|set#setter(lowered final self::GenericClass* #this, self::GenericExtension|set#setter::T* value) → void {} static method error() → dynamic { self::GenericClass* genericClass = new self::GenericClass::•(); - self::expect(null, let final self::GenericClass* #t1 = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/extensions/extension_setter_error.dart:13:41: Error: A value of type 'GenericClass' can't be assigned to a variable of type 'GenericClass'. + self::expect(null, let final self::GenericClass* #t1 = invalid-expression "pkg/front_end/testcases/extensions/extension_setter_error.dart:13:41: Error: A value of type 'GenericClass' can't be assigned to a variable of type 'GenericClass'. - 'GenericClass' is from 'pkg/front_end/testcases/extensions/extension_setter_error.dart'. expect(null, GenericExtension(genericClass).setter = null); - ^" in genericClass as{TypeError} self::GenericClass* in let final Null #t3 = null in let final void #t4 = self::GenericExtension|set#setter(#t1, #t3) in #t3); + ^" in genericClass as{TypeError} self::GenericClass* in let final Null #t2 = null in let final void #t3 = self::GenericExtension|set#setter(#t1, #t2) in #t2); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object*) →* core::bool*} actual)) { diff --git a/pkg/front_end/testcases/extensions/invalid_explicit_access.dart.weak.expect b/pkg/front_end/testcases/extensions/invalid_explicit_access.dart.weak.expect index b85efb220bb..dd8a12d9aae 100644 --- a/pkg/front_end/testcases/extensions/invalid_explicit_access.dart.weak.expect +++ b/pkg/front_end/testcases/extensions/invalid_explicit_access.dart.weak.expect @@ -186,7 +186,7 @@ static method main() → dynamic { invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:27:3: Error: Explicit extension application of extension 'Extension' takes '0' type argument(s). Extension(c1).method(null); ^^^^^^^^^"{dynamic}.method(null); - self::Extension|method(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:28:13: Error: The argument type 'String' can't be assigned to the parameter type 'Class'. + self::Extension|method(invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:28:13: Error: The argument type 'String' can't be assigned to the parameter type 'Class'. - 'Class' is from 'pkg/front_end/testcases/extensions/invalid_explicit_access.dart'. Extension(s).method(null); ^" in s as{TypeError} self::Class*, null); @@ -243,11 +243,11 @@ Try removing the extra positional arguments. invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:50:3: Error: Explicit extension application of extension 'GenericExtension' takes '1' type argument(s). GenericExtension(c2).method(); ^^^^^^^^^^^^^^^^"{dynamic}.method(); - self::GenericExtension|method(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:51:20: Error: The argument type 'String' can't be assigned to the parameter type 'GenericClass'. + self::GenericExtension|method(invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:51:20: Error: The argument type 'String' can't be assigned to the parameter type 'GenericClass'. - 'GenericClass' is from 'pkg/front_end/testcases/extensions/invalid_explicit_access.dart'. GenericExtension(s).method(); ^" in s as{TypeError} self::GenericClass*); - self::GenericExtension|method(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:52:25: Error: The argument type 'String' can't be assigned to the parameter type 'GenericClass'. + self::GenericExtension|method(invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:52:25: Error: The argument type 'String' can't be assigned to the parameter type 'GenericClass'. - 'GenericClass' is from 'pkg/front_end/testcases/extensions/invalid_explicit_access.dart'. GenericExtension(s).method(); ^" in s as{TypeError} self::GenericClass*); diff --git a/pkg/front_end/testcases/extensions/invalid_explicit_access.dart.weak.transformed.expect b/pkg/front_end/testcases/extensions/invalid_explicit_access.dart.weak.transformed.expect index b85efb220bb..dd8a12d9aae 100644 --- a/pkg/front_end/testcases/extensions/invalid_explicit_access.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/extensions/invalid_explicit_access.dart.weak.transformed.expect @@ -186,7 +186,7 @@ static method main() → dynamic { invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:27:3: Error: Explicit extension application of extension 'Extension' takes '0' type argument(s). Extension(c1).method(null); ^^^^^^^^^"{dynamic}.method(null); - self::Extension|method(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:28:13: Error: The argument type 'String' can't be assigned to the parameter type 'Class'. + self::Extension|method(invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:28:13: Error: The argument type 'String' can't be assigned to the parameter type 'Class'. - 'Class' is from 'pkg/front_end/testcases/extensions/invalid_explicit_access.dart'. Extension(s).method(null); ^" in s as{TypeError} self::Class*, null); @@ -243,11 +243,11 @@ Try removing the extra positional arguments. invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:50:3: Error: Explicit extension application of extension 'GenericExtension' takes '1' type argument(s). GenericExtension(c2).method(); ^^^^^^^^^^^^^^^^"{dynamic}.method(); - self::GenericExtension|method(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:51:20: Error: The argument type 'String' can't be assigned to the parameter type 'GenericClass'. + self::GenericExtension|method(invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:51:20: Error: The argument type 'String' can't be assigned to the parameter type 'GenericClass'. - 'GenericClass' is from 'pkg/front_end/testcases/extensions/invalid_explicit_access.dart'. GenericExtension(s).method(); ^" in s as{TypeError} self::GenericClass*); - self::GenericExtension|method(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:52:25: Error: The argument type 'String' can't be assigned to the parameter type 'GenericClass'. + self::GenericExtension|method(invalid-expression "pkg/front_end/testcases/extensions/invalid_explicit_access.dart:52:25: Error: The argument type 'String' can't be assigned to the parameter type 'GenericClass'. - 'GenericClass' is from 'pkg/front_end/testcases/extensions/invalid_explicit_access.dart'. GenericExtension(s).method(); ^" in s as{TypeError} self::GenericClass*); diff --git a/pkg/front_end/testcases/extensions/issue40713.dart.weak.expect b/pkg/front_end/testcases/extensions/issue40713.dart.weak.expect index 56093790a1e..f140adf32d4 100644 --- a/pkg/front_end/testcases/extensions/issue40713.dart.weak.expect +++ b/pkg/front_end/testcases/extensions/issue40713.dart.weak.expect @@ -32,7 +32,7 @@ static method errors() → void { list.safeFirst(); ^^^^^^^^^"; final core::List<(core::int*) →* void>* list2 = <(core::int*) →* void>[]; - let final Never* #t1 = invalid-expression "pkg/front_end/testcases/extensions/issue40713.dart:24:18: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/extensions/issue40713.dart:24:18: Error: Too few positional arguments: 1 required, 0 given. list2.safeFirst(); ^" in self::SafeAccess|get#safeFirst<(core::int*) →* void>(list2){}.(); } diff --git a/pkg/front_end/testcases/extensions/issue40713.dart.weak.transformed.expect b/pkg/front_end/testcases/extensions/issue40713.dart.weak.transformed.expect index 4627c591246..bbed14bbacd 100644 --- a/pkg/front_end/testcases/extensions/issue40713.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/extensions/issue40713.dart.weak.transformed.expect @@ -32,7 +32,7 @@ static method errors() → void { list.safeFirst(); ^^^^^^^^^"; final core::List<(core::int*) →* void>* list2 = core::_GrowableList::•<(core::int*) →* void>(0); - let final Never* #t1 = invalid-expression "pkg/front_end/testcases/extensions/issue40713.dart:24:18: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/extensions/issue40713.dart:24:18: Error: Too few positional arguments: 1 required, 0 given. list2.safeFirst(); ^" in self::SafeAccess|get#safeFirst<(core::int*) →* void>(list2){}.(); } diff --git a/pkg/front_end/testcases/extensions/language_issue1182.dart.weak.expect b/pkg/front_end/testcases/extensions/language_issue1182.dart.weak.expect index b657553acc9..b9fb9f7f1ef 100644 --- a/pkg/front_end/testcases/extensions/language_issue1182.dart.weak.expect +++ b/pkg/front_end/testcases/extensions/language_issue1182.dart.weak.expect @@ -14,7 +14,7 @@ class Foo extends core::Object { : super core::Object::•() ; method test1(generic-covariant-impl self::Foo::S* x) → void { - (self::Foo::S*) →* self::Foo::S* f = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/extensions/language_issue1182.dart:11:25: Error: A value of type 'num Function(num)' can't be assigned to a variable of type 'S Function(S)'. + (self::Foo::S*) →* self::Foo::S* f = invalid-expression "pkg/front_end/testcases/extensions/language_issue1182.dart:11:25: Error: A value of type 'num Function(num)' can't be assigned to a variable of type 'S Function(S)'. S Function(S) f = x.test; ^" in self::Test|get#test(x) as{TypeError} Never; } diff --git a/pkg/front_end/testcases/extensions/language_issue1182.dart.weak.transformed.expect b/pkg/front_end/testcases/extensions/language_issue1182.dart.weak.transformed.expect index b657553acc9..b9fb9f7f1ef 100644 --- a/pkg/front_end/testcases/extensions/language_issue1182.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/extensions/language_issue1182.dart.weak.transformed.expect @@ -14,7 +14,7 @@ class Foo extends core::Object { : super core::Object::•() ; method test1(generic-covariant-impl self::Foo::S* x) → void { - (self::Foo::S*) →* self::Foo::S* f = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/extensions/language_issue1182.dart:11:25: Error: A value of type 'num Function(num)' can't be assigned to a variable of type 'S Function(S)'. + (self::Foo::S*) →* self::Foo::S* f = invalid-expression "pkg/front_end/testcases/extensions/language_issue1182.dart:11:25: Error: A value of type 'num Function(num)' can't be assigned to a variable of type 'S Function(S)'. S Function(S) f = x.test; ^" in self::Test|get#test(x) as{TypeError} Never; } diff --git a/pkg/front_end/testcases/extensions/tear_offs.dart.weak.expect b/pkg/front_end/testcases/extensions/tear_offs.dart.weak.expect index 3899ae5077b..d56bc4b18c4 100644 --- a/pkg/front_end/testcases/extensions/tear_offs.dart.weak.expect +++ b/pkg/front_end/testcases/extensions/tear_offs.dart.weak.expect @@ -53,7 +53,7 @@ static method Extension|method(lowered final self::Class* #this) → dynamic { static method Extension|get#method(lowered final self::Class* #this) → () →* dynamic return () → dynamic => self::Extension|method(#this); static method Extension|errors(lowered final self::Class* #this) → dynamic { - (core::int*) →* core::int* intId = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/extensions/tear_offs.dart:17:31: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. + (core::int*) →* core::int* intId = invalid-expression "pkg/front_end/testcases/extensions/tear_offs.dart:17:31: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. int Function(int) intId = getter; ^" in self::Extension|get#getter(#this) as{TypeError} (core::int*) →* core::int*; } @@ -66,10 +66,10 @@ static method main() → dynamic { } static method errors() → dynamic { self::Class* c = new self::Class::•(); - (core::num*) →* core::num* numId = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/extensions/tear_offs.dart:30:31: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'num Function(num)'. + (core::num*) →* core::num* numId = invalid-expression "pkg/front_end/testcases/extensions/tear_offs.dart:30:31: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'num Function(num)'. num Function(num) numId = c.getter; ^" in self::Extension|get#getter(c) as{TypeError} (core::num*) →* core::num*; - (core::bool*) →* core::bool* boolId = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/extensions/tear_offs.dart:31:45: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'bool Function(bool)'. + (core::bool*) →* core::bool* boolId = invalid-expression "pkg/front_end/testcases/extensions/tear_offs.dart:31:45: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'bool Function(bool)'. bool Function(bool) boolId = Extension(c).getter; ^" in self::Extension|get#getter(c) as{TypeError} (core::bool*) →* core::bool*; } diff --git a/pkg/front_end/testcases/extensions/tear_offs.dart.weak.transformed.expect b/pkg/front_end/testcases/extensions/tear_offs.dart.weak.transformed.expect index 3899ae5077b..d56bc4b18c4 100644 --- a/pkg/front_end/testcases/extensions/tear_offs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/extensions/tear_offs.dart.weak.transformed.expect @@ -53,7 +53,7 @@ static method Extension|method(lowered final self::Class* #this) → dynamic { static method Extension|get#method(lowered final self::Class* #this) → () →* dynamic return () → dynamic => self::Extension|method(#this); static method Extension|errors(lowered final self::Class* #this) → dynamic { - (core::int*) →* core::int* intId = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/extensions/tear_offs.dart:17:31: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. + (core::int*) →* core::int* intId = invalid-expression "pkg/front_end/testcases/extensions/tear_offs.dart:17:31: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. int Function(int) intId = getter; ^" in self::Extension|get#getter(#this) as{TypeError} (core::int*) →* core::int*; } @@ -66,10 +66,10 @@ static method main() → dynamic { } static method errors() → dynamic { self::Class* c = new self::Class::•(); - (core::num*) →* core::num* numId = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/extensions/tear_offs.dart:30:31: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'num Function(num)'. + (core::num*) →* core::num* numId = invalid-expression "pkg/front_end/testcases/extensions/tear_offs.dart:30:31: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'num Function(num)'. num Function(num) numId = c.getter; ^" in self::Extension|get#getter(c) as{TypeError} (core::num*) →* core::num*; - (core::bool*) →* core::bool* boolId = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/extensions/tear_offs.dart:31:45: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'bool Function(bool)'. + (core::bool*) →* core::bool* boolId = invalid-expression "pkg/front_end/testcases/extensions/tear_offs.dart:31:45: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'bool Function(bool)'. bool Function(bool) boolId = Extension(c).getter; ^" in self::Extension|get#getter(c) as{TypeError} (core::bool*) →* core::bool*; } diff --git a/pkg/front_end/testcases/general/bounded_implicit_instantiation.dart.weak.expect b/pkg/front_end/testcases/general/bounded_implicit_instantiation.dart.weak.expect index cf6e3f3ea36..2b37371f84b 100644 --- a/pkg/front_end/testcases/general/bounded_implicit_instantiation.dart.weak.expect +++ b/pkg/front_end/testcases/general/bounded_implicit_instantiation.dart.weak.expect @@ -23,7 +23,7 @@ import "dart:_internal" as _in; static method test() → dynamic { function bounded(X x) → X return x; - core::String a = let final Never #t1 = bounded(let final Never #t2 = invalid-expression "pkg/front_end/testcases/general/bounded_implicit_instantiation.dart:7:22: Error: The argument type 'String' can't be assigned to the parameter type 'Never'. + core::String a = let final Never #t1 = bounded(invalid-expression "pkg/front_end/testcases/general/bounded_implicit_instantiation.dart:7:22: Error: The argument type 'String' can't be assigned to the parameter type 'Never'. String a = bounded(''); ^" in "" as{TypeError,ForNonNullableByDefault} Never){(Never) → Never} in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); core::String b = bounded(""){(core::String) → core::String}; diff --git a/pkg/front_end/testcases/general/bug32414a.dart.weak.expect b/pkg/front_end/testcases/general/bug32414a.dart.weak.expect index a688e6b0be4..8f4896cf886 100644 --- a/pkg/front_end/testcases/general/bug32414a.dart.weak.expect +++ b/pkg/front_end/testcases/general/bug32414a.dart.weak.expect @@ -12,7 +12,7 @@ import "dart:core" as core; static method test() → void { dynamic a = 5; core::String* b = a.{core::Object::toString}(){() →* core::String*}; - b = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/bug32414a.dart:10:7: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + b = invalid-expression "pkg/front_end/testcases/general/bug32414a.dart:10:7: Error: A value of type 'int' can't be assigned to a variable of type 'String'. b = 42; ^" in 42 as{TypeError} core::String*; } diff --git a/pkg/front_end/testcases/general/bug32414a.dart.weak.transformed.expect b/pkg/front_end/testcases/general/bug32414a.dart.weak.transformed.expect index a688e6b0be4..8f4896cf886 100644 --- a/pkg/front_end/testcases/general/bug32414a.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/bug32414a.dart.weak.transformed.expect @@ -12,7 +12,7 @@ import "dart:core" as core; static method test() → void { dynamic a = 5; core::String* b = a.{core::Object::toString}(){() →* core::String*}; - b = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/bug32414a.dart:10:7: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + b = invalid-expression "pkg/front_end/testcases/general/bug32414a.dart:10:7: Error: A value of type 'int' can't be assigned to a variable of type 'String'. b = 42; ^" in 42 as{TypeError} core::String*; } diff --git a/pkg/front_end/testcases/general/bug32629.dart.weak.expect b/pkg/front_end/testcases/general/bug32629.dart.weak.expect index 7b0256feb8e..48c5ec01a97 100644 --- a/pkg/front_end/testcases/general/bug32629.dart.weak.expect +++ b/pkg/front_end/testcases/general/bug32629.dart.weak.expect @@ -30,8 +30,8 @@ class A extends core::Object { } static method foo((self::foo::S*, dynamic) →* self::foo::S* v) → void {} static method test() → void { - self::foo(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/bug32629.dart:16:19: Error: The argument type 'dynamic Function(dynamic, dynamic)' can't be assigned to the parameter type 'String Function(String, dynamic)'. + self::foo(invalid-expression "pkg/front_end/testcases/general/bug32629.dart:16:19: Error: The argument type 'dynamic Function(dynamic, dynamic)' can't be assigned to the parameter type 'String Function(String, dynamic)'. foo(new A()); - ^" in (let final self::A* #t2 = new self::A::•() in #t2 == null ?{(dynamic, dynamic) →* dynamic} null : #t2.{self::A::call}{(dynamic, dynamic) →* dynamic}) as{TypeError} (core::String*, dynamic) →* core::String*); + ^" in (let final self::A* #t1 = new self::A::•() in #t1 == null ?{(dynamic, dynamic) →* dynamic} null : #t1.{self::A::call}{(dynamic, dynamic) →* dynamic}) as{TypeError} (core::String*, dynamic) →* core::String*); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/bug32629.dart.weak.transformed.expect b/pkg/front_end/testcases/general/bug32629.dart.weak.transformed.expect index 7b0256feb8e..48c5ec01a97 100644 --- a/pkg/front_end/testcases/general/bug32629.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/bug32629.dart.weak.transformed.expect @@ -30,8 +30,8 @@ class A extends core::Object { } static method foo((self::foo::S*, dynamic) →* self::foo::S* v) → void {} static method test() → void { - self::foo(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/bug32629.dart:16:19: Error: The argument type 'dynamic Function(dynamic, dynamic)' can't be assigned to the parameter type 'String Function(String, dynamic)'. + self::foo(invalid-expression "pkg/front_end/testcases/general/bug32629.dart:16:19: Error: The argument type 'dynamic Function(dynamic, dynamic)' can't be assigned to the parameter type 'String Function(String, dynamic)'. foo(new A()); - ^" in (let final self::A* #t2 = new self::A::•() in #t2 == null ?{(dynamic, dynamic) →* dynamic} null : #t2.{self::A::call}{(dynamic, dynamic) →* dynamic}) as{TypeError} (core::String*, dynamic) →* core::String*); + ^" in (let final self::A* #t1 = new self::A::•() in #t1 == null ?{(dynamic, dynamic) →* dynamic} null : #t1.{self::A::call}{(dynamic, dynamic) →* dynamic}) as{TypeError} (core::String*, dynamic) →* core::String*); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/bug33298.dart.weak.expect b/pkg/front_end/testcases/general/bug33298.dart.weak.expect index 06e40556d61..397db9f2d7a 100644 --- a/pkg/front_end/testcases/general/bug33298.dart.weak.expect +++ b/pkg/front_end/testcases/general/bug33298.dart.weak.expect @@ -69,8 +69,8 @@ static method test() → dynamic { core::List* list4 = ["a", "b", "c"].{core::Iterable::map}(let final self::B* #t2 = b in #t2 == null ?{(core::String*) →* core::String*} null : #t2.{self::B::call}{(core::String*) →* core::String*}){((core::String*) →* core::String*) →* core::Iterable*}.{core::Iterable::toList}(){({growable: core::bool*}) →* core::List*}; self::C* c = new self::C::•(); core::List* list5 = ["a", "b", "c"].{core::Iterable::map}(c.{self::C::call}{(T*) →* T*}){((core::String*) →* core::String*) →* core::Iterable*}.{core::Iterable::toList}(){({growable: core::bool*}) →* core::List*}; - core::List* list6 = ["a", "b", "c"].{core::Iterable::map}(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/bug33298.dart:28:44: Error: The argument type 'T Function(T)' can't be assigned to the parameter type 'dynamic Function(String)'. + core::List* list6 = ["a", "b", "c"].{core::Iterable::map}(invalid-expression "pkg/front_end/testcases/general/bug33298.dart:28:44: Error: The argument type 'T Function(T)' can't be assigned to the parameter type 'dynamic Function(String)'. List list6 = ['a', 'b', 'c'].map(c).toList(); - ^" in (let final self::C* #t4 = c in #t4 == null ?{(T*) →* T*} null : #t4.{self::C::call}{(T*) →* T*}) as{TypeError} (core::String*) →* dynamic){((core::String*) →* dynamic) →* core::Iterable*}.{core::Iterable::toList}(){({growable: core::bool*}) →* core::List*} as{TypeError} core::List*; + ^" in (let final self::C* #t3 = c in #t3 == null ?{(T*) →* T*} null : #t3.{self::C::call}{(T*) →* T*}) as{TypeError} (core::String*) →* dynamic){((core::String*) →* dynamic) →* core::Iterable*}.{core::Iterable::toList}(){({growable: core::bool*}) →* core::List*} as{TypeError} core::List*; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/bug33298.dart.weak.transformed.expect b/pkg/front_end/testcases/general/bug33298.dart.weak.transformed.expect index 8558dba6571..8f7030efc38 100644 --- a/pkg/front_end/testcases/general/bug33298.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/bug33298.dart.weak.transformed.expect @@ -69,8 +69,8 @@ static method test() → dynamic { core::List* list4 = core::_GrowableList::_literal3("a", "b", "c").{core::Iterable::map}(let final self::B* #t2 = b in #t2 == null ?{(core::String*) →* core::String*} null : #t2.{self::B::call}{(core::String*) →* core::String*}){((core::String*) →* core::String*) →* core::Iterable*}.{core::Iterable::toList}(){({growable: core::bool*}) →* core::List*}; self::C* c = new self::C::•(); core::List* list5 = core::_GrowableList::_literal3("a", "b", "c").{core::Iterable::map}(c.{self::C::call}{(T*) →* T*}){((core::String*) →* core::String*) →* core::Iterable*}.{core::Iterable::toList}(){({growable: core::bool*}) →* core::List*}; - core::List* list6 = core::_GrowableList::_literal3("a", "b", "c").{core::Iterable::map}(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/bug33298.dart:28:44: Error: The argument type 'T Function(T)' can't be assigned to the parameter type 'dynamic Function(String)'. + core::List* list6 = core::_GrowableList::_literal3("a", "b", "c").{core::Iterable::map}(invalid-expression "pkg/front_end/testcases/general/bug33298.dart:28:44: Error: The argument type 'T Function(T)' can't be assigned to the parameter type 'dynamic Function(String)'. List list6 = ['a', 'b', 'c'].map(c).toList(); - ^" in (let final self::C* #t4 = c in #t4 == null ?{(T*) →* T*} null : #t4.{self::C::call}{(T*) →* T*}) as{TypeError} (core::String*) →* dynamic){((core::String*) →* dynamic) →* core::Iterable*}.{core::Iterable::toList}(){({growable: core::bool*}) →* core::List*} as{TypeError} core::List*; + ^" in (let final self::C* #t3 = c in #t3 == null ?{(T*) →* T*} null : #t3.{self::C::call}{(T*) →* T*}) as{TypeError} (core::String*) →* dynamic){((core::String*) →* dynamic) →* core::Iterable*}.{core::Iterable::toList}(){({growable: core::bool*}) →* core::List*} as{TypeError} core::List*; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/call.dart.weak.expect b/pkg/front_end/testcases/general/call.dart.weak.expect index bb3fe1bb363..c7171750c22 100644 --- a/pkg/front_end/testcases/general/call.dart.weak.expect +++ b/pkg/front_end/testcases/general/call.dart.weak.expect @@ -147,28 +147,28 @@ var string5 = callableGetter(1); static field dynamic string6 = let final self::CallableGetter* #t1 = self::callableGetter in let final core::int* #t2 = 1 in #t1.{self::CallableGetter::call}{dynamic}{dynamic}.call(#t2); static field dynamic string7 = self::callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call(1); static field dynamic string8 = self::callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call{dynamic}.call(1); -static field dynamic nothing1 = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/call.dart:68:23: Error: Too few positional arguments: 1 required, 0 given. +static field dynamic nothing1 = invalid-expression "pkg/front_end/testcases/general/call.dart:68:23: Error: Too few positional arguments: 1 required, 0 given. var nothing1 = closure(); ^" in self::closure{}.(); -static field dynamic nothing2 = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/general/call.dart:69:28: Error: Too few positional arguments: 1 required, 0 given. +static field dynamic nothing2 = invalid-expression "pkg/front_end/testcases/general/call.dart:69:28: Error: Too few positional arguments: 1 required, 0 given. var nothing2 = closure.call(); ^" in self::closure{}.(); -static field dynamic nothing3 = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/general/call.dart:70:33: Error: Too few positional arguments: 1 required, 0 given. +static field dynamic nothing3 = invalid-expression "pkg/front_end/testcases/general/call.dart:70:33: Error: Too few positional arguments: 1 required, 0 given. var nothing3 = closure.call.call(); ^" in self::closure.call{}.(); -static field dynamic nothing4 = let final Never* #t6 = invalid-expression "pkg/front_end/testcases/general/call.dart:71:38: Error: Too few positional arguments: 1 required, 0 given. +static field dynamic nothing4 = invalid-expression "pkg/front_end/testcases/general/call.dart:71:38: Error: Too few positional arguments: 1 required, 0 given. var nothing4 = closure.call.call.call(); ^" in self::closure.call.call{}.(); -static field dynamic nothing5 = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/general/call.dart:73:24: Error: Too few positional arguments: 1 required, 0 given. +static field dynamic nothing5 = invalid-expression "pkg/front_end/testcases/general/call.dart:73:24: Error: Too few positional arguments: 1 required, 0 given. var nothing5 = callable(); ^" in self::callable.{self::Callable::call}{}.(){() →* invalid-type}; -static field dynamic nothing6 = let final Never* #t8 = invalid-expression "pkg/front_end/testcases/general/call.dart:74:29: Error: Too few positional arguments: 1 required, 0 given. +static field dynamic nothing6 = invalid-expression "pkg/front_end/testcases/general/call.dart:74:29: Error: Too few positional arguments: 1 required, 0 given. var nothing6 = callable.call(); ^" in self::callable.{self::Callable::call}{}.(){() →* invalid-type}; -static field dynamic nothing7 = let final Never* #t9 = invalid-expression "pkg/front_end/testcases/general/call.dart:75:34: Error: Too few positional arguments: 1 required, 0 given. +static field dynamic nothing7 = invalid-expression "pkg/front_end/testcases/general/call.dart:75:34: Error: Too few positional arguments: 1 required, 0 given. var nothing7 = callable.call.call(); ^" in self::callable.{self::Callable::call}{(dynamic) →* dynamic}{}.(); -static field dynamic nothing8 = let final Never* #t10 = invalid-expression "pkg/front_end/testcases/general/call.dart:76:39: Error: Too few positional arguments: 1 required, 0 given. +static field dynamic nothing8 = invalid-expression "pkg/front_end/testcases/general/call.dart:76:39: Error: Too few positional arguments: 1 required, 0 given. var nothing8 = callable.call.call.call(); ^" in self::callable.{self::Callable::call}{(dynamic) →* dynamic}.call{}.(); static field dynamic nothing9 = invalid-expression "pkg/front_end/testcases/general/call.dart:78:30: Error: Cannot invoke an instance of 'CallableGetter' because it declares 'call' to be something other than a method. @@ -196,31 +196,31 @@ static method main() → dynamic { Try changing 'call' to a method or explicitly invoke 'call'. var string5 = callableGetter(1); ^"; - dynamic string6 = let final self::CallableGetter* #t11 = callableGetter in let final core::int* #t12 = 1 in #t11.{self::CallableGetter::call}{dynamic}{dynamic}.call(#t12); + dynamic string6 = let final self::CallableGetter* #t3 = callableGetter in let final core::int* #t4 = 1 in #t3.{self::CallableGetter::call}{dynamic}{dynamic}.call(#t4); dynamic string7 = callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call(1); dynamic string8 = callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call{dynamic}.call(1); - invalid-type nothing1 = let final Never* #t13 = invalid-expression "pkg/front_end/testcases/general/call.dart:34:25: Error: Too few positional arguments: 1 required, 0 given. + invalid-type nothing1 = invalid-expression "pkg/front_end/testcases/general/call.dart:34:25: Error: Too few positional arguments: 1 required, 0 given. var nothing1 = closure(); ^" in closure{}.(); - invalid-type nothing2 = let final Never* #t14 = invalid-expression "pkg/front_end/testcases/general/call.dart:35:30: Error: Too few positional arguments: 1 required, 0 given. + invalid-type nothing2 = invalid-expression "pkg/front_end/testcases/general/call.dart:35:30: Error: Too few positional arguments: 1 required, 0 given. var nothing2 = closure.call(); ^" in closure{}.(); - invalid-type nothing3 = let final Never* #t15 = invalid-expression "pkg/front_end/testcases/general/call.dart:36:35: Error: Too few positional arguments: 1 required, 0 given. + invalid-type nothing3 = invalid-expression "pkg/front_end/testcases/general/call.dart:36:35: Error: Too few positional arguments: 1 required, 0 given. var nothing3 = closure.call.call(); ^" in closure.call{}.(); - invalid-type nothing4 = let final Never* #t16 = invalid-expression "pkg/front_end/testcases/general/call.dart:37:40: Error: Too few positional arguments: 1 required, 0 given. + invalid-type nothing4 = invalid-expression "pkg/front_end/testcases/general/call.dart:37:40: Error: Too few positional arguments: 1 required, 0 given. var nothing4 = closure.call.call.call(); ^" in closure.call.call{}.(); - invalid-type nothing5 = let final Never* #t17 = invalid-expression "pkg/front_end/testcases/general/call.dart:39:26: Error: Too few positional arguments: 1 required, 0 given. + invalid-type nothing5 = invalid-expression "pkg/front_end/testcases/general/call.dart:39:26: Error: Too few positional arguments: 1 required, 0 given. var nothing5 = callable(); ^" in callable.{self::Callable::call}{}.(){() →* invalid-type}; - invalid-type nothing6 = let final Never* #t18 = invalid-expression "pkg/front_end/testcases/general/call.dart:40:31: Error: Too few positional arguments: 1 required, 0 given. + invalid-type nothing6 = invalid-expression "pkg/front_end/testcases/general/call.dart:40:31: Error: Too few positional arguments: 1 required, 0 given. var nothing6 = callable.call(); ^" in callable.{self::Callable::call}{}.(){() →* invalid-type}; - invalid-type nothing7 = let final Never* #t19 = invalid-expression "pkg/front_end/testcases/general/call.dart:41:36: Error: Too few positional arguments: 1 required, 0 given. + invalid-type nothing7 = invalid-expression "pkg/front_end/testcases/general/call.dart:41:36: Error: Too few positional arguments: 1 required, 0 given. var nothing7 = callable.call.call(); ^" in callable.{self::Callable::call}{(dynamic) →* dynamic}{}.(); - invalid-type nothing8 = let final Never* #t20 = invalid-expression "pkg/front_end/testcases/general/call.dart:42:41: Error: Too few positional arguments: 1 required, 0 given. + invalid-type nothing8 = invalid-expression "pkg/front_end/testcases/general/call.dart:42:41: Error: Too few positional arguments: 1 required, 0 given. var nothing8 = callable.call.call.call(); ^" in callable.{self::Callable::call}{(dynamic) →* dynamic}.call{}.(); dynamic nothing9 = invalid-expression "pkg/front_end/testcases/general/call.dart:44:32: Error: Cannot invoke an instance of 'CallableGetter' because it declares 'call' to be something other than a method. diff --git a/pkg/front_end/testcases/general/call.dart.weak.transformed.expect b/pkg/front_end/testcases/general/call.dart.weak.transformed.expect new file mode 100644 index 00000000000..5d9b4782647 --- /dev/null +++ b/pkg/front_end/testcases/general/call.dart.weak.transformed.expect @@ -0,0 +1,240 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/general/call.dart:29:31: Error: Cannot invoke an instance of 'CallableGetter' because it declares 'call' to be something other than a method. +// - 'CallableGetter' is from 'pkg/front_end/testcases/general/call.dart'. +// Try changing 'call' to a method or explicitly invoke 'call'. +// var string5 = callableGetter(1); +// ^ +// +// pkg/front_end/testcases/general/call.dart:34:25: Error: Too few positional arguments: 1 required, 0 given. +// var nothing1 = closure(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:35:30: Error: Too few positional arguments: 1 required, 0 given. +// var nothing2 = closure.call(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:36:35: Error: Too few positional arguments: 1 required, 0 given. +// var nothing3 = closure.call.call(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:37:40: Error: Too few positional arguments: 1 required, 0 given. +// var nothing4 = closure.call.call.call(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:39:26: Error: Too few positional arguments: 1 required, 0 given. +// var nothing5 = callable(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:40:31: Error: Too few positional arguments: 1 required, 0 given. +// var nothing6 = callable.call(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:41:36: Error: Too few positional arguments: 1 required, 0 given. +// var nothing7 = callable.call.call(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:42:41: Error: Too few positional arguments: 1 required, 0 given. +// var nothing8 = callable.call.call.call(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:44:32: Error: Cannot invoke an instance of 'CallableGetter' because it declares 'call' to be something other than a method. +// - 'CallableGetter' is from 'pkg/front_end/testcases/general/call.dart'. +// Try changing 'call' to a method or explicitly invoke 'call'. +// var nothing9 = callableGetter(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:63:29: Error: Cannot invoke an instance of 'CallableGetter' because it declares 'call' to be something other than a method. +// - 'CallableGetter' is from 'pkg/front_end/testcases/general/call.dart'. +// Try changing 'call' to a method or explicitly invoke 'call'. +// var string5 = callableGetter(1); +// ^ +// +// pkg/front_end/testcases/general/call.dart:68:23: Error: Too few positional arguments: 1 required, 0 given. +// var nothing1 = closure(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:69:28: Error: Too few positional arguments: 1 required, 0 given. +// var nothing2 = closure.call(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:70:33: Error: Too few positional arguments: 1 required, 0 given. +// var nothing3 = closure.call.call(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:71:38: Error: Too few positional arguments: 1 required, 0 given. +// var nothing4 = closure.call.call.call(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:73:24: Error: Too few positional arguments: 1 required, 0 given. +// var nothing5 = callable(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:74:29: Error: Too few positional arguments: 1 required, 0 given. +// var nothing6 = callable.call(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:75:34: Error: Too few positional arguments: 1 required, 0 given. +// var nothing7 = callable.call.call(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:76:39: Error: Too few positional arguments: 1 required, 0 given. +// var nothing8 = callable.call.call.call(); +// ^ +// +// pkg/front_end/testcases/general/call.dart:78:30: Error: Cannot invoke an instance of 'CallableGetter' because it declares 'call' to be something other than a method. +// - 'CallableGetter' is from 'pkg/front_end/testcases/general/call.dart'. +// Try changing 'call' to a method or explicitly invoke 'call'. +// var nothing9 = callableGetter(); +// ^ +// +import self as self; +import "dart:core" as core; + +class Callable extends core::Object { + synthetic constructor •() → self::Callable* + : super core::Object::•() + ; + method call(dynamic x) → dynamic { + return "string"; + } + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +class CallableGetter extends core::Object { + synthetic constructor •() → self::CallableGetter* + : super core::Object::•() + ; + get call() → dynamic + return new self::Callable::•(); + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +static field (dynamic) →* dynamic closure = (dynamic x) → dynamic => x; +static field dynamic int1 = self::closure(1){(dynamic) →* dynamic}; +static field dynamic int2 = self::closure(1){(dynamic) →* dynamic}; +static field dynamic int3 = self::closure.call(1){(dynamic) →* dynamic}; +static field dynamic int4 = self::closure.call.call(1){(dynamic) →* dynamic}; +static field self::Callable* callable = new self::Callable::•(); +static field dynamic string1 = self::callable.{self::Callable::call}(1){(dynamic) →* dynamic}; +static field dynamic string2 = self::callable.{self::Callable::call}(1){(dynamic) →* dynamic}; +static field dynamic string3 = self::callable.{self::Callable::call}{(dynamic) →* dynamic}(1){(dynamic) →* dynamic}; +static field dynamic string4 = self::callable.{self::Callable::call}{(dynamic) →* dynamic}.call(1){(dynamic) →* dynamic}; +static field self::CallableGetter* callableGetter = new self::CallableGetter::•(); +static field dynamic string5 = invalid-expression "pkg/front_end/testcases/general/call.dart:63:29: Error: Cannot invoke an instance of 'CallableGetter' because it declares 'call' to be something other than a method. + - 'CallableGetter' is from 'pkg/front_end/testcases/general/call.dart'. +Try changing 'call' to a method or explicitly invoke 'call'. +var string5 = callableGetter(1); + ^"; +static field dynamic string6 = let final self::CallableGetter* #t1 = self::callableGetter in let final core::int* #t2 = 1 in #t1.{self::CallableGetter::call}{dynamic}{dynamic}.call(#t2); +static field dynamic string7 = self::callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call(1); +static field dynamic string8 = self::callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call{dynamic}.call(1); +static field dynamic nothing1 = invalid-expression "pkg/front_end/testcases/general/call.dart:68:23: Error: Too few positional arguments: 1 required, 0 given. +var nothing1 = closure(); + ^" in self::closure{}.(); +static field dynamic nothing2 = invalid-expression "pkg/front_end/testcases/general/call.dart:69:28: Error: Too few positional arguments: 1 required, 0 given. +var nothing2 = closure.call(); + ^" in self::closure{}.(); +static field dynamic nothing3 = invalid-expression "pkg/front_end/testcases/general/call.dart:70:33: Error: Too few positional arguments: 1 required, 0 given. +var nothing3 = closure.call.call(); + ^" in self::closure.call{}.(); +static field dynamic nothing4 = invalid-expression "pkg/front_end/testcases/general/call.dart:71:38: Error: Too few positional arguments: 1 required, 0 given. +var nothing4 = closure.call.call.call(); + ^" in self::closure.call.call{}.(); +static field dynamic nothing5 = invalid-expression "pkg/front_end/testcases/general/call.dart:73:24: Error: Too few positional arguments: 1 required, 0 given. +var nothing5 = callable(); + ^" in self::callable.{self::Callable::call}{}.(){() →* invalid-type}; +static field dynamic nothing6 = invalid-expression "pkg/front_end/testcases/general/call.dart:74:29: Error: Too few positional arguments: 1 required, 0 given. +var nothing6 = callable.call(); + ^" in self::callable.{self::Callable::call}{}.(){() →* invalid-type}; +static field dynamic nothing7 = invalid-expression "pkg/front_end/testcases/general/call.dart:75:34: Error: Too few positional arguments: 1 required, 0 given. +var nothing7 = callable.call.call(); + ^" in self::callable.{self::Callable::call}{(dynamic) →* dynamic}{}.(); +static field dynamic nothing8 = invalid-expression "pkg/front_end/testcases/general/call.dart:76:39: Error: Too few positional arguments: 1 required, 0 given. +var nothing8 = callable.call.call.call(); + ^" in self::callable.{self::Callable::call}{(dynamic) →* dynamic}.call{}.(); +static field dynamic nothing9 = invalid-expression "pkg/front_end/testcases/general/call.dart:78:30: Error: Cannot invoke an instance of 'CallableGetter' because it declares 'call' to be something other than a method. + - 'CallableGetter' is from 'pkg/front_end/testcases/general/call.dart'. +Try changing 'call' to a method or explicitly invoke 'call'. +var nothing9 = callableGetter(); + ^"; +static field dynamic nothing10 = self::callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call(); +static field dynamic nothing11 = self::callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call(); +static field dynamic nothing12 = self::callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call{dynamic}.call(); +static method main() → dynamic { + (dynamic) →* dynamic closure = (dynamic x) → dynamic => x; + dynamic int1 = closure(1){(dynamic) →* dynamic}; + dynamic int2 = closure(1){(dynamic) →* dynamic}; + dynamic int3 = closure.call(1){(dynamic) →* dynamic}; + dynamic int4 = closure.call.call(1){(dynamic) →* dynamic}; + self::Callable* callable = new self::Callable::•(); + dynamic string1 = callable.{self::Callable::call}(1){(dynamic) →* dynamic}; + dynamic string2 = callable.{self::Callable::call}(1){(dynamic) →* dynamic}; + dynamic string3 = callable.{self::Callable::call}{(dynamic) →* dynamic}(1){(dynamic) →* dynamic}; + dynamic string4 = callable.{self::Callable::call}{(dynamic) →* dynamic}.call(1){(dynamic) →* dynamic}; + self::CallableGetter* callableGetter = new self::CallableGetter::•(); + dynamic string5 = invalid-expression "pkg/front_end/testcases/general/call.dart:29:31: Error: Cannot invoke an instance of 'CallableGetter' because it declares 'call' to be something other than a method. + - 'CallableGetter' is from 'pkg/front_end/testcases/general/call.dart'. +Try changing 'call' to a method or explicitly invoke 'call'. + var string5 = callableGetter(1); + ^"; + dynamic string6 = let final self::CallableGetter* #t3 = callableGetter in let final core::int* #t4 = 1 in #t3.{self::CallableGetter::call}{dynamic}{dynamic}.call(#t4); + dynamic string7 = callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call(1); + dynamic string8 = callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call{dynamic}.call(1); + invalid-type nothing1 = invalid-expression "pkg/front_end/testcases/general/call.dart:34:25: Error: Too few positional arguments: 1 required, 0 given. + var nothing1 = closure(); + ^" in closure{}.(); + invalid-type nothing2 = invalid-expression "pkg/front_end/testcases/general/call.dart:35:30: Error: Too few positional arguments: 1 required, 0 given. + var nothing2 = closure.call(); + ^" in closure{}.(); + invalid-type nothing3 = invalid-expression "pkg/front_end/testcases/general/call.dart:36:35: Error: Too few positional arguments: 1 required, 0 given. + var nothing3 = closure.call.call(); + ^" in closure.call{}.(); + invalid-type nothing4 = invalid-expression "pkg/front_end/testcases/general/call.dart:37:40: Error: Too few positional arguments: 1 required, 0 given. + var nothing4 = closure.call.call.call(); + ^" in closure.call.call{}.(); + invalid-type nothing5 = invalid-expression "pkg/front_end/testcases/general/call.dart:39:26: Error: Too few positional arguments: 1 required, 0 given. + var nothing5 = callable(); + ^" in callable.{self::Callable::call}{}.(){() →* invalid-type}; + invalid-type nothing6 = invalid-expression "pkg/front_end/testcases/general/call.dart:40:31: Error: Too few positional arguments: 1 required, 0 given. + var nothing6 = callable.call(); + ^" in callable.{self::Callable::call}{}.(){() →* invalid-type}; + invalid-type nothing7 = invalid-expression "pkg/front_end/testcases/general/call.dart:41:36: Error: Too few positional arguments: 1 required, 0 given. + var nothing7 = callable.call.call(); + ^" in callable.{self::Callable::call}{(dynamic) →* dynamic}{}.(); + invalid-type nothing8 = invalid-expression "pkg/front_end/testcases/general/call.dart:42:41: Error: Too few positional arguments: 1 required, 0 given. + var nothing8 = callable.call.call.call(); + ^" in callable.{self::Callable::call}{(dynamic) →* dynamic}.call{}.(); + dynamic nothing9 = invalid-expression "pkg/front_end/testcases/general/call.dart:44:32: Error: Cannot invoke an instance of 'CallableGetter' because it declares 'call' to be something other than a method. + - 'CallableGetter' is from 'pkg/front_end/testcases/general/call.dart'. +Try changing 'call' to a method or explicitly invoke 'call'. + var nothing9 = callableGetter(); + ^"; + dynamic nothing10 = callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call(); + dynamic nothing11 = callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call(); + dynamic nothing12 = callableGetter.{self::CallableGetter::call}{dynamic}{dynamic}.call{dynamic}.call(); +} + + +Extra constant evaluation status: +Evaluated: VariableGet @ org-dartlang-testcase:///call.dart:30:37 -> IntConstant(1) +Evaluated: VariableGet @ org-dartlang-testcase:///call.dart:64:35 -> IntConstant(1) +Extra constant evaluation: evaluated: 101, effectively constant: 2 diff --git a/pkg/front_end/testcases/general/callable_type_variable.dart.weak.expect b/pkg/front_end/testcases/general/callable_type_variable.dart.weak.expect index f7d01d76a39..59e805d3ae0 100644 --- a/pkg/front_end/testcases/general/callable_type_variable.dart.weak.expect +++ b/pkg/front_end/testcases/general/callable_type_variable.dart.weak.expect @@ -42,12 +42,12 @@ class Class2 extends core::Object { : self::Class2::field = field, super core::Object::•() ; method method() → dynamic { - invalid-type v1 = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/callable_type_variable.dart:25:19: Error: Too few positional arguments: 1 required, 0 given. + invalid-type v1 = invalid-expression "pkg/front_end/testcases/general/callable_type_variable.dart:25:19: Error: Too few positional arguments: 1 required, 0 given. var v1 = field(); // error ^" in this.{self::Class2::field}{self::Class2::T*}{}.(); - core::String* v2 = let final core::int* #t3 = 0 in this.{self::Class2::field}{self::Class2::T*}(#t3){(core::int*) →* core::String*}; + core::String* v2 = let final core::int* #t2 = 0 in this.{self::Class2::field}{self::Class2::T*}(#t2){(core::int*) →* core::String*}; self::Class2::T* v3 = this.{self::Class2::field}{self::Class2::T*}.call; - invalid-type v4 = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/general/callable_type_variable.dart:28:24: Error: Too few positional arguments: 1 required, 0 given. + invalid-type v4 = invalid-expression "pkg/front_end/testcases/general/callable_type_variable.dart:28:24: Error: Too few positional arguments: 1 required, 0 given. var v4 = field.call(); // error ^" in this.{self::Class2::field}{self::Class2::T*}{}.(); core::String* v5 = this.{self::Class2::field}{self::Class2::T*}(0){(core::int*) →* core::String*}; diff --git a/pkg/front_end/testcases/general/callable_type_variable.dart.weak.transformed.expect b/pkg/front_end/testcases/general/callable_type_variable.dart.weak.transformed.expect index cd3a7b7d020..f740b10422c 100644 --- a/pkg/front_end/testcases/general/callable_type_variable.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/callable_type_variable.dart.weak.transformed.expect @@ -42,12 +42,12 @@ class Class2 extends core::Object { : self::Class2::field = field, super core::Object::•() ; method method() → dynamic { - invalid-type v1 = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/callable_type_variable.dart:25:19: Error: Too few positional arguments: 1 required, 0 given. + invalid-type v1 = invalid-expression "pkg/front_end/testcases/general/callable_type_variable.dart:25:19: Error: Too few positional arguments: 1 required, 0 given. var v1 = field(); // error ^" in this.{self::Class2::field}{self::Class2::T*}{}.(); - core::String* v2 = let final core::int* #t3 = 0 in this.{self::Class2::field}{self::Class2::T*}(#t3){(core::int*) →* core::String*}; + core::String* v2 = let final core::int* #t2 = 0 in this.{self::Class2::field}{self::Class2::T*}(#t2){(core::int*) →* core::String*}; self::Class2::T* v3 = this.{self::Class2::field}{self::Class2::T*}.call; - invalid-type v4 = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/general/callable_type_variable.dart:28:24: Error: Too few positional arguments: 1 required, 0 given. + invalid-type v4 = invalid-expression "pkg/front_end/testcases/general/callable_type_variable.dart:28:24: Error: Too few positional arguments: 1 required, 0 given. var v4 = field.call(); // error ^" in this.{self::Class2::field}{self::Class2::T*}{}.(); core::String* v5 = this.{self::Class2::field}{self::Class2::T*}(0){(core::int*) →* core::String*}; @@ -69,4 +69,4 @@ static method main() → dynamic {} Extra constant evaluation status: Evaluated: VariableGet @ org-dartlang-testcase:///callable_type_variable.dart:12:20 -> IntConstant(0) Evaluated: VariableGet @ org-dartlang-testcase:///callable_type_variable.dart:26:20 -> IntConstant(0) -Extra constant evaluation: evaluated: 38, effectively constant: 2 +Extra constant evaluation: evaluated: 30, effectively constant: 2 diff --git a/pkg/front_end/testcases/general/candidate_found.dart.weak.expect b/pkg/front_end/testcases/general/candidate_found.dart.weak.expect index b1e197c2723..a8817a7f4f0 100644 --- a/pkg/front_end/testcases/general/candidate_found.dart.weak.expect +++ b/pkg/front_end/testcases/general/candidate_found.dart.weak.expect @@ -78,7 +78,7 @@ static method test() → dynamic { invalid-expression "pkg/front_end/testcases/general/candidate_found.dart:20:20: Error: Too few positional arguments: 1 required, 0 given. Fisk.staticMethod(); ^"; - let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/candidate_found.dart:21:24: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/general/candidate_found.dart:21:24: Error: Too few positional arguments: 1 required, 0 given. (null as Fisk).method(); ^" in (null as self::Fisk*).{self::Fisk::method}{}.(){() →* invalid-type}; } diff --git a/pkg/front_end/testcases/general/candidate_found.dart.weak.transformed.expect b/pkg/front_end/testcases/general/candidate_found.dart.weak.transformed.expect new file mode 100644 index 00000000000..66c13e5fcf1 --- /dev/null +++ b/pkg/front_end/testcases/general/candidate_found.dart.weak.transformed.expect @@ -0,0 +1,85 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/general/candidate_found.dart:16:11: Error: Too few positional arguments: 1 required, 0 given. +// new Fisk(); +// ^ +// pkg/front_end/testcases/general/candidate_found.dart:6:3: Context: Found this candidate, but the arguments don't match. +// Fisk(int x) {} +// ^^^^ +// +// pkg/front_end/testcases/general/candidate_found.dart:17:17: Error: Too few positional arguments: 1 required, 0 given. +// new Fisk.named(); +// ^ +// pkg/front_end/testcases/general/candidate_found.dart:8:3: Context: Found this candidate, but the arguments don't match. +// Fisk.named(int x) {} +// ^^^^^^^^^^ +// +// pkg/front_end/testcases/general/candidate_found.dart:18:7: Error: Too few positional arguments: 1 required, 0 given. +// Fisk(); +// ^ +// pkg/front_end/testcases/general/candidate_found.dart:6:3: Context: Found this candidate, but the arguments don't match. +// Fisk(int x) {} +// ^^^^ +// +// pkg/front_end/testcases/general/candidate_found.dart:19:13: Error: Too few positional arguments: 1 required, 0 given. +// Fisk.named(); +// ^ +// pkg/front_end/testcases/general/candidate_found.dart:8:3: Context: Found this candidate, but the arguments don't match. +// Fisk.named(int x) {} +// ^^^^^^^^^^ +// +// pkg/front_end/testcases/general/candidate_found.dart:20:20: Error: Too few positional arguments: 1 required, 0 given. +// Fisk.staticMethod(); +// ^ +// pkg/front_end/testcases/general/candidate_found.dart:12:15: Context: Found this candidate, but the arguments don't match. +// static void staticMethod(int x) {} +// ^^^^^^^^^^^^ +// +// pkg/front_end/testcases/general/candidate_found.dart:21:24: Error: Too few positional arguments: 1 required, 0 given. +// (null as Fisk).method(); +// ^ +// +import self as self; +import "dart:core" as core; + +class Fisk extends core::Object { + constructor •(core::int* x) → self::Fisk* + : super core::Object::•() {} + constructor named(core::int* x) → self::Fisk* + : super core::Object::•() {} + method method(core::int* x) → void {} + static method staticMethod(core::int* x) → void {} + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +static method test() → dynamic { + invalid-expression "pkg/front_end/testcases/general/candidate_found.dart:16:11: Error: Too few positional arguments: 1 required, 0 given. + new Fisk(); + ^"; + invalid-expression "pkg/front_end/testcases/general/candidate_found.dart:17:17: Error: Too few positional arguments: 1 required, 0 given. + new Fisk.named(); + ^"; + invalid-expression "pkg/front_end/testcases/general/candidate_found.dart:18:7: Error: Too few positional arguments: 1 required, 0 given. + Fisk(); + ^"; + invalid-expression "pkg/front_end/testcases/general/candidate_found.dart:19:13: Error: Too few positional arguments: 1 required, 0 given. + Fisk.named(); + ^"; + invalid-expression "pkg/front_end/testcases/general/candidate_found.dart:20:20: Error: Too few positional arguments: 1 required, 0 given. + Fisk.staticMethod(); + ^"; + invalid-expression "pkg/front_end/testcases/general/candidate_found.dart:21:24: Error: Too few positional arguments: 1 required, 0 given. + (null as Fisk).method(); + ^" in null.{self::Fisk::method}{}.(){() →* invalid-type}; +} +static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/cascade.dart.weak.expect b/pkg/front_end/testcases/general/cascade.dart.weak.expect index bfd70cc9b8f..d08b8a2d7c9 100644 --- a/pkg/front_end/testcases/general/cascade.dart.weak.expect +++ b/pkg/front_end/testcases/general/cascade.dart.weak.expect @@ -44,7 +44,7 @@ static method main() → dynamic { #t3.{core::List::[]=}(0, 87){(core::int*, core::int*) →* void}; } =>#t3; core::print(list); - list = let final core::List* #t4 = [let final Never* #t5 = invalid-expression "pkg/front_end/testcases/general/cascade.dart:26:5: Error: A value of type 'List' can't be assigned to a variable of type 'int'. + list = let final core::List* #t4 = [invalid-expression "pkg/front_end/testcases/general/cascade.dart:26:5: Error: A value of type 'List' can't be assigned to a variable of type 'int'. - 'List' is from 'dart:core'. [1] ^" in [1] as{TypeError} core::int*] in block { diff --git a/pkg/front_end/testcases/general/cascade.dart.weak.transformed.expect b/pkg/front_end/testcases/general/cascade.dart.weak.transformed.expect index 5ae4b4c978c..27d7da43d72 100644 --- a/pkg/front_end/testcases/general/cascade.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/cascade.dart.weak.transformed.expect @@ -44,7 +44,7 @@ static method main() → dynamic { #t3.{core::List::[]=}(0, 87){(core::int*, core::int*) →* void}; } =>#t3; core::print(list); - list = let final core::List* #t4 = core::_GrowableList::_literal1(let final Never* #t5 = invalid-expression "pkg/front_end/testcases/general/cascade.dart:26:5: Error: A value of type 'List' can't be assigned to a variable of type 'int'. + list = let final core::List* #t4 = core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/general/cascade.dart:26:5: Error: A value of type 'List' can't be assigned to a variable of type 'int'. - 'List' is from 'dart:core'. [1] ^" in core::_GrowableList::_literal1(1) as{TypeError} core::int*) in block { diff --git a/pkg/front_end/testcases/general/constants/const_asserts.dart.weak.expect b/pkg/front_end/testcases/general/constants/const_asserts.dart.weak.expect index 606314dc31c..05feed88c58 100644 --- a/pkg/front_end/testcases/general/constants/const_asserts.dart.weak.expect +++ b/pkg/front_end/testcases/general/constants/const_asserts.dart.weak.expect @@ -136,7 +136,7 @@ class Foo extends core::Object /*hasConstConstructor*/ { : self::Foo::x = x, assert(x.{core::num::<}(0){(core::num*) →* core::bool*}, x), super core::Object::•() ; const constructor withInvalidCondition(core::int* x) → self::Foo* - : self::Foo::x = x, assert(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/constants/const_asserts.dart:17:51: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. + : self::Foo::x = x, assert(invalid-expression "pkg/front_end/testcases/general/constants/const_asserts.dart:17:51: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. const Foo.withInvalidCondition(this.x) : assert(x); ^" in x as{TypeError} core::bool*), super core::Object::•() ; diff --git a/pkg/front_end/testcases/general/constants/const_asserts.dart.weak.outline.expect b/pkg/front_end/testcases/general/constants/const_asserts.dart.weak.outline.expect index 001ad6a7ad5..1aa653d2c54 100644 --- a/pkg/front_end/testcases/general/constants/const_asserts.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/constants/const_asserts.dart.weak.outline.expect @@ -26,7 +26,7 @@ class Foo extends core::Object /*hasConstConstructor*/ { : self::Foo::x = x, assert(x.{core::num::<}(0){(core::num*) →* core::bool*}, x), super core::Object::•() ; const constructor withInvalidCondition(core::int* x) → self::Foo* - : self::Foo::x = x, assert(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/constants/const_asserts.dart:17:51: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. + : self::Foo::x = x, assert(invalid-expression "pkg/front_end/testcases/general/constants/const_asserts.dart:17:51: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. const Foo.withInvalidCondition(this.x) : assert(x); ^" in x as{TypeError} core::bool*), super core::Object::•() ; @@ -94,4 +94,4 @@ Evaluated: StringConcatenation @ org-dartlang-testcase:///const_asserts.dart:15: Evaluated: FactoryConstructorInvocationJudgment @ org-dartlang-testcase:///const_asserts.dart:19:21 -> NullConstant(null) Evaluated: FactoryConstructorInvocationJudgment @ org-dartlang-testcase:///const_asserts.dart:21:22 -> NullConstant(null) Evaluated: ConstructorInvocation @ org-dartlang-testcase:///const_asserts.dart:31:24 -> InstanceConstant(const Foo{Foo.x: 1}) -Extra constant evaluation: evaluated: 48, effectively constant: 7 +Extra constant evaluation: evaluated: 45, effectively constant: 7 diff --git a/pkg/front_end/testcases/general/constants/const_asserts.dart.weak.transformed.expect b/pkg/front_end/testcases/general/constants/const_asserts.dart.weak.transformed.expect index 4dd3ed92aa7..01b518505c8 100644 --- a/pkg/front_end/testcases/general/constants/const_asserts.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/constants/const_asserts.dart.weak.transformed.expect @@ -136,7 +136,7 @@ class Foo extends core::Object /*hasConstConstructor*/ { : self::Foo::x = x, assert(x.{core::num::<}(0){(core::num*) →* core::bool*}, x), super core::Object::•() ; const constructor withInvalidCondition(core::int* x) → self::Foo* - : self::Foo::x = x, assert(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/constants/const_asserts.dart:17:51: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. + : self::Foo::x = x, assert(invalid-expression "pkg/front_end/testcases/general/constants/const_asserts.dart:17:51: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. const Foo.withInvalidCondition(this.x) : assert(x); ^" in x as{TypeError} core::bool*), super core::Object::•() ; @@ -210,7 +210,7 @@ Evaluated: EqualsCall @ org-dartlang-testcase:///const_asserts.dart:11:50 -> Boo Evaluated: StringConcatenation @ org-dartlang-testcase:///const_asserts.dart:12:59 -> StringConstant("foo was false") Evaluated: EqualsCall @ org-dartlang-testcase:///const_asserts.dart:13:50 -> BoolConstant(true) Evaluated: StringConcatenation @ org-dartlang-testcase:///const_asserts.dart:15:73 -> StringConstant("btw foo was false") -Extra constant evaluation: evaluated: 34, effectively constant: 4 +Extra constant evaluation: evaluated: 31, effectively constant: 4 Constructor coverage from constants: diff --git a/pkg/front_end/testcases/general/constants/const_collections.dart.weak.outline.expect b/pkg/front_end/testcases/general/constants/const_collections.dart.weak.outline.expect index 71909acb166..3ab56c97c1d 100644 --- a/pkg/front_end/testcases/general/constants/const_collections.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/constants/const_collections.dart.weak.outline.expect @@ -253,7 +253,7 @@ const Set quxWithMapSpread = {...baz, ...quux}; ^"; static const field core::Set* quxWithCustomIterableSpread1 = self::baz + const self::CustomIterable::•(); static const field core::Set* quxWithCustomIterableSpread2 = self::baz + const self::CustomIterable::•(); -static const field core::Set* quxWithCustomIterableSpread3 = self::baz + const {let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/constants/const_collections.dart:48:59: Error: A value of type 'CustomIterable' can't be assigned to a variable of type 'String'. +static const field core::Set* quxWithCustomIterableSpread3 = self::baz + const {invalid-expression "pkg/front_end/testcases/general/constants/const_collections.dart:48:59: Error: A value of type 'CustomIterable' can't be assigned to a variable of type 'String'. - 'CustomIterable' is from 'pkg/front_end/testcases/general/constants/const_collections.dart'. const Set quxWithCustomIterableSpread3 = {...baz, customIterable}; ^" in self::customIterable as{TypeError} core::String*}; @@ -342,7 +342,6 @@ Evaluated: ConstructorInvocation @ org-dartlang-testcase:///const_collections.da Evaluated: StaticGet @ org-dartlang-testcase:///const_collections.dart:47:54 -> InstanceConstant(const _UnmodifiableSet{_UnmodifiableSet._map: const _ImmutableMap{_ImmutableMap._kvPairs: const ["hello", null, "world", null]}}) Evaluated: ConstructorInvocation @ org-dartlang-testcase:///const_collections.dart:47:62 -> InstanceConstant(const CustomIterable{}) Evaluated: StaticGet @ org-dartlang-testcase:///const_collections.dart:48:54 -> InstanceConstant(const _UnmodifiableSet{_UnmodifiableSet._map: const _ImmutableMap{_ImmutableMap._kvPairs: const ["hello", null, "world", null]}}) -Evaluated: StaticGet @ org-dartlang-testcase:///const_collections.dart:48:59 -> InstanceConstant(const CustomIterable{}) Evaluated: ConstructorInvocation @ org-dartlang-testcase:///const_collections.dart:49:55 -> InstanceConstant(const WithEquals{WithEquals.i: 42}) Evaluated: MapLiteral @ org-dartlang-testcase:///const_collections.dart:53:34 -> InstanceConstant(const _ImmutableMap{_ImmutableMap._kvPairs: const ["hello", "world"]}) Evaluated: MapConcatenation @ org-dartlang-testcase:///const_collections.dart:55:27 -> InstanceConstant(const _ImmutableMap{_ImmutableMap._kvPairs: const ["hello", "world", "!", "bye!"]}) @@ -354,4 +353,4 @@ Evaluated: ConstructorInvocation @ org-dartlang-testcase:///const_collections.da Evaluated: ConstructorInvocation @ org-dartlang-testcase:///const_collections.dart:63:45 -> InstanceConstant(const CustomMap{}) Evaluated: StaticGet @ org-dartlang-testcase:///const_collections.dart:64:51 -> InstanceConstant(const CustomMap{}) Evaluated: ConstructorInvocation @ org-dartlang-testcase:///const_collections.dart:66:9 -> InstanceConstant(const WithEquals{WithEquals.i: 42}) -Extra constant evaluation: evaluated: 90, effectively constant: 59 +Extra constant evaluation: evaluated: 87, effectively constant: 58 diff --git a/pkg/front_end/testcases/general/constants/js_semantics/number_folds.dart.weak.outline.expect b/pkg/front_end/testcases/general/constants/js_semantics/number_folds.dart.weak.outline.expect index 2aa115cc6f3..513f6c7818c 100644 --- a/pkg/front_end/testcases/general/constants/js_semantics/number_folds.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/constants/js_semantics/number_folds.dart.weak.outline.expect @@ -18,7 +18,7 @@ static const field core::int shiftNegative1 = 2.{core::int::<<}(1.{core::int::un static const field core::int shiftNegative2 = 2.{core::int::>>>}(1.{core::int::unary-}(){() → core::int}){(core::int) → core::int}; static const field core::int shiftNegative3 = 2.{core::int::>>}(1.{core::int::unary-}(){() → core::int}){(core::int) → core::int}; static const field core::int modZero = 2.{core::num::%}(0){(core::num) → core::int}; -static const field core::int divZero = let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/constants/js_semantics/number_folds.dart:9:23: Error: A value of type 'double' can't be assigned to a variable of type 'int'. +static const field core::int divZero = invalid-expression "pkg/front_end/testcases/general/constants/js_semantics/number_folds.dart:9:23: Error: A value of type 'double' can't be assigned to a variable of type 'int'. const int divZero = 2 / 0; ^" in 2.{core::num::/}(0){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; static const field core::int intdivZero = 2.{core::num::~/}(0){(core::num) → core::int}; @@ -26,7 +26,7 @@ static const field core::int unaryMinus = 2.{core::int::unary-}(){() → core::i static const field core::int unaryTilde = 2.{core::int::~}(){() → core::int}; static const field core::int unaryPlus = invalid-expression "pkg/front_end/testcases/general/constants/js_semantics/number_folds.dart:13:23: Error: This couldn't be parsed. const int unaryPlus = +2; - ^"{dynamic}.+(2) as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + ^"{}.+(2); static const field core::int binaryPlus = 40.{core::num::+}(2){(core::num) → core::int}; static const field core::int binaryMinus = 44.{core::num::-}(2){(core::num) → core::int}; static const field core::int binaryTimes = 21.{core::num::*}(2){(core::num) → core::int}; @@ -60,7 +60,6 @@ Extra constant evaluation status: Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:5:33 -> DoubleConstant(-1.0) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:6:34 -> DoubleConstant(-1.0) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:7:33 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:9:23 -> DoubleConstant(Infinity) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:11:24 -> DoubleConstant(-2.0) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:12:24 -> DoubleConstant(4294967293.0) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:15:27 -> DoubleConstant(42.0) @@ -85,4 +84,4 @@ Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:36:36 Evaluated: AsExpression @ org-dartlang-testcase:///number_folds.dart:39:43 -> NullConstant(null) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:40:27 -> DoubleConstant(NaN) Evaluated: StaticGet @ org-dartlang-testcase:///number_folds.dart:41:42 -> DoubleConstant(NaN) -Extra constant evaluation: evaluated: 40, effectively constant: 28 +Extra constant evaluation: evaluated: 36, effectively constant: 27 diff --git a/pkg/front_end/testcases/general/constants/js_semantics/number_folds_opt_out.dart.weak.outline.expect b/pkg/front_end/testcases/general/constants/js_semantics/number_folds_opt_out.dart.weak.outline.expect index 92d83009ad7..d03c3a1cd1d 100644 --- a/pkg/front_end/testcases/general/constants/js_semantics/number_folds_opt_out.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/constants/js_semantics/number_folds_opt_out.dart.weak.outline.expect @@ -17,7 +17,7 @@ import "dart:core" as core; static const field core::int* shiftNegative1 = 2.{core::int::<<}(1.{core::int::unary-}(){() →* core::int*}){(core::int*) →* core::int*}; static const field core::int* shiftNegative3 = 2.{core::int::>>}(1.{core::int::unary-}(){() →* core::int*}){(core::int*) →* core::int*}; static const field core::int* modZero = 2.{core::num::%}(0){(core::num*) →* core::int*}; -static const field core::int* divZero = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/constants/js_semantics/number_folds_opt_out.dart:10:23: Error: A value of type 'double' can't be assigned to a variable of type 'int'. +static const field core::int* divZero = invalid-expression "pkg/front_end/testcases/general/constants/js_semantics/number_folds_opt_out.dart:10:23: Error: A value of type 'double' can't be assigned to a variable of type 'int'. const int divZero = 2 / 0; ^" in 2.{core::num::/}(0){(core::num*) →* core::double*} as{TypeError} core::int*; static const field core::int* intdivZero = 2.{core::num::~/}(0){(core::num*) →* core::int*}; @@ -25,7 +25,7 @@ static const field core::int* unaryMinus = 2.{core::int::unary-}(){() →* core: static const field core::int* unaryTilde = 2.{core::int::~}(){() →* core::int*}; static const field core::int* unaryPlus = invalid-expression "pkg/front_end/testcases/general/constants/js_semantics/number_folds_opt_out.dart:14:23: Error: This couldn't be parsed. const int unaryPlus = +2; - ^"{dynamic}.+(2) as{TypeError,ForDynamic} core::int*; + ^"{}.+(2); static const field core::int* binaryPlus = 40.{core::num::+}(2){(core::num*) →* core::int*}; static const field core::int* binaryMinus = 44.{core::num::-}(2){(core::num*) →* core::int*}; static const field core::int* binaryTimes = 21.{core::num::*}(2){(core::num*) →* core::int*}; @@ -55,7 +55,6 @@ static method main() → dynamic Extra constant evaluation status: Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:7:33 -> DoubleConstant(-1.0) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:8:33 -> DoubleConstant(-1.0) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:10:23 -> DoubleConstant(Infinity) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:12:24 -> DoubleConstant(-2.0) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:13:24 -> DoubleConstant(4294967293.0) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:16:27 -> DoubleConstant(42.0) @@ -77,4 +76,4 @@ Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.da Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:34:36 -> DoubleConstant(42.0) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:37:27 -> DoubleConstant(NaN) Evaluated: StaticGet @ org-dartlang-testcase:///number_folds_opt_out.dart:38:42 -> DoubleConstant(NaN) -Extra constant evaluation: evaluated: 35, effectively constant: 24 +Extra constant evaluation: evaluated: 31, effectively constant: 23 diff --git a/pkg/front_end/testcases/general/constants/number_folds.dart.weak.outline.expect b/pkg/front_end/testcases/general/constants/number_folds.dart.weak.outline.expect index 5840a2fcc3f..5407b2ee945 100644 --- a/pkg/front_end/testcases/general/constants/number_folds.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/constants/number_folds.dart.weak.outline.expect @@ -18,7 +18,7 @@ static const field core::int shiftNegative1 = 2.{core::int::<<}(1.{core::int::un static const field core::int shiftNegative2 = 2.{core::int::>>>}(1.{core::int::unary-}(){() → core::int}){(core::int) → core::int}; static const field core::int shiftNegative3 = 2.{core::int::>>}(1.{core::int::unary-}(){() → core::int}){(core::int) → core::int}; static const field core::int modZero = 2.{core::num::%}(0){(core::num) → core::int}; -static const field core::int divZero = let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/constants/number_folds.dart:9:23: Error: A value of type 'double' can't be assigned to a variable of type 'int'. +static const field core::int divZero = invalid-expression "pkg/front_end/testcases/general/constants/number_folds.dart:9:23: Error: A value of type 'double' can't be assigned to a variable of type 'int'. const int divZero = 2 / 0; ^" in 2.{core::num::/}(0){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; static const field core::int intdivZero = 2.{core::num::~/}(0){(core::num) → core::int}; @@ -26,7 +26,7 @@ static const field core::int unaryMinus = 2.{core::int::unary-}(){() → core::i static const field core::int unaryTilde = 2.{core::int::~}(){() → core::int}; static const field core::int unaryPlus = invalid-expression "pkg/front_end/testcases/general/constants/number_folds.dart:13:23: Error: This couldn't be parsed. const int unaryPlus = +2; - ^"{dynamic}.+(2) as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + ^"{}.+(2); static const field core::int binaryPlus = 40.{core::num::+}(2){(core::num) → core::int}; static const field core::int binaryMinus = 44.{core::num::-}(2){(core::num) → core::int}; static const field core::int binaryTimes = 21.{core::num::*}(2){(core::num) → core::int}; @@ -58,7 +58,6 @@ Extra constant evaluation status: Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:5:33 -> IntConstant(-1) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:6:34 -> IntConstant(-1) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:7:33 -> IntConstant(-1) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:9:23 -> DoubleConstant(Infinity) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:11:24 -> IntConstant(-2) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:12:24 -> IntConstant(-3) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:15:27 -> IntConstant(42) @@ -82,4 +81,4 @@ Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:35:36 Evaluated: AsExpression @ org-dartlang-testcase:///number_folds.dart:38:43 -> NullConstant(null) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds.dart:39:27 -> DoubleConstant(NaN) Evaluated: StaticGet @ org-dartlang-testcase:///number_folds.dart:40:42 -> DoubleConstant(NaN) -Extra constant evaluation: evaluated: 39, effectively constant: 27 +Extra constant evaluation: evaluated: 35, effectively constant: 26 diff --git a/pkg/front_end/testcases/general/constants/number_folds_opt_out.dart.weak.outline.expect b/pkg/front_end/testcases/general/constants/number_folds_opt_out.dart.weak.outline.expect index d84f48c5709..ccf0ec35b87 100644 --- a/pkg/front_end/testcases/general/constants/number_folds_opt_out.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/constants/number_folds_opt_out.dart.weak.outline.expect @@ -17,7 +17,7 @@ import "dart:core" as core; static const field core::int* shiftNegative1 = 2.{core::int::<<}(1.{core::int::unary-}(){() →* core::int*}){(core::int*) →* core::int*}; static const field core::int* shiftNegative3 = 2.{core::int::>>}(1.{core::int::unary-}(){() →* core::int*}){(core::int*) →* core::int*}; static const field core::int* modZero = 2.{core::num::%}(0){(core::num*) →* core::int*}; -static const field core::int* divZero = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/constants/number_folds_opt_out.dart:10:23: Error: A value of type 'double' can't be assigned to a variable of type 'int'. +static const field core::int* divZero = invalid-expression "pkg/front_end/testcases/general/constants/number_folds_opt_out.dart:10:23: Error: A value of type 'double' can't be assigned to a variable of type 'int'. const int divZero = 2 / 0; ^" in 2.{core::num::/}(0){(core::num*) →* core::double*} as{TypeError} core::int*; static const field core::int* intdivZero = 2.{core::num::~/}(0){(core::num*) →* core::int*}; @@ -25,7 +25,7 @@ static const field core::int* unaryMinus = 2.{core::int::unary-}(){() →* core: static const field core::int* unaryTilde = 2.{core::int::~}(){() →* core::int*}; static const field core::int* unaryPlus = invalid-expression "pkg/front_end/testcases/general/constants/number_folds_opt_out.dart:14:23: Error: This couldn't be parsed. const int unaryPlus = +2; - ^"{dynamic}.+(2) as{TypeError,ForDynamic} core::int*; + ^"{}.+(2); static const field core::int* binaryPlus = 40.{core::num::+}(2){(core::num*) →* core::int*}; static const field core::int* binaryMinus = 44.{core::num::-}(2){(core::num*) →* core::int*}; static const field core::int* binaryTimes = 21.{core::num::*}(2){(core::num*) →* core::int*}; @@ -53,7 +53,6 @@ static method main() → dynamic Extra constant evaluation status: Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:7:33 -> IntConstant(-1) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:8:33 -> IntConstant(-1) -Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:10:23 -> DoubleConstant(Infinity) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:12:24 -> IntConstant(-2) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:13:24 -> IntConstant(-3) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:16:27 -> IntConstant(42) @@ -74,4 +73,4 @@ Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.da Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:33:36 -> IntConstant(42) Evaluated: InstanceInvocation @ org-dartlang-testcase:///number_folds_opt_out.dart:36:27 -> DoubleConstant(NaN) Evaluated: StaticGet @ org-dartlang-testcase:///number_folds_opt_out.dart:37:42 -> DoubleConstant(NaN) -Extra constant evaluation: evaluated: 34, effectively constant: 23 +Extra constant evaluation: evaluated: 30, effectively constant: 22 diff --git a/pkg/front_end/testcases/general/constants/various.dart.weak.expect b/pkg/front_end/testcases/general/constants/various.dart.weak.expect index 1cde25c6ff3..37e01f5f88c 100644 --- a/pkg/front_end/testcases/general/constants/various.dart.weak.expect +++ b/pkg/front_end/testcases/general/constants/various.dart.weak.expect @@ -452,7 +452,7 @@ class ConstClassWithFinalFields1 extends core::Object /*hasConstConstructor*/ { } class ConstClassWithFinalFields2 extends core::Object /*hasConstConstructor*/ { final field core::int* y = 1; - final field dynamic z1 = this.{self::ConstClassWithFinalFields2::y}{core::int*}; + final field invalid-type z1 = this.{self::ConstClassWithFinalFields2::y}{core::int*}; final field core::int* z2 = self::x; const constructor •() → self::ConstClassWithFinalFields2* : super core::Object::•() @@ -523,10 +523,10 @@ static const field core::int* x2 = invalid-expression "Constant evaluation has n static const field core::int* x3 = invalid-expression "The invocation of 'x' is not allowed in a constant expression."; static const field core::int* x4 = invalid-expression "The invocation of 'x' is not allowed in a constant expression."; static const field core::int* y = #C12; -static const field dynamic y1 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:82:14: Error: Setter not found: 'y'. +static const field invalid-type y1 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:82:14: Error: Setter not found: 'y'. const y1 = --y; ^"; -static const field dynamic y2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:83:14: Error: Setter not found: 'y'. +static const field invalid-type y2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:83:14: Error: Setter not found: 'y'. const y2 = ++y; ^"; static const field core::int* y3 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:84:12: Error: Setter not found: 'y'. @@ -559,7 +559,7 @@ static const field core::int* circularity1 = invalid-expression "Constant expres static const field core::int* circularity2 = invalid-expression "Constant expression depends on itself."; static const field core::int* circularity3 = invalid-expression "Constant expression depends on itself."; static const field core::int* circularity4 = invalid-expression "Constant expression depends on itself."; -static const field dynamic function_const = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:140:24: Error: Not a constant expression. +static const field invalid-type function_const = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:140:24: Error: Not a constant expression. const function_const = () {}; ^^"; static field () →* Null function_var = () → Null {}; @@ -570,7 +570,7 @@ static const field core::bool* classWithTypeArgumentsIdentical = #C1; static field self::ClassWithNonEmptyConstConstructor* classWithNonEmptyConstConstructor = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:168:11: Error: Cannot invoke a non-'const' constructor where a const expression is expected. Try using a constructor or factory that is 'const'. const ClassWithNonEmptyConstConstructor(); - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" as{TypeError,ForDynamic} self::ClassWithNonEmptyConstConstructor*; + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"; static field self::ConstClassWithFinalFields2* constClassWithFinalFields = invalid-expression "The invocation of 'x' is not allowed in a constant expression."; static const field core::bool* zeroPointZeroIdentical = #C3; static const field core::bool* zeroPointZeroIdenticalToZero = #C1; diff --git a/pkg/front_end/testcases/general/constants/various.dart.weak.outline.expect b/pkg/front_end/testcases/general/constants/various.dart.weak.outline.expect index 1023df58487..28ec243fd14 100644 --- a/pkg/front_end/testcases/general/constants/various.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/constants/various.dart.weak.outline.expect @@ -230,7 +230,7 @@ class ConstClassWithFinalFields1 extends core::Object /*hasConstConstructor*/ { } class ConstClassWithFinalFields2 extends core::Object /*hasConstConstructor*/ { final field core::int* y = 1; - final field dynamic z1 = this.{self::ConstClassWithFinalFields2::y}{core::int*}; + final field invalid-type z1 = this.{self::ConstClassWithFinalFields2::y}{core::int*}; final field core::int* z2 = self::x; const constructor •() → self::ConstClassWithFinalFields2* : super core::Object::•() @@ -301,23 +301,23 @@ static const field core::int* x2 = self::x = self::x.{core::num::+}(1){(core::nu static const field core::int* x3 = let final core::int* #t4 = self::x in let final core::int* #t5 = self::x = #t4.{core::num::-}(1){(core::num*) →* core::int*} in #t4; static const field core::int* x4 = let final core::int* #t6 = self::x in let final core::int* #t7 = self::x = #t6.{core::num::+}(1){(core::num*) →* core::int*} in #t6; static const field core::int* y = 1; -static const field dynamic y1 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:82:14: Error: Setter not found: 'y'. +static const field invalid-type y1 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:82:14: Error: Setter not found: 'y'. const y1 = --y; ^"; -static const field dynamic y2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:83:14: Error: Setter not found: 'y'. +static const field invalid-type y2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:83:14: Error: Setter not found: 'y'. const y2 = ++y; ^"; -static const field core::int* y3 = let final core::int* #t8 = self::y in let final dynamic #t9 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:84:12: Error: Setter not found: 'y'. +static const field core::int* y3 = let final core::int* #t8 = self::y in let final invalid-type #t9 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:84:12: Error: Setter not found: 'y'. const y3 = y--; ^" in #t8; -static const field core::int* y4 = let final core::int* #t10 = self::y in let final dynamic #t11 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:85:12: Error: Setter not found: 'y'. +static const field core::int* y4 = let final core::int* #t10 = self::y in let final invalid-type #t11 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:85:12: Error: Setter not found: 'y'. const y4 = y++; ^" in #t10; static field self::AbstractClassWithConstructor* abstractClassWithConstructor; static const field self::ExtendsFoo1* extendsFoo1 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:118:39: Error: Cannot invoke a non-'const' constructor where a const expression is expected. Try using a constructor or factory that is 'const'. const ExtendsFoo1 extendsFoo1 = const ExtendsFoo1(); - ^^^^^^^^^^^" as{TypeError,ForDynamic} self::ExtendsFoo1*; + ^^^^^^^^^^^"; static const field self::ExtendsFoo2* extendsFoo2 = const self::ExtendsFoo2::•(); static const field self::Foo* foo1 = const self::Foo::•(42); static const field self::Foo* foo2 = const self::Foo::•(42); @@ -331,7 +331,7 @@ static const field core::int* circularity1 = self::circularity2; static const field core::int* circularity2 = self::circularity3; static const field core::int* circularity3 = self::circularity4; static const field core::int* circularity4 = self::circularity1; -static const field dynamic function_const = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:140:24: Error: Not a constant expression. +static const field invalid-type function_const = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:140:24: Error: Not a constant expression. const function_const = () {}; ^^"; static field () →* Null function_var; @@ -453,4 +453,4 @@ Evaluated: ConditionalExpression @ org-dartlang-testcase:///various.dart:212:25 Evaluated: ConditionalExpression @ org-dartlang-testcase:///various.dart:213:40 -> BoolConstant(false) Evaluated: ConditionalExpression @ org-dartlang-testcase:///various.dart:214:25 -> NullConstant(null) Evaluated: ConditionalExpression @ org-dartlang-testcase:///various.dart:215:40 -> BoolConstant(false) -Extra constant evaluation: evaluated: 136, effectively constant: 84 +Extra constant evaluation: evaluated: 135, effectively constant: 84 diff --git a/pkg/front_end/testcases/general/constants/various.dart.weak.transformed.expect b/pkg/front_end/testcases/general/constants/various.dart.weak.transformed.expect index f39f9ab957e..72184978d17 100644 --- a/pkg/front_end/testcases/general/constants/various.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/constants/various.dart.weak.transformed.expect @@ -452,7 +452,7 @@ class ConstClassWithFinalFields1 extends core::Object /*hasConstConstructor*/ { } class ConstClassWithFinalFields2 extends core::Object /*hasConstConstructor*/ { final field core::int* y = 1; - final field dynamic z1 = this.{self::ConstClassWithFinalFields2::y}{core::int*}; + final field invalid-type z1 = this.{self::ConstClassWithFinalFields2::y}{core::int*}; final field core::int* z2 = self::x; const constructor •() → self::ConstClassWithFinalFields2* : super core::Object::•() @@ -523,10 +523,10 @@ static const field core::int* x2 = invalid-expression "Constant evaluation has n static const field core::int* x3 = invalid-expression "The invocation of 'x' is not allowed in a constant expression."; static const field core::int* x4 = invalid-expression "The invocation of 'x' is not allowed in a constant expression."; static const field core::int* y = #C12; -static const field dynamic y1 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:82:14: Error: Setter not found: 'y'. +static const field invalid-type y1 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:82:14: Error: Setter not found: 'y'. const y1 = --y; ^"; -static const field dynamic y2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:83:14: Error: Setter not found: 'y'. +static const field invalid-type y2 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:83:14: Error: Setter not found: 'y'. const y2 = ++y; ^"; static const field core::int* y3 = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:84:12: Error: Setter not found: 'y'. @@ -559,7 +559,7 @@ static const field core::int* circularity1 = invalid-expression "Constant expres static const field core::int* circularity2 = invalid-expression "Constant expression depends on itself."; static const field core::int* circularity3 = invalid-expression "Constant expression depends on itself."; static const field core::int* circularity4 = invalid-expression "Constant expression depends on itself."; -static const field dynamic function_const = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:140:24: Error: Not a constant expression. +static const field invalid-type function_const = invalid-expression "pkg/front_end/testcases/general/constants/various.dart:140:24: Error: Not a constant expression. const function_const = () {}; ^^"; static field () →* Null function_var = () → Null {}; diff --git a/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart.weak.expect b/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart.weak.expect index a331c77bf4e..1569bc7e0f6 100644 --- a/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart.weak.expect +++ b/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart.weak.expect @@ -81,7 +81,7 @@ class Foo extends core::Object /*hasConstConstructor*/ { : self::Foo::x = x, assert(x.{core::num::<}(0){(core::num) → core::bool}, x), super core::Object::•() ; const constructor withInvalidCondition(core::int x) → self::Foo - : self::Foo::x = x, assert(let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart:16:51: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. + : self::Foo::x = x, assert(invalid-expression "pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart:16:51: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. const Foo.withInvalidCondition(this.x) : assert(x); ^" in x as{TypeError,ForNonNullableByDefault} core::bool), super core::Object::•() ; diff --git a/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart.weak.outline.expect b/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart.weak.outline.expect index 300a4fa9f5a..4e4e0ece474 100644 --- a/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart.weak.outline.expect @@ -21,7 +21,7 @@ class Foo extends core::Object /*hasConstConstructor*/ { : self::Foo::x = x, assert(x.{core::num::<}(0){(core::num) → core::bool}, x), super core::Object::•() ; const constructor withInvalidCondition(core::int x) → self::Foo - : self::Foo::x = x, assert(let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart:16:51: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. + : self::Foo::x = x, assert(invalid-expression "pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart:16:51: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. const Foo.withInvalidCondition(this.x) : assert(x); ^" in x as{TypeError,ForNonNullableByDefault} core::bool), super core::Object::•() ; @@ -58,4 +58,4 @@ Evaluated with empty environment: FactoryConstructorInvocationJudgment @ org-dar Evaluated with empty environment: StringConcatenation @ org-dartlang-testcase:///const_asserts.dart:14:73 -> StringConstant("btw foo was false") Evaluated with empty environment: FactoryConstructorInvocationJudgment @ org-dartlang-testcase:///const_asserts.dart:14:44 -> BoolConstant(false) Evaluated with empty environment: ConstructorInvocation @ org-dartlang-testcase:///const_asserts.dart:25:24 -> InstanceConstant(const Foo{Foo.x: 1}) -Extra constant evaluation: evaluated: 39, effectively constant: 9 +Extra constant evaluation: evaluated: 36, effectively constant: 9 diff --git a/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart.weak.transformed.expect b/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart.weak.transformed.expect index 3f365fdbff1..a5d5b586dc0 100644 --- a/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart.weak.transformed.expect @@ -81,7 +81,7 @@ class Foo extends core::Object /*hasConstConstructor*/ { : self::Foo::x = x, assert(x.{core::num::<}(0){(core::num) → core::bool}, x), super core::Object::•() ; const constructor withInvalidCondition(core::int x) → self::Foo - : self::Foo::x = x, assert(let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart:16:51: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. + : self::Foo::x = x, assert(invalid-expression "pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/const_asserts.dart:16:51: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. const Foo.withInvalidCondition(this.x) : assert(x); ^" in x as{TypeError,ForNonNullableByDefault} core::bool), super core::Object::•() ; @@ -137,7 +137,7 @@ Evaluated with empty environment: StringConcatenation @ org-dartlang-testcase:// Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///const_asserts.dart:14:44 -> BoolConstant(false) Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///const_asserts.dart:25:24 -> InstanceConstant(const Foo{Foo.x: 1}) Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///const_asserts.dart:25:24 -> InstanceConstant(const Foo{Foo.x: 1}) -Extra constant evaluation: evaluated: 34, effectively constant: 10 +Extra constant evaluation: evaluated: 31, effectively constant: 10 Constructor coverage from constants: diff --git a/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart.weak.expect b/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart.weak.expect index ce2a93544c6..dffcd85ad57 100644 --- a/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart.weak.expect +++ b/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart.weak.expect @@ -91,7 +91,7 @@ class Class extends core::Object /*hasConstConstructor*/ { : this self::Class::•(t as{TypeError,ForDynamic,ForNonNullableByDefault} self::Class::T) ; const constructor method(self::Class::T t) → self::Class - : this self::Class::•(let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart:100:34: Error: The argument type 'A' can't be assigned to the parameter type 'T'. + : this self::Class::•(invalid-expression "pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart:100:34: Error: The argument type 'A' can't be assigned to the parameter type 'T'. - 'A' is from 'pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart'. const Class.method(T t) : this(-t); ^" in t.{self::A::unary-}(){() → self::A} as{TypeError,ForNonNullableByDefault} Never) diff --git a/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart.weak.outline.expect b/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart.weak.outline.expect index f9aaa93d384..7967bf9b3e2 100644 --- a/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart.weak.outline.expect @@ -73,7 +73,7 @@ class Class extends core::Object /*hasConstConstructor*/ { : this self::Class::•(t as{TypeError,ForDynamic,ForNonNullableByDefault} self::Class::T) ; const constructor method(self::Class::T t) → self::Class - : this self::Class::•(let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart:100:34: Error: The argument type 'A' can't be assigned to the parameter type 'T'. + : this self::Class::•(invalid-expression "pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart:100:34: Error: The argument type 'A' can't be assigned to the parameter type 'T'. - 'A' is from 'pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart'. const Class.method(T t) : this(-t); ^" in t.{self::A::unary-}(){() → self::A} as{TypeError,ForNonNullableByDefault} Never) @@ -96,14 +96,14 @@ static const field core::bool? barFromEnvOrNull0 = const core::bool::fromEnviron static const field core::bool barFromEnvOrNull = const core::bool::fromEnvironment("bar", defaultValue: self::barFromEnvOrNull0!); static const field core::bool notBarFromEnvOrNull = !self::barFromEnvOrNull; static const field core::bool conditionalOnNull = self::barFromEnvOrNull ?{core::bool} true : false; -static const field core::bool nullAwareOnNull = let final core::bool #t2 = self::barFromEnvOrNull in #t2 == null ?{core::bool} true : #t2; +static const field core::bool nullAwareOnNull = let final core::bool #t1 = self::barFromEnvOrNull in #t1 == null ?{core::bool} true : #t1; static const field core::bool andOnNull = self::barFromEnvOrNull && true; static const field core::bool andOnNull2 = true && self::barFromEnvOrNull; static const field core::bool orOnNull = self::barFromEnvOrNull || true; static const field core::bool orOnNull2 = self::barFromEnvOrNull || false; static const field core::bool orOnNull3 = true || self::barFromEnvOrNull; static const field core::bool orOnNull4 = false || self::barFromEnvOrNull; -static const field core::int fromDeferredLib = let final dynamic #t3 = CheckLibraryIsLoaded(lib) in var::x; +static const field core::int fromDeferredLib = let final dynamic #t2 = CheckLibraryIsLoaded(lib) in var::x; static const field self::Foo x = const self::Foo::•(42); static const field core::bool? y = true; static const field core::bool z = !self::y!; @@ -228,4 +228,4 @@ Evaluated with empty environment: ConditionalExpression @ org-dartlang-testcase: Evaluated with empty environment: FactoryConstructorInvocationJudgment @ org-dartlang-testcase:///various.dart:130:10 -> BoolConstant(false) Evaluated with empty environment: StaticGet @ org-dartlang-testcase:///various.dart:130:35 -> BoolConstant(false) Evaluated with empty environment: StaticGet @ org-dartlang-testcase:///various.dart:131:37 -> NullConstant(null) -Extra constant evaluation: evaluated: 112, effectively constant: 69 +Extra constant evaluation: evaluated: 108, effectively constant: 69 diff --git a/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart.weak.transformed.expect b/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart.weak.transformed.expect index fef7a5540aa..e35282c6946 100644 --- a/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart.weak.transformed.expect @@ -91,7 +91,7 @@ class Class extends core::Object /*hasConstConstructor*/ { : this self::Class::•(t as{TypeError,ForDynamic,ForNonNullableByDefault} self::Class::T) ; const constructor method(self::Class::T t) → self::Class - : this self::Class::•(let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart:100:34: Error: The argument type 'A' can't be assigned to the parameter type 'T'. + : this self::Class::•(invalid-expression "pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart:100:34: Error: The argument type 'A' can't be assigned to the parameter type 'T'. - 'A' is from 'pkg/front_end/testcases/general/constants/with_unevaluated_agnostic/various.dart'. const Class.method(T t) : this(-t); ^" in t.{self::A::unary-}(){() → self::A} as{TypeError,ForNonNullableByDefault} Never) @@ -272,7 +272,7 @@ Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:/// Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///various.dart:127:35 -> BoolConstant(false) Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///various.dart:128:33 -> BoolConstant(true) Evaluated with empty environment: ConstantExpression @ org-dartlang-testcase:///various.dart:130:33 -> NullConstant(null) -Extra constant evaluation: evaluated: 66, effectively constant: 24 +Extra constant evaluation: evaluated: 62, effectively constant: 24 Constructor coverage from constants: diff --git a/pkg/front_end/testcases/general/constructor_initializer_invalid.dart.weak.expect b/pkg/front_end/testcases/general/constructor_initializer_invalid.dart.weak.expect index 79f15956b85..69f8ec9e842 100644 --- a/pkg/front_end/testcases/general/constructor_initializer_invalid.dart.weak.expect +++ b/pkg/front_end/testcases/general/constructor_initializer_invalid.dart.weak.expect @@ -46,7 +46,7 @@ class C2 extends core::Object { constructor •() → self::C2* : self::C2::f = invalid-expression "pkg/front_end/testcases/general/constructor_initializer_invalid.dart:6:27: Error: This couldn't be parsed. class C2 { int f; C2() : f; } - ^" as{TypeError,ForDynamic} core::int*, super core::Object::•() + ^", super core::Object::•() ; abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf diff --git a/pkg/front_end/testcases/general/continue_inference_after_error.dart.weak.expect b/pkg/front_end/testcases/general/continue_inference_after_error.dart.weak.expect index d9400d1cf82..b683ad89655 100644 --- a/pkg/front_end/testcases/general/continue_inference_after_error.dart.weak.expect +++ b/pkg/front_end/testcases/general/continue_inference_after_error.dart.weak.expect @@ -33,9 +33,9 @@ class C extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method test() → dynamic { - let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/continue_inference_after_error.dart:10:3: Error: A prefix can't be used as an expression. + invalid-expression "pkg/front_end/testcases/general/continue_inference_after_error.dart:10:3: Error: A prefix can't be used as an expression. lib(new C().missing()); - ^^^" in let final core::Object* #t2 = invalid-expression "pkg/front_end/testcases/general/continue_inference_after_error.dart:10:15: Error: The method 'missing' isn't defined for the class 'C'. + ^^^" in let final core::Object* #t1 = invalid-expression "pkg/front_end/testcases/general/continue_inference_after_error.dart:10:15: Error: The method 'missing' isn't defined for the class 'C'. - 'C' is from 'pkg/front_end/testcases/general/continue_inference_after_error.dart'. Try correcting the name to the name of an existing method, or defining a method named 'missing'. lib(new C().missing()); diff --git a/pkg/front_end/testcases/general/continue_inference_after_error.dart.weak.transformed.expect b/pkg/front_end/testcases/general/continue_inference_after_error.dart.weak.transformed.expect index d9400d1cf82..b683ad89655 100644 --- a/pkg/front_end/testcases/general/continue_inference_after_error.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/continue_inference_after_error.dart.weak.transformed.expect @@ -33,9 +33,9 @@ class C extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method test() → dynamic { - let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/continue_inference_after_error.dart:10:3: Error: A prefix can't be used as an expression. + invalid-expression "pkg/front_end/testcases/general/continue_inference_after_error.dart:10:3: Error: A prefix can't be used as an expression. lib(new C().missing()); - ^^^" in let final core::Object* #t2 = invalid-expression "pkg/front_end/testcases/general/continue_inference_after_error.dart:10:15: Error: The method 'missing' isn't defined for the class 'C'. + ^^^" in let final core::Object* #t1 = invalid-expression "pkg/front_end/testcases/general/continue_inference_after_error.dart:10:15: Error: The method 'missing' isn't defined for the class 'C'. - 'C' is from 'pkg/front_end/testcases/general/continue_inference_after_error.dart'. Try correcting the name to the name of an existing method, or defining a method named 'missing'. lib(new C().missing()); diff --git a/pkg/front_end/testcases/general/control_flow_collection_inference.dart.weak.expect b/pkg/front_end/testcases/general/control_flow_collection_inference.dart.weak.expect index 2a12c98ba3c..2ebf6f7badc 100644 --- a/pkg/front_end/testcases/general/control_flow_collection_inference.dart.weak.expect +++ b/pkg/front_end/testcases/general/control_flow_collection_inference.dart.weak.expect @@ -950,67 +950,67 @@ static method testIfElementErrors(core::Map* map) → dy block { final core::List* #t99 = []; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t99.{core::List::add}{Invariant}(let final Never* #t100 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:87:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t99.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:87:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. [if (oracle(\"foo\")) \"bar\"]; ^" in "bar" as{TypeError} core::int*){(core::int*) →* void}; } =>#t99; block { - final core::Set* #t101 = col::LinkedHashSet::•(); + final core::Set* #t100 = col::LinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t101.{core::Set::add}{Invariant}(let final Never* #t102 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:88:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t100.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:88:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {if (oracle(\"foo\")) \"bar\", null}; ^" in "bar" as{TypeError} core::int*){(core::int*) →* core::bool*}; - #t101.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t101; + #t100.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t100; block { - final core::Map* #t103 = {}; + final core::Map* #t101 = {}; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t103.{core::Map::[]=}{Invariant}("bar", let final Never* #t104 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:89:43: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t101.{core::Map::[]=}{Invariant}("bar", invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:89:43: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {if (oracle(\"foo\")) \"bar\": \"bar\", \"baz\": null}; ^" in "bar" as{TypeError} core::int*){(core::String*, core::int*) →* void}; - #t103.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t103; + #t101.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t101; block { - final core::List* #t105 = []; + final core::List* #t102 = []; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t105.{core::List::addAll}{Invariant}([let final Never* #t106 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:90:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t102.{core::List::addAll}{Invariant}([invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:90:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. [if (oracle(\"foo\")) ...[\"bar\"]]; ^" in "bar" as{TypeError} core::int*]){(core::Iterable*) →* void}; - } =>#t105; + } =>#t102; block { - final core::Set* #t107 = col::LinkedHashSet::•(); + final core::Set* #t103 = col::LinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t107.{core::Set::addAll}{Invariant}([let final Never* #t108 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:91:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t103.{core::Set::addAll}{Invariant}([invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:91:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {if (oracle(\"foo\")) ...[\"bar\"], null}; ^" in "bar" as{TypeError} core::int*]){(core::Iterable*) →* void}; - #t107.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t107; + #t103.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t103; block { - final core::Map* #t109 = {}; + final core::Map* #t104 = {}; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - for (final core::MapEntry* #t110 in {"bar": let final Never* #t111 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:92:47: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + for (final core::MapEntry* #t105 in {"bar": invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:92:47: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {if (oracle(\"foo\")) ...{\"bar\": \"bar\"}, \"baz\": null}; ^" in "bar" as{TypeError} core::int*}.{core::Map::entries}{core::Iterable>}) - #t109.{core::Map::[]=}{Invariant}(#t110.{core::MapEntry::key}{core::String*}, #t110.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; - #t109.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t109; + #t104.{core::Map::[]=}{Invariant}(#t105.{core::MapEntry::key}{core::String*}, #t105.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + #t104.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t104; block { - final core::List* #t112 = []; + final core::List* #t106 = []; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t112.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:93:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t106.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:93:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [if (oracle(\"foo\")) ...map]; ^"){(core::int*) →* void}; - } =>#t112; + } =>#t106; block { - final core::Set* #t113 = col::LinkedHashSet::•(); + final core::Set* #t107 = col::LinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t113.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:94:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t107.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:94:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {if (oracle(\"foo\")) ...map, null}; ^"){(core::int*) →* core::bool*}; - #t113.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t113; + #t107.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t107; {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:95:39: Error: Unexpected type 'List' of a map spread entry. Expected 'dynamic' or a Map. - 'List' is from 'dart:core'. {if (oracle(\"foo\")) ...[\"bar\"], \"baz\": null}; @@ -1019,61 +1019,61 @@ static method testIfElementErrors(core::Map* map) → dy {if (oracle(\"foo\")) ...[\"bar\"], \"baz\": null}; ^": null}; block { - final core::List* #t114 = []; + final core::List* #t108 = []; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t114.{core::List::add}{Invariant}(let final Never* #t115 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:96:31: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t108.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:96:31: Error: A value of type 'int' can't be assigned to a variable of type 'String'. [if (oracle(\"foo\")) 42 else 3.14]; ^" in 42 as{TypeError} core::String*){(core::String*) →* void}; else - #t114.{core::List::add}{Invariant}(let final Never* #t116 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:96:39: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + #t108.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:96:39: Error: A value of type 'double' can't be assigned to a variable of type 'String'. [if (oracle(\"foo\")) 42 else 3.14]; ^" in 3.14 as{TypeError} core::String*){(core::String*) →* void}; - } =>#t114; + } =>#t108; block { - final core::Set* #t117 = col::LinkedHashSet::•(); + final core::Set* #t109 = col::LinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t117.{core::Set::add}{Invariant}(let final Never* #t118 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:97:31: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t109.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:97:31: Error: A value of type 'int' can't be assigned to a variable of type 'String'. {if (oracle(\"foo\")) 42 else 3.14, null}; ^" in 42 as{TypeError} core::String*){(core::String*) →* core::bool*}; else - #t117.{core::Set::add}{Invariant}(let final Never* #t119 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:97:39: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + #t109.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:97:39: Error: A value of type 'double' can't be assigned to a variable of type 'String'. {if (oracle(\"foo\")) 42 else 3.14, null}; ^" in 3.14 as{TypeError} core::String*){(core::String*) →* core::bool*}; - #t117.{core::Set::add}{Invariant}(null){(core::String*) →* core::bool*}; - } =>#t117; + #t109.{core::Set::add}{Invariant}(null){(core::String*) →* core::bool*}; + } =>#t109; block { - final core::Map* #t120 = {}; + final core::Map* #t110 = {}; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t120.{core::Map::[]=}{Invariant}("bar", let final Never* #t121 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:98:46: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t110.{core::Map::[]=}{Invariant}("bar", invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:98:46: Error: A value of type 'int' can't be assigned to a variable of type 'String'. {if (oracle(\"foo\")) \"bar\": 42 else \"baz\": 3.14, \"baz\": null}; ^" in 42 as{TypeError} core::String*){(core::String*, core::String*) →* void}; else - #t120.{core::Map::[]=}{Invariant}("baz", let final Never* #t122 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:98:61: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + #t110.{core::Map::[]=}{Invariant}("baz", invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:98:61: Error: A value of type 'double' can't be assigned to a variable of type 'String'. {if (oracle(\"foo\")) \"bar\": 42 else \"baz\": 3.14, \"baz\": null}; ^" in 3.14 as{TypeError} core::String*){(core::String*, core::String*) →* void}; - #t120.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::String*) →* void}; - } =>#t120; + #t110.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::String*) →* void}; + } =>#t110; block { - final core::List* #t123 = []; + final core::List* #t111 = []; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t123.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:99:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t111.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:99:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [if (oracle(\"foo\")) ...map else 42]; ^"){(core::int*) →* void}; else - #t123.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t123; + #t111.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t111; block { - final core::Set* #t124 = col::LinkedHashSet::•(); + final core::Set* #t112 = col::LinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t124.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:100:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t112.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/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}; ^"){(core::int*) →* core::bool*}; else - #t124.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - #t124.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t124; + #t112.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t112.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t112; {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:101:39: Error: Unexpected type 'List' of a map spread entry. Expected 'dynamic' or a Map. - 'List' is from 'dart:core'. {if (oracle(\"foo\")) ...[42] else \"bar\": 42, \"baz\": null}; @@ -1082,26 +1082,26 @@ static method testIfElementErrors(core::Map* map) → dy {if (oracle(\"foo\")) ...[42] else \"bar\": 42, \"baz\": null}; ^": null}; block { - final core::List* #t125 = []; + final core::List* #t113 = []; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t125.{core::List::add}{Invariant}(42){(core::int*) →* void}; + #t113.{core::List::add}{Invariant}(42){(core::int*) →* void}; else - #t125.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:102:39: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t113.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:102:39: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [if (oracle(\"foo\")) 42 else ...map]; ^"){(core::int*) →* void}; - } =>#t125; + } =>#t113; block { - final core::Set* #t126 = col::LinkedHashSet::•(); + final core::Set* #t114 = col::LinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t126.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:103:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t114.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:103: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}; ^"){(core::int*) →* core::bool*}; else - #t126.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - #t126.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t126; + #t114.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t114.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t114; {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:104:54: Error: Unexpected type 'List' of a map spread entry. Expected 'dynamic' or a Map. - 'List' is from 'dart:core'. {if (oracle(\"foo\")) \"bar\": 42 else ...[42], \"baz\": null}; @@ -1121,716 +1121,716 @@ static method testIfElementErrors(core::Map* map) → dy core::Map* map11 = {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:109:70: Error: Expected ':' after this. Map map11 = {if (oracle(\"foo\")) \"bar\": 3.14 else 42}; ^": null}; - core::Map* map12 = {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:110:35: Error: Expected ':' after this. + core::Map* map12 = {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:110:35: Error: Expected ':' after this. var map12 = {if (oracle(\"foo\")) 42 else \"bar\": 3.14}; ^": null}; - core::Map* map13 = {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:111:52: Error: Expected ':' after this. + core::Map* map13 = {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:111:52: Error: Expected ':' after this. var map13 = {if (oracle(\"foo\")) \"bar\": 3.14 else 42}; ^": null}; core::List* list20 = block { - final core::List* #t127 = []; - if(let final Never* #t128 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:112:27: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. + final core::List* #t115 = []; + if(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:112:27: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. List list20 = [if (42) 42]; ^" in 42 as{TypeError} core::bool*) - #t127.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t127; + #t115.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t115; core::Set* set20 = block { - final core::Set* #t129 = col::LinkedHashSet::•(); - if(let final Never* #t130 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:113:25: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. + final core::Set* #t116 = col::LinkedHashSet::•(); + if(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:113:25: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. Set set20 = {if (42) 42}; ^" in 42 as{TypeError} core::bool*) - #t129.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - } =>#t129; + #t116.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + } =>#t116; core::Map* map30 = block { - final core::Map* #t131 = {}; - if(let final Never* #t132 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:114:30: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. + final core::Map* #t117 = {}; + if(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:114:30: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. Map map30 = {if (42) 42: 42}; ^" in 42 as{TypeError} core::bool*) - #t131.{core::Map::[]=}{Invariant}(42, 42){(core::int*, core::int*) →* void}; - } =>#t131; + #t117.{core::Map::[]=}{Invariant}(42, 42){(core::int*, core::int*) →* void}; + } =>#t117; core::List* list40 = block { - final core::List* #t133 = []; + final core::List* #t118 = []; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t133.{core::List::add}{Invariant}(let final Never* #t134 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:115:53: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. + #t118.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:115:53: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. List list40 = [if (oracle(\"foo\")) true else 42]; ^" in true as{TypeError} core::String*){(core::String*) →* void}; else - #t133.{core::List::add}{Invariant}(let final Never* #t135 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:115:63: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t118.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:115:63: Error: A value of type 'int' can't be assigned to a variable of type 'String'. List list40 = [if (oracle(\"foo\")) true else 42]; ^" in 42 as{TypeError} core::String*){(core::String*) →* void}; - } =>#t133; + } =>#t118; core::Set* set40 = block { - final core::Set* #t136 = col::LinkedHashSet::•(); + final core::Set* #t119 = col::LinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t136.{core::Set::add}{Invariant}(let final Never* #t137 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:116:51: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. + #t119.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:116:51: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. Set set40 = {if (oracle(\"foo\")) true else 42}; ^" in true as{TypeError} core::String*){(core::String*) →* core::bool*}; else - #t136.{core::Set::add}{Invariant}(let final Never* #t138 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:116:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t119.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:116:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. Set set40 = {if (oracle(\"foo\")) true else 42}; ^" in 42 as{TypeError} core::String*){(core::String*) →* core::bool*}; - } =>#t136; + } =>#t119; core::Map* map40 = block { - final core::Map* #t139 = {}; + final core::Map* #t120 = {}; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t139.{core::Map::[]=}{Invariant}(let final Never* #t140 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:117:61: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. + #t120.{core::Map::[]=}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:117:61: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. Map map40 = {if (oracle(\"foo\")) true: 42 else 42: 42}; ^" in true as{TypeError} core::String*, 42){(core::String*, core::int*) →* void}; else - #t139.{core::Map::[]=}{Invariant}(let final Never* #t141 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:117:75: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t120.{core::Map::[]=}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:117:75: Error: A value of type 'int' can't be assigned to a variable of type 'String'. Map map40 = {if (oracle(\"foo\")) true: 42 else 42: 42}; ^" in 42 as{TypeError} core::String*, 42){(core::String*, core::int*) →* void}; - } =>#t139; + } =>#t120; core::Map* map41 = block { - final core::Map* #t142 = {}; + final core::Map* #t121 = {}; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t142.{core::Map::[]=}{Invariant}(42, let final Never* #t143 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:118:65: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. + #t121.{core::Map::[]=}{Invariant}(42, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:118:65: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. Map map41 = {if (oracle(\"foo\")) 42: true else 42: 42}; ^" in true as{TypeError} core::String*){(core::int*, core::String*) →* void}; else - #t142.{core::Map::[]=}{Invariant}(42, let final Never* #t144 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:118:79: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t121.{core::Map::[]=}{Invariant}(42, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:118:79: Error: A value of type 'int' can't be assigned to a variable of type 'String'. Map map41 = {if (oracle(\"foo\")) 42: true else 42: 42}; ^" in 42 as{TypeError} core::String*){(core::int*, core::String*) →* void}; - } =>#t142; + } =>#t121; } static method testForElement(dynamic dynVar, core::List* listInt, core::List* listDouble, core::int* index, core::Map* mapStringInt, core::Map* mapStringDouble) → dynamic { core::List* list10 = block { - final core::List* #t145 = []; + final core::List* #t122 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t145.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t145; + #t122.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t122; core::Set* set10 = block { - final core::Set* #t146 = col::LinkedHashSet::•(); + final core::Set* #t123 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t146.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - #t146.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t146; + #t123.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t123.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t123; core::Map* map10 = block { - final core::Map* #t147 = {}; + final core::Map* #t124 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t147.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; - #t147.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t147; + #t124.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; + #t124.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t124; core::List* list11 = block { - final core::List* #t148 = []; + final core::List* #t125 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t148.{core::List::add}{Invariant}(dynVar){(dynamic) →* void}; - } =>#t148; + #t125.{core::List::add}{Invariant}(dynVar){(dynamic) →* void}; + } =>#t125; core::Set* set11 = block { - final core::Set* #t149 = col::LinkedHashSet::•(); + final core::Set* #t126 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t149.{core::Set::add}{Invariant}(dynVar){(dynamic) →* core::bool*}; - #t149.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; - } =>#t149; + #t126.{core::Set::add}{Invariant}(dynVar){(dynamic) →* core::bool*}; + #t126.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; + } =>#t126; core::Map* map11 = block { - final core::Map* #t150 = {}; + final core::Map* #t127 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t150.{core::Map::[]=}{Invariant}("bar", dynVar){(core::String*, dynamic) →* void}; - #t150.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; - } =>#t150; + #t127.{core::Map::[]=}{Invariant}("bar", dynVar){(core::String*, dynamic) →* void}; + #t127.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; + } =>#t127; core::List*>* list12 = block { + final core::List*>* #t128 = *>[]; + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + #t128.{core::List::add}{Invariant}([42]){(core::List*) →* void}; + } =>#t128; + core::Set*>* set12 = block { + final core::Set*>* #t129 = col::LinkedHashSet::•*>(); + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + #t129.{core::Set::add}{Invariant}([42]){(core::List*) →* core::bool*}; + #t129.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t129; + core::Map*>* map12 = block { + final core::Map*>* #t130 = *>{}; + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + #t130.{core::Map::[]=}{Invariant}("bar", [42]){(core::String*, core::List*) →* void}; + #t130.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t130; + core::List* list20 = block { + final core::List* #t131 = []; + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + #t131.{core::List::addAll}{Invariant}([42]){(core::Iterable*) →* void}; + } =>#t131; + core::Set* set20 = block { + final core::Set* #t132 = col::LinkedHashSet::•(); + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + #t132.{core::Set::addAll}{Invariant}([42]){(core::Iterable*) →* void}; + #t132.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t132; + core::Map* map20 = block { + final core::Map* #t133 = {}; + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + for (final core::MapEntry* #t134 in {"bar": 42}.{core::Map::entries}{core::Iterable>}) + #t133.{core::Map::[]=}{Invariant}(#t134.{core::MapEntry::key}{core::String*}, #t134.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + #t133.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t133; + core::List* list21 = block { + final core::List* #t135 = []; + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + #t135.{core::List::addAll}{Invariant}([dynVar]){(core::Iterable*) →* void}; + } =>#t135; + core::Set* set21 = block { + final core::Set* #t136 = col::LinkedHashSet::•(); + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + #t136.{core::Set::addAll}{Invariant}([dynVar]){(core::Iterable*) →* void}; + #t136.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; + } =>#t136; + core::Map* map21 = block { + final core::Map* #t137 = {}; + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + for (final core::MapEntry* #t138 in {"bar": dynVar}.{core::Map::entries}{core::Iterable>}) + #t137.{core::Map::[]=}{Invariant}(#t138.{core::MapEntry::key}{core::String*}, #t138.{core::MapEntry::value}{dynamic}){(core::String*, dynamic) →* void}; + #t137.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; + } =>#t137; + core::List*>* list22 = block { + final core::List*>* #t139 = *>[]; + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + #t139.{core::List::addAll}{Invariant}(*>[[42]]){(core::Iterable*>*) →* void}; + } =>#t139; + core::Set*>* set22 = block { + final core::Set*>* #t140 = col::LinkedHashSet::•*>(); + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + #t140.{core::Set::addAll}{Invariant}(*>[[42]]){(core::Iterable*>*) →* void}; + #t140.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t140; + core::Map*>* map22 = block { + final core::Map*>* #t141 = *>{}; + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + for (final core::MapEntry*>* #t142 in *>{"bar": [42]}.{core::Map::entries}{core::Iterable*>>}) + #t141.{core::Map::[]=}{Invariant}(#t142.{core::MapEntry::key}{core::String*}, #t142.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; + #t141.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t141; + core::List* list30 = block { + final core::List* #t143 = []; + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + if(self::oracle() as{TypeError,ForDynamic} core::bool*) + #t143.{core::List::addAll}{Invariant}([42]){(core::Iterable*) →* void}; + } =>#t143; + core::Set* set30 = block { + final core::Set* #t144 = col::LinkedHashSet::•(); + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + if(self::oracle() as{TypeError,ForDynamic} core::bool*) + #t144.{core::Set::addAll}{Invariant}([42]){(core::Iterable*) →* void}; + #t144.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t144; + core::Map* map30 = block { + final core::Map* #t145 = {}; + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + if(self::oracle() as{TypeError,ForDynamic} core::bool*) + for (final core::MapEntry* #t146 in {"bar": 42}.{core::Map::entries}{core::Iterable>}) + #t145.{core::Map::[]=}{Invariant}(#t146.{core::MapEntry::key}{core::String*}, #t146.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + #t145.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t145; + core::List* list31 = block { + final core::List* #t147 = []; + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + if(self::oracle() as{TypeError,ForDynamic} core::bool*) + #t147.{core::List::addAll}{Invariant}([dynVar]){(core::Iterable*) →* void}; + } =>#t147; + core::Set* set31 = block { + final core::Set* #t148 = col::LinkedHashSet::•(); + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + if(self::oracle() as{TypeError,ForDynamic} core::bool*) + #t148.{core::Set::addAll}{Invariant}([dynVar]){(core::Iterable*) →* void}; + #t148.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; + } =>#t148; + core::Map* map31 = block { + final core::Map* #t149 = {}; + for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) + if(self::oracle() as{TypeError,ForDynamic} core::bool*) + for (final core::MapEntry* #t150 in {"bar": dynVar}.{core::Map::entries}{core::Iterable>}) + #t149.{core::Map::[]=}{Invariant}(#t150.{core::MapEntry::key}{core::String*}, #t150.{core::MapEntry::value}{dynamic}){(core::String*, dynamic) →* void}; + #t149.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; + } =>#t149; + core::List*>* list33 = block { final core::List*>* #t151 = *>[]; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t151.{core::List::add}{Invariant}([42]){(core::List*) →* void}; + if(self::oracle() as{TypeError,ForDynamic} core::bool*) + #t151.{core::List::addAll}{Invariant}(*>[[42]]){(core::Iterable*>*) →* void}; } =>#t151; - core::Set*>* set12 = block { + core::Set*>* set33 = block { final core::Set*>* #t152 = col::LinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t152.{core::Set::add}{Invariant}([42]){(core::List*) →* core::bool*}; + if(self::oracle() as{TypeError,ForDynamic} core::bool*) + #t152.{core::Set::addAll}{Invariant}(*>[[42]]){(core::Iterable*>*) →* void}; #t152.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; } =>#t152; - core::Map*>* map12 = block { + core::Map*>* map33 = block { final core::Map*>* #t153 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t153.{core::Map::[]=}{Invariant}("bar", [42]){(core::String*, core::List*) →* void}; + if(self::oracle() as{TypeError,ForDynamic} core::bool*) + for (final core::MapEntry*>* #t154 in *>{"bar": [42]}.{core::Map::entries}{core::Iterable*>>}) + #t153.{core::Map::[]=}{Invariant}(#t154.{core::MapEntry::key}{core::String*}, #t154.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; #t153.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; } =>#t153; - core::List* list20 = block { - final core::List* #t154 = []; - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t154.{core::List::addAll}{Invariant}([42]){(core::Iterable*) →* void}; - } =>#t154; - core::Set* set20 = block { - final core::Set* #t155 = col::LinkedHashSet::•(); - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t155.{core::Set::addAll}{Invariant}([42]){(core::Iterable*) →* void}; - #t155.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t155; - core::Map* map20 = block { - final core::Map* #t156 = {}; - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - for (final core::MapEntry* #t157 in {"bar": 42}.{core::Map::entries}{core::Iterable>}) - #t156.{core::Map::[]=}{Invariant}(#t157.{core::MapEntry::key}{core::String*}, #t157.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; - #t156.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t156; - core::List* list21 = block { - final core::List* #t158 = []; - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t158.{core::List::addAll}{Invariant}([dynVar]){(core::Iterable*) →* void}; - } =>#t158; - core::Set* set21 = block { - final core::Set* #t159 = col::LinkedHashSet::•(); - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t159.{core::Set::addAll}{Invariant}([dynVar]){(core::Iterable*) →* void}; - #t159.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; - } =>#t159; - core::Map* map21 = block { - final core::Map* #t160 = {}; - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - for (final core::MapEntry* #t161 in {"bar": dynVar}.{core::Map::entries}{core::Iterable>}) - #t160.{core::Map::[]=}{Invariant}(#t161.{core::MapEntry::key}{core::String*}, #t161.{core::MapEntry::value}{dynamic}){(core::String*, dynamic) →* void}; - #t160.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; - } =>#t160; - core::List*>* list22 = block { - final core::List*>* #t162 = *>[]; - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t162.{core::List::addAll}{Invariant}(*>[[42]]){(core::Iterable*>*) →* void}; - } =>#t162; - core::Set*>* set22 = block { - final core::Set*>* #t163 = col::LinkedHashSet::•*>(); - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t163.{core::Set::addAll}{Invariant}(*>[[42]]){(core::Iterable*>*) →* void}; - #t163.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t163; - core::Map*>* map22 = block { - final core::Map*>* #t164 = *>{}; - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - for (final core::MapEntry*>* #t165 in *>{"bar": [42]}.{core::Map::entries}{core::Iterable*>>}) - #t164.{core::Map::[]=}{Invariant}(#t165.{core::MapEntry::key}{core::String*}, #t165.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; - #t164.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t164; - core::List* list30 = block { - final core::List* #t166 = []; - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t166.{core::List::addAll}{Invariant}([42]){(core::Iterable*) →* void}; - } =>#t166; - core::Set* set30 = block { - final core::Set* #t167 = col::LinkedHashSet::•(); - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t167.{core::Set::addAll}{Invariant}([42]){(core::Iterable*) →* void}; - #t167.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t167; - core::Map* map30 = block { - final core::Map* #t168 = {}; - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - if(self::oracle() as{TypeError,ForDynamic} core::bool*) - for (final core::MapEntry* #t169 in {"bar": 42}.{core::Map::entries}{core::Iterable>}) - #t168.{core::Map::[]=}{Invariant}(#t169.{core::MapEntry::key}{core::String*}, #t169.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; - #t168.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t168; - core::List* list31 = block { - final core::List* #t170 = []; - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t170.{core::List::addAll}{Invariant}([dynVar]){(core::Iterable*) →* void}; - } =>#t170; - core::Set* set31 = block { - final core::Set* #t171 = col::LinkedHashSet::•(); - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t171.{core::Set::addAll}{Invariant}([dynVar]){(core::Iterable*) →* void}; - #t171.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; - } =>#t171; - core::Map* map31 = block { - final core::Map* #t172 = {}; - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - if(self::oracle() as{TypeError,ForDynamic} core::bool*) - for (final core::MapEntry* #t173 in {"bar": dynVar}.{core::Map::entries}{core::Iterable>}) - #t172.{core::Map::[]=}{Invariant}(#t173.{core::MapEntry::key}{core::String*}, #t173.{core::MapEntry::value}{dynamic}){(core::String*, dynamic) →* void}; - #t172.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; - } =>#t172; - core::List*>* list33 = block { - final core::List*>* #t174 = *>[]; - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t174.{core::List::addAll}{Invariant}(*>[[42]]){(core::Iterable*>*) →* void}; - } =>#t174; - core::Set*>* set33 = block { - final core::Set*>* #t175 = col::LinkedHashSet::•*>(); - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t175.{core::Set::addAll}{Invariant}(*>[[42]]){(core::Iterable*>*) →* void}; - #t175.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t175; - core::Map*>* map33 = block { - final core::Map*>* #t176 = *>{}; - for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - if(self::oracle() as{TypeError,ForDynamic} core::bool*) - for (final core::MapEntry*>* #t177 in *>{"bar": [42]}.{core::Map::entries}{core::Iterable*>>}) - #t176.{core::Map::[]=}{Invariant}(#t177.{core::MapEntry::key}{core::String*}, #t177.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; - #t176.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t176; core::List*>* list40 = block { - final core::List*>* #t178 = *>[]; + final core::List*>* #t155 = *>[]; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t178.{core::List::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; - } =>#t178; + #t155.{core::List::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; + } =>#t155; core::Set*>* set40 = block { - final core::Set*>* #t179 = col::LinkedHashSet::•*>(); + final core::Set*>* #t156 = col::LinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t179.{core::Set::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; - #t179.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t179; + #t156.{core::Set::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; + #t156.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t156; core::Map*>* map40 = block { - final core::Map*>* #t180 = *>{}; + final core::Map*>* #t157 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - for (final core::MapEntry*>* #t181 in *>{"bar": []}.{core::Map::entries}{core::Iterable*>>}) - #t180.{core::Map::[]=}{Invariant}(#t181.{core::MapEntry::key}{core::String*}, #t181.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; - #t180.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t180; + for (final core::MapEntry*>* #t158 in *>{"bar": []}.{core::Map::entries}{core::Iterable*>>}) + #t157.{core::Map::[]=}{Invariant}(#t158.{core::MapEntry::key}{core::String*}, #t158.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; + #t157.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t157; core::List*>* list41 = block { - final core::List*>* #t182 = *>[]; + final core::List*>* #t159 = *>[]; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t182.{core::List::addAll}{Invariant}( block { - final core::Set*>* #t183 = col::LinkedHashSet::•*>(); - #t183.{core::Set::add}{Invariant}([]){(core::List*) →* core::bool*}; - } =>#t183){(core::Iterable*>*) →* void}; - } =>#t182; + #t159.{core::List::addAll}{Invariant}( block { + final core::Set*>* #t160 = col::LinkedHashSet::•*>(); + #t160.{core::Set::add}{Invariant}([]){(core::List*) →* core::bool*}; + } =>#t160){(core::Iterable*>*) →* void}; + } =>#t159; core::Set*>* set41 = block { - final core::Set*>* #t184 = col::LinkedHashSet::•*>(); + final core::Set*>* #t161 = col::LinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t184.{core::Set::addAll}{Invariant}( block { - final core::Set*>* #t185 = col::LinkedHashSet::•*>(); - #t185.{core::Set::add}{Invariant}([]){(core::List*) →* core::bool*}; - } =>#t185){(core::Iterable*>*) →* void}; - #t184.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t184; + #t161.{core::Set::addAll}{Invariant}( block { + final core::Set*>* #t162 = col::LinkedHashSet::•*>(); + #t162.{core::Set::add}{Invariant}([]){(core::List*) →* core::bool*}; + } =>#t162){(core::Iterable*>*) →* void}; + #t161.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t161; core::List*>* list42 = block { - final core::List*>* #t186 = *>[]; + final core::List*>* #t163 = *>[]; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t186.{core::List::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; - } =>#t186; + #t163.{core::List::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; + } =>#t163; core::Set*>* set42 = block { - final core::Set*>* #t187 = col::LinkedHashSet::•*>(); + final core::Set*>* #t164 = col::LinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t187.{core::Set::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; - #t187.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t187; + #t164.{core::Set::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; + #t164.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t164; core::Map*>* map42 = block { - final core::Map*>* #t188 = *>{}; + final core::Map*>* #t165 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - for (final core::MapEntry*>* #t189 in *>{"bar": []}.{core::Map::entries}{core::Iterable*>>}) - #t188.{core::Map::[]=}{Invariant}(#t189.{core::MapEntry::key}{core::String*}, #t189.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; - #t188.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t188; + for (final core::MapEntry*>* #t166 in *>{"bar": []}.{core::Map::entries}{core::Iterable*>>}) + #t165.{core::Map::[]=}{Invariant}(#t166.{core::MapEntry::key}{core::String*}, #t166.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; + #t165.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t165; core::List* list50 = block { - final core::List* #t190 = []; + final core::List* #t167 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t190.{core::List::addAll}{Invariant}([]){(core::Iterable*) →* void}; - } =>#t190; + #t167.{core::List::addAll}{Invariant}([]){(core::Iterable*) →* void}; + } =>#t167; core::Set* set50 = block { - final core::Set* #t191 = col::LinkedHashSet::•(); + final core::Set* #t168 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t191.{core::Set::addAll}{Invariant}([]){(core::Iterable*) →* void}; - #t191.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t191; + #t168.{core::Set::addAll}{Invariant}([]){(core::Iterable*) →* void}; + #t168.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t168; core::Map* map50 = block { - final core::Map* #t192 = {}; + final core::Map* #t169 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - for (final core::MapEntry* #t193 in {}.{core::Map::entries}{core::Iterable>}) - #t192.{core::Map::[]=}{Invariant}(#t193.{core::MapEntry::key}{core::String*}, #t193.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; - #t192.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t192; + for (final core::MapEntry* #t170 in {}.{core::Map::entries}{core::Iterable>}) + #t169.{core::Map::[]=}{Invariant}(#t170.{core::MapEntry::key}{core::String*}, #t170.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + #t169.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t169; core::List* list51 = block { - final core::List* #t194 = []; + final core::List* #t171 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t194.{core::List::addAll}{Invariant}( block { - final core::Set* #t195 = col::LinkedHashSet::•(); - } =>#t195){(core::Iterable*) →* void}; - } =>#t194; + #t171.{core::List::addAll}{Invariant}( block { + final core::Set* #t172 = col::LinkedHashSet::•(); + } =>#t172){(core::Iterable*) →* void}; + } =>#t171; core::Set* set51 = block { - final core::Set* #t196 = col::LinkedHashSet::•(); + final core::Set* #t173 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t196.{core::Set::addAll}{Invariant}( block { - final core::Set* #t197 = col::LinkedHashSet::•(); - } =>#t197){(core::Iterable*) →* void}; - #t196.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t196; + #t173.{core::Set::addAll}{Invariant}( block { + final core::Set* #t174 = col::LinkedHashSet::•(); + } =>#t174){(core::Iterable*) →* void}; + #t173.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t173; core::List* list52 = block { - final core::List* #t198 = []; + final core::List* #t175 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t198.{core::List::addAll}{Invariant}([]){(core::Iterable*) →* void}; - } =>#t198; + #t175.{core::List::addAll}{Invariant}([]){(core::Iterable*) →* void}; + } =>#t175; core::Set* set52 = block { - final core::Set* #t199 = col::LinkedHashSet::•(); + final core::Set* #t176 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t199.{core::Set::addAll}{Invariant}([]){(core::Iterable*) →* void}; - #t199.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t199; + #t176.{core::Set::addAll}{Invariant}([]){(core::Iterable*) →* void}; + #t176.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t176; core::List*>* list60 = block { - final core::List*>* #t200 = *>[]; + final core::List*>* #t177 = *>[]; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t200.{core::List::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; - } =>#t200; + #t177.{core::List::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; + } =>#t177; core::Set*>* set60 = block { - final core::Set*>* #t201 = col::LinkedHashSet::•*>(); + final core::Set*>* #t178 = col::LinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t201.{core::Set::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; - #t201.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t201; + #t178.{core::Set::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; + #t178.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t178; core::Map*>* map60 = block { - final core::Map*>* #t202 = *>{}; + final core::Map*>* #t179 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - for (final core::MapEntry*>* #t203 in *>{"bar": []}.{core::Map::entries}{core::Iterable*>>}) - #t202.{core::Map::[]=}{Invariant}(#t203.{core::MapEntry::key}{core::String*}, #t203.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; - #t202.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t202; + for (final core::MapEntry*>* #t180 in *>{"bar": []}.{core::Map::entries}{core::Iterable*>>}) + #t179.{core::Map::[]=}{Invariant}(#t180.{core::MapEntry::key}{core::String*}, #t180.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; + #t179.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t179; core::List*>* list61 = block { - final core::List*>* #t204 = *>[]; + final core::List*>* #t181 = *>[]; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t204.{core::List::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; - } =>#t204; + #t181.{core::List::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; + } =>#t181; core::Set*>* set61 = block { - final core::Set*>* #t205 = col::LinkedHashSet::•*>(); + final core::Set*>* #t182 = col::LinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t205.{core::Set::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; - #t205.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t205; + #t182.{core::Set::addAll}{Invariant}(*>[[]]){(core::Iterable*>*) →* void}; + #t182.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t182; core::Map*>* map61 = block { - final core::Map*>* #t206 = *>{}; + final core::Map*>* #t183 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - for (final core::MapEntry*>* #t207 in *>{"bar": []}.{core::Map::entries}{core::Iterable*>>}) - #t206.{core::Map::[]=}{Invariant}(#t207.{core::MapEntry::key}{core::String*}, #t207.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; - #t206.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t206; + for (final core::MapEntry*>* #t184 in *>{"bar": []}.{core::Map::entries}{core::Iterable*>>}) + #t183.{core::Map::[]=}{Invariant}(#t184.{core::MapEntry::key}{core::String*}, #t184.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; + #t183.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t183; core::List*>* list70 = block { - final core::List*>* #t208 = *>[]; + final core::List*>* #t185 = *>[]; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t208.{core::List::add}{Invariant}([]){(core::List*) →* void}; - } =>#t208; + #t185.{core::List::add}{Invariant}([]){(core::List*) →* void}; + } =>#t185; core::Set*>* set70 = block { - final core::Set*>* #t209 = col::LinkedHashSet::•*>(); + final core::Set*>* #t186 = col::LinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t209.{core::Set::add}{Invariant}([]){(core::List*) →* core::bool*}; - #t209.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t209; + #t186.{core::Set::add}{Invariant}([]){(core::List*) →* core::bool*}; + #t186.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t186; core::Map*>* map70 = block { - final core::Map*>* #t210 = *>{}; + final core::Map*>* #t187 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t210.{core::Map::[]=}{Invariant}("bar", []){(core::String*, core::List*) →* void}; - #t210.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t210; + #t187.{core::Map::[]=}{Invariant}("bar", []){(core::String*, core::List*) →* void}; + #t187.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t187; core::List*>* list71 = block { - final core::List*>* #t211 = *>[]; + final core::List*>* #t188 = *>[]; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t211.{core::List::add}{Invariant}([]){(core::List*) →* void}; - } =>#t211; + #t188.{core::List::add}{Invariant}([]){(core::List*) →* void}; + } =>#t188; core::Set*>* set71 = block { - final core::Set*>* #t212 = col::LinkedHashSet::•*>(); + final core::Set*>* #t189 = col::LinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t212.{core::Set::add}{Invariant}([]){(core::List*) →* core::bool*}; - #t212.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t212; + #t189.{core::Set::add}{Invariant}([]){(core::List*) →* core::bool*}; + #t189.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t189; core::Map*>* map71 = block { - final core::Map*>* #t213 = *>{}; + final core::Map*>* #t190 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t213.{core::Map::[]=}{Invariant}("bar", []){(core::String*, core::List*) →* void}; - #t213.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t213; + #t190.{core::Map::[]=}{Invariant}("bar", []){(core::String*, core::List*) →* void}; + #t190.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t190; core::List* list80 = block { - final core::List* #t214 = []; + final core::List* #t191 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t214.{core::List::add}{Invariant}(42){(core::num*) →* void}; + #t191.{core::List::add}{Invariant}(42){(core::num*) →* void}; else - #t214.{core::List::add}{Invariant}(3.14){(core::num*) →* void}; - } =>#t214; + #t191.{core::List::add}{Invariant}(3.14){(core::num*) →* void}; + } =>#t191; core::Set* set80 = block { - final core::Set* #t215 = col::LinkedHashSet::•(); + final core::Set* #t192 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t215.{core::Set::add}{Invariant}(42){(core::num*) →* core::bool*}; + #t192.{core::Set::add}{Invariant}(42){(core::num*) →* core::bool*}; else - #t215.{core::Set::add}{Invariant}(3.14){(core::num*) →* core::bool*}; - #t215.{core::Set::add}{Invariant}(null){(core::num*) →* core::bool*}; - } =>#t215; + #t192.{core::Set::add}{Invariant}(3.14){(core::num*) →* core::bool*}; + #t192.{core::Set::add}{Invariant}(null){(core::num*) →* core::bool*}; + } =>#t192; core::Map* map80 = block { - final core::Map* #t216 = {}; + final core::Map* #t193 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t216.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::num*) →* void}; + #t193.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::num*) →* void}; else - #t216.{core::Map::[]=}{Invariant}("bar", 3.14){(core::String*, core::num*) →* void}; - #t216.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::num*) →* void}; - } =>#t216; + #t193.{core::Map::[]=}{Invariant}("bar", 3.14){(core::String*, core::num*) →* void}; + #t193.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::num*) →* void}; + } =>#t193; core::List* list81 = block { - final core::List* #t217 = []; + final core::List* #t194 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t217.{core::List::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; + #t194.{core::List::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; else - #t217.{core::List::addAll}{Invariant}(listDouble){(core::Iterable*) →* void}; - } =>#t217; + #t194.{core::List::addAll}{Invariant}(listDouble){(core::Iterable*) →* void}; + } =>#t194; core::Set* set81 = block { - final core::Set* #t218 = col::LinkedHashSet::•(); + final core::Set* #t195 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t218.{core::Set::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; + #t195.{core::Set::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; else - #t218.{core::Set::addAll}{Invariant}(listDouble){(core::Iterable*) →* void}; - #t218.{core::Set::add}{Invariant}(null){(core::num*) →* core::bool*}; - } =>#t218; + #t195.{core::Set::addAll}{Invariant}(listDouble){(core::Iterable*) →* void}; + #t195.{core::Set::add}{Invariant}(null){(core::num*) →* core::bool*}; + } =>#t195; core::Map* map81 = block { - final core::Map* #t219 = {}; + final core::Map* #t196 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - for (final core::MapEntry* #t220 in mapStringInt.{core::Map::entries}{core::Iterable>}) - #t219.{core::Map::[]=}{Invariant}(#t220.{core::MapEntry::key}{core::String*}, #t220.{core::MapEntry::value}{core::num*}){(core::String*, core::num*) →* void}; + for (final core::MapEntry* #t197 in mapStringInt.{core::Map::entries}{core::Iterable>}) + #t196.{core::Map::[]=}{Invariant}(#t197.{core::MapEntry::key}{core::String*}, #t197.{core::MapEntry::value}{core::num*}){(core::String*, core::num*) →* void}; else - for (final core::MapEntry* #t221 in mapStringDouble.{core::Map::entries}{core::Iterable>}) - #t219.{core::Map::[]=}{Invariant}(#t221.{core::MapEntry::key}{core::String*}, #t221.{core::MapEntry::value}{core::num*}){(core::String*, core::num*) →* void}; - #t219.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::num*) →* void}; - } =>#t219; + for (final core::MapEntry* #t198 in mapStringDouble.{core::Map::entries}{core::Iterable>}) + #t196.{core::Map::[]=}{Invariant}(#t198.{core::MapEntry::key}{core::String*}, #t198.{core::MapEntry::value}{core::num*}){(core::String*, core::num*) →* void}; + #t196.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::num*) →* void}; + } =>#t196; core::List* list82 = block { - final core::List* #t222 = []; + final core::List* #t199 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t222.{core::List::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; + #t199.{core::List::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; else - #t222.{core::List::addAll}{Invariant}(dynVar as{TypeError,ForDynamic} core::Iterable*){(core::Iterable*) →* void}; - } =>#t222; + #t199.{core::List::addAll}{Invariant}(dynVar as{TypeError,ForDynamic} core::Iterable*){(core::Iterable*) →* void}; + } =>#t199; core::Set* set82 = block { - final core::Set* #t223 = col::LinkedHashSet::•(); + final core::Set* #t200 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t223.{core::Set::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; + #t200.{core::Set::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; else - #t223.{core::Set::addAll}{Invariant}(dynVar as{TypeError,ForDynamic} core::Iterable*){(core::Iterable*) →* void}; - #t223.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; - } =>#t223; + #t200.{core::Set::addAll}{Invariant}(dynVar as{TypeError,ForDynamic} core::Iterable*){(core::Iterable*) →* void}; + #t200.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; + } =>#t200; core::Map* map82 = block { - final core::Map* #t224 = {}; + final core::Map* #t201 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - for (final core::MapEntry* #t225 in mapStringInt.{core::Map::entries}{core::Iterable>}) - #t224.{core::Map::[]=}{Invariant}(#t225.{core::MapEntry::key}{dynamic}, #t225.{core::MapEntry::value}{dynamic}){(dynamic, dynamic) →* void}; + for (final core::MapEntry* #t202 in mapStringInt.{core::Map::entries}{core::Iterable>}) + #t201.{core::Map::[]=}{Invariant}(#t202.{core::MapEntry::key}{dynamic}, #t202.{core::MapEntry::value}{dynamic}){(dynamic, dynamic) →* void}; else - for (final core::MapEntry* #t226 in (dynVar as{TypeError,ForDynamic} core::Map*).{core::Map::entries}{core::Iterable>}) - #t224.{core::Map::[]=}{Invariant}(#t226.{core::MapEntry::key}{dynamic}, #t226.{core::MapEntry::value}{dynamic}){(dynamic, dynamic) →* void}; - #t224.{core::Map::[]=}{Invariant}("baz", null){(dynamic, dynamic) →* void}; - } =>#t224; + for (final core::MapEntry* #t203 in (dynVar as{TypeError,ForDynamic} core::Map*).{core::Map::entries}{core::Iterable>}) + #t201.{core::Map::[]=}{Invariant}(#t203.{core::MapEntry::key}{dynamic}, #t203.{core::MapEntry::value}{dynamic}){(dynamic, dynamic) →* void}; + #t201.{core::Map::[]=}{Invariant}("baz", null){(dynamic, dynamic) →* void}; + } =>#t201; core::List* list83 = block { - final core::List* #t227 = []; + final core::List* #t204 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t227.{core::List::add}{Invariant}(42){(core::num*) →* void}; + #t204.{core::List::add}{Invariant}(42){(core::num*) →* void}; else - #t227.{core::List::addAll}{Invariant}(listDouble){(core::Iterable*) →* void}; - } =>#t227; + #t204.{core::List::addAll}{Invariant}(listDouble){(core::Iterable*) →* void}; + } =>#t204; core::Set* set83 = block { - final core::Set* #t228 = col::LinkedHashSet::•(); + final core::Set* #t205 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t228.{core::Set::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; + #t205.{core::Set::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; else - #t228.{core::Set::add}{Invariant}(3.14){(core::num*) →* core::bool*}; - #t228.{core::Set::add}{Invariant}(null){(core::num*) →* core::bool*}; - } =>#t228; + #t205.{core::Set::add}{Invariant}(3.14){(core::num*) →* core::bool*}; + #t205.{core::Set::add}{Invariant}(null){(core::num*) →* core::bool*}; + } =>#t205; core::Map* map83 = block { - final core::Map* #t229 = {}; + final core::Map* #t206 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - for (final core::MapEntry* #t230 in mapStringInt.{core::Map::entries}{core::Iterable>}) - #t229.{core::Map::[]=}{Invariant}(#t230.{core::MapEntry::key}{core::String*}, #t230.{core::MapEntry::value}{core::num*}){(core::String*, core::num*) →* void}; + for (final core::MapEntry* #t207 in mapStringInt.{core::Map::entries}{core::Iterable>}) + #t206.{core::Map::[]=}{Invariant}(#t207.{core::MapEntry::key}{core::String*}, #t207.{core::MapEntry::value}{core::num*}){(core::String*, core::num*) →* void}; else - #t229.{core::Map::[]=}{Invariant}("bar", 3.14){(core::String*, core::num*) →* void}; - #t229.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::num*) →* void}; - } =>#t229; + #t206.{core::Map::[]=}{Invariant}("bar", 3.14){(core::String*, core::num*) →* void}; + #t206.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::num*) →* void}; + } =>#t206; core::List* list90 = block { - final core::List* #t231 = []; + final core::List* #t208 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t231.{core::List::add}{Invariant}(dynVar as{TypeError,ForDynamic} core::int*){(core::int*) →* void}; - } =>#t231; + #t208.{core::List::add}{Invariant}(dynVar as{TypeError,ForDynamic} core::int*){(core::int*) →* void}; + } =>#t208; core::Set* set90 = block { - final core::Set* #t232 = col::LinkedHashSet::•(); + final core::Set* #t209 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t232.{core::Set::add}{Invariant}(dynVar as{TypeError,ForDynamic} core::int*){(core::int*) →* core::bool*}; - #t232.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t232; + #t209.{core::Set::add}{Invariant}(dynVar as{TypeError,ForDynamic} core::int*){(core::int*) →* core::bool*}; + #t209.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t209; core::Map* map90 = block { - final core::Map* #t233 = {}; + final core::Map* #t210 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t233.{core::Map::[]=}{Invariant}("bar", dynVar as{TypeError,ForDynamic} core::int*){(core::String*, core::int*) →* void}; - #t233.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t233; + #t210.{core::Map::[]=}{Invariant}("bar", dynVar as{TypeError,ForDynamic} core::int*){(core::String*, core::int*) →* void}; + #t210.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t210; core::List* list91 = block { - final core::List* #t234 = []; + final core::List* #t211 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - for (final dynamic #t235 in dynVar as{TypeError,ForDynamic} core::Iterable*) { - final core::int* #t236 = #t235 as{TypeError} core::int*; - #t234.{core::List::add}{Invariant}(#t236){(core::int*) →* void}; + for (final dynamic #t212 in dynVar as{TypeError,ForDynamic} core::Iterable*) { + final core::int* #t213 = #t212 as{TypeError} core::int*; + #t211.{core::List::add}{Invariant}(#t213){(core::int*) →* void}; } - } =>#t234; + } =>#t211; core::Set* set91 = block { - final core::Set* #t237 = col::LinkedHashSet::•(); + final core::Set* #t214 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - for (final dynamic #t238 in dynVar as{TypeError,ForDynamic} core::Iterable*) { - final core::int* #t239 = #t238 as{TypeError} core::int*; - #t237.{core::Set::add}{Invariant}(#t239){(core::int*) →* core::bool*}; + for (final dynamic #t215 in dynVar as{TypeError,ForDynamic} core::Iterable*) { + final core::int* #t216 = #t215 as{TypeError} core::int*; + #t214.{core::Set::add}{Invariant}(#t216){(core::int*) →* core::bool*}; } - #t237.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t237; + #t214.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t214; core::Map* map91 = block { - final core::Map* #t240 = {}; + final core::Map* #t217 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - for (final core::MapEntry* #t241 in (dynVar as{TypeError,ForDynamic} core::Map*).{core::Map::entries}{core::Iterable>}) { - final core::String* #t242 = #t241.{core::MapEntry::key}{dynamic} as{TypeError} core::String*; - final core::int* #t243 = #t241.{core::MapEntry::value}{dynamic} as{TypeError} core::int*; - #t240.{core::Map::[]=}{Invariant}(#t242, #t243){(core::String*, core::int*) →* void}; + for (final core::MapEntry* #t218 in (dynVar as{TypeError,ForDynamic} core::Map*).{core::Map::entries}{core::Iterable>}) { + final core::String* #t219 = #t218.{core::MapEntry::key}{dynamic} as{TypeError} core::String*; + final core::int* #t220 = #t218.{core::MapEntry::value}{dynamic} as{TypeError} core::int*; + #t217.{core::Map::[]=}{Invariant}(#t219, #t220){(core::String*, core::int*) →* void}; } - #t240.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t240; + #t217.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t217; core::List* list100 = block { - final core::List* #t244 = []; - for (final core::int* #t245 = index = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; index = index.{core::num::+}(1){(core::num*) →* core::int*}) - #t244.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t244; + final core::List* #t221 = []; + for (final core::int* #t222 = index = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; index = index.{core::num::+}(1){(core::num*) →* core::int*}) + #t221.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t221; core::Set* set100 = block { - final core::Set* #t246 = col::LinkedHashSet::•(); - for (final core::int* #t247 = index = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; index = index.{core::num::+}(1){(core::num*) →* core::int*}) - #t246.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - } =>#t246; + final core::Set* #t223 = col::LinkedHashSet::•(); + for (final core::int* #t224 = index = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; index = index.{core::num::+}(1){(core::num*) →* core::int*}) + #t223.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + } =>#t223; core::Map* map100 = block { - final core::Map* #t248 = {}; - for (final core::int* #t249 = index = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; index = index.{core::num::+}(1){(core::num*) →* core::int*}) - #t248.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; - } =>#t248; + final core::Map* #t225 = {}; + for (final core::int* #t226 = index = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; index = index.{core::num::+}(1){(core::num*) →* core::int*}) + #t225.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; + } =>#t225; core::List* list110 = block { - final core::List* #t250 = []; + final core::List* #t227 = []; for (core::int* i in [1, 2, 3]) - #t250.{core::List::add}{Invariant}(i){(core::int*) →* void}; - } =>#t250; + #t227.{core::List::add}{Invariant}(i){(core::int*) →* void}; + } =>#t227; core::Set* set110 = block { - final core::Set* #t251 = col::LinkedHashSet::•(); + final core::Set* #t228 = col::LinkedHashSet::•(); for (core::int* i in [1, 2, 3]) - #t251.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; - #t251.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t251; + #t228.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; + #t228.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t228; core::Map* map110 = block { - final core::Map* #t252 = {}; + final core::Map* #t229 = {}; for (core::int* i in [1, 2, 3]) - #t252.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; - #t252.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t252; + #t229.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; + #t229.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t229; core::List* list120 = block { - final core::List* #t253 = []; + final core::List* #t230 = []; for (dynamic i in dynVar as{TypeError,ForDynamic} core::Iterable*) - #t253.{core::List::add}{Invariant}(i as{TypeError,ForDynamic} core::int*){(core::int*) →* void}; - } =>#t253; + #t230.{core::List::add}{Invariant}(i as{TypeError,ForDynamic} core::int*){(core::int*) →* void}; + } =>#t230; core::Set* set120 = block { - final core::Set* #t254 = col::LinkedHashSet::•(); + final core::Set* #t231 = col::LinkedHashSet::•(); for (dynamic i in dynVar as{TypeError,ForDynamic} core::Iterable*) - #t254.{core::Set::add}{Invariant}(i as{TypeError,ForDynamic} core::int*){(core::int*) →* core::bool*}; - #t254.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t254; + #t231.{core::Set::add}{Invariant}(i as{TypeError,ForDynamic} core::int*){(core::int*) →* core::bool*}; + #t231.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t231; core::Map* map120 = block { - final core::Map* #t255 = {}; + final core::Map* #t232 = {}; for (dynamic i in dynVar as{TypeError,ForDynamic} core::Iterable*) - #t255.{core::Map::[]=}{Invariant}("bar", i as{TypeError,ForDynamic} core::int*){(core::String*, core::int*) →* void}; - #t255.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t255; + #t232.{core::Map::[]=}{Invariant}("bar", i as{TypeError,ForDynamic} core::int*){(core::String*, core::int*) →* void}; + #t232.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t232; core::List* list130 = block { - final core::List* #t256 = []; + final core::List* #t233 = []; for (core::int* i = 1; i.{core::num::<}(2){(core::num*) →* core::bool*}; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t256.{core::List::add}{Invariant}(i){(core::int*) →* void}; - } =>#t256; + #t233.{core::List::add}{Invariant}(i){(core::int*) →* void}; + } =>#t233; core::Set* set130 = block { - final core::Set* #t257 = col::LinkedHashSet::•(); + final core::Set* #t234 = col::LinkedHashSet::•(); for (core::int* i = 1; i.{core::num::<}(2){(core::num*) →* core::bool*}; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t257.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; - } =>#t257; + #t234.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; + } =>#t234; core::Map* map130 = block { - final core::Map* #t258 = {}; + final core::Map* #t235 = {}; for (core::int* i = 1; i.{core::num::<}(2){(core::num*) →* core::bool*}; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t258.{core::Map::[]=}{Invariant}(i, i){(core::int*, core::int*) →* void}; - } =>#t258; + #t235.{core::Map::[]=}{Invariant}(i, i){(core::int*, core::int*) →* void}; + } =>#t235; } static method testForElementErrors(core::Map* map, core::List* list) → dynamic async { block { - final core::List* #t259 = []; + final core::List* #t236 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t259.{core::List::add}{Invariant}(let final Never* #t260 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:210:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t236.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:210:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. [for (int i = 0; oracle(\"foo\"); i++) \"bar\"]; ^" in "bar" as{TypeError} core::int*){(core::int*) →* void}; - } =>#t259; + } =>#t236; block { - final core::Set* #t261 = col::LinkedHashSet::•(); + final core::Set* #t237 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t261.{core::Set::add}{Invariant}(let final Never* #t262 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:211:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t237.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:211:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) \"bar\", null}; ^" in "bar" as{TypeError} core::int*){(core::int*) →* core::bool*}; - #t261.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t261; + #t237.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t237; block { - final core::Map* #t263 = {}; + final core::Map* #t238 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t263.{core::Map::[]=}{Invariant}(let final Never* #t264 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:212:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t238.{core::Map::[]=}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:212:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) \"bar\": \"bar\", \"baz\": null}; - ^" in "bar" as{TypeError} core::int*, let final Never* #t265 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:212:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "bar" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:212:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) \"bar\": \"bar\", \"baz\": null}; ^" in "bar" as{TypeError} core::int*){(core::int*, core::int*) →* void}; - #t263.{core::Map::[]=}{Invariant}(let final Never* #t266 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:212:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t238.{core::Map::[]=}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:212:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) \"bar\": \"bar\", \"baz\": null}; ^" in "baz" as{TypeError} core::int*, null){(core::int*, core::int*) →* void}; - } =>#t263; + } =>#t238; block { - final core::List* #t267 = []; + final core::List* #t239 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t267.{core::List::addAll}{Invariant}([let final Never* #t268 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:213:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t239.{core::List::addAll}{Invariant}([invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:213:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. [for (int i = 0; oracle(\"foo\"); i++) ...[\"bar\"]]; ^" in "bar" as{TypeError} core::int*]){(core::Iterable*) →* void}; - } =>#t267; + } =>#t239; block { - final core::Set* #t269 = col::LinkedHashSet::•(); + final core::Set* #t240 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t269.{core::Set::addAll}{Invariant}([let final Never* #t270 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:214:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t240.{core::Set::addAll}{Invariant}([invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:214:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) ...[\"bar\"], null}; ^" in "bar" as{TypeError} core::int*]){(core::Iterable*) →* void}; - #t269.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t269; + #t240.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t240; block { - final core::Map* #t271 = {}; + final core::Map* #t241 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - for (final core::MapEntry* #t272 in {let final Never* #t273 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:215:54: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + for (final core::MapEntry* #t242 in {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:215:54: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) ...{\"bar\": \"bar\"}, \"baz\": null}; - ^" in "bar" as{TypeError} core::int*: let final Never* #t274 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:215:61: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "bar" as{TypeError} core::int*: invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:215:61: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) ...{\"bar\": \"bar\"}, \"baz\": null}; ^" in "bar" as{TypeError} core::int*}.{core::Map::entries}{core::Iterable>}) - #t271.{core::Map::[]=}{Invariant}(#t272.{core::MapEntry::key}{core::int*}, #t272.{core::MapEntry::value}{core::int*}){(core::int*, core::int*) →* void}; - #t271.{core::Map::[]=}{Invariant}(let final Never* #t275 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:215:69: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t241.{core::Map::[]=}{Invariant}(#t242.{core::MapEntry::key}{core::int*}, #t242.{core::MapEntry::value}{core::int*}){(core::int*, core::int*) →* void}; + #t241.{core::Map::[]=}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:215:69: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) ...{\"bar\": \"bar\"}, \"baz\": null}; ^" in "baz" as{TypeError} core::int*, null){(core::int*, core::int*) →* void}; - } =>#t271; + } =>#t241; block { - final core::List* #t276 = []; + final core::List* #t243 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t276.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:216:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t243.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:216: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]; ^"){(core::int*) →* void}; - } =>#t276; + } =>#t243; block { - final core::Set* #t277 = col::LinkedHashSet::•(); + final core::Set* #t244 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t277.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:217:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t244.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:217: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}; ^"){(core::int*) →* core::bool*}; - #t277.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t277; + #t244.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t244; {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:218:53: Error: Unexpected type 'List' of a map spread entry. Expected 'dynamic' or a Map. - 'List' is from 'dart:core'. {for (int i = 0; oracle(\"foo\"); i++) ...list, 42: null}; @@ -1839,66 +1839,66 @@ static method testForElementErrors(core::Map* map, core: {for (int i = 0; oracle(\"foo\"); i++) ...list, 42: null}; ^": null}; block { - final core::List* #t278 = []; + final core::List* #t245 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t278.{core::List::add}{Invariant}(let final Never* #t279 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:219:62: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t245.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:219:62: Error: A value of type 'int' can't be assigned to a variable of type 'String'. [for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else 3.14]; ^" in 42 as{TypeError} core::String*){(core::String*) →* void}; else - #t278.{core::List::add}{Invariant}(let final Never* #t280 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:219:70: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + #t245.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:219:70: Error: A value of type 'double' can't be assigned to a variable of type 'String'. [for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else 3.14]; ^" in 3.14 as{TypeError} core::String*){(core::String*) →* void}; - } =>#t278; + } =>#t245; block { - final core::Set* #t281 = col::LinkedHashSet::•(); + final core::Set* #t246 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t281.{core::Set::add}{Invariant}(let final Never* #t282 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:220:62: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t246.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:220:62: Error: A value of type 'int' can't be assigned to a variable of type 'String'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else 3.14, null}; ^" in 42 as{TypeError} core::String*){(core::String*) →* core::bool*}; else - #t281.{core::Set::add}{Invariant}(let final Never* #t283 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:220:70: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + #t246.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:220:70: Error: A value of type 'double' can't be assigned to a variable of type 'String'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else 3.14, null}; ^" in 3.14 as{TypeError} core::String*){(core::String*) →* core::bool*}; - #t281.{core::Set::add}{Invariant}(null){(core::String*) →* core::bool*}; - } =>#t281; + #t246.{core::Set::add}{Invariant}(null){(core::String*) →* core::bool*}; + } =>#t246; block { - final core::Map* #t284 = {}; + final core::Map* #t247 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t284.{core::Map::[]=}{Invariant}("bar", let final Never* #t285 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:221:77: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t247.{core::Map::[]=}{Invariant}("bar", invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:221:77: Error: A value of type 'int' can't be assigned to a variable of type 'String'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) \"bar\": 42 else \"bar\": 3.14, \"baz\": null}; ^" in 42 as{TypeError} core::String*){(core::String*, core::String*) →* void}; else - #t284.{core::Map::[]=}{Invariant}("bar", let final Never* #t286 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:221:92: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + #t247.{core::Map::[]=}{Invariant}("bar", invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:221:92: Error: A value of type 'double' can't be assigned to a variable of type 'String'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) \"bar\": 42 else \"bar\": 3.14, \"baz\": null}; ^" in 3.14 as{TypeError} core::String*){(core::String*, core::String*) →* void}; - #t284.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::String*) →* void}; - } =>#t284; + #t247.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::String*) →* void}; + } =>#t247; block { - final core::List* #t287 = []; + final core::List* #t248 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t287.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:222:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t248.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:222: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]; ^"){(core::int*) →* void}; else - #t287.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t287; + #t248.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t248; block { - final core::Set* #t288 = col::LinkedHashSet::•(); + final core::Set* #t249 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t288.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:223:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t249.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:223: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}; ^"){(core::int*) →* core::bool*}; else - #t288.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - #t288.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t288; + #t249.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t249.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t249; {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:224:70: Error: Unexpected type 'List' of a map spread entry. Expected 'dynamic' or a Map. - 'List' is from 'dart:core'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) ...list else \"bar\": 42, \"baz\": null}; @@ -1907,28 +1907,28 @@ static method testForElementErrors(core::Map* map, core: {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) ...list else \"bar\": 42, \"baz\": null}; ^": null}; block { - final core::List* #t289 = []; + final core::List* #t250 = []; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t289.{core::List::add}{Invariant}(42){(core::int*) →* void}; + #t250.{core::List::add}{Invariant}(42){(core::int*) →* void}; else - #t289.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:225:70: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t250.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:225: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]; ^"){(core::int*) →* void}; - } =>#t289; + } =>#t250; block { - final core::Set* #t290 = col::LinkedHashSet::•(); + final core::Set* #t251 = col::LinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t290.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t251.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; else - #t290.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:226:70: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t251.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:226: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, null}; ^"){(core::int*) →* core::bool*}; - #t290.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t290; + #t251.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t251; {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:227:85: Error: Unexpected type 'List' of a map spread entry. Expected 'dynamic' or a Map. - 'List' is from 'dart:core'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) \"bar\": 42 else ...list, \"baz\": null}; @@ -1938,218 +1938,218 @@ static method testForElementErrors(core::Map* map, core: ^": null}; final core::int* i = 0; block { - final core::List* #t291 = []; - for (final core::int* #t292 in [1]) { + final core::List* #t252 = []; + for (final core::int* #t253 in [1]) { invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:230:14: Error: Can't assign to the final variable 'i'. [for (i in [1]) i]; ^"; - #t291.{core::List::add}{Invariant}(i){(core::int*) →* void}; + #t252.{core::List::add}{Invariant}(i){(core::int*) →* void}; } - } =>#t291; + } =>#t252; block { - final core::Set* #t293 = col::LinkedHashSet::•(); - for (final core::int* #t294 in [1]) { + final core::Set* #t254 = col::LinkedHashSet::•(); + for (final core::int* #t255 in [1]) { invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:231:14: Error: Can't assign to the final variable 'i'. {for (i in [1]) i, null}; ^"; - #t293.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; + #t254.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; } - #t293.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t293; + #t254.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t254; block { - final core::Map* #t295 = {}; - for (final core::int* #t296 in [1]) { + final core::Map* #t256 = {}; + for (final core::int* #t257 in [1]) { invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:232:21: Error: Can't assign to the final variable 'i'. \t{for (i in [1]) \"bar\": i, \"baz\": null}; \t ^"; - #t295.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; + #t256.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; } - #t295.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t295; + #t256.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t256; core::List* list10 = block { - final core::List* #t297 = []; - for (dynamic i in let final Never* #t298 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:234:31: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + final core::List* #t258 = []; + for (dynamic i in invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:234: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*) - #t297.{core::List::add}{Invariant}(i){(dynamic) →* void}; - } =>#t297; + #t258.{core::List::add}{Invariant}(i){(dynamic) →* void}; + } =>#t258; core::Set* set10 = block { - final core::Set* #t299 = col::LinkedHashSet::•(); - for (dynamic i in let final Never* #t300 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:235:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + final core::Set* #t259 = col::LinkedHashSet::•(); + for (dynamic i in invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:235: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*) - #t299.{core::Set::add}{Invariant}(i){(dynamic) →* core::bool*}; - #t299.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; - } =>#t299; + #t259.{core::Set::add}{Invariant}(i){(dynamic) →* core::bool*}; + #t259.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; + } =>#t259; core::Map* map10 = block { - final core::Map* #t301 = {}; - for (dynamic i in let final Never* #t302 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:236:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + final core::Map* #t260 = {}; + for (dynamic i in invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:236:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. - 'Iterable' is from 'dart:core'. var map10 = {for (var i in \"not iterable\") \"bar\": i, \"baz\": null}; ^" in "not iterable" as{TypeError} core::Iterable*) - #t301.{core::Map::[]=}{Invariant}("bar", i){(core::String*, dynamic) →* void}; - #t301.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; - } =>#t301; + #t260.{core::Map::[]=}{Invariant}("bar", i){(core::String*, dynamic) →* void}; + #t260.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; + } =>#t260; core::List* list20 = block { - final core::List* #t303 = []; - for (core::int* i in [let final Never* #t304 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:237:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + final core::List* #t261 = []; + for (core::int* i in [invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:237:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var list20 = [for (int i in [\"not\", \"int\"]) i]; - ^" in "not" as{TypeError} core::int*, let final Never* #t305 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:237:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:237:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var list20 = [for (int i in [\"not\", \"int\"]) i]; ^" in "int" as{TypeError} core::int*]) - #t303.{core::List::add}{Invariant}(i){(core::int*) →* void}; - } =>#t303; + #t261.{core::List::add}{Invariant}(i){(core::int*) →* void}; + } =>#t261; core::Set* set20 = block { - final core::Set* #t306 = col::LinkedHashSet::•(); - for (core::int* i in [let final Never* #t307 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:238:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + final core::Set* #t262 = col::LinkedHashSet::•(); + for (core::int* i in [invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:238:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var set20 = {for (int i in [\"not\", \"int\"]) i, null}; - ^" in "not" as{TypeError} core::int*, let final Never* #t308 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:238:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:238:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var set20 = {for (int i in [\"not\", \"int\"]) i, null}; ^" in "int" as{TypeError} core::int*]) - #t306.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; - #t306.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t306; + #t262.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; + #t262.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t262; core::Map* map20 = block { - final core::Map* #t309 = {}; - for (core::int* i in [let final Never* #t310 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:239:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + final core::Map* #t263 = {}; + for (core::int* i in [invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:239:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var map20 = {for (int i in [\"not\", \"int\"]) \"bar\": i, \"baz\": null}; - ^" in "not" as{TypeError} core::int*, let final Never* #t311 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:239:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:239:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var map20 = {for (int i in [\"not\", \"int\"]) \"bar\": i, \"baz\": null}; ^" in "int" as{TypeError} core::int*]) - #t309.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; - #t309.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t309; + #t263.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; + #t263.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t263; core::List* list30 = block { - final core::List* #t312 = []; - await for (dynamic i in let final Never* #t313 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:240:37: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + final core::List* #t264 = []; + await for (dynamic i in invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:240: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*) - #t312.{core::List::add}{Invariant}(i){(dynamic) →* void}; - } =>#t312; + #t264.{core::List::add}{Invariant}(i){(dynamic) →* void}; + } =>#t264; core::Set* set30 = block { - final core::Set* #t314 = col::LinkedHashSet::•(); - await for (dynamic i in let final Never* #t315 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:241:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + final core::Set* #t265 = col::LinkedHashSet::•(); + await for (dynamic i in invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:241: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*) - #t314.{core::Set::add}{Invariant}(i){(dynamic) →* core::bool*}; - #t314.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; - } =>#t314; + #t265.{core::Set::add}{Invariant}(i){(dynamic) →* core::bool*}; + #t265.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; + } =>#t265; core::Map* map30 = block { - final core::Map* #t316 = {}; - await for (dynamic i in let final Never* #t317 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:242:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + final core::Map* #t266 = {}; + await for (dynamic i in invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:242:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. - 'Stream' is from 'dart:async'. var map30 = {await for (var i in \"not stream\") \"bar\": i, \"baz\": null}; ^" in "not stream" as{TypeError} asy::Stream*) - #t316.{core::Map::[]=}{Invariant}("bar", i){(core::String*, dynamic) →* void}; - #t316.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; - } =>#t316; + #t266.{core::Map::[]=}{Invariant}("bar", i){(core::String*, dynamic) →* void}; + #t266.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; + } =>#t266; core::List* list40 = block { - final core::List* #t318 = []; - await for (core::int* i in asy::Stream::fromIterable([let final Never* #t319 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:243:58: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + final core::List* #t267 = []; + await for (core::int* i in asy::Stream::fromIterable([invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:243:58: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var list40 = [await for (int i in Stream.fromIterable([\"not\", \"int\"])) i]; - ^" in "not" as{TypeError} core::int*, let final Never* #t320 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:243:65: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:243:65: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var list40 = [await for (int i in Stream.fromIterable([\"not\", \"int\"])) i]; ^" in "int" as{TypeError} core::int*])) - #t318.{core::List::add}{Invariant}(i){(core::int*) →* void}; - } =>#t318; + #t267.{core::List::add}{Invariant}(i){(core::int*) →* void}; + } =>#t267; core::Set* set40 = block { - final core::Set* #t321 = col::LinkedHashSet::•(); - await for (core::int* i in asy::Stream::fromIterable([let final Never* #t322 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:244: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([invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:244:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var set40 = {await for (int i in Stream.fromIterable([\"not\", \"int\"])) i, null}; - ^" in "not" as{TypeError} core::int*, let final Never* #t323 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:244:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:244:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var set40 = {await for (int i in Stream.fromIterable([\"not\", \"int\"])) i, null}; ^" in "int" as{TypeError} core::int*])) - #t321.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; - #t321.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t321; + #t268.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; + #t268.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t268; core::Map* map40 = block { - final core::Map* #t324 = {}; - await for (core::int* i in asy::Stream::fromIterable([let final Never* #t325 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:245:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + final core::Map* #t269 = {}; + await for (core::int* i in asy::Stream::fromIterable([invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:245:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var map40 = {await for (int i in Stream.fromIterable([\"not\", \"int\"])) \"bar\": i, \"baz\": null}; - ^" in "not" as{TypeError} core::int*, let final Never* #t326 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:245:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:245:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var map40 = {await for (int i in Stream.fromIterable([\"not\", \"int\"])) \"bar\": i, \"baz\": null}; ^" in "int" as{TypeError} core::int*])) - #t324.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; - #t324.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t324; + #t269.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; + #t269.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t269; core::List* list50 = block { - final core::List* #t327 = []; + final core::List* #t270 = []; for (; ; ) - #t327.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t327; + #t270.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t270; core::Set* set50 = block { - final core::Set* #t328 = col::LinkedHashSet::•(); + final core::Set* #t271 = col::LinkedHashSet::•(); for (; ; ) - #t328.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - #t328.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t328; + #t271.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t271.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t271; core::Map* map50 = block { - final core::Map* #t329 = {}; + final core::Map* #t272 = {}; for (; ; ) - #t329.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; - #t329.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t329; + #t272.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; + #t272.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t272; core::List* list60 = block { - final core::List* #t330 = []; - for (; let final Never* #t331 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:249:24: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. + final core::List* #t273 = []; + for (; invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:249:24: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. var list60 = [for (; \"not bool\";) 42]; ^" in "not bool" as{TypeError} core::bool*; ) - #t330.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t330; + #t273.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t273; core::Set* set60 = block { - final core::Set* #t332 = col::LinkedHashSet::•(); - for (; let final Never* #t333 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:250:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. + final core::Set* #t274 = col::LinkedHashSet::•(); + for (; invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:250:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. var set60 = {for (; \"not bool\";) 42, null}; ^" in "not bool" as{TypeError} core::bool*; ) - #t332.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - #t332.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t332; + #t274.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t274.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t274; core::Map* map60 = block { - final core::Map* #t334 = {}; - for (; let final Never* #t335 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:251:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. + final core::Map* #t275 = {}; + for (; invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:251:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. var map60 = {for (; \"not bool\";) \"bar\": 42, \"baz\": null}; ^" in "not bool" as{TypeError} core::bool*; ) - #t334.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; - #t334.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t334; + #t275.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; + #t275.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t275; } static method testForElementErrorsNotAsync(asy::Stream* stream) → dynamic { block { - final core::List* #t336 = []; + final core::List* #t276 = []; await for (core::int* i in stream) - #t336.{core::List::add}{Invariant}(i){(core::int*) →* void}; - } =>#t336; + #t276.{core::List::add}{Invariant}(i){(core::int*) →* void}; + } =>#t276; block { - final core::Set* #t337 = col::LinkedHashSet::•(); + final core::Set* #t277 = col::LinkedHashSet::•(); await for (core::int* i in stream) - #t337.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; - } =>#t337; + #t277.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; + } =>#t277; block { - final core::Map* #t338 = {}; + final core::Map* #t278 = {}; await for (core::int* i in stream) - #t338.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; - } =>#t338; + #t278.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; + } =>#t278; } static method testPromotion(self::A* a) → dynamic { core::List* list10 = block { - final core::List* #t339 = []; + final core::List* #t279 = []; if(a is self::B*) - #t339.{core::List::add}{Invariant}(a{self::B*}.{self::B::foo}{core::int*}){(core::int*) →* void}; - } =>#t339; + #t279.{core::List::add}{Invariant}(a{self::B*}.{self::B::foo}{core::int*}){(core::int*) →* void}; + } =>#t279; core::Set* set10 = block { - final core::Set* #t340 = col::LinkedHashSet::•(); + final core::Set* #t280 = col::LinkedHashSet::•(); if(a is self::B*) - #t340.{core::Set::add}{Invariant}(a{self::B*}.{self::B::foo}{core::int*}){(core::int*) →* core::bool*}; - } =>#t340; + #t280.{core::Set::add}{Invariant}(a{self::B*}.{self::B::foo}{core::int*}){(core::int*) →* core::bool*}; + } =>#t280; core::Map* map10 = block { - final core::Map* #t341 = {}; + final core::Map* #t281 = {}; if(a is self::B*) - #t341.{core::Map::[]=}{Invariant}(a{self::B*}.{self::B::foo}{core::int*}, a{self::B*}.{self::B::foo}{core::int*}){(core::int*, core::int*) →* void}; - } =>#t341; + #t281.{core::Map::[]=}{Invariant}(a{self::B*}.{self::B::foo}{core::int*}, a{self::B*}.{self::B::foo}{core::int*}){(core::int*, core::int*) →* void}; + } =>#t281; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/control_flow_collection_inference.dart.weak.transformed.expect b/pkg/front_end/testcases/general/control_flow_collection_inference.dart.weak.transformed.expect index 03f6ecbf545..59854bdcf66 100644 --- a/pkg/front_end/testcases/general/control_flow_collection_inference.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/control_flow_collection_inference.dart.weak.transformed.expect @@ -1022,71 +1022,71 @@ static method testIfElementErrors(core::Map* map) → dy block { final core::List* #t99 = core::_GrowableList::•(0); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t99.{core::List::add}{Invariant}(let final Never* #t100 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:87:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t99.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:87:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. [if (oracle(\"foo\")) \"bar\"]; ^" in "bar" as{TypeError} core::int*){(core::int*) →* void}; } =>#t99; block { - final core::Set* #t101 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t100 = new col::_CompactLinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t101.{core::Set::add}{Invariant}(let final Never* #t102 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:88:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t100.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:88:28: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {if (oracle(\"foo\")) \"bar\", null}; ^" in "bar" as{TypeError} core::int*){(core::int*) →* core::bool*}; - #t101.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t101; + #t100.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t100; block { - final core::Map* #t103 = {}; + final core::Map* #t101 = {}; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t103.{core::Map::[]=}{Invariant}("bar", let final Never* #t104 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:89:43: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t101.{core::Map::[]=}{Invariant}("bar", invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:89:43: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {if (oracle(\"foo\")) \"bar\": \"bar\", \"baz\": null}; ^" in "bar" as{TypeError} core::int*){(core::String*, core::int*) →* void}; - #t103.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t103; + #t101.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t101; block { - final core::List* #t105 = core::_GrowableList::•(0); + final core::List* #t102 = core::_GrowableList::•(0); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t105.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1(let final Never* #t106 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:90:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t102.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:90:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. [if (oracle(\"foo\")) ...[\"bar\"]]; ^" in "bar" as{TypeError} core::int*)){(core::Iterable*) →* void}; - } =>#t105; + } =>#t102; block { - final core::Set* #t107 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t103 = new col::_CompactLinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t107.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1(let final Never* #t108 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:91:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t103.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:91:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {if (oracle(\"foo\")) ...[\"bar\"], null}; ^" in "bar" as{TypeError} core::int*)){(core::Iterable*) →* void}; - #t107.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t107; + #t103.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t103; block { - final core::Map* #t109 = {}; + final core::Map* #t104 = {}; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) { - core::Iterator>* :sync-for-iterator = {"bar": let final Never* #t110 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:92:47: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Iterator>* :sync-for-iterator = {"bar": invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:92:47: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {if (oracle(\"foo\")) ...{\"bar\": \"bar\"}, \"baz\": null}; ^" in "bar" as{TypeError} core::int*}.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t111 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t109.{core::Map::[]=}{Invariant}(#t111.{core::MapEntry::key}{core::String*}, #t111.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + final core::MapEntry* #t105 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t104.{core::Map::[]=}{Invariant}(#t105.{core::MapEntry::key}{core::String*}, #t105.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; } } - #t109.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t109; + #t104.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t104; block { - final core::List* #t112 = core::_GrowableList::•(0); + final core::List* #t106 = core::_GrowableList::•(0); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t112.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:93:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t106.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:93:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [if (oracle(\"foo\")) ...map]; ^"){(core::int*) →* void}; - } =>#t112; + } =>#t106; block { - final core::Set* #t113 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t107 = new col::_CompactLinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t113.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:94:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t107.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:94:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. {if (oracle(\"foo\")) ...map, null}; ^"){(core::int*) →* core::bool*}; - #t113.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t113; + #t107.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t107; {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:95:39: Error: Unexpected type 'List' of a map spread entry. Expected 'dynamic' or a Map. - 'List' is from 'dart:core'. {if (oracle(\"foo\")) ...[\"bar\"], \"baz\": null}; @@ -1095,61 +1095,61 @@ static method testIfElementErrors(core::Map* map) → dy {if (oracle(\"foo\")) ...[\"bar\"], \"baz\": null}; ^": null}; block { - final core::List* #t114 = core::_GrowableList::•(0); + final core::List* #t108 = core::_GrowableList::•(0); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t114.{core::List::add}{Invariant}(let final Never* #t115 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:96:31: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t108.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:96:31: Error: A value of type 'int' can't be assigned to a variable of type 'String'. [if (oracle(\"foo\")) 42 else 3.14]; ^" in 42 as{TypeError} core::String*){(core::String*) →* void}; else - #t114.{core::List::add}{Invariant}(let final Never* #t116 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:96:39: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + #t108.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:96:39: Error: A value of type 'double' can't be assigned to a variable of type 'String'. [if (oracle(\"foo\")) 42 else 3.14]; ^" in 3.14 as{TypeError} core::String*){(core::String*) →* void}; - } =>#t114; + } =>#t108; block { - final core::Set* #t117 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t109 = new col::_CompactLinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t117.{core::Set::add}{Invariant}(let final Never* #t118 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:97:31: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t109.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:97:31: Error: A value of type 'int' can't be assigned to a variable of type 'String'. {if (oracle(\"foo\")) 42 else 3.14, null}; ^" in 42 as{TypeError} core::String*){(core::String*) →* core::bool*}; else - #t117.{core::Set::add}{Invariant}(let final Never* #t119 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:97:39: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + #t109.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:97:39: Error: A value of type 'double' can't be assigned to a variable of type 'String'. {if (oracle(\"foo\")) 42 else 3.14, null}; ^" in 3.14 as{TypeError} core::String*){(core::String*) →* core::bool*}; - #t117.{core::Set::add}{Invariant}(null){(core::String*) →* core::bool*}; - } =>#t117; + #t109.{core::Set::add}{Invariant}(null){(core::String*) →* core::bool*}; + } =>#t109; block { - final core::Map* #t120 = {}; + final core::Map* #t110 = {}; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t120.{core::Map::[]=}{Invariant}("bar", let final Never* #t121 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:98:46: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t110.{core::Map::[]=}{Invariant}("bar", invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:98:46: Error: A value of type 'int' can't be assigned to a variable of type 'String'. {if (oracle(\"foo\")) \"bar\": 42 else \"baz\": 3.14, \"baz\": null}; ^" in 42 as{TypeError} core::String*){(core::String*, core::String*) →* void}; else - #t120.{core::Map::[]=}{Invariant}("baz", let final Never* #t122 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:98:61: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + #t110.{core::Map::[]=}{Invariant}("baz", invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:98:61: Error: A value of type 'double' can't be assigned to a variable of type 'String'. {if (oracle(\"foo\")) \"bar\": 42 else \"baz\": 3.14, \"baz\": null}; ^" in 3.14 as{TypeError} core::String*){(core::String*, core::String*) →* void}; - #t120.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::String*) →* void}; - } =>#t120; + #t110.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::String*) →* void}; + } =>#t110; block { - final core::List* #t123 = core::_GrowableList::•(0); + final core::List* #t111 = core::_GrowableList::•(0); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t123.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:99:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t111.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:99:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [if (oracle(\"foo\")) ...map else 42]; ^"){(core::int*) →* void}; else - #t123.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t123; + #t111.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t111; block { - final core::Set* #t124 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t112 = new col::_CompactLinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t124.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:100:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t112.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/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}; ^"){(core::int*) →* core::bool*}; else - #t124.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - #t124.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t124; + #t112.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t112.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t112; {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:101:39: Error: Unexpected type 'List' of a map spread entry. Expected 'dynamic' or a Map. - 'List' is from 'dart:core'. {if (oracle(\"foo\")) ...[42] else \"bar\": 42, \"baz\": null}; @@ -1158,26 +1158,26 @@ static method testIfElementErrors(core::Map* map) → dy {if (oracle(\"foo\")) ...[42] else \"bar\": 42, \"baz\": null}; ^": null}; block { - final core::List* #t125 = core::_GrowableList::•(0); + final core::List* #t113 = core::_GrowableList::•(0); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t125.{core::List::add}{Invariant}(42){(core::int*) →* void}; + #t113.{core::List::add}{Invariant}(42){(core::int*) →* void}; else - #t125.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:102:39: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t113.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:102:39: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. - 'Map' is from 'dart:core'. [if (oracle(\"foo\")) 42 else ...map]; ^"){(core::int*) →* void}; - } =>#t125; + } =>#t113; block { - final core::Set* #t126 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t114 = new col::_CompactLinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t126.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:103:31: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t114.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:103: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}; ^"){(core::int*) →* core::bool*}; else - #t126.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - #t126.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t126; + #t114.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t114.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t114; {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:104:54: Error: Unexpected type 'List' of a map spread entry. Expected 'dynamic' or a Map. - 'List' is from 'dart:core'. {if (oracle(\"foo\")) \"bar\": 42 else ...[42], \"baz\": null}; @@ -1197,751 +1197,751 @@ static method testIfElementErrors(core::Map* map) → dy core::Map* map11 = {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:109:70: Error: Expected ':' after this. Map map11 = {if (oracle(\"foo\")) \"bar\": 3.14 else 42}; ^": null}; - core::Map* map12 = {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:110:35: Error: Expected ':' after this. + core::Map* map12 = {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:110:35: Error: Expected ':' after this. var map12 = {if (oracle(\"foo\")) 42 else \"bar\": 3.14}; ^": null}; - core::Map* map13 = {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:111:52: Error: Expected ':' after this. + core::Map* map13 = {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:111:52: Error: Expected ':' after this. var map13 = {if (oracle(\"foo\")) \"bar\": 3.14 else 42}; ^": null}; core::List* list20 = block { - final core::List* #t127 = core::_GrowableList::•(0); - if(let final Never* #t128 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:112:27: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. + final core::List* #t115 = core::_GrowableList::•(0); + if(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:112:27: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. List list20 = [if (42) 42]; ^" in 42 as{TypeError} core::bool*) - #t127.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t127; + #t115.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t115; core::Set* set20 = block { - final core::Set* #t129 = new col::_CompactLinkedHashSet::•(); - if(let final Never* #t130 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:113:25: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. + final core::Set* #t116 = new col::_CompactLinkedHashSet::•(); + if(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:113:25: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. Set set20 = {if (42) 42}; ^" in 42 as{TypeError} core::bool*) - #t129.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - } =>#t129; + #t116.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + } =>#t116; core::Map* map30 = block { - final core::Map* #t131 = {}; - if(let final Never* #t132 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:114:30: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. + final core::Map* #t117 = {}; + if(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:114:30: Error: A value of type 'int' can't be assigned to a variable of type 'bool'. Map map30 = {if (42) 42: 42}; ^" in 42 as{TypeError} core::bool*) - #t131.{core::Map::[]=}{Invariant}(42, 42){(core::int*, core::int*) →* void}; - } =>#t131; + #t117.{core::Map::[]=}{Invariant}(42, 42){(core::int*, core::int*) →* void}; + } =>#t117; core::List* list40 = block { - final core::List* #t133 = core::_GrowableList::•(0); + final core::List* #t118 = core::_GrowableList::•(0); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t133.{core::List::add}{Invariant}(let final Never* #t134 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:115:53: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. + #t118.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:115:53: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. List list40 = [if (oracle(\"foo\")) true else 42]; ^" in true as{TypeError} core::String*){(core::String*) →* void}; else - #t133.{core::List::add}{Invariant}(let final Never* #t135 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:115:63: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t118.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:115:63: Error: A value of type 'int' can't be assigned to a variable of type 'String'. List list40 = [if (oracle(\"foo\")) true else 42]; ^" in 42 as{TypeError} core::String*){(core::String*) →* void}; - } =>#t133; + } =>#t118; core::Set* set40 = block { - final core::Set* #t136 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t119 = new col::_CompactLinkedHashSet::•(); if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t136.{core::Set::add}{Invariant}(let final Never* #t137 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:116:51: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. + #t119.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:116:51: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. Set set40 = {if (oracle(\"foo\")) true else 42}; ^" in true as{TypeError} core::String*){(core::String*) →* core::bool*}; else - #t136.{core::Set::add}{Invariant}(let final Never* #t138 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:116:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t119.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:116:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. Set set40 = {if (oracle(\"foo\")) true else 42}; ^" in 42 as{TypeError} core::String*){(core::String*) →* core::bool*}; - } =>#t136; + } =>#t119; core::Map* map40 = block { - final core::Map* #t139 = {}; + final core::Map* #t120 = {}; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t139.{core::Map::[]=}{Invariant}(let final Never* #t140 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:117:61: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. + #t120.{core::Map::[]=}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:117:61: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. Map map40 = {if (oracle(\"foo\")) true: 42 else 42: 42}; ^" in true as{TypeError} core::String*, 42){(core::String*, core::int*) →* void}; else - #t139.{core::Map::[]=}{Invariant}(let final Never* #t141 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:117:75: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t120.{core::Map::[]=}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:117:75: Error: A value of type 'int' can't be assigned to a variable of type 'String'. Map map40 = {if (oracle(\"foo\")) true: 42 else 42: 42}; ^" in 42 as{TypeError} core::String*, 42){(core::String*, core::int*) →* void}; - } =>#t139; + } =>#t120; core::Map* map41 = block { - final core::Map* #t142 = {}; + final core::Map* #t121 = {}; if(self::oracle("foo") as{TypeError,ForDynamic} core::bool*) - #t142.{core::Map::[]=}{Invariant}(42, let final Never* #t143 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:118:65: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. + #t121.{core::Map::[]=}{Invariant}(42, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:118:65: Error: A value of type 'bool' can't be assigned to a variable of type 'String'. Map map41 = {if (oracle(\"foo\")) 42: true else 42: 42}; ^" in true as{TypeError} core::String*){(core::int*, core::String*) →* void}; else - #t142.{core::Map::[]=}{Invariant}(42, let final Never* #t144 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:118:79: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t121.{core::Map::[]=}{Invariant}(42, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:118:79: Error: A value of type 'int' can't be assigned to a variable of type 'String'. Map map41 = {if (oracle(\"foo\")) 42: true else 42: 42}; ^" in 42 as{TypeError} core::String*){(core::int*, core::String*) →* void}; - } =>#t142; + } =>#t121; } static method testForElement(dynamic dynVar, core::List* listInt, core::List* listDouble, core::int* index, core::Map* mapStringInt, core::Map* mapStringDouble) → dynamic { core::List* list10 = block { - final core::List* #t145 = core::_GrowableList::•(0); + final core::List* #t122 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t145.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t145; + #t122.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t122; core::Set* set10 = block { - final core::Set* #t146 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t123 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t146.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - #t146.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t146; + #t123.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t123.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t123; core::Map* map10 = block { - final core::Map* #t147 = {}; + final core::Map* #t124 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t147.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; - #t147.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t147; + #t124.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; + #t124.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t124; core::List* list11 = block { - final core::List* #t148 = core::_GrowableList::•(0); + final core::List* #t125 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t148.{core::List::add}{Invariant}(dynVar){(dynamic) →* void}; - } =>#t148; + #t125.{core::List::add}{Invariant}(dynVar){(dynamic) →* void}; + } =>#t125; core::Set* set11 = block { - final core::Set* #t149 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t126 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t149.{core::Set::add}{Invariant}(dynVar){(dynamic) →* core::bool*}; - #t149.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; - } =>#t149; + #t126.{core::Set::add}{Invariant}(dynVar){(dynamic) →* core::bool*}; + #t126.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; + } =>#t126; core::Map* map11 = block { - final core::Map* #t150 = {}; + final core::Map* #t127 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t150.{core::Map::[]=}{Invariant}("bar", dynVar){(core::String*, dynamic) →* void}; - #t150.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; - } =>#t150; + #t127.{core::Map::[]=}{Invariant}("bar", dynVar){(core::String*, dynamic) →* void}; + #t127.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; + } =>#t127; core::List*>* list12 = block { - final core::List*>* #t151 = core::_GrowableList::•*>(0); + final core::List*>* #t128 = core::_GrowableList::•*>(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t151.{core::List::add}{Invariant}(core::_GrowableList::_literal1(42)){(core::List*) →* void}; - } =>#t151; + #t128.{core::List::add}{Invariant}(core::_GrowableList::_literal1(42)){(core::List*) →* void}; + } =>#t128; core::Set*>* set12 = block { - final core::Set*>* #t152 = new col::_CompactLinkedHashSet::•*>(); + final core::Set*>* #t129 = new col::_CompactLinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t152.{core::Set::add}{Invariant}(core::_GrowableList::_literal1(42)){(core::List*) →* core::bool*}; - #t152.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t152; + #t129.{core::Set::add}{Invariant}(core::_GrowableList::_literal1(42)){(core::List*) →* core::bool*}; + #t129.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t129; core::Map*>* map12 = block { - final core::Map*>* #t153 = *>{}; + final core::Map*>* #t130 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t153.{core::Map::[]=}{Invariant}("bar", core::_GrowableList::_literal1(42)){(core::String*, core::List*) →* void}; - #t153.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t153; + #t130.{core::Map::[]=}{Invariant}("bar", core::_GrowableList::_literal1(42)){(core::String*, core::List*) →* void}; + #t130.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t130; core::List* list20 = block { - final core::List* #t154 = core::_GrowableList::•(0); + final core::List* #t131 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t154.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1(42)){(core::Iterable*) →* void}; - } =>#t154; + #t131.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1(42)){(core::Iterable*) →* void}; + } =>#t131; core::Set* set20 = block { - final core::Set* #t155 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t132 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t155.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1(42)){(core::Iterable*) →* void}; - #t155.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t155; + #t132.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1(42)){(core::Iterable*) →* void}; + #t132.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t132; core::Map* map20 = block { - final core::Map* #t156 = {}; + final core::Map* #t133 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) { core::Iterator>* :sync-for-iterator = {"bar": 42}.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t157 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t156.{core::Map::[]=}{Invariant}(#t157.{core::MapEntry::key}{core::String*}, #t157.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + final core::MapEntry* #t134 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t133.{core::Map::[]=}{Invariant}(#t134.{core::MapEntry::key}{core::String*}, #t134.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; } } - #t156.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t156; + #t133.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t133; core::List* list21 = block { - final core::List* #t158 = core::_GrowableList::•(0); + final core::List* #t135 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t158.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1(dynVar)){(core::Iterable*) →* void}; - } =>#t158; + #t135.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1(dynVar)){(core::Iterable*) →* void}; + } =>#t135; core::Set* set21 = block { - final core::Set* #t159 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t136 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t159.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1(dynVar)){(core::Iterable*) →* void}; - #t159.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; - } =>#t159; + #t136.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1(dynVar)){(core::Iterable*) →* void}; + #t136.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; + } =>#t136; core::Map* map21 = block { - final core::Map* #t160 = {}; + final core::Map* #t137 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) { core::Iterator>* :sync-for-iterator = {"bar": dynVar}.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t161 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t160.{core::Map::[]=}{Invariant}(#t161.{core::MapEntry::key}{core::String*}, #t161.{core::MapEntry::value}{dynamic}){(core::String*, dynamic) →* void}; + final core::MapEntry* #t138 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t137.{core::Map::[]=}{Invariant}(#t138.{core::MapEntry::key}{core::String*}, #t138.{core::MapEntry::value}{dynamic}){(core::String*, dynamic) →* void}; } } - #t160.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; - } =>#t160; + #t137.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; + } =>#t137; core::List*>* list22 = block { - final core::List*>* #t162 = core::_GrowableList::•*>(0); + final core::List*>* #t139 = core::_GrowableList::•*>(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t162.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(42))){(core::Iterable*>*) →* void}; - } =>#t162; + #t139.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(42))){(core::Iterable*>*) →* void}; + } =>#t139; core::Set*>* set22 = block { - final core::Set*>* #t163 = new col::_CompactLinkedHashSet::•*>(); + final core::Set*>* #t140 = new col::_CompactLinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t163.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(42))){(core::Iterable*>*) →* void}; - #t163.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t163; + #t140.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(42))){(core::Iterable*>*) →* void}; + #t140.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t140; core::Map*>* map22 = block { - final core::Map*>* #t164 = *>{}; + final core::Map*>* #t141 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) { core::Iterator*>>* :sync-for-iterator = *>{"bar": core::_GrowableList::_literal1(42)}.{core::Map::entries}{core::Iterable*>>}.{core::Iterable::iterator}{core::Iterator*>>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry*>* #t165 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry*>}; - #t164.{core::Map::[]=}{Invariant}(#t165.{core::MapEntry::key}{core::String*}, #t165.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; + final core::MapEntry*>* #t142 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry*>}; + #t141.{core::Map::[]=}{Invariant}(#t142.{core::MapEntry::key}{core::String*}, #t142.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; } } - #t164.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t164; + #t141.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t141; core::List* list30 = block { - final core::List* #t166 = core::_GrowableList::•(0); + final core::List* #t143 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t166.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1(42)){(core::Iterable*) →* void}; - } =>#t166; + #t143.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1(42)){(core::Iterable*) →* void}; + } =>#t143; core::Set* set30 = block { - final core::Set* #t167 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t144 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t167.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1(42)){(core::Iterable*) →* void}; - #t167.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t167; + #t144.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1(42)){(core::Iterable*) →* void}; + #t144.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t144; core::Map* map30 = block { - final core::Map* #t168 = {}; + final core::Map* #t145 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) { core::Iterator>* :sync-for-iterator = {"bar": 42}.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t169 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t168.{core::Map::[]=}{Invariant}(#t169.{core::MapEntry::key}{core::String*}, #t169.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + final core::MapEntry* #t146 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t145.{core::Map::[]=}{Invariant}(#t146.{core::MapEntry::key}{core::String*}, #t146.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; } } - #t168.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t168; + #t145.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t145; core::List* list31 = block { - final core::List* #t170 = core::_GrowableList::•(0); + final core::List* #t147 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t170.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1(dynVar)){(core::Iterable*) →* void}; - } =>#t170; + #t147.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1(dynVar)){(core::Iterable*) →* void}; + } =>#t147; core::Set* set31 = block { - final core::Set* #t171 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t148 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t171.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1(dynVar)){(core::Iterable*) →* void}; - #t171.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; - } =>#t171; + #t148.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1(dynVar)){(core::Iterable*) →* void}; + #t148.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; + } =>#t148; core::Map* map31 = block { - final core::Map* #t172 = {}; + final core::Map* #t149 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) { core::Iterator>* :sync-for-iterator = {"bar": dynVar}.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t173 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t172.{core::Map::[]=}{Invariant}(#t173.{core::MapEntry::key}{core::String*}, #t173.{core::MapEntry::value}{dynamic}){(core::String*, dynamic) →* void}; + final core::MapEntry* #t150 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t149.{core::Map::[]=}{Invariant}(#t150.{core::MapEntry::key}{core::String*}, #t150.{core::MapEntry::value}{dynamic}){(core::String*, dynamic) →* void}; } } - #t172.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; - } =>#t172; + #t149.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; + } =>#t149; core::List*>* list33 = block { - final core::List*>* #t174 = core::_GrowableList::•*>(0); + final core::List*>* #t151 = core::_GrowableList::•*>(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t174.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(42))){(core::Iterable*>*) →* void}; - } =>#t174; + #t151.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(42))){(core::Iterable*>*) →* void}; + } =>#t151; core::Set*>* set33 = block { - final core::Set*>* #t175 = new col::_CompactLinkedHashSet::•*>(); + final core::Set*>* #t152 = new col::_CompactLinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t175.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(42))){(core::Iterable*>*) →* void}; - #t175.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t175; + #t152.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(42))){(core::Iterable*>*) →* void}; + #t152.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t152; core::Map*>* map33 = block { - final core::Map*>* #t176 = *>{}; + final core::Map*>* #t153 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) { core::Iterator*>>* :sync-for-iterator = *>{"bar": core::_GrowableList::_literal1(42)}.{core::Map::entries}{core::Iterable*>>}.{core::Iterable::iterator}{core::Iterator*>>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry*>* #t177 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry*>}; - #t176.{core::Map::[]=}{Invariant}(#t177.{core::MapEntry::key}{core::String*}, #t177.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; + final core::MapEntry*>* #t154 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry*>}; + #t153.{core::Map::[]=}{Invariant}(#t154.{core::MapEntry::key}{core::String*}, #t154.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; } } - #t176.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t176; + #t153.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t153; core::List*>* list40 = block { - final core::List*>* #t178 = core::_GrowableList::•*>(0); + final core::List*>* #t155 = core::_GrowableList::•*>(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t178.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; - } =>#t178; + #t155.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; + } =>#t155; core::Set*>* set40 = block { - final core::Set*>* #t179 = new col::_CompactLinkedHashSet::•*>(); + final core::Set*>* #t156 = new col::_CompactLinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t179.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; - #t179.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t179; + #t156.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; + #t156.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t156; core::Map*>* map40 = block { - final core::Map*>* #t180 = *>{}; + final core::Map*>* #t157 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) { core::Iterator*>>* :sync-for-iterator = *>{"bar": core::_GrowableList::•(0)}.{core::Map::entries}{core::Iterable*>>}.{core::Iterable::iterator}{core::Iterator*>>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry*>* #t181 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry*>}; - #t180.{core::Map::[]=}{Invariant}(#t181.{core::MapEntry::key}{core::String*}, #t181.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; + final core::MapEntry*>* #t158 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry*>}; + #t157.{core::Map::[]=}{Invariant}(#t158.{core::MapEntry::key}{core::String*}, #t158.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; } } - #t180.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t180; + #t157.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t157; core::List*>* list41 = block { - final core::List*>* #t182 = core::_GrowableList::•*>(0); + final core::List*>* #t159 = core::_GrowableList::•*>(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t182.{core::List::addAll}{Invariant}( block { - final core::Set*>* #t183 = new col::_CompactLinkedHashSet::•*>(); - #t183.{core::Set::add}{Invariant}(core::_GrowableList::•(0)){(core::List*) →* core::bool*}; - } =>#t183){(core::Iterable*>*) →* void}; - } =>#t182; + #t159.{core::List::addAll}{Invariant}( block { + final core::Set*>* #t160 = new col::_CompactLinkedHashSet::•*>(); + #t160.{core::Set::add}{Invariant}(core::_GrowableList::•(0)){(core::List*) →* core::bool*}; + } =>#t160){(core::Iterable*>*) →* void}; + } =>#t159; core::Set*>* set41 = block { - final core::Set*>* #t184 = new col::_CompactLinkedHashSet::•*>(); + final core::Set*>* #t161 = new col::_CompactLinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t184.{core::Set::addAll}{Invariant}( block { - final core::Set*>* #t185 = new col::_CompactLinkedHashSet::•*>(); - #t185.{core::Set::add}{Invariant}(core::_GrowableList::•(0)){(core::List*) →* core::bool*}; - } =>#t185){(core::Iterable*>*) →* void}; - #t184.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t184; + #t161.{core::Set::addAll}{Invariant}( block { + final core::Set*>* #t162 = new col::_CompactLinkedHashSet::•*>(); + #t162.{core::Set::add}{Invariant}(core::_GrowableList::•(0)){(core::List*) →* core::bool*}; + } =>#t162){(core::Iterable*>*) →* void}; + #t161.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t161; core::List*>* list42 = block { - final core::List*>* #t186 = core::_GrowableList::•*>(0); + final core::List*>* #t163 = core::_GrowableList::•*>(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t186.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; - } =>#t186; + #t163.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; + } =>#t163; core::Set*>* set42 = block { - final core::Set*>* #t187 = new col::_CompactLinkedHashSet::•*>(); + final core::Set*>* #t164 = new col::_CompactLinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t187.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; - #t187.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t187; + #t164.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; + #t164.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t164; core::Map*>* map42 = block { - final core::Map*>* #t188 = *>{}; + final core::Map*>* #t165 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) { core::Iterator*>>* :sync-for-iterator = *>{"bar": core::_GrowableList::•(0)}.{core::Map::entries}{core::Iterable*>>}.{core::Iterable::iterator}{core::Iterator*>>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry*>* #t189 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry*>}; - #t188.{core::Map::[]=}{Invariant}(#t189.{core::MapEntry::key}{core::String*}, #t189.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; + final core::MapEntry*>* #t166 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry*>}; + #t165.{core::Map::[]=}{Invariant}(#t166.{core::MapEntry::key}{core::String*}, #t166.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; } } - #t188.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t188; + #t165.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t165; core::List* list50 = block { - final core::List* #t190 = core::_GrowableList::•(0); + final core::List* #t167 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t190.{core::List::addAll}{Invariant}(core::_GrowableList::•(0)){(core::Iterable*) →* void}; - } =>#t190; + #t167.{core::List::addAll}{Invariant}(core::_GrowableList::•(0)){(core::Iterable*) →* void}; + } =>#t167; core::Set* set50 = block { - final core::Set* #t191 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t168 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t191.{core::Set::addAll}{Invariant}(core::_GrowableList::•(0)){(core::Iterable*) →* void}; - #t191.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t191; + #t168.{core::Set::addAll}{Invariant}(core::_GrowableList::•(0)){(core::Iterable*) →* void}; + #t168.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t168; core::Map* map50 = block { - final core::Map* #t192 = {}; + final core::Map* #t169 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) { core::Iterator>* :sync-for-iterator = {}.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t193 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t192.{core::Map::[]=}{Invariant}(#t193.{core::MapEntry::key}{core::String*}, #t193.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + final core::MapEntry* #t170 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t169.{core::Map::[]=}{Invariant}(#t170.{core::MapEntry::key}{core::String*}, #t170.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; } } - #t192.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t192; + #t169.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t169; core::List* list51 = block { - final core::List* #t194 = core::_GrowableList::•(0); + final core::List* #t171 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t194.{core::List::addAll}{Invariant}( block { - final core::Set* #t195 = new col::_CompactLinkedHashSet::•(); - } =>#t195){(core::Iterable*) →* void}; - } =>#t194; + #t171.{core::List::addAll}{Invariant}( block { + final core::Set* #t172 = new col::_CompactLinkedHashSet::•(); + } =>#t172){(core::Iterable*) →* void}; + } =>#t171; core::Set* set51 = block { - final core::Set* #t196 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t173 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t196.{core::Set::addAll}{Invariant}( block { - final core::Set* #t197 = new col::_CompactLinkedHashSet::•(); - } =>#t197){(core::Iterable*) →* void}; - #t196.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t196; + #t173.{core::Set::addAll}{Invariant}( block { + final core::Set* #t174 = new col::_CompactLinkedHashSet::•(); + } =>#t174){(core::Iterable*) →* void}; + #t173.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t173; core::List* list52 = block { - final core::List* #t198 = core::_GrowableList::•(0); + final core::List* #t175 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t198.{core::List::addAll}{Invariant}(core::_GrowableList::•(0)){(core::Iterable*) →* void}; - } =>#t198; + #t175.{core::List::addAll}{Invariant}(core::_GrowableList::•(0)){(core::Iterable*) →* void}; + } =>#t175; core::Set* set52 = block { - final core::Set* #t199 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t176 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t199.{core::Set::addAll}{Invariant}(core::_GrowableList::•(0)){(core::Iterable*) →* void}; - #t199.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t199; + #t176.{core::Set::addAll}{Invariant}(core::_GrowableList::•(0)){(core::Iterable*) →* void}; + #t176.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t176; core::List*>* list60 = block { - final core::List*>* #t200 = core::_GrowableList::•*>(0); + final core::List*>* #t177 = core::_GrowableList::•*>(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t200.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; - } =>#t200; + #t177.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; + } =>#t177; core::Set*>* set60 = block { - final core::Set*>* #t201 = new col::_CompactLinkedHashSet::•*>(); + final core::Set*>* #t178 = new col::_CompactLinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t201.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; - #t201.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t201; + #t178.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; + #t178.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t178; core::Map*>* map60 = block { - final core::Map*>* #t202 = *>{}; + final core::Map*>* #t179 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) { core::Iterator*>>* :sync-for-iterator = *>{"bar": core::_GrowableList::•(0)}.{core::Map::entries}{core::Iterable*>>}.{core::Iterable::iterator}{core::Iterator*>>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry*>* #t203 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry*>}; - #t202.{core::Map::[]=}{Invariant}(#t203.{core::MapEntry::key}{core::String*}, #t203.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; + final core::MapEntry*>* #t180 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry*>}; + #t179.{core::Map::[]=}{Invariant}(#t180.{core::MapEntry::key}{core::String*}, #t180.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; } } - #t202.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t202; + #t179.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t179; core::List*>* list61 = block { - final core::List*>* #t204 = core::_GrowableList::•*>(0); + final core::List*>* #t181 = core::_GrowableList::•*>(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t204.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; - } =>#t204; + #t181.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; + } =>#t181; core::Set*>* set61 = block { - final core::Set*>* #t205 = new col::_CompactLinkedHashSet::•*>(); + final core::Set*>* #t182 = new col::_CompactLinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t205.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; - #t205.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t205; + #t182.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1*>(core::_GrowableList::•(0))){(core::Iterable*>*) →* void}; + #t182.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t182; core::Map*>* map61 = block { - final core::Map*>* #t206 = *>{}; + final core::Map*>* #t183 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) { core::Iterator*>>* :sync-for-iterator = *>{"bar": core::_GrowableList::•(0)}.{core::Map::entries}{core::Iterable*>>}.{core::Iterable::iterator}{core::Iterator*>>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry*>* #t207 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry*>}; - #t206.{core::Map::[]=}{Invariant}(#t207.{core::MapEntry::key}{core::String*}, #t207.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; + final core::MapEntry*>* #t184 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry*>}; + #t183.{core::Map::[]=}{Invariant}(#t184.{core::MapEntry::key}{core::String*}, #t184.{core::MapEntry::value}{core::List*}){(core::String*, core::List*) →* void}; } } - #t206.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t206; + #t183.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t183; core::List*>* list70 = block { - final core::List*>* #t208 = core::_GrowableList::•*>(0); + final core::List*>* #t185 = core::_GrowableList::•*>(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t208.{core::List::add}{Invariant}(core::_GrowableList::•(0)){(core::List*) →* void}; - } =>#t208; + #t185.{core::List::add}{Invariant}(core::_GrowableList::•(0)){(core::List*) →* void}; + } =>#t185; core::Set*>* set70 = block { - final core::Set*>* #t209 = new col::_CompactLinkedHashSet::•*>(); + final core::Set*>* #t186 = new col::_CompactLinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t209.{core::Set::add}{Invariant}(core::_GrowableList::•(0)){(core::List*) →* core::bool*}; - #t209.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t209; + #t186.{core::Set::add}{Invariant}(core::_GrowableList::•(0)){(core::List*) →* core::bool*}; + #t186.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t186; core::Map*>* map70 = block { - final core::Map*>* #t210 = *>{}; + final core::Map*>* #t187 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t210.{core::Map::[]=}{Invariant}("bar", core::_GrowableList::•(0)){(core::String*, core::List*) →* void}; - #t210.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t210; + #t187.{core::Map::[]=}{Invariant}("bar", core::_GrowableList::•(0)){(core::String*, core::List*) →* void}; + #t187.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t187; core::List*>* list71 = block { - final core::List*>* #t211 = core::_GrowableList::•*>(0); + final core::List*>* #t188 = core::_GrowableList::•*>(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t211.{core::List::add}{Invariant}(core::_GrowableList::•(0)){(core::List*) →* void}; - } =>#t211; + #t188.{core::List::add}{Invariant}(core::_GrowableList::•(0)){(core::List*) →* void}; + } =>#t188; core::Set*>* set71 = block { - final core::Set*>* #t212 = new col::_CompactLinkedHashSet::•*>(); + final core::Set*>* #t189 = new col::_CompactLinkedHashSet::•*>(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t212.{core::Set::add}{Invariant}(core::_GrowableList::•(0)){(core::List*) →* core::bool*}; - #t212.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; - } =>#t212; + #t189.{core::Set::add}{Invariant}(core::_GrowableList::•(0)){(core::List*) →* core::bool*}; + #t189.{core::Set::add}{Invariant}(null){(core::List*) →* core::bool*}; + } =>#t189; core::Map*>* map71 = block { - final core::Map*>* #t213 = *>{}; + final core::Map*>* #t190 = *>{}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t213.{core::Map::[]=}{Invariant}("bar", core::_GrowableList::•(0)){(core::String*, core::List*) →* void}; - #t213.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; - } =>#t213; + #t190.{core::Map::[]=}{Invariant}("bar", core::_GrowableList::•(0)){(core::String*, core::List*) →* void}; + #t190.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::List*) →* void}; + } =>#t190; core::List* list80 = block { - final core::List* #t214 = core::_GrowableList::•(0); + final core::List* #t191 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t214.{core::List::add}{Invariant}(42){(core::num*) →* void}; + #t191.{core::List::add}{Invariant}(42){(core::num*) →* void}; else - #t214.{core::List::add}{Invariant}(3.14){(core::num*) →* void}; - } =>#t214; + #t191.{core::List::add}{Invariant}(3.14){(core::num*) →* void}; + } =>#t191; core::Set* set80 = block { - final core::Set* #t215 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t192 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t215.{core::Set::add}{Invariant}(42){(core::num*) →* core::bool*}; + #t192.{core::Set::add}{Invariant}(42){(core::num*) →* core::bool*}; else - #t215.{core::Set::add}{Invariant}(3.14){(core::num*) →* core::bool*}; - #t215.{core::Set::add}{Invariant}(null){(core::num*) →* core::bool*}; - } =>#t215; + #t192.{core::Set::add}{Invariant}(3.14){(core::num*) →* core::bool*}; + #t192.{core::Set::add}{Invariant}(null){(core::num*) →* core::bool*}; + } =>#t192; core::Map* map80 = block { - final core::Map* #t216 = {}; + final core::Map* #t193 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t216.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::num*) →* void}; + #t193.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::num*) →* void}; else - #t216.{core::Map::[]=}{Invariant}("bar", 3.14){(core::String*, core::num*) →* void}; - #t216.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::num*) →* void}; - } =>#t216; + #t193.{core::Map::[]=}{Invariant}("bar", 3.14){(core::String*, core::num*) →* void}; + #t193.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::num*) →* void}; + } =>#t193; core::List* list81 = block { - final core::List* #t217 = core::_GrowableList::•(0); + final core::List* #t194 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t217.{core::List::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; + #t194.{core::List::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; else - #t217.{core::List::addAll}{Invariant}(listDouble){(core::Iterable*) →* void}; - } =>#t217; + #t194.{core::List::addAll}{Invariant}(listDouble){(core::Iterable*) →* void}; + } =>#t194; core::Set* set81 = block { - final core::Set* #t218 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t195 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t218.{core::Set::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; + #t195.{core::Set::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; else - #t218.{core::Set::addAll}{Invariant}(listDouble){(core::Iterable*) →* void}; - #t218.{core::Set::add}{Invariant}(null){(core::num*) →* core::bool*}; - } =>#t218; + #t195.{core::Set::addAll}{Invariant}(listDouble){(core::Iterable*) →* void}; + #t195.{core::Set::add}{Invariant}(null){(core::num*) →* core::bool*}; + } =>#t195; core::Map* map81 = block { - final core::Map* #t219 = {}; + final core::Map* #t196 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) { core::Iterator>* :sync-for-iterator = mapStringInt.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t220 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t219.{core::Map::[]=}{Invariant}(#t220.{core::MapEntry::key}{core::String*}, #t220.{core::MapEntry::value}{core::num*}){(core::String*, core::num*) →* void}; + final core::MapEntry* #t197 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t196.{core::Map::[]=}{Invariant}(#t197.{core::MapEntry::key}{core::String*}, #t197.{core::MapEntry::value}{core::num*}){(core::String*, core::num*) →* void}; } } else { core::Iterator>* :sync-for-iterator = mapStringDouble.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t221 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t219.{core::Map::[]=}{Invariant}(#t221.{core::MapEntry::key}{core::String*}, #t221.{core::MapEntry::value}{core::num*}){(core::String*, core::num*) →* void}; + final core::MapEntry* #t198 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t196.{core::Map::[]=}{Invariant}(#t198.{core::MapEntry::key}{core::String*}, #t198.{core::MapEntry::value}{core::num*}){(core::String*, core::num*) →* void}; } } - #t219.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::num*) →* void}; - } =>#t219; + #t196.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::num*) →* void}; + } =>#t196; core::List* list82 = block { - final core::List* #t222 = core::_GrowableList::•(0); + final core::List* #t199 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t222.{core::List::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; + #t199.{core::List::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; else - #t222.{core::List::addAll}{Invariant}(dynVar as{TypeError,ForDynamic} core::Iterable*){(core::Iterable*) →* void}; - } =>#t222; + #t199.{core::List::addAll}{Invariant}(dynVar as{TypeError,ForDynamic} core::Iterable*){(core::Iterable*) →* void}; + } =>#t199; core::Set* set82 = block { - final core::Set* #t223 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t200 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t223.{core::Set::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; + #t200.{core::Set::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; else - #t223.{core::Set::addAll}{Invariant}(dynVar as{TypeError,ForDynamic} core::Iterable*){(core::Iterable*) →* void}; - #t223.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; - } =>#t223; + #t200.{core::Set::addAll}{Invariant}(dynVar as{TypeError,ForDynamic} core::Iterable*){(core::Iterable*) →* void}; + #t200.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; + } =>#t200; core::Map* map82 = block { - final core::Map* #t224 = {}; + final core::Map* #t201 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) { core::Iterator>* :sync-for-iterator = mapStringInt.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t225 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t224.{core::Map::[]=}{Invariant}(#t225.{core::MapEntry::key}{dynamic}, #t225.{core::MapEntry::value}{dynamic}){(dynamic, dynamic) →* void}; + final core::MapEntry* #t202 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t201.{core::Map::[]=}{Invariant}(#t202.{core::MapEntry::key}{dynamic}, #t202.{core::MapEntry::value}{dynamic}){(dynamic, dynamic) →* void}; } } else { core::Iterator>* :sync-for-iterator = (dynVar as{TypeError,ForDynamic} core::Map*).{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t226 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t224.{core::Map::[]=}{Invariant}(#t226.{core::MapEntry::key}{dynamic}, #t226.{core::MapEntry::value}{dynamic}){(dynamic, dynamic) →* void}; + final core::MapEntry* #t203 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t201.{core::Map::[]=}{Invariant}(#t203.{core::MapEntry::key}{dynamic}, #t203.{core::MapEntry::value}{dynamic}){(dynamic, dynamic) →* void}; } } - #t224.{core::Map::[]=}{Invariant}("baz", null){(dynamic, dynamic) →* void}; - } =>#t224; + #t201.{core::Map::[]=}{Invariant}("baz", null){(dynamic, dynamic) →* void}; + } =>#t201; core::List* list83 = block { - final core::List* #t227 = core::_GrowableList::•(0); + final core::List* #t204 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t227.{core::List::add}{Invariant}(42){(core::num*) →* void}; + #t204.{core::List::add}{Invariant}(42){(core::num*) →* void}; else - #t227.{core::List::addAll}{Invariant}(listDouble){(core::Iterable*) →* void}; - } =>#t227; + #t204.{core::List::addAll}{Invariant}(listDouble){(core::Iterable*) →* void}; + } =>#t204; core::Set* set83 = block { - final core::Set* #t228 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t205 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t228.{core::Set::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; + #t205.{core::Set::addAll}{Invariant}(listInt){(core::Iterable*) →* void}; else - #t228.{core::Set::add}{Invariant}(3.14){(core::num*) →* core::bool*}; - #t228.{core::Set::add}{Invariant}(null){(core::num*) →* core::bool*}; - } =>#t228; + #t205.{core::Set::add}{Invariant}(3.14){(core::num*) →* core::bool*}; + #t205.{core::Set::add}{Invariant}(null){(core::num*) →* core::bool*}; + } =>#t205; core::Map* map83 = block { - final core::Map* #t229 = {}; + final core::Map* #t206 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) { core::Iterator>* :sync-for-iterator = mapStringInt.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t230 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t229.{core::Map::[]=}{Invariant}(#t230.{core::MapEntry::key}{core::String*}, #t230.{core::MapEntry::value}{core::num*}){(core::String*, core::num*) →* void}; + final core::MapEntry* #t207 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t206.{core::Map::[]=}{Invariant}(#t207.{core::MapEntry::key}{core::String*}, #t207.{core::MapEntry::value}{core::num*}){(core::String*, core::num*) →* void}; } } else - #t229.{core::Map::[]=}{Invariant}("bar", 3.14){(core::String*, core::num*) →* void}; - #t229.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::num*) →* void}; - } =>#t229; + #t206.{core::Map::[]=}{Invariant}("bar", 3.14){(core::String*, core::num*) →* void}; + #t206.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::num*) →* void}; + } =>#t206; core::List* list90 = block { - final core::List* #t231 = core::_GrowableList::•(0); + final core::List* #t208 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t231.{core::List::add}{Invariant}(dynVar as{TypeError,ForDynamic} core::int*){(core::int*) →* void}; - } =>#t231; + #t208.{core::List::add}{Invariant}(dynVar as{TypeError,ForDynamic} core::int*){(core::int*) →* void}; + } =>#t208; core::Set* set90 = block { - final core::Set* #t232 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t209 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t232.{core::Set::add}{Invariant}(dynVar as{TypeError,ForDynamic} core::int*){(core::int*) →* core::bool*}; - #t232.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t232; + #t209.{core::Set::add}{Invariant}(dynVar as{TypeError,ForDynamic} core::int*){(core::int*) →* core::bool*}; + #t209.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t209; core::Map* map90 = block { - final core::Map* #t233 = {}; + final core::Map* #t210 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t233.{core::Map::[]=}{Invariant}("bar", dynVar as{TypeError,ForDynamic} core::int*){(core::String*, core::int*) →* void}; - #t233.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t233; + #t210.{core::Map::[]=}{Invariant}("bar", dynVar as{TypeError,ForDynamic} core::int*){(core::String*, core::int*) →* void}; + #t210.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t210; core::List* list91 = block { - final core::List* #t234 = core::_GrowableList::•(0); + final core::List* #t211 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) { core::Iterator* :sync-for-iterator = (dynVar as{TypeError,ForDynamic} core::Iterable*).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t235 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t212 = :sync-for-iterator.{core::Iterator::current}{dynamic}; { - final core::int* #t236 = #t235 as{TypeError} core::int*; - #t234.{core::List::add}{Invariant}(#t236){(core::int*) →* void}; + final core::int* #t213 = #t212 as{TypeError} core::int*; + #t211.{core::List::add}{Invariant}(#t213){(core::int*) →* void}; } } } - } =>#t234; + } =>#t211; core::Set* set91 = block { - final core::Set* #t237 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t214 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) { core::Iterator* :sync-for-iterator = (dynVar as{TypeError,ForDynamic} core::Iterable*).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t238 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t215 = :sync-for-iterator.{core::Iterator::current}{dynamic}; { - final core::int* #t239 = #t238 as{TypeError} core::int*; - #t237.{core::Set::add}{Invariant}(#t239){(core::int*) →* core::bool*}; + final core::int* #t216 = #t215 as{TypeError} core::int*; + #t214.{core::Set::add}{Invariant}(#t216){(core::int*) →* core::bool*}; } } } - #t237.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t237; + #t214.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t214; core::Map* map91 = block { - final core::Map* #t240 = {}; + final core::Map* #t217 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) { core::Iterator>* :sync-for-iterator = (dynVar as{TypeError,ForDynamic} core::Map*).{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t241 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + final core::MapEntry* #t218 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; { - final core::String* #t242 = #t241.{core::MapEntry::key}{dynamic} as{TypeError} core::String*; - final core::int* #t243 = #t241.{core::MapEntry::value}{dynamic} as{TypeError} core::int*; - #t240.{core::Map::[]=}{Invariant}(#t242, #t243){(core::String*, core::int*) →* void}; + final core::String* #t219 = #t218.{core::MapEntry::key}{dynamic} as{TypeError} core::String*; + final core::int* #t220 = #t218.{core::MapEntry::value}{dynamic} as{TypeError} core::int*; + #t217.{core::Map::[]=}{Invariant}(#t219, #t220){(core::String*, core::int*) →* void}; } } } - #t240.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t240; + #t217.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t217; core::List* list100 = block { - final core::List* #t244 = core::_GrowableList::•(0); - for (final core::int* #t245 = index = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; index = index.{core::num::+}(1){(core::num*) →* core::int*}) - #t244.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t244; + final core::List* #t221 = core::_GrowableList::•(0); + for (final core::int* #t222 = index = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; index = index.{core::num::+}(1){(core::num*) →* core::int*}) + #t221.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t221; core::Set* set100 = block { - final core::Set* #t246 = new col::_CompactLinkedHashSet::•(); - for (final core::int* #t247 = index = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; index = index.{core::num::+}(1){(core::num*) →* core::int*}) - #t246.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - } =>#t246; + final core::Set* #t223 = new col::_CompactLinkedHashSet::•(); + for (final core::int* #t224 = index = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; index = index.{core::num::+}(1){(core::num*) →* core::int*}) + #t223.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + } =>#t223; core::Map* map100 = block { - final core::Map* #t248 = {}; - for (final core::int* #t249 = index = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; index = index.{core::num::+}(1){(core::num*) →* core::int*}) - #t248.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; - } =>#t248; + final core::Map* #t225 = {}; + for (final core::int* #t226 = index = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; index = index.{core::num::+}(1){(core::num*) →* core::int*}) + #t225.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; + } =>#t225; core::List* list110 = block { - final core::List* #t250 = core::_GrowableList::•(0); + final core::List* #t227 = core::_GrowableList::•(0); { core::Iterator* :sync-for-iterator = core::_GrowableList::_literal3(1, 2, 3).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { core::int* i = :sync-for-iterator.{core::Iterator::current}{core::int*}; - #t250.{core::List::add}{Invariant}(i){(core::int*) →* void}; + #t227.{core::List::add}{Invariant}(i){(core::int*) →* void}; } } - } =>#t250; + } =>#t227; core::Set* set110 = block { - final core::Set* #t251 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t228 = new col::_CompactLinkedHashSet::•(); { core::Iterator* :sync-for-iterator = core::_GrowableList::_literal3(1, 2, 3).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { core::int* i = :sync-for-iterator.{core::Iterator::current}{core::int*}; - #t251.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; + #t228.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; } } - #t251.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t251; + #t228.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t228; core::Map* map110 = block { - final core::Map* #t252 = {}; + final core::Map* #t229 = {}; { core::Iterator* :sync-for-iterator = core::_GrowableList::_literal3(1, 2, 3).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { core::int* i = :sync-for-iterator.{core::Iterator::current}{core::int*}; - #t252.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; + #t229.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; } } - #t252.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t252; + #t229.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t229; core::List* list120 = block { - final core::List* #t253 = core::_GrowableList::•(0); + final core::List* #t230 = core::_GrowableList::•(0); { core::Iterator* :sync-for-iterator = (dynVar as{TypeError,ForDynamic} core::Iterable*).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { dynamic i = :sync-for-iterator.{core::Iterator::current}{dynamic}; - #t253.{core::List::add}{Invariant}(i as{TypeError,ForDynamic} core::int*){(core::int*) →* void}; + #t230.{core::List::add}{Invariant}(i as{TypeError,ForDynamic} core::int*){(core::int*) →* void}; } } - } =>#t253; + } =>#t230; core::Set* set120 = block { - final core::Set* #t254 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t231 = new col::_CompactLinkedHashSet::•(); { core::Iterator* :sync-for-iterator = (dynVar as{TypeError,ForDynamic} core::Iterable*).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { dynamic i = :sync-for-iterator.{core::Iterator::current}{dynamic}; - #t254.{core::Set::add}{Invariant}(i as{TypeError,ForDynamic} core::int*){(core::int*) →* core::bool*}; + #t231.{core::Set::add}{Invariant}(i as{TypeError,ForDynamic} core::int*){(core::int*) →* core::bool*}; } } - #t254.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t254; + #t231.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t231; core::Map* map120 = block { - final core::Map* #t255 = {}; + final core::Map* #t232 = {}; { core::Iterator* :sync-for-iterator = (dynVar as{TypeError,ForDynamic} core::Iterable*).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { dynamic i = :sync-for-iterator.{core::Iterator::current}{dynamic}; - #t255.{core::Map::[]=}{Invariant}("bar", i as{TypeError,ForDynamic} core::int*){(core::String*, core::int*) →* void}; + #t232.{core::Map::[]=}{Invariant}("bar", i as{TypeError,ForDynamic} core::int*){(core::String*, core::int*) →* void}; } } - #t255.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t255; + #t232.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t232; core::List* list130 = block { - final core::List* #t256 = core::_GrowableList::•(0); + final core::List* #t233 = core::_GrowableList::•(0); for (core::int* i = 1; i.{core::num::<}(2){(core::num*) →* core::bool*}; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t256.{core::List::add}{Invariant}(i){(core::int*) →* void}; - } =>#t256; + #t233.{core::List::add}{Invariant}(i){(core::int*) →* void}; + } =>#t233; core::Set* set130 = block { - final core::Set* #t257 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t234 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 1; i.{core::num::<}(2){(core::num*) →* core::bool*}; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t257.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; - } =>#t257; + #t234.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; + } =>#t234; core::Map* map130 = block { - final core::Map* #t258 = {}; + final core::Map* #t235 = {}; for (core::int* i = 1; i.{core::num::<}(2){(core::num*) →* core::bool*}; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t258.{core::Map::[]=}{Invariant}(i, i){(core::int*, core::int*) →* void}; - } =>#t258; + #t235.{core::Map::[]=}{Invariant}(i, i){(core::int*, core::int*) →* void}; + } =>#t235; } static method testForElementErrors(core::Map* map, core::List* list) → dynamic /* originally async */ { final asy::_Future* :async_future = new asy::_Future::•(); @@ -1960,81 +1960,81 @@ static method testForElementErrors(core::Map* map, core: #L1: { block { - final core::List* #t259 = core::_GrowableList::•(0); + final core::List* #t236 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t259.{core::List::add}{Invariant}(let final Never* #t260 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:210:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t236.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:210:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. [for (int i = 0; oracle(\"foo\"); i++) \"bar\"]; ^" in "bar" as{TypeError} core::int*){(core::int*) →* void}; - } =>#t259; + } =>#t236; block { - final core::Set* #t261 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t237 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t261.{core::Set::add}{Invariant}(let final Never* #t262 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:211:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t237.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:211:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) \"bar\", null}; ^" in "bar" as{TypeError} core::int*){(core::int*) →* core::bool*}; - #t261.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t261; + #t237.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t237; block { - final core::Map* #t263 = {}; + final core::Map* #t238 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t263.{core::Map::[]=}{Invariant}(let final Never* #t264 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:212:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t238.{core::Map::[]=}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:212:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) \"bar\": \"bar\", \"baz\": null}; - ^" in "bar" as{TypeError} core::int*, let final Never* #t265 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:212:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "bar" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:212:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) \"bar\": \"bar\", \"baz\": null}; ^" in "bar" as{TypeError} core::int*){(core::int*, core::int*) →* void}; - #t263.{core::Map::[]=}{Invariant}(let final Never* #t266 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:212:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t238.{core::Map::[]=}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:212:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) \"bar\": \"bar\", \"baz\": null}; ^" in "baz" as{TypeError} core::int*, null){(core::int*, core::int*) →* void}; - } =>#t263; + } =>#t238; block { - final core::List* #t267 = core::_GrowableList::•(0); + final core::List* #t239 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t267.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1(let final Never* #t268 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:213:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t239.{core::List::addAll}{Invariant}(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:213:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. [for (int i = 0; oracle(\"foo\"); i++) ...[\"bar\"]]; ^" in "bar" as{TypeError} core::int*)){(core::Iterable*) →* void}; - } =>#t267; + } =>#t239; block { - final core::Set* #t269 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t240 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t269.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1(let final Never* #t270 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:214:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t240.{core::Set::addAll}{Invariant}(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:214:49: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) ...[\"bar\"], null}; ^" in "bar" as{TypeError} core::int*)){(core::Iterable*) →* void}; - #t269.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t269; + #t240.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t240; block { - final core::Map* #t271 = {}; + final core::Map* #t241 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) { - core::Iterator>* :sync-for-iterator = {let final Never* #t272 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:215:54: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Iterator>* :sync-for-iterator = {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:215:54: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) ...{\"bar\": \"bar\"}, \"baz\": null}; - ^" in "bar" as{TypeError} core::int*: let final Never* #t273 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:215:61: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "bar" as{TypeError} core::int*: invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:215:61: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) ...{\"bar\": \"bar\"}, \"baz\": null}; ^" in "bar" as{TypeError} core::int*}.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t274 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t271.{core::Map::[]=}{Invariant}(#t274.{core::MapEntry::key}{core::int*}, #t274.{core::MapEntry::value}{core::int*}){(core::int*, core::int*) →* void}; + final core::MapEntry* #t242 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t241.{core::Map::[]=}{Invariant}(#t242.{core::MapEntry::key}{core::int*}, #t242.{core::MapEntry::value}{core::int*}){(core::int*, core::int*) →* void}; } } - #t271.{core::Map::[]=}{Invariant}(let final Never* #t275 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:215:69: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + #t241.{core::Map::[]=}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:215:69: Error: A value of type 'String' can't be assigned to a variable of type 'int'. {for (int i = 0; oracle(\"foo\"); i++) ...{\"bar\": \"bar\"}, \"baz\": null}; ^" in "baz" as{TypeError} core::int*, null){(core::int*, core::int*) →* void}; - } =>#t271; + } =>#t241; block { - final core::List* #t276 = core::_GrowableList::•(0); + final core::List* #t243 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t276.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:216:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t243.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:216: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]; ^"){(core::int*) →* void}; - } =>#t276; + } =>#t243; block { - final core::Set* #t277 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t244 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) - #t277.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:217:48: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t244.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:217: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}; ^"){(core::int*) →* core::bool*}; - #t277.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t277; + #t244.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t244; {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:218:53: Error: Unexpected type 'List' of a map spread entry. Expected 'dynamic' or a Map. - 'List' is from 'dart:core'. {for (int i = 0; oracle(\"foo\"); i++) ...list, 42: null}; @@ -2043,66 +2043,66 @@ static method testForElementErrors(core::Map* map, core: {for (int i = 0; oracle(\"foo\"); i++) ...list, 42: null}; ^": null}; block { - final core::List* #t278 = core::_GrowableList::•(0); + final core::List* #t245 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t278.{core::List::add}{Invariant}(let final Never* #t279 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:219:62: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t245.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:219:62: Error: A value of type 'int' can't be assigned to a variable of type 'String'. [for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else 3.14]; ^" in 42 as{TypeError} core::String*){(core::String*) →* void}; else - #t278.{core::List::add}{Invariant}(let final Never* #t280 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:219:70: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + #t245.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:219:70: Error: A value of type 'double' can't be assigned to a variable of type 'String'. [for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else 3.14]; ^" in 3.14 as{TypeError} core::String*){(core::String*) →* void}; - } =>#t278; + } =>#t245; block { - final core::Set* #t281 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t246 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t281.{core::Set::add}{Invariant}(let final Never* #t282 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:220:62: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t246.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:220:62: Error: A value of type 'int' can't be assigned to a variable of type 'String'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else 3.14, null}; ^" in 42 as{TypeError} core::String*){(core::String*) →* core::bool*}; else - #t281.{core::Set::add}{Invariant}(let final Never* #t283 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:220:70: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + #t246.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:220:70: Error: A value of type 'double' can't be assigned to a variable of type 'String'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) 42 else 3.14, null}; ^" in 3.14 as{TypeError} core::String*){(core::String*) →* core::bool*}; - #t281.{core::Set::add}{Invariant}(null){(core::String*) →* core::bool*}; - } =>#t281; + #t246.{core::Set::add}{Invariant}(null){(core::String*) →* core::bool*}; + } =>#t246; block { - final core::Map* #t284 = {}; + final core::Map* #t247 = {}; for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t284.{core::Map::[]=}{Invariant}("bar", let final Never* #t285 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:221:77: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + #t247.{core::Map::[]=}{Invariant}("bar", invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:221:77: Error: A value of type 'int' can't be assigned to a variable of type 'String'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) \"bar\": 42 else \"bar\": 3.14, \"baz\": null}; ^" in 42 as{TypeError} core::String*){(core::String*, core::String*) →* void}; else - #t284.{core::Map::[]=}{Invariant}("bar", let final Never* #t286 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:221:92: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + #t247.{core::Map::[]=}{Invariant}("bar", invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:221:92: Error: A value of type 'double' can't be assigned to a variable of type 'String'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) \"bar\": 42 else \"bar\": 3.14, \"baz\": null}; ^" in 3.14 as{TypeError} core::String*){(core::String*, core::String*) →* void}; - #t284.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::String*) →* void}; - } =>#t284; + #t247.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::String*) →* void}; + } =>#t247; block { - final core::List* #t287 = core::_GrowableList::•(0); + final core::List* #t248 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t287.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:222:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t248.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:222: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]; ^"){(core::int*) →* void}; else - #t287.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t287; + #t248.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t248; block { - final core::Set* #t288 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t249 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t288.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:223:62: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t249.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:223: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}; ^"){(core::int*) →* core::bool*}; else - #t288.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - #t288.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t288; + #t249.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t249.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t249; {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:224:70: Error: Unexpected type 'List' of a map spread entry. Expected 'dynamic' or a Map. - 'List' is from 'dart:core'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) ...list else \"bar\": 42, \"baz\": null}; @@ -2111,28 +2111,28 @@ static method testForElementErrors(core::Map* map, core: {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) ...list else \"bar\": 42, \"baz\": null}; ^": null}; block { - final core::List* #t289 = core::_GrowableList::•(0); + final core::List* #t250 = core::_GrowableList::•(0); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t289.{core::List::add}{Invariant}(42){(core::int*) →* void}; + #t250.{core::List::add}{Invariant}(42){(core::int*) →* void}; else - #t289.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:225:70: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t250.{core::List::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:225: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]; ^"){(core::int*) →* void}; - } =>#t289; + } =>#t250; block { - final core::Set* #t290 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t251 = new col::_CompactLinkedHashSet::•(); for (core::int* i = 0; self::oracle("foo") as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) if(self::oracle() as{TypeError,ForDynamic} core::bool*) - #t290.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t251.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; else - #t290.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:226:70: Error: Unexpected type 'Map' of a spread. Expected 'dynamic' or an Iterable. + #t251.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:226: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, null}; ^"){(core::int*) →* core::bool*}; - #t290.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t290; + #t251.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t251; {invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:227:85: Error: Unexpected type 'List' of a map spread entry. Expected 'dynamic' or a Map. - 'List' is from 'dart:core'. {for (int i = 0; oracle(\"foo\"); i++) if (oracle()) \"bar\": 42 else ...list, \"baz\": null}; @@ -2142,140 +2142,140 @@ static method testForElementErrors(core::Map* map, core: ^": null}; final core::int* i = 0; block { - final core::List* #t291 = core::_GrowableList::•(0); + final core::List* #t252 = core::_GrowableList::•(0); { core::Iterator* :sync-for-iterator = core::_GrowableList::_literal1(1).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::int* #t292 = :sync-for-iterator.{core::Iterator::current}{core::int*}; + final core::int* #t253 = :sync-for-iterator.{core::Iterator::current}{core::int*}; { invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:230:14: Error: Can't assign to the final variable 'i'. [for (i in [1]) i]; ^"; - #t291.{core::List::add}{Invariant}(i){(core::int*) →* void}; + #t252.{core::List::add}{Invariant}(i){(core::int*) →* void}; } } } - } =>#t291; + } =>#t252; block { - final core::Set* #t293 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t254 = new col::_CompactLinkedHashSet::•(); { core::Iterator* :sync-for-iterator = core::_GrowableList::_literal1(1).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::int* #t294 = :sync-for-iterator.{core::Iterator::current}{core::int*}; + final core::int* #t255 = :sync-for-iterator.{core::Iterator::current}{core::int*}; { invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:231:14: Error: Can't assign to the final variable 'i'. {for (i in [1]) i, null}; ^"; - #t293.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; + #t254.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; } } } - #t293.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t293; + #t254.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t254; block { - final core::Map* #t295 = {}; + final core::Map* #t256 = {}; { core::Iterator* :sync-for-iterator = core::_GrowableList::_literal1(1).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::int* #t296 = :sync-for-iterator.{core::Iterator::current}{core::int*}; + final core::int* #t257 = :sync-for-iterator.{core::Iterator::current}{core::int*}; { invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:232:21: Error: Can't assign to the final variable 'i'. \t{for (i in [1]) \"bar\": i, \"baz\": null}; \t ^"; - #t295.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; + #t256.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; } } } - #t295.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t295; + #t256.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t256; core::List* list10 = block { - final core::List* #t297 = core::_GrowableList::•(0); + final core::List* #t258 = core::_GrowableList::•(0); { - core::Iterator* :sync-for-iterator = (let final Never* #t298 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:234:31: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + core::Iterator* :sync-for-iterator = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:234: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*).{core::Iterable::iterator}{core::Iterator*}; + ^" in "not iterable" as{TypeError} core::Iterable*.{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - dynamic i = :sync-for-iterator.{core::Iterator::current}{dynamic}; - #t297.{core::List::add}{Invariant}(i){(dynamic) →* void}; + dynamic i = :sync-for-iterator.{core::Iterator::current}{Never}; + #t258.{core::List::add}{Invariant}(i){(dynamic) →* void}; } } - } =>#t297; + } =>#t258; core::Set* set10 = block { - final core::Set* #t299 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t259 = new col::_CompactLinkedHashSet::•(); { - core::Iterator* :sync-for-iterator = (let final Never* #t300 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:235:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + core::Iterator* :sync-for-iterator = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:235: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*).{core::Iterable::iterator}{core::Iterator*}; + ^" in "not iterable" as{TypeError} core::Iterable*.{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - dynamic i = :sync-for-iterator.{core::Iterator::current}{dynamic}; - #t299.{core::Set::add}{Invariant}(i){(dynamic) →* core::bool*}; + dynamic i = :sync-for-iterator.{core::Iterator::current}{Never}; + #t259.{core::Set::add}{Invariant}(i){(dynamic) →* core::bool*}; } } - #t299.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; - } =>#t299; + #t259.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; + } =>#t259; core::Map* map10 = block { - final core::Map* #t301 = {}; + final core::Map* #t260 = {}; { - core::Iterator* :sync-for-iterator = (let final Never* #t302 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:236:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + core::Iterator* :sync-for-iterator = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:236:30: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. - 'Iterable' is from 'dart:core'. var map10 = {for (var i in \"not iterable\") \"bar\": i, \"baz\": null}; - ^" in "not iterable" as{TypeError} core::Iterable*).{core::Iterable::iterator}{core::Iterator*}; + ^" in "not iterable" as{TypeError} core::Iterable*.{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - dynamic i = :sync-for-iterator.{core::Iterator::current}{dynamic}; - #t301.{core::Map::[]=}{Invariant}("bar", i){(core::String*, dynamic) →* void}; + dynamic i = :sync-for-iterator.{core::Iterator::current}{Never}; + #t260.{core::Map::[]=}{Invariant}("bar", i){(core::String*, dynamic) →* void}; } } - #t301.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; - } =>#t301; + #t260.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; + } =>#t260; core::List* list20 = block { - final core::List* #t303 = core::_GrowableList::•(0); + final core::List* #t261 = core::_GrowableList::•(0); { - core::Iterator* :sync-for-iterator = core::_GrowableList::_literal2(let final Never* #t304 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:237:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Iterator* :sync-for-iterator = core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:237:32: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var list20 = [for (int i in [\"not\", \"int\"]) i]; - ^" in "not" as{TypeError} core::int*, let final Never* #t305 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:237:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:237:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var list20 = [for (int i in [\"not\", \"int\"]) i]; ^" in "int" as{TypeError} core::int*).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { core::int* i = :sync-for-iterator.{core::Iterator::current}{core::int*}; - #t303.{core::List::add}{Invariant}(i){(core::int*) →* void}; + #t261.{core::List::add}{Invariant}(i){(core::int*) →* void}; } } - } =>#t303; + } =>#t261; core::Set* set20 = block { - final core::Set* #t306 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t262 = new col::_CompactLinkedHashSet::•(); { - core::Iterator* :sync-for-iterator = core::_GrowableList::_literal2(let final Never* #t307 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:238:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Iterator* :sync-for-iterator = core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:238:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var set20 = {for (int i in [\"not\", \"int\"]) i, null}; - ^" in "not" as{TypeError} core::int*, let final Never* #t308 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:238:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:238:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var set20 = {for (int i in [\"not\", \"int\"]) i, null}; ^" in "int" as{TypeError} core::int*).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { core::int* i = :sync-for-iterator.{core::Iterator::current}{core::int*}; - #t306.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; + #t262.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; } } - #t306.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t306; + #t262.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t262; core::Map* map20 = block { - final core::Map* #t309 = {}; + final core::Map* #t263 = {}; { - core::Iterator* :sync-for-iterator = core::_GrowableList::_literal2(let final Never* #t310 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:239:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Iterator* :sync-for-iterator = core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:239:31: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var map20 = {for (int i in [\"not\", \"int\"]) \"bar\": i, \"baz\": null}; - ^" in "not" as{TypeError} core::int*, let final Never* #t311 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:239:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:239:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var map20 = {for (int i in [\"not\", \"int\"]) \"bar\": i, \"baz\": null}; ^" in "int" as{TypeError} core::int*).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { core::int* i = :sync-for-iterator.{core::Iterator::current}{core::int*}; - #t309.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; + #t263.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; } } - #t309.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t309; - final core::List* #t312 = core::_GrowableList::•(0); + #t263.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t263; + final core::List* #t264 = core::_GrowableList::•(0); { - asy::Stream* :stream = let final Never* #t313 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:240:37: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + Never :stream = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:240: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*; @@ -2283,25 +2283,25 @@ static method testForElementErrors(core::Map* map, core: try #L2: while (true) { - dynamic #t314 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t315 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t265 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t266 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { dynamic i = :for-iterator.{asy::_StreamIterator::current}{dynamic}; - #t312.{core::List::add}{Invariant}(i){(dynamic) →* void}; + #t264.{core::List::add}{Invariant}(i){(dynamic) →* void}; } else break #L2; } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t316 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t267 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } - core::List* list30 = block {} =>#t312; - final core::Set* #t317 = new col::_CompactLinkedHashSet::•(); + core::List* list30 = block {} =>#t264; + final core::Set* #t268 = new col::_CompactLinkedHashSet::•(); { - asy::Stream* :stream = let final Never* #t318 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:241:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + Never :stream = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:241: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*; @@ -2309,27 +2309,27 @@ static method testForElementErrors(core::Map* map, core: try #L3: while (true) { - dynamic #t319 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t320 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t269 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t270 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { dynamic i = :for-iterator.{asy::_StreamIterator::current}{dynamic}; - #t317.{core::Set::add}{Invariant}(i){(dynamic) →* core::bool*}; + #t268.{core::Set::add}{Invariant}(i){(dynamic) →* core::bool*}; } else break #L3; } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t321 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t271 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } core::Set* set30 = block { - #t317.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; - } =>#t317; - final core::Map* #t322 = {}; + #t268.{core::Set::add}{Invariant}(null){(dynamic) →* core::bool*}; + } =>#t268; + final core::Map* #t272 = {}; { - asy::Stream* :stream = let final Never* #t323 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:242:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + Never :stream = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:242:36: Error: The type 'String' used in the 'for' loop must implement 'Stream'. - 'Stream' is from 'dart:async'. var map30 = {await for (var i in \"not stream\") \"bar\": i, \"baz\": null}; ^" in "not stream" as{TypeError} asy::Stream*; @@ -2337,149 +2337,149 @@ static method testForElementErrors(core::Map* map, core: try #L4: while (true) { - dynamic #t324 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t325 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t273 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t274 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { dynamic i = :for-iterator.{asy::_StreamIterator::current}{dynamic}; - #t322.{core::Map::[]=}{Invariant}("bar", i){(core::String*, dynamic) →* void}; + #t272.{core::Map::[]=}{Invariant}("bar", i){(core::String*, dynamic) →* void}; } else break #L4; } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t326 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t275 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } core::Map* map30 = block { - #t322.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; - } =>#t322; - final core::List* #t327 = core::_GrowableList::•(0); + #t272.{core::Map::[]=}{Invariant}("baz", null){(core::String*, dynamic) →* void}; + } =>#t272; + final core::List* #t276 = core::_GrowableList::•(0); { - asy::Stream :stream = asy::Stream::fromIterable(core::_GrowableList::_literal2(let final Never* #t328 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:243:58: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + asy::Stream :stream = asy::Stream::fromIterable(core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:243:58: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var list40 = [await for (int i in Stream.fromIterable([\"not\", \"int\"])) i]; - ^" in "not" as{TypeError} core::int*, let final Never* #t329 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:243:65: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:243:65: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var list40 = [await for (int i in Stream.fromIterable([\"not\", \"int\"])) i]; ^" in "int" as{TypeError} core::int*)); asy::_StreamIterator* :for-iterator = new asy::_StreamIterator::•(:stream); try #L5: while (true) { - dynamic #t330 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t331 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t277 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t278 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { core::int* i = :for-iterator.{asy::_StreamIterator::current}{core::int*}; - #t327.{core::List::add}{Invariant}(i){(core::int*) →* void}; + #t276.{core::List::add}{Invariant}(i){(core::int*) →* void}; } else break #L5; } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t332 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t279 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } - core::List* list40 = block {} =>#t327; - final core::Set* #t333 = new col::_CompactLinkedHashSet::•(); + core::List* list40 = block {} =>#t276; + final core::Set* #t280 = new col::_CompactLinkedHashSet::•(); { - asy::Stream :stream = asy::Stream::fromIterable(core::_GrowableList::_literal2(let final Never* #t334 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:244:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + asy::Stream :stream = asy::Stream::fromIterable(core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:244:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var set40 = {await for (int i in Stream.fromIterable([\"not\", \"int\"])) i, null}; - ^" in "not" as{TypeError} core::int*, let final Never* #t335 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:244:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:244:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var set40 = {await for (int i in Stream.fromIterable([\"not\", \"int\"])) i, null}; ^" in "int" as{TypeError} core::int*)); asy::_StreamIterator* :for-iterator = new asy::_StreamIterator::•(:stream); try #L6: while (true) { - dynamic #t336 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t337 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t281 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t282 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { core::int* i = :for-iterator.{asy::_StreamIterator::current}{core::int*}; - #t333.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; + #t280.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; } else break #L6; } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t338 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t283 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } core::Set* set40 = block { - #t333.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t333; - final core::Map* #t339 = {}; + #t280.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t280; + final core::Map* #t284 = {}; { - asy::Stream :stream = asy::Stream::fromIterable(core::_GrowableList::_literal2(let final Never* #t340 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:245:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + asy::Stream :stream = asy::Stream::fromIterable(core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:245:57: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var map40 = {await for (int i in Stream.fromIterable([\"not\", \"int\"])) \"bar\": i, \"baz\": null}; - ^" in "not" as{TypeError} core::int*, let final Never* #t341 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:245:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + ^" in "not" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:245:64: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var map40 = {await for (int i in Stream.fromIterable([\"not\", \"int\"])) \"bar\": i, \"baz\": null}; ^" in "int" as{TypeError} core::int*)); asy::_StreamIterator* :for-iterator = new asy::_StreamIterator::•(:stream); try #L7: while (true) { - dynamic #t342 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t343 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t285 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t286 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { core::int* i = :for-iterator.{asy::_StreamIterator::current}{core::int*}; - #t339.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; + #t284.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; } else break #L7; } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t344 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t287 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } core::Map* map40 = block { - #t339.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t339; + #t284.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t284; core::List* list50 = block { - final core::List* #t345 = core::_GrowableList::•(0); + final core::List* #t288 = core::_GrowableList::•(0); for (; ; ) - #t345.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t345; + #t288.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t288; core::Set* set50 = block { - final core::Set* #t346 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t289 = new col::_CompactLinkedHashSet::•(); for (; ; ) - #t346.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - #t346.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t346; + #t289.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t289.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t289; core::Map* map50 = block { - final core::Map* #t347 = {}; + final core::Map* #t290 = {}; for (; ; ) - #t347.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; - #t347.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t347; + #t290.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; + #t290.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t290; core::List* list60 = block { - final core::List* #t348 = core::_GrowableList::•(0); - for (; let final Never* #t349 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:249:24: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. + final core::List* #t291 = core::_GrowableList::•(0); + for (; invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:249:24: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. var list60 = [for (; \"not bool\";) 42]; ^" in "not bool" as{TypeError} core::bool*; ) - #t348.{core::List::add}{Invariant}(42){(core::int*) →* void}; - } =>#t348; + #t291.{core::List::add}{Invariant}(42){(core::int*) →* void}; + } =>#t291; core::Set* set60 = block { - final core::Set* #t350 = new col::_CompactLinkedHashSet::•(); - for (; let final Never* #t351 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:250:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. + final core::Set* #t292 = new col::_CompactLinkedHashSet::•(); + for (; invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:250:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. var set60 = {for (; \"not bool\";) 42, null}; ^" in "not bool" as{TypeError} core::bool*; ) - #t350.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - #t350.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; - } =>#t350; + #t292.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + #t292.{core::Set::add}{Invariant}(null){(core::int*) →* core::bool*}; + } =>#t292; core::Map* map60 = block { - final core::Map* #t352 = {}; - for (; let final Never* #t353 = invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:251:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. + final core::Map* #t293 = {}; + for (; invalid-expression "pkg/front_end/testcases/general/control_flow_collection_inference.dart:251:23: Error: A value of type 'String' can't be assigned to a variable of type 'bool'. var map60 = {for (; \"not bool\";) \"bar\": 42, \"baz\": null}; ^" in "not bool" as{TypeError} core::bool*; ) - #t352.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; - #t352.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; - } =>#t352; + #t293.{core::Map::[]=}{Invariant}("bar", 42){(core::String*, core::int*) →* void}; + #t293.{core::Map::[]=}{Invariant}("baz", null){(core::String*, core::int*) →* void}; + } =>#t293; } asy::_completeOnAsyncReturn(:async_future, :return_value, :is_sync); return; @@ -2495,37 +2495,37 @@ static method testForElementErrors(core::Map* map, core: } static method testForElementErrorsNotAsync(asy::Stream* stream) → dynamic { block { - final core::List* #t354 = core::_GrowableList::•(0); + final core::List* #t294 = core::_GrowableList::•(0); await for (core::int* i in stream) - #t354.{core::List::add}{Invariant}(i){(core::int*) →* void}; - } =>#t354; + #t294.{core::List::add}{Invariant}(i){(core::int*) →* void}; + } =>#t294; block { - final core::Set* #t355 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t295 = new col::_CompactLinkedHashSet::•(); await for (core::int* i in stream) - #t355.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; - } =>#t355; + #t295.{core::Set::add}{Invariant}(i){(core::int*) →* core::bool*}; + } =>#t295; block { - final core::Map* #t356 = {}; + final core::Map* #t296 = {}; await for (core::int* i in stream) - #t356.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; - } =>#t356; + #t296.{core::Map::[]=}{Invariant}("bar", i){(core::String*, core::int*) →* void}; + } =>#t296; } static method testPromotion(self::A* a) → dynamic { core::List* list10 = block { - final core::List* #t357 = core::_GrowableList::•(0); + final core::List* #t297 = core::_GrowableList::•(0); if(a is self::B*) - #t357.{core::List::add}{Invariant}(a{self::B*}.{self::B::foo}{core::int*}){(core::int*) →* void}; - } =>#t357; + #t297.{core::List::add}{Invariant}(a{self::B*}.{self::B::foo}{core::int*}){(core::int*) →* void}; + } =>#t297; core::Set* set10 = block { - final core::Set* #t358 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t298 = new col::_CompactLinkedHashSet::•(); if(a is self::B*) - #t358.{core::Set::add}{Invariant}(a{self::B*}.{self::B::foo}{core::int*}){(core::int*) →* core::bool*}; - } =>#t358; + #t298.{core::Set::add}{Invariant}(a{self::B*}.{self::B::foo}{core::int*}){(core::int*) →* core::bool*}; + } =>#t298; core::Map* map10 = block { - final core::Map* #t359 = {}; + final core::Map* #t299 = {}; if(a is self::B*) - #t359.{core::Map::[]=}{Invariant}(a{self::B*}.{self::B::foo}{core::int*}, a{self::B*}.{self::B::foo}{core::int*}){(core::int*, core::int*) →* void}; - } =>#t359; + #t299.{core::Map::[]=}{Invariant}(a{self::B*}.{self::B::foo}{core::int*}, a{self::B*}.{self::B::foo}{core::int*}){(core::int*, core::int*) →* void}; + } =>#t299; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/covariant_equals.dart.weak.expect b/pkg/front_end/testcases/general/covariant_equals.dart.weak.expect index bded27c463c..2e6ac110f53 100644 --- a/pkg/front_end/testcases/general/covariant_equals.dart.weak.expect +++ b/pkg/front_end/testcases/general/covariant_equals.dart.weak.expect @@ -170,115 +170,115 @@ static method main() → dynamic {} static method test(self::A* a, self::B* b, self::C* c_dynamic, self::C* c_int, self::C* c_string, self::D* d) → dynamic { a =={self::A::==}{(self::A*) →* core::bool*} a; a =={self::A::==}{(self::A*) →* core::bool*} b; - a =={self::A::==}{(self::A*) →* core::bool*} (let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:24:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. + a =={self::A::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:24:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. a == c_dynamic; // error - ^" in c_dynamic as{TypeError} self::A*); - a =={self::A::==}{(self::A*) →* core::bool*} (let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:25:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. + ^" in c_dynamic as{TypeError} self::A*; + a =={self::A::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:25:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. a == c_int; // error - ^" in c_int as{TypeError} self::A*); - a =={self::A::==}{(self::A*) →* core::bool*} (let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:26:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. + ^" in c_int as{TypeError} self::A*; + a =={self::A::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:26:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. a == c_string; // error - ^" in c_string as{TypeError} self::A*); - a =={self::A::==}{(self::A*) →* core::bool*} (let final Never* #t4 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:27:8: Error: The argument type 'D' can't be assigned to the parameter type 'A'. + ^" in c_string as{TypeError} self::A*; + a =={self::A::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:27:8: Error: The argument type 'D' can't be assigned to the parameter type 'A'. - 'D' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. a == d; // error - ^" in d as{TypeError} self::A*); + ^" in d as{TypeError} self::A*; b =={self::B::==}{(self::A*) →* core::bool*} a; b =={self::B::==}{(self::A*) →* core::bool*} b; - b =={self::B::==}{(self::A*) →* core::bool*} (let final Never* #t5 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:31:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. + b =={self::B::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:31:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. b == c_dynamic; // error - ^" in c_dynamic as{TypeError} self::A*); - b =={self::B::==}{(self::A*) →* core::bool*} (let final Never* #t6 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:32:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. + ^" in c_dynamic as{TypeError} self::A*; + b =={self::B::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:32:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. b == c_int; // error - ^" in c_int as{TypeError} self::A*); - b =={self::B::==}{(self::A*) →* core::bool*} (let final Never* #t7 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:33:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. + ^" in c_int as{TypeError} self::A*; + b =={self::B::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:33:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. b == c_string; // error - ^" in c_string as{TypeError} self::A*); - b =={self::B::==}{(self::A*) →* core::bool*} (let final Never* #t8 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:34:8: Error: The argument type 'D' can't be assigned to the parameter type 'A'. + ^" in c_string as{TypeError} self::A*; + b =={self::B::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:34:8: Error: The argument type 'D' can't be assigned to the parameter type 'A'. - 'D' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. b == d; // error - ^" in d as{TypeError} self::A*); - c_dynamic =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t9 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:36:16: Error: The argument type 'A' can't be assigned to the parameter type 'C'. + ^" in d as{TypeError} self::A*; + c_dynamic =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:36:16: Error: The argument type 'A' can't be assigned to the parameter type 'C'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_dynamic == a; // error - ^" in a as{TypeError} self::C*); - c_dynamic =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t10 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:37:16: Error: The argument type 'B' can't be assigned to the parameter type 'C'. + ^" in a as{TypeError} self::C*; + c_dynamic =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:37:16: Error: The argument type 'B' can't be assigned to the parameter type 'C'. - 'B' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_dynamic == b; // error - ^" in b as{TypeError} self::C*); + ^" in b as{TypeError} self::C*; c_dynamic =={self::C::==}{(self::C*) →* core::bool*} c_dynamic; c_dynamic =={self::C::==}{(self::C*) →* core::bool*} c_int; c_dynamic =={self::C::==}{(self::C*) →* core::bool*} c_string; c_dynamic =={self::C::==}{(self::C*) →* core::bool*} d; - c_int =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t11 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:43:12: Error: The argument type 'A' can't be assigned to the parameter type 'C'. + c_int =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:43:12: Error: The argument type 'A' can't be assigned to the parameter type 'C'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_int == a; // error - ^" in a as{TypeError} self::C*); - c_int =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t12 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:44:12: Error: The argument type 'B' can't be assigned to the parameter type 'C'. + ^" in a as{TypeError} self::C*; + c_int =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:44:12: Error: The argument type 'B' can't be assigned to the parameter type 'C'. - 'B' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_int == b; // error - ^" in b as{TypeError} self::C*); + ^" in b as{TypeError} self::C*; c_int =={self::C::==}{(self::C*) →* core::bool*} c_dynamic as{TypeError} self::C*; c_int =={self::C::==}{(self::C*) →* core::bool*} c_int; - c_int =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t13 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:47:12: Error: The argument type 'C' can't be assigned to the parameter type 'C'. + c_int =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:47:12: Error: The argument type 'C' can't be assigned to the parameter type 'C'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_int == c_string; // error - ^" in c_string as{TypeError} self::C*); + ^" in c_string as{TypeError} self::C*; c_int =={self::C::==}{(self::C*) →* core::bool*} d; - c_string =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t14 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:50:15: Error: The argument type 'A' can't be assigned to the parameter type 'C'. + c_string =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:50:15: Error: The argument type 'A' can't be assigned to the parameter type 'C'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_string == a; // error - ^" in a as{TypeError} self::C*); - c_string =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t15 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:51:15: Error: The argument type 'B' can't be assigned to the parameter type 'C'. + ^" in a as{TypeError} self::C*; + c_string =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:51:15: Error: The argument type 'B' can't be assigned to the parameter type 'C'. - 'B' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_string == b; // error - ^" in b as{TypeError} self::C*); + ^" in b as{TypeError} self::C*; c_string =={self::C::==}{(self::C*) →* core::bool*} c_dynamic as{TypeError} self::C*; - c_string =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t16 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:53:15: Error: The argument type 'C' can't be assigned to the parameter type 'C'. + c_string =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:53:15: Error: The argument type 'C' can't be assigned to the parameter type 'C'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_string == c_int; // error - ^" in c_int as{TypeError} self::C*); + ^" in c_int as{TypeError} self::C*; c_string =={self::C::==}{(self::C*) →* core::bool*} c_string; - c_string =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t17 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:55:15: Error: The argument type 'D' can't be assigned to the parameter type 'C'. + c_string =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:55:15: Error: The argument type 'D' can't be assigned to the parameter type 'C'. - 'D' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_string == d; // error - ^" in d as{TypeError} self::C*); - d =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t18 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:57:8: Error: The argument type 'A' can't be assigned to the parameter type 'C'. + ^" in d as{TypeError} self::C*; + d =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:57:8: Error: The argument type 'A' can't be assigned to the parameter type 'C'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. d == a; // error - ^" in a as{TypeError} self::C*); - d =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t19 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:58:8: Error: The argument type 'B' can't be assigned to the parameter type 'C'. + ^" in a as{TypeError} self::C*; + d =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:58:8: Error: The argument type 'B' can't be assigned to the parameter type 'C'. - 'B' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. d == b; // error - ^" in b as{TypeError} self::C*); + ^" in b as{TypeError} self::C*; d =={self::C::==}{(self::C*) →* core::bool*} c_dynamic as{TypeError} self::C*; d =={self::C::==}{(self::C*) →* core::bool*} c_int; - d =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t20 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:61:8: Error: The argument type 'C' can't be assigned to the parameter type 'C'. + d =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:61:8: Error: The argument type 'C' can't be assigned to the parameter type 'C'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. d == c_string; // error - ^" in c_string as{TypeError} self::C*); + ^" in c_string as{TypeError} self::C*; d =={self::C::==}{(self::C*) →* core::bool*} d; } diff --git a/pkg/front_end/testcases/general/covariant_equals.dart.weak.transformed.expect b/pkg/front_end/testcases/general/covariant_equals.dart.weak.transformed.expect index bded27c463c..2e6ac110f53 100644 --- a/pkg/front_end/testcases/general/covariant_equals.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/covariant_equals.dart.weak.transformed.expect @@ -170,115 +170,115 @@ static method main() → dynamic {} static method test(self::A* a, self::B* b, self::C* c_dynamic, self::C* c_int, self::C* c_string, self::D* d) → dynamic { a =={self::A::==}{(self::A*) →* core::bool*} a; a =={self::A::==}{(self::A*) →* core::bool*} b; - a =={self::A::==}{(self::A*) →* core::bool*} (let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:24:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. + a =={self::A::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:24:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. a == c_dynamic; // error - ^" in c_dynamic as{TypeError} self::A*); - a =={self::A::==}{(self::A*) →* core::bool*} (let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:25:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. + ^" in c_dynamic as{TypeError} self::A*; + a =={self::A::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:25:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. a == c_int; // error - ^" in c_int as{TypeError} self::A*); - a =={self::A::==}{(self::A*) →* core::bool*} (let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:26:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. + ^" in c_int as{TypeError} self::A*; + a =={self::A::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:26:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. a == c_string; // error - ^" in c_string as{TypeError} self::A*); - a =={self::A::==}{(self::A*) →* core::bool*} (let final Never* #t4 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:27:8: Error: The argument type 'D' can't be assigned to the parameter type 'A'. + ^" in c_string as{TypeError} self::A*; + a =={self::A::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:27:8: Error: The argument type 'D' can't be assigned to the parameter type 'A'. - 'D' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. a == d; // error - ^" in d as{TypeError} self::A*); + ^" in d as{TypeError} self::A*; b =={self::B::==}{(self::A*) →* core::bool*} a; b =={self::B::==}{(self::A*) →* core::bool*} b; - b =={self::B::==}{(self::A*) →* core::bool*} (let final Never* #t5 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:31:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. + b =={self::B::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:31:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. b == c_dynamic; // error - ^" in c_dynamic as{TypeError} self::A*); - b =={self::B::==}{(self::A*) →* core::bool*} (let final Never* #t6 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:32:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. + ^" in c_dynamic as{TypeError} self::A*; + b =={self::B::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:32:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. b == c_int; // error - ^" in c_int as{TypeError} self::A*); - b =={self::B::==}{(self::A*) →* core::bool*} (let final Never* #t7 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:33:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. + ^" in c_int as{TypeError} self::A*; + b =={self::B::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:33:8: Error: The argument type 'C' can't be assigned to the parameter type 'A'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. b == c_string; // error - ^" in c_string as{TypeError} self::A*); - b =={self::B::==}{(self::A*) →* core::bool*} (let final Never* #t8 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:34:8: Error: The argument type 'D' can't be assigned to the parameter type 'A'. + ^" in c_string as{TypeError} self::A*; + b =={self::B::==}{(self::A*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:34:8: Error: The argument type 'D' can't be assigned to the parameter type 'A'. - 'D' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. b == d; // error - ^" in d as{TypeError} self::A*); - c_dynamic =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t9 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:36:16: Error: The argument type 'A' can't be assigned to the parameter type 'C'. + ^" in d as{TypeError} self::A*; + c_dynamic =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:36:16: Error: The argument type 'A' can't be assigned to the parameter type 'C'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_dynamic == a; // error - ^" in a as{TypeError} self::C*); - c_dynamic =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t10 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:37:16: Error: The argument type 'B' can't be assigned to the parameter type 'C'. + ^" in a as{TypeError} self::C*; + c_dynamic =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:37:16: Error: The argument type 'B' can't be assigned to the parameter type 'C'. - 'B' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_dynamic == b; // error - ^" in b as{TypeError} self::C*); + ^" in b as{TypeError} self::C*; c_dynamic =={self::C::==}{(self::C*) →* core::bool*} c_dynamic; c_dynamic =={self::C::==}{(self::C*) →* core::bool*} c_int; c_dynamic =={self::C::==}{(self::C*) →* core::bool*} c_string; c_dynamic =={self::C::==}{(self::C*) →* core::bool*} d; - c_int =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t11 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:43:12: Error: The argument type 'A' can't be assigned to the parameter type 'C'. + c_int =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:43:12: Error: The argument type 'A' can't be assigned to the parameter type 'C'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_int == a; // error - ^" in a as{TypeError} self::C*); - c_int =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t12 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:44:12: Error: The argument type 'B' can't be assigned to the parameter type 'C'. + ^" in a as{TypeError} self::C*; + c_int =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:44:12: Error: The argument type 'B' can't be assigned to the parameter type 'C'. - 'B' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_int == b; // error - ^" in b as{TypeError} self::C*); + ^" in b as{TypeError} self::C*; c_int =={self::C::==}{(self::C*) →* core::bool*} c_dynamic as{TypeError} self::C*; c_int =={self::C::==}{(self::C*) →* core::bool*} c_int; - c_int =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t13 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:47:12: Error: The argument type 'C' can't be assigned to the parameter type 'C'. + c_int =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:47:12: Error: The argument type 'C' can't be assigned to the parameter type 'C'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_int == c_string; // error - ^" in c_string as{TypeError} self::C*); + ^" in c_string as{TypeError} self::C*; c_int =={self::C::==}{(self::C*) →* core::bool*} d; - c_string =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t14 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:50:15: Error: The argument type 'A' can't be assigned to the parameter type 'C'. + c_string =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:50:15: Error: The argument type 'A' can't be assigned to the parameter type 'C'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_string == a; // error - ^" in a as{TypeError} self::C*); - c_string =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t15 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:51:15: Error: The argument type 'B' can't be assigned to the parameter type 'C'. + ^" in a as{TypeError} self::C*; + c_string =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:51:15: Error: The argument type 'B' can't be assigned to the parameter type 'C'. - 'B' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_string == b; // error - ^" in b as{TypeError} self::C*); + ^" in b as{TypeError} self::C*; c_string =={self::C::==}{(self::C*) →* core::bool*} c_dynamic as{TypeError} self::C*; - c_string =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t16 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:53:15: Error: The argument type 'C' can't be assigned to the parameter type 'C'. + c_string =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:53:15: Error: The argument type 'C' can't be assigned to the parameter type 'C'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_string == c_int; // error - ^" in c_int as{TypeError} self::C*); + ^" in c_int as{TypeError} self::C*; c_string =={self::C::==}{(self::C*) →* core::bool*} c_string; - c_string =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t17 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:55:15: Error: The argument type 'D' can't be assigned to the parameter type 'C'. + c_string =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:55:15: Error: The argument type 'D' can't be assigned to the parameter type 'C'. - 'D' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. c_string == d; // error - ^" in d as{TypeError} self::C*); - d =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t18 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:57:8: Error: The argument type 'A' can't be assigned to the parameter type 'C'. + ^" in d as{TypeError} self::C*; + d =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:57:8: Error: The argument type 'A' can't be assigned to the parameter type 'C'. - 'A' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. d == a; // error - ^" in a as{TypeError} self::C*); - d =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t19 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:58:8: Error: The argument type 'B' can't be assigned to the parameter type 'C'. + ^" in a as{TypeError} self::C*; + d =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:58:8: Error: The argument type 'B' can't be assigned to the parameter type 'C'. - 'B' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. d == b; // error - ^" in b as{TypeError} self::C*); + ^" in b as{TypeError} self::C*; d =={self::C::==}{(self::C*) →* core::bool*} c_dynamic as{TypeError} self::C*; d =={self::C::==}{(self::C*) →* core::bool*} c_int; - d =={self::C::==}{(self::C*) →* core::bool*} (let final Never* #t20 = invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:61:8: Error: The argument type 'C' can't be assigned to the parameter type 'C'. + d =={self::C::==}{(self::C*) →* core::bool*} invalid-expression "pkg/front_end/testcases/general/covariant_equals.dart:61:8: Error: The argument type 'C' can't be assigned to the parameter type 'C'. - 'C' is from 'pkg/front_end/testcases/general/covariant_equals.dart'. d == c_string; // error - ^" in c_string as{TypeError} self::C*); + ^" in c_string as{TypeError} self::C*; d =={self::C::==}{(self::C*) →* core::bool*} d; } diff --git a/pkg/front_end/testcases/general/demote_closure_types.dart.weak.expect b/pkg/front_end/testcases/general/demote_closure_types.dart.weak.expect index 6128ffd056e..f789104ca34 100644 --- a/pkg/front_end/testcases/general/demote_closure_types.dart.weak.expect +++ b/pkg/front_end/testcases/general/demote_closure_types.dart.weak.expect @@ -12,7 +12,7 @@ import "dart:core" as core; static method method(self::method::T* a, self::method::T* b) → dynamic { if(a is core::String*) { () →* self::method::T* f = () → self::method::T* => a{self::method::T* & core::String* /* '*' & '*' = '*' */}; - core::String* s = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/demote_closure_types.dart:8:17: Error: A value of type 'T' can't be assigned to a variable of type 'String'. + core::String* s = invalid-expression "pkg/front_end/testcases/general/demote_closure_types.dart:8:17: Error: A value of type 'T' can't be assigned to a variable of type 'String'. String s = f(); ^" in f(){() →* self::method::T*} as{TypeError} core::String*; } diff --git a/pkg/front_end/testcases/general/demote_closure_types.dart.weak.transformed.expect b/pkg/front_end/testcases/general/demote_closure_types.dart.weak.transformed.expect index 6128ffd056e..f789104ca34 100644 --- a/pkg/front_end/testcases/general/demote_closure_types.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/demote_closure_types.dart.weak.transformed.expect @@ -12,7 +12,7 @@ import "dart:core" as core; static method method(self::method::T* a, self::method::T* b) → dynamic { if(a is core::String*) { () →* self::method::T* f = () → self::method::T* => a{self::method::T* & core::String* /* '*' & '*' = '*' */}; - core::String* s = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/demote_closure_types.dart:8:17: Error: A value of type 'T' can't be assigned to a variable of type 'String'. + core::String* s = invalid-expression "pkg/front_end/testcases/general/demote_closure_types.dart:8:17: Error: A value of type 'T' can't be assigned to a variable of type 'String'. String s = f(); ^" in f(){() →* self::method::T*} as{TypeError} core::String*; } diff --git a/pkg/front_end/testcases/general/error_recovery/empty_await_for.dart.weak.expect b/pkg/front_end/testcases/general/error_recovery/empty_await_for.dart.weak.expect index 0c8c7495354..ef2f7e97273 100644 --- a/pkg/front_end/testcases/general/error_recovery/empty_await_for.dart.weak.expect +++ b/pkg/front_end/testcases/general/error_recovery/empty_await_for.dart.weak.expect @@ -12,12 +12,11 @@ library; // ^ // import self as self; -import "dart:async" as asy; static method main() → dynamic async { await for (final dynamic #t1 in invalid-expression "pkg/front_end/testcases/general/error_recovery/empty_await_for.dart:3:14: Error: This couldn't be parsed. await for () {} - ^" as{TypeError,ForDynamic} asy::Stream*) { + ^") { invalid-expression "pkg/front_end/testcases/general/error_recovery/empty_await_for.dart:3:14: Error: This couldn't be parsed. await for () {} ^"; diff --git a/pkg/front_end/testcases/general/error_recovery/empty_await_for.dart.weak.transformed.expect b/pkg/front_end/testcases/general/error_recovery/empty_await_for.dart.weak.transformed.expect index 9b308efc4c7..d2234932980 100644 --- a/pkg/front_end/testcases/general/error_recovery/empty_await_for.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/error_recovery/empty_await_for.dart.weak.transformed.expect @@ -33,7 +33,7 @@ static method main() → dynamic /* originally async */ { #L1: { { - asy::Stream* :stream = invalid-expression "pkg/front_end/testcases/general/error_recovery/empty_await_for.dart:3:14: Error: This couldn't be parsed. + Never :stream = invalid-expression "pkg/front_end/testcases/general/error_recovery/empty_await_for.dart:3:14: Error: This couldn't be parsed. await for () {} ^"; asy::_StreamIterator* :for-iterator = new asy::_StreamIterator::•(:stream); diff --git a/pkg/front_end/testcases/general/error_recovery/empty_for.dart.weak.expect b/pkg/front_end/testcases/general/error_recovery/empty_for.dart.weak.expect index d2e60311258..41b94441218 100644 --- a/pkg/front_end/testcases/general/error_recovery/empty_for.dart.weak.expect +++ b/pkg/front_end/testcases/general/error_recovery/empty_for.dart.weak.expect @@ -12,13 +12,12 @@ library; // ^ // import self as self; -import "dart:core" as core; static method main() → dynamic { - for (final dynamic #t1 = invalid-expression "pkg/front_end/testcases/general/error_recovery/empty_for.dart:3:8: Error: This couldn't be parsed. + for (final invalid-type #t1 = invalid-expression "pkg/front_end/testcases/general/error_recovery/empty_for.dart:3:8: Error: This couldn't be parsed. for () {} ^"; invalid-expression "pkg/front_end/testcases/general/error_recovery/empty_for.dart:3:8: Error: This couldn't be parsed. for () {} - ^" as{TypeError,ForDynamic} core::bool*; ) { + ^"; ) { } } diff --git a/pkg/front_end/testcases/general/error_recovery/empty_for.dart.weak.transformed.expect b/pkg/front_end/testcases/general/error_recovery/empty_for.dart.weak.transformed.expect index e4b1c328576..41b94441218 100644 --- a/pkg/front_end/testcases/general/error_recovery/empty_for.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/error_recovery/empty_for.dart.weak.transformed.expect @@ -14,7 +14,7 @@ library; import self as self; static method main() → dynamic { - for (final dynamic #t1 = invalid-expression "pkg/front_end/testcases/general/error_recovery/empty_for.dart:3:8: Error: This couldn't be parsed. + for (final invalid-type #t1 = invalid-expression "pkg/front_end/testcases/general/error_recovery/empty_for.dart:3:8: Error: This couldn't be parsed. for () {} ^"; invalid-expression "pkg/front_end/testcases/general/error_recovery/empty_for.dart:3:8: Error: This couldn't be parsed. for () {} diff --git a/pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart.weak.expect b/pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart.weak.expect index 0b43dbd4ac2..c92373620d2 100644 --- a/pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart.weak.expect +++ b/pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart.weak.expect @@ -21,7 +21,7 @@ static method g() → core::List { invalid-expression "pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart:4:3: Error: 'yield' can only be used in 'sync*' or 'async*' methods. yield f(); ^"; - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart:3:11: Error: A non-null value must be returned since the return type 'List' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart:3:11: Error: A non-null value must be returned since the return type 'List' doesn't allow null. - 'List' is from 'dart:core'. List g() { ^" in null; diff --git a/pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart.weak.transformed.expect b/pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart.weak.transformed.expect index 0b43dbd4ac2..c92373620d2 100644 --- a/pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart.weak.transformed.expect @@ -21,7 +21,7 @@ static method g() → core::List { invalid-expression "pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart:4:3: Error: 'yield' can only be used in 'sync*' or 'async*' methods. yield f(); ^"; - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart:3:11: Error: A non-null value must be returned since the return type 'List' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/general/error_recovery/yield_not_in_generator.dart:3:11: Error: A non-null value must be returned since the return type 'List' doesn't allow null. - 'List' is from 'dart:core'. List g() { ^" in null; diff --git a/pkg/front_end/testcases/general/field_initializer_capture_this.dart.weak.expect b/pkg/front_end/testcases/general/field_initializer_capture_this.dart.weak.expect index 714a3fd4d99..6307537e32f 100644 --- a/pkg/front_end/testcases/general/field_initializer_capture_this.dart.weak.expect +++ b/pkg/front_end/testcases/general/field_initializer_capture_this.dart.weak.expect @@ -10,7 +10,7 @@ import self as self; import "dart:core" as core; class Class extends core::Object { - field () →* dynamic f = () → dynamic => invalid-expression "pkg/front_end/testcases/general/field_initializer_capture_this.dart:6:17: Error: Can't access 'this' in a field initializer to read 'x'. + field () →* invalid-type f = () → invalid-type => invalid-expression "pkg/front_end/testcases/general/field_initializer_capture_this.dart:6:17: Error: Can't access 'this' in a field initializer to read 'x'. var f = () => x; // error ^"; field dynamic x = null; diff --git a/pkg/front_end/testcases/general/field_initializer_capture_this.dart.weak.outline.expect b/pkg/front_end/testcases/general/field_initializer_capture_this.dart.weak.outline.expect index baf707f7777..94b288072a3 100644 --- a/pkg/front_end/testcases/general/field_initializer_capture_this.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/field_initializer_capture_this.dart.weak.outline.expect @@ -10,7 +10,7 @@ import self as self; import "dart:core" as core; class Class extends core::Object { - field () →* dynamic f; + field () →* invalid-type f; field dynamic x; synthetic constructor •() → self::Class* ; diff --git a/pkg/front_end/testcases/general/field_initializer_capture_this.dart.weak.transformed.expect b/pkg/front_end/testcases/general/field_initializer_capture_this.dart.weak.transformed.expect index 714a3fd4d99..6307537e32f 100644 --- a/pkg/front_end/testcases/general/field_initializer_capture_this.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/field_initializer_capture_this.dart.weak.transformed.expect @@ -10,7 +10,7 @@ import self as self; import "dart:core" as core; class Class extends core::Object { - field () →* dynamic f = () → dynamic => invalid-expression "pkg/front_end/testcases/general/field_initializer_capture_this.dart:6:17: Error: Can't access 'this' in a field initializer to read 'x'. + field () →* invalid-type f = () → invalid-type => invalid-expression "pkg/front_end/testcases/general/field_initializer_capture_this.dart:6:17: Error: Can't access 'this' in a field initializer to read 'x'. var f = () => x; // error ^"; field dynamic x = null; diff --git a/pkg/front_end/testcases/general/for_in_without_declaration.dart.weak.expect b/pkg/front_end/testcases/general/for_in_without_declaration.dart.weak.expect index 33601676c79..4a4b616bd55 100644 --- a/pkg/front_end/testcases/general/for_in_without_declaration.dart.weak.expect +++ b/pkg/front_end/testcases/general/for_in_without_declaration.dart.weak.expect @@ -146,7 +146,7 @@ Try correcting the name to the name of an existing setter, or defining a setter - 'C' is from 'pkg/front_end/testcases/general/for_in_without_declaration.dart'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. for (unresolved.foo in []) {} - ^^^^^^^^^^"{dynamic}.foo = #t14; + ^^^^^^^^^^"{}.foo = #t14; } for (final dynamic #t15 in []) { invalid-expression "pkg/front_end/testcases/general/for_in_without_declaration.dart:39:12: Error: The setter 'unresolved' isn't defined for the class 'C'. diff --git a/pkg/front_end/testcases/general/for_in_without_declaration.dart.weak.transformed.expect b/pkg/front_end/testcases/general/for_in_without_declaration.dart.weak.transformed.expect index 7825f8fb370..8cadb9fc454 100644 --- a/pkg/front_end/testcases/general/for_in_without_declaration.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/for_in_without_declaration.dart.weak.transformed.expect @@ -228,7 +228,7 @@ Try correcting the name to the name of an existing setter, or defining a setter - 'C' is from 'pkg/front_end/testcases/general/for_in_without_declaration.dart'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. for (unresolved.foo in []) {} - ^^^^^^^^^^"{dynamic}.foo = #t14; + ^^^^^^^^^^"{}.foo = #t14; } } } diff --git a/pkg/front_end/testcases/general/function_invocation_bounds.dart.weak.expect b/pkg/front_end/testcases/general/function_invocation_bounds.dart.weak.expect index 530685e7dff..c7ced86665d 100644 --- a/pkg/front_end/testcases/general/function_invocation_bounds.dart.weak.expect +++ b/pkg/front_end/testcases/general/function_invocation_bounds.dart.weak.expect @@ -41,7 +41,7 @@ static method test() → dynamic { local(throw ""){(core::String) → core::String}; local(0){(core::int) → core::int}; local(throw ""){(core::int) → core::int}; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/function_invocation_bounds.dart:13:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/general/function_invocation_bounds.dart:13:8: Error: Expected 1 type arguments. local(throw ''); ^" in local{}.(throw ""); (T) → T f = local; @@ -49,7 +49,7 @@ static method test() → dynamic { f(throw ""){(core::String) → core::String}; f(0){(core::int) → core::int}; f(throw ""){(core::int) → core::int}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/general/function_invocation_bounds.dart:19:4: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/general/function_invocation_bounds.dart:19:4: Error: Expected 1 type arguments. f(throw ''); ^" in f{}.(throw ""); } diff --git a/pkg/front_end/testcases/general/function_invocation_bounds.dart.weak.transformed.expect b/pkg/front_end/testcases/general/function_invocation_bounds.dart.weak.transformed.expect index 530685e7dff..c7ced86665d 100644 --- a/pkg/front_end/testcases/general/function_invocation_bounds.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/function_invocation_bounds.dart.weak.transformed.expect @@ -41,7 +41,7 @@ static method test() → dynamic { local(throw ""){(core::String) → core::String}; local(0){(core::int) → core::int}; local(throw ""){(core::int) → core::int}; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/function_invocation_bounds.dart:13:8: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/general/function_invocation_bounds.dart:13:8: Error: Expected 1 type arguments. local(throw ''); ^" in local{}.(throw ""); (T) → T f = local; @@ -49,7 +49,7 @@ static method test() → dynamic { f(throw ""){(core::String) → core::String}; f(0){(core::int) → core::int}; f(throw ""){(core::int) → core::int}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/general/function_invocation_bounds.dart:19:4: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/general/function_invocation_bounds.dart:19:4: Error: Expected 1 type arguments. f(throw ''); ^" in f{}.(throw ""); } diff --git a/pkg/front_end/testcases/general/function_type_assignments.dart.weak.expect b/pkg/front_end/testcases/general/function_type_assignments.dart.weak.expect index cc24e09cf1f..e5dcef1e870 100644 --- a/pkg/front_end/testcases/general/function_type_assignments.dart.weak.expect +++ b/pkg/front_end/testcases/general/function_type_assignments.dart.weak.expect @@ -19,14 +19,14 @@ library; import self as self; import "dart:core" as core; -static field core::String* x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/function_type_assignments.dart:11:12: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'String'. +static field core::String* x = invalid-expression "pkg/front_end/testcases/general/function_type_assignments.dart:11:12: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'String'. String x = identity; // No bound ^" in (#C1) as{TypeError} core::String*; -static field core::String* y = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/function_type_assignments.dart:12:12: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'String'. +static field core::String* y = invalid-expression "pkg/front_end/testcases/general/function_type_assignments.dart:12:12: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'String'. - 'Object' is from 'dart:core'. String y = identityObject; // Object bound ^" in (#C2) as{TypeError} core::String*; -static field core::String* z = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/function_type_assignments.dart:13:12: Error: A value of type 'T Function>(T)' can't be assigned to a variable of type 'String'. +static field core::String* z = invalid-expression "pkg/front_end/testcases/general/function_type_assignments.dart:13:12: Error: A value of type 'T Function>(T)' can't be assigned to a variable of type 'String'. - 'List' is from 'dart:core'. String z = identityList; // List bound ^" in (#C3) as{TypeError} core::String*; diff --git a/pkg/front_end/testcases/general/function_type_assignments.dart.weak.transformed.expect b/pkg/front_end/testcases/general/function_type_assignments.dart.weak.transformed.expect index cc24e09cf1f..e5dcef1e870 100644 --- a/pkg/front_end/testcases/general/function_type_assignments.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/function_type_assignments.dart.weak.transformed.expect @@ -19,14 +19,14 @@ library; import self as self; import "dart:core" as core; -static field core::String* x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/function_type_assignments.dart:11:12: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'String'. +static field core::String* x = invalid-expression "pkg/front_end/testcases/general/function_type_assignments.dart:11:12: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'String'. String x = identity; // No bound ^" in (#C1) as{TypeError} core::String*; -static field core::String* y = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/function_type_assignments.dart:12:12: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'String'. +static field core::String* y = invalid-expression "pkg/front_end/testcases/general/function_type_assignments.dart:12:12: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'String'. - 'Object' is from 'dart:core'. String y = identityObject; // Object bound ^" in (#C2) as{TypeError} core::String*; -static field core::String* z = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/function_type_assignments.dart:13:12: Error: A value of type 'T Function>(T)' can't be assigned to a variable of type 'String'. +static field core::String* z = invalid-expression "pkg/front_end/testcases/general/function_type_assignments.dart:13:12: Error: A value of type 'T Function>(T)' can't be assigned to a variable of type 'String'. - 'List' is from 'dart:core'. String z = identityList; // List bound ^" in (#C3) as{TypeError} core::String*; diff --git a/pkg/front_end/testcases/general/generic_function_type_in_message.dart.weak.expect b/pkg/front_end/testcases/general/generic_function_type_in_message.dart.weak.expect index c406e1e1fd3..8515449cea4 100644 --- a/pkg/front_end/testcases/general/generic_function_type_in_message.dart.weak.expect +++ b/pkg/front_end/testcases/general/generic_function_type_in_message.dart.weak.expect @@ -12,7 +12,7 @@ import "dart:core" as core; static method add(self::add::A* a, self::add::B* b) → core::num* return a.{core::num::+}(b){(core::num*) →* core::num*}; static method test() → dynamic { - core::int* x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/generic_function_type_in_message.dart:8:11: Error: A value of type 'num Function(A, B)' can't be assigned to a variable of type 'int'. + core::int* x = invalid-expression "pkg/front_end/testcases/general/generic_function_type_in_message.dart:8:11: Error: A value of type 'num Function(A, B)' can't be assigned to a variable of type 'int'. int x = add; ^" in (#C1) as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/general/generic_function_type_in_message.dart.weak.transformed.expect b/pkg/front_end/testcases/general/generic_function_type_in_message.dart.weak.transformed.expect index c406e1e1fd3..8515449cea4 100644 --- a/pkg/front_end/testcases/general/generic_function_type_in_message.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/generic_function_type_in_message.dart.weak.transformed.expect @@ -12,7 +12,7 @@ import "dart:core" as core; static method add(self::add::A* a, self::add::B* b) → core::num* return a.{core::num::+}(b){(core::num*) →* core::num*}; static method test() → dynamic { - core::int* x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/generic_function_type_in_message.dart:8:11: Error: A value of type 'num Function(A, B)' can't be assigned to a variable of type 'int'. + core::int* x = invalid-expression "pkg/front_end/testcases/general/generic_function_type_in_message.dart:8:11: Error: A value of type 'num Function(A, B)' can't be assigned to a variable of type 'int'. int x = add; ^" in (#C1) as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/general/getter_vs_setter_type.dart.weak.expect b/pkg/front_end/testcases/general/getter_vs_setter_type.dart.weak.expect index 5d0cc59ac7d..1208d2b6fd8 100644 --- a/pkg/front_end/testcases/general/getter_vs_setter_type.dart.weak.expect +++ b/pkg/front_end/testcases/general/getter_vs_setter_type.dart.weak.expect @@ -391,17 +391,17 @@ static method Extension|get#property3(lowered final core::int* #this, core::int* i) → void {} static method Extension|get#property4(lowered final core::int* #this) → self::Extension|get#property4::S* - return let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/getter_vs_setter_type.dart:133:22: Error: A value of type 'int' can't be assigned to a variable of type 'S'. + return invalid-expression "pkg/front_end/testcases/general/getter_vs_setter_type.dart:133:22: Error: A value of type 'int' can't be assigned to a variable of type 'S'. S get property4 => 0; // ok ^" in 0 as{TypeError} Never; static method Extension|set#property4(lowered final core::int* #this, self::Extension|set#property4::S* i) → void {} static method Extension|get#property5a(lowered final core::int* #this) → self::Extension|get#property5a::S* - return let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/getter_vs_setter_type.dart:136:23: Error: A value of type 'int' can't be assigned to a variable of type 'S'. + return invalid-expression "pkg/front_end/testcases/general/getter_vs_setter_type.dart:136:23: Error: A value of type 'int' can't be assigned to a variable of type 'S'. S get property5a => 0; // ok ^" in 0 as{TypeError} Never; static method Extension|set#property5a(lowered final core::int* #this, self::Extension|set#property5a::T* i) → void {} static method Extension|get#property5b(lowered final core::int* #this) → self::Extension|get#property5b::T* - return let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/getter_vs_setter_type.dart:139:23: Error: A value of type 'int' can't be assigned to a variable of type 'T'. + return invalid-expression "pkg/front_end/testcases/general/getter_vs_setter_type.dart:139:23: Error: A value of type 'int' can't be assigned to a variable of type 'T'. T get property5b => 0; // ok ^" in 0 as{TypeError} Never; static method Extension|set#property5b(lowered final core::int* #this, self::Extension|set#property5b::S* i) → void {} diff --git a/pkg/front_end/testcases/general/implicit_new.dart.weak.expect b/pkg/front_end/testcases/general/implicit_new.dart.weak.expect index aa138c786ef..e9f09b2a3a1 100644 --- a/pkg/front_end/testcases/general/implicit_new.dart.weak.expect +++ b/pkg/front_end/testcases/general/implicit_new.dart.weak.expect @@ -68,7 +68,7 @@ class IndexTester extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method testNSM() → dynamic { - dynamic y = invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:18:18: Error: Method not found: 'Bar'. + invalid-type y = invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:18:18: Error: Method not found: 'Bar'. var y = prefix.Bar(); ^^^"; invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:19:10: Error: Method not found: 'Bar'. diff --git a/pkg/front_end/testcases/general/implicit_new.dart.weak.transformed.expect b/pkg/front_end/testcases/general/implicit_new.dart.weak.transformed.expect index 8007f6e9595..c30eb584f8e 100644 --- a/pkg/front_end/testcases/general/implicit_new.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/implicit_new.dart.weak.transformed.expect @@ -68,7 +68,7 @@ class IndexTester extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method testNSM() → dynamic { - dynamic y = invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:18:18: Error: Method not found: 'Bar'. + invalid-type y = invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:18:18: Error: Method not found: 'Bar'. var y = prefix.Bar(); ^^^"; invalid-expression "pkg/front_end/testcases/general/implicit_new.dart:19:10: Error: Method not found: 'Bar'. diff --git a/pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart.weak.expect b/pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart.weak.expect index ff52ce60458..457462150ac 100644 --- a/pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart.weak.expect +++ b/pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart.weak.expect @@ -44,56 +44,56 @@ import "dart:core" as core; typedef F = (T*, T*) →* T*; static method test1() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:9:10: Error: A value of type 'S Function(S, S)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:9:10: Error: A value of type 'S Function(S, S)' can't be assigned to a variable of type 'int Function(int, int)'. d = (S a, S b) => a; ^" in ((S* a, S* b) → S* => a) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test2() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; (S*, S*) →* S* f = (S* a, S* b) → S* => a; - d = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:15:7: Error: A value of type 'S Function(S, S)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:15:7: Error: A value of type 'S Function(S, S)' can't be assigned to a variable of type 'int Function(int, int)'. d = f; ^" in f as{TypeError} (core::int*, core::int*) →* core::int*; } static method test3a() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:20:10: Error: A value of type 'dynamic Function(dynamic, S)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:20:10: Error: A value of type 'dynamic Function(dynamic, S)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a, S b) => a; ^" in ((dynamic a, S* b) → dynamic => a) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test3b() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:25:10: Error: A value of type 'S Function(dynamic, S)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:25:10: Error: A value of type 'S Function(dynamic, S)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a, S b) => b; ^" in ((dynamic a, S* b) → S* => b) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test4() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:30:10: Error: A value of type 'dynamic Function(dynamic, dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:30:10: Error: A value of type 'dynamic Function(dynamic, dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a, b) => a; ^" in ((dynamic a, dynamic b) → dynamic => a) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test5() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t6 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:35:7: Error: A value of type 'int Function(int, int, dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:35:7: Error: A value of type 'int Function(int, int, dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a, b, c) => a; ^" in ((core::int* a, core::int* b, dynamic c) → core::int* => a) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test6() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:40:7: Error: A value of type 'int Function(int)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:40:7: Error: A value of type 'int Function(int)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a) => a; ^" in ((core::int* a) → core::int* => a) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test7() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t8 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:45:10: Error: A value of type 'dynamic Function(dynamic, dynamic, dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:45:10: Error: A value of type 'dynamic Function(dynamic, dynamic, dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a, b, c) => a; ^" in ((dynamic a, dynamic b, dynamic c) → dynamic => a) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test8() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t9 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:50:10: Error: A value of type 'dynamic Function(dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:50:10: Error: A value of type 'dynamic Function(dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a) => a; ^" in ((dynamic a) → dynamic => a) as{TypeError} (core::int*, core::int*) →* core::int*; } diff --git a/pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart.weak.transformed.expect b/pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart.weak.transformed.expect index ff52ce60458..457462150ac 100644 --- a/pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart.weak.transformed.expect @@ -44,56 +44,56 @@ import "dart:core" as core; typedef F = (T*, T*) →* T*; static method test1() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:9:10: Error: A value of type 'S Function(S, S)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:9:10: Error: A value of type 'S Function(S, S)' can't be assigned to a variable of type 'int Function(int, int)'. d = (S a, S b) => a; ^" in ((S* a, S* b) → S* => a) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test2() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; (S*, S*) →* S* f = (S* a, S* b) → S* => a; - d = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:15:7: Error: A value of type 'S Function(S, S)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:15:7: Error: A value of type 'S Function(S, S)' can't be assigned to a variable of type 'int Function(int, int)'. d = f; ^" in f as{TypeError} (core::int*, core::int*) →* core::int*; } static method test3a() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:20:10: Error: A value of type 'dynamic Function(dynamic, S)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:20:10: Error: A value of type 'dynamic Function(dynamic, S)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a, S b) => a; ^" in ((dynamic a, S* b) → dynamic => a) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test3b() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:25:10: Error: A value of type 'S Function(dynamic, S)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:25:10: Error: A value of type 'S Function(dynamic, S)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a, S b) => b; ^" in ((dynamic a, S* b) → S* => b) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test4() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:30:10: Error: A value of type 'dynamic Function(dynamic, dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:30:10: Error: A value of type 'dynamic Function(dynamic, dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a, b) => a; ^" in ((dynamic a, dynamic b) → dynamic => a) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test5() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t6 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:35:7: Error: A value of type 'int Function(int, int, dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:35:7: Error: A value of type 'int Function(int, int, dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a, b, c) => a; ^" in ((core::int* a, core::int* b, dynamic c) → core::int* => a) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test6() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:40:7: Error: A value of type 'int Function(int)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:40:7: Error: A value of type 'int Function(int)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a) => a; ^" in ((core::int* a) → core::int* => a) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test7() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t8 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:45:10: Error: A value of type 'dynamic Function(dynamic, dynamic, dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:45:10: Error: A value of type 'dynamic Function(dynamic, dynamic, dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a, b, c) => a; ^" in ((dynamic a, dynamic b, dynamic c) → dynamic => a) as{TypeError} (core::int*, core::int*) →* core::int*; } static method test8() → dynamic { (core::int*, core::int*) →* core::int* d = (core::int* a, core::int* b) → core::int* => a; - d = let final Never* #t9 = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:50:10: Error: A value of type 'dynamic Function(dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. + d = invalid-expression "pkg/front_end/testcases/general/infer_generic_type_parameter_mismatch.dart:50:10: Error: A value of type 'dynamic Function(dynamic)' can't be assigned to a variable of type 'int Function(int, int)'. d = (a) => a; ^" in ((dynamic a) → dynamic => a) as{TypeError} (core::int*, core::int*) →* core::int*; } diff --git a/pkg/front_end/testcases/general/invalid_assignment.dart.weak.expect b/pkg/front_end/testcases/general/invalid_assignment.dart.weak.expect index c8d06c34a12..a16acb5dd11 100644 --- a/pkg/front_end/testcases/general/invalid_assignment.dart.weak.expect +++ b/pkg/front_end/testcases/general/invalid_assignment.dart.weak.expect @@ -37,15 +37,15 @@ class A extends core::Object { } static method test(core::int* i, core::String* s, self::A* a) → dynamic { i = 1; - i = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/invalid_assignment.dart:11:7: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + i = invalid-expression "pkg/front_end/testcases/general/invalid_assignment.dart:11:7: Error: A value of type 'String' can't be assigned to a variable of type 'int'. i = s; ^" in s as{TypeError} core::int*; i == null ?{core::int*} i = 1 : null; - i == null ?{core::Object*} i = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/invalid_assignment.dart:13:9: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + i == null ?{core::Object*} i = invalid-expression "pkg/front_end/testcases/general/invalid_assignment.dart:13:9: Error: A value of type 'String' can't be assigned to a variable of type 'int'. i ??= s; ^" in s as{TypeError} core::int* : null; a = new self::A::•(); - a = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/invalid_assignment.dart:15:5: Error: A value of type 'String' can't be assigned to a variable of type 'A'. + a = invalid-expression "pkg/front_end/testcases/general/invalid_assignment.dart:15:5: Error: A value of type 'String' can't be assigned to a variable of type 'A'. - 'A' is from 'pkg/front_end/testcases/general/invalid_assignment.dart'. a += 1; ^" in a.{self::A::+}(1){(core::int*) →* core::String*} as{TypeError} self::A*; diff --git a/pkg/front_end/testcases/general/invalid_assignment.dart.weak.transformed.expect b/pkg/front_end/testcases/general/invalid_assignment.dart.weak.transformed.expect index c8d06c34a12..a16acb5dd11 100644 --- a/pkg/front_end/testcases/general/invalid_assignment.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/invalid_assignment.dart.weak.transformed.expect @@ -37,15 +37,15 @@ class A extends core::Object { } static method test(core::int* i, core::String* s, self::A* a) → dynamic { i = 1; - i = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/invalid_assignment.dart:11:7: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + i = invalid-expression "pkg/front_end/testcases/general/invalid_assignment.dart:11:7: Error: A value of type 'String' can't be assigned to a variable of type 'int'. i = s; ^" in s as{TypeError} core::int*; i == null ?{core::int*} i = 1 : null; - i == null ?{core::Object*} i = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/invalid_assignment.dart:13:9: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + i == null ?{core::Object*} i = invalid-expression "pkg/front_end/testcases/general/invalid_assignment.dart:13:9: Error: A value of type 'String' can't be assigned to a variable of type 'int'. i ??= s; ^" in s as{TypeError} core::int* : null; a = new self::A::•(); - a = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/invalid_assignment.dart:15:5: Error: A value of type 'String' can't be assigned to a variable of type 'A'. + a = invalid-expression "pkg/front_end/testcases/general/invalid_assignment.dart:15:5: Error: A value of type 'String' can't be assigned to a variable of type 'A'. - 'A' is from 'pkg/front_end/testcases/general/invalid_assignment.dart'. a += 1; ^" in a.{self::A::+}(1){(core::int*) →* core::String*} as{TypeError} self::A*; diff --git a/pkg/front_end/testcases/general/invalid_cast.dart.weak.expect b/pkg/front_end/testcases/general/invalid_cast.dart.weak.expect index e123159df54..f95725e0f34 100644 --- a/pkg/front_end/testcases/general/invalid_cast.dart.weak.expect +++ b/pkg/front_end/testcases/general/invalid_cast.dart.weak.expect @@ -99,54 +99,54 @@ class D extends self::C { static method topLevelFunction(core::int* i) → void {} static method bad() → dynamic { function localFunction(core::int* i) → void {} - core::List* a = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:22:25: Error: The list literal type 'List' isn't of expected type 'List'. + core::List* a = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:22:25: Error: The list literal type 'List' isn't of expected type 'List'. - 'List' is from 'dart:core'. - 'Object' is from 'dart:core'. Change the type of the list literal or the context in which it is used. List a = []; ^" in []; - core::Map* b = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:23:40: Error: The map literal type 'Map' isn't of expected type 'Map'. + core::Map* b = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:23:40: Error: The map literal type 'Map' isn't of expected type 'Map'. - 'Map' is from 'dart:core'. - 'Object' is from 'dart:core'. Change the type of the map literal or the context in which it is used. Map b = {}; ^" in {}; - core::Map* c = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:24:37: Error: The map literal type 'Map' isn't of expected type 'Map'. + core::Map* c = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:24:37: Error: The map literal type 'Map' isn't of expected type 'Map'. - 'Map' is from 'dart:core'. - 'Object' is from 'dart:core'. Change the type of the map literal or the context in which it is used. Map c = {}; ^" in {}; - (core::Object*) →* core::int* d = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:25:28: Error: The function expression type 'int Function(int)' isn't of expected type 'int Function(Object)'. + (core::Object*) →* core::int* d = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:25:28: Error: The function expression type 'int Function(int)' isn't of expected type 'int Function(Object)'. - 'Object' is from 'dart:core'. Change the type of the function expression or the context in which it is used. int Function(Object) d = (int i) => i; ^" in (core::int* i) → core::int* => i; self::D* e = self::C::fact() as{TypeError} self::D*; self::D* f = new self::D::•() as{TypeError} self::D*; - self::D* g = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:28:13: Error: The constructor returns type 'C' that isn't of expected type 'D'. + self::D* g = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:28:13: Error: The constructor returns type 'C' that isn't of expected type 'D'. - 'C' is from 'pkg/front_end/testcases/general/invalid_cast.dart'. - 'D' is from 'pkg/front_end/testcases/general/invalid_cast.dart'. Change the type of the object being constructed or the context in which it is used. D g = new C.nonFact(); ^" in new self::C::nonFact(); - self::D* h = let final Never* #t6 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:29:13: Error: The constructor returns type 'C' that isn't of expected type 'D'. + self::D* h = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:29:13: Error: The constructor returns type 'C' that isn't of expected type 'D'. - 'C' is from 'pkg/front_end/testcases/general/invalid_cast.dart'. - 'D' is from 'pkg/front_end/testcases/general/invalid_cast.dart'. Change the type of the object being constructed or the context in which it is used. D h = new C.nonFact2(); ^" in new self::C::nonFact2(); - (core::Object*) →* void i = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:30:31: Error: The static method has type 'void Function(int)' that isn't of expected type 'void Function(Object)'. + (core::Object*) →* void i = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:30:31: Error: The static method has type 'void Function(int)' that isn't of expected type 'void Function(Object)'. - 'Object' is from 'dart:core'. Change the type of the method or the context in which it is used. void Function(Object) i = C.staticFunction; ^" in #C1; - (core::Object*) →* void j = let final Never* #t8 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:31:29: Error: The top level function has type 'void Function(int)' that isn't of expected type 'void Function(Object)'. + (core::Object*) →* void j = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:31:29: Error: The top level function has type 'void Function(int)' that isn't of expected type 'void Function(Object)'. - 'Object' is from 'dart:core'. Change the type of the function or the context in which it is used. void Function(Object) j = topLevelFunction; ^" in #C2; - (core::Object*) →* void k = let final Never* #t9 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:32:29: Error: The local function has type 'void Function(int)' that isn't of expected type 'void Function(Object)'. + (core::Object*) →* void k = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:32:29: Error: The local function has type 'void Function(int)' that isn't of expected type 'void Function(Object)'. - 'Object' is from 'dart:core'. Change the type of the function or the context in which it is used. void Function(Object) k = localFunction; diff --git a/pkg/front_end/testcases/general/invalid_cast.dart.weak.transformed.expect b/pkg/front_end/testcases/general/invalid_cast.dart.weak.transformed.expect index c4466ebd437..36b93177d5e 100644 --- a/pkg/front_end/testcases/general/invalid_cast.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/invalid_cast.dart.weak.transformed.expect @@ -99,54 +99,54 @@ class D extends self::C { static method topLevelFunction(core::int* i) → void {} static method bad() → dynamic { function localFunction(core::int* i) → void {} - core::List* a = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:22:25: Error: The list literal type 'List' isn't of expected type 'List'. + core::List* a = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:22:25: Error: The list literal type 'List' isn't of expected type 'List'. - 'List' is from 'dart:core'. - 'Object' is from 'dart:core'. Change the type of the list literal or the context in which it is used. List a = []; ^" in core::_GrowableList::•(0); - core::Map* b = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:23:40: Error: The map literal type 'Map' isn't of expected type 'Map'. + core::Map* b = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:23:40: Error: The map literal type 'Map' isn't of expected type 'Map'. - 'Map' is from 'dart:core'. - 'Object' is from 'dart:core'. Change the type of the map literal or the context in which it is used. Map b = {}; ^" in {}; - core::Map* c = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:24:37: Error: The map literal type 'Map' isn't of expected type 'Map'. + core::Map* c = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:24:37: Error: The map literal type 'Map' isn't of expected type 'Map'. - 'Map' is from 'dart:core'. - 'Object' is from 'dart:core'. Change the type of the map literal or the context in which it is used. Map c = {}; ^" in {}; - (core::Object*) →* core::int* d = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:25:28: Error: The function expression type 'int Function(int)' isn't of expected type 'int Function(Object)'. + (core::Object*) →* core::int* d = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:25:28: Error: The function expression type 'int Function(int)' isn't of expected type 'int Function(Object)'. - 'Object' is from 'dart:core'. Change the type of the function expression or the context in which it is used. int Function(Object) d = (int i) => i; ^" in (core::int* i) → core::int* => i; self::D* e = self::C::fact() as{TypeError} self::D*; self::D* f = new self::D::•(); - self::D* g = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:28:13: Error: The constructor returns type 'C' that isn't of expected type 'D'. + self::D* g = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:28:13: Error: The constructor returns type 'C' that isn't of expected type 'D'. - 'C' is from 'pkg/front_end/testcases/general/invalid_cast.dart'. - 'D' is from 'pkg/front_end/testcases/general/invalid_cast.dart'. Change the type of the object being constructed or the context in which it is used. D g = new C.nonFact(); ^" in new self::C::nonFact(); - self::D* h = let final Never* #t6 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:29:13: Error: The constructor returns type 'C' that isn't of expected type 'D'. + self::D* h = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:29:13: Error: The constructor returns type 'C' that isn't of expected type 'D'. - 'C' is from 'pkg/front_end/testcases/general/invalid_cast.dart'. - 'D' is from 'pkg/front_end/testcases/general/invalid_cast.dart'. Change the type of the object being constructed or the context in which it is used. D h = new C.nonFact2(); ^" in new self::C::nonFact2(); - (core::Object*) →* void i = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:30:31: Error: The static method has type 'void Function(int)' that isn't of expected type 'void Function(Object)'. + (core::Object*) →* void i = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:30:31: Error: The static method has type 'void Function(int)' that isn't of expected type 'void Function(Object)'. - 'Object' is from 'dart:core'. Change the type of the method or the context in which it is used. void Function(Object) i = C.staticFunction; ^" in #C1; - (core::Object*) →* void j = let final Never* #t8 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:31:29: Error: The top level function has type 'void Function(int)' that isn't of expected type 'void Function(Object)'. + (core::Object*) →* void j = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:31:29: Error: The top level function has type 'void Function(int)' that isn't of expected type 'void Function(Object)'. - 'Object' is from 'dart:core'. Change the type of the function or the context in which it is used. void Function(Object) j = topLevelFunction; ^" in #C2; - (core::Object*) →* void k = let final Never* #t9 = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:32:29: Error: The local function has type 'void Function(int)' that isn't of expected type 'void Function(Object)'. + (core::Object*) →* void k = invalid-expression "pkg/front_end/testcases/general/invalid_cast.dart:32:29: Error: The local function has type 'void Function(int)' that isn't of expected type 'void Function(Object)'. - 'Object' is from 'dart:core'. Change the type of the function or the context in which it is used. void Function(Object) k = localFunction; diff --git a/pkg/front_end/testcases/general/invalid_for_in_iterable.dart.weak.expect b/pkg/front_end/testcases/general/invalid_for_in_iterable.dart.weak.expect index b53be814af3..bf9baa82afc 100644 --- a/pkg/front_end/testcases/general/invalid_for_in_iterable.dart.weak.expect +++ b/pkg/front_end/testcases/general/invalid_for_in_iterable.dart.weak.expect @@ -35,13 +35,13 @@ static method test() → dynamic { for (dynamic v in invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:14:27: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. for (var v in takesNoArg(0)) {} - ^" as{TypeError,ForDynamic} core::Iterable*) { + ^") { } - for (dynamic v in let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:15:17: Error: This expression has type 'void' and can't be used. + for (dynamic v in invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:15:17: Error: This expression has type 'void' and can't be used. for (var v in returnVoid()) {} ^" in self::returnVoid()) { } - for (dynamic v in let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:16:17: Error: The type 'int' used in the 'for' loop must implement 'Iterable'. + for (dynamic v in invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:16:17: Error: The type 'int' used in the 'for' loop must implement 'Iterable'. - 'Iterable' is from 'dart:core'. for (var v in returnInt()) {} ^" in self::returnInt() as{TypeError} core::Iterable*) { diff --git a/pkg/front_end/testcases/general/invalid_for_in_iterable.dart.weak.transformed.expect b/pkg/front_end/testcases/general/invalid_for_in_iterable.dart.weak.transformed.expect index cf9dd5c9472..d86bd0c8a32 100644 --- a/pkg/front_end/testcases/general/invalid_for_in_iterable.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/invalid_for_in_iterable.dart.weak.transformed.expect @@ -33,31 +33,31 @@ static method returnObject() → core::Object* return 0; static method test() → dynamic { { - core::Iterator* :sync-for-iterator = invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:14:27: Error: Too many positional arguments: 0 allowed, but 1 found. + core::Iterator* :sync-for-iterator = invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:14:27: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. for (var v in takesNoArg(0)) {} - ^".{core::Iterable::iterator}{core::Iterator*}; + ^".{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - dynamic v = :sync-for-iterator.{core::Iterator::current}{dynamic}; + dynamic v = :sync-for-iterator.{core::Iterator::current}{Never}; {} } } { - core::Iterator* :sync-for-iterator = (let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:15:17: Error: This expression has type 'void' and can't be used. + core::Iterator* :sync-for-iterator = invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:15:17: Error: This expression has type 'void' and can't be used. for (var v in returnVoid()) {} - ^" in self::returnVoid()).{core::Iterable::iterator}{core::Iterator*}; + ^" in self::returnVoid().{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - dynamic v = :sync-for-iterator.{core::Iterator::current}{invalid-type}; + dynamic v = :sync-for-iterator.{core::Iterator::current}{Never}; {} } } { - core::Iterator* :sync-for-iterator = (let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:16:17: Error: The type 'int' used in the 'for' loop must implement 'Iterable'. + core::Iterator* :sync-for-iterator = invalid-expression "pkg/front_end/testcases/general/invalid_for_in_iterable.dart:16:17: Error: The type 'int' used in the 'for' loop must implement 'Iterable'. - 'Iterable' is from 'dart:core'. for (var v in returnInt()) {} - ^" in self::returnInt() as{TypeError} core::Iterable*).{core::Iterable::iterator}{core::Iterator*}; + ^" in self::returnInt() as{TypeError} core::Iterable*.{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - dynamic v = :sync-for-iterator.{core::Iterator::current}{dynamic}; + dynamic v = :sync-for-iterator.{core::Iterator::current}{Never}; {} } } diff --git a/pkg/front_end/testcases/general/invalid_super_initializer.dart.weak.expect b/pkg/front_end/testcases/general/invalid_super_initializer.dart.weak.expect index d8ef127bb82..09921dfd728 100644 --- a/pkg/front_end/testcases/general/invalid_super_initializer.dart.weak.expect +++ b/pkg/front_end/testcases/general/invalid_super_initializer.dart.weak.expect @@ -21,7 +21,7 @@ abstract class A extends core::Object { } class B extends self::A { constructor •() → self::B - : final dynamic #t1 = let final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/invalid_super_initializer.dart:8:8: Error: Can't use 'super' as an expression. + : final dynamic #t1 = let final invalid-type #t2 = invalid-expression "pkg/front_end/testcases/general/invalid_super_initializer.dart:8:8: Error: Can't use 'super' as an expression. To delegate a constructor to a super constructor, put the super call as an initializer. B(): super()?.foo() {} ^" in #t2 == null ?{dynamic} null : #t2{dynamic}.foo() {} diff --git a/pkg/front_end/testcases/general/invalid_super_initializer.dart.weak.transformed.expect b/pkg/front_end/testcases/general/invalid_super_initializer.dart.weak.transformed.expect index d8ef127bb82..09921dfd728 100644 --- a/pkg/front_end/testcases/general/invalid_super_initializer.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/invalid_super_initializer.dart.weak.transformed.expect @@ -21,7 +21,7 @@ abstract class A extends core::Object { } class B extends self::A { constructor •() → self::B - : final dynamic #t1 = let final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/invalid_super_initializer.dart:8:8: Error: Can't use 'super' as an expression. + : final dynamic #t1 = let final invalid-type #t2 = invalid-expression "pkg/front_end/testcases/general/invalid_super_initializer.dart:8:8: Error: Can't use 'super' as an expression. To delegate a constructor to a super constructor, put the super call as an initializer. B(): super()?.foo() {} ^" in #t2 == null ?{dynamic} null : #t2{dynamic}.foo() {} diff --git a/pkg/front_end/testcases/general/invocations.dart.weak.expect b/pkg/front_end/testcases/general/invocations.dart.weak.expect index f041994ee49..8e76167d6ad 100644 --- a/pkg/front_end/testcases/general/invocations.dart.weak.expect +++ b/pkg/front_end/testcases/general/invocations.dart.weak.expect @@ -51,19 +51,19 @@ static method main() → dynamic { ^"{dynamic}.print("Hello, World!"); invalid-expression "pkg/front_end/testcases/general/invocations.dart:9:3: Error: Getter not found: 'y'. y.z.print(\"Hello, World!\"); - ^"{dynamic}.z{dynamic}.print("Hello, World!"); + ^"{}.z{dynamic}.print("Hello, World!"); invalid-expression "pkg/front_end/testcases/general/invocations.dart:10:3: Error: Getter not found: 'x'. x.y.z.print(\"Hello, World!\"); - ^"{dynamic}.y{dynamic}.z{dynamic}.print("Hello, World!"); - 1.{core::num::+}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/invocations.dart:13:7: Error: This expression has type 'void' and can't be used. + ^"{}.y{}.z{dynamic}.print("Hello, World!"); + 1.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:13:7: Error: This expression has type 'void' and can't be used. print(\"Hello, World!\") + ^" in core::print("Hello, World!")){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:14:7: Error: Method not found: 'z'. z(\"Hello, World!\") + - ^" as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:15:7: Error: Getter not found: 'z'. + ^"){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:15:7: Error: Getter not found: 'z'. z.print(\"Hello, World!\") + ^"{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:16:7: Error: Getter not found: 'y'. y.z.print(\"Hello, World!\") + - ^"{dynamic}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:17:7: Error: Getter not found: 'x'. + ^"{}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:17:7: Error: Getter not found: 'x'. x.y.z.print(\"Hello, World!\"); - ^"{dynamic}.y{dynamic}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}; + ^"{}.y{}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}; } diff --git a/pkg/front_end/testcases/general/invocations.dart.weak.transformed.expect b/pkg/front_end/testcases/general/invocations.dart.weak.transformed.expect index 0ba888435d8..8e76167d6ad 100644 --- a/pkg/front_end/testcases/general/invocations.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/invocations.dart.weak.transformed.expect @@ -51,11 +51,11 @@ static method main() → dynamic { ^"{dynamic}.print("Hello, World!"); invalid-expression "pkg/front_end/testcases/general/invocations.dart:9:3: Error: Getter not found: 'y'. y.z.print(\"Hello, World!\"); - ^"{dynamic}.z{dynamic}.print("Hello, World!"); + ^"{}.z{dynamic}.print("Hello, World!"); invalid-expression "pkg/front_end/testcases/general/invocations.dart:10:3: Error: Getter not found: 'x'. x.y.z.print(\"Hello, World!\"); - ^"{dynamic}.y{dynamic}.z{dynamic}.print("Hello, World!"); - 1.{core::num::+}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/invocations.dart:13:7: Error: This expression has type 'void' and can't be used. + ^"{}.y{}.z{dynamic}.print("Hello, World!"); + 1.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:13:7: Error: This expression has type 'void' and can't be used. print(\"Hello, World!\") + ^" in core::print("Hello, World!")){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:14:7: Error: Method not found: 'z'. z(\"Hello, World!\") + @@ -63,7 +63,7 @@ static method main() → dynamic { z.print(\"Hello, World!\") + ^"{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:16:7: Error: Getter not found: 'y'. y.z.print(\"Hello, World!\") + - ^"{dynamic}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:17:7: Error: Getter not found: 'x'. + ^"{}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}.{core::num::+}(invalid-expression "pkg/front_end/testcases/general/invocations.dart:17:7: Error: Getter not found: 'x'. x.y.z.print(\"Hello, World!\"); - ^"{dynamic}.y{dynamic}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}; + ^"{}.y{}.z{dynamic}.print("Hello, World!") as{TypeError,ForDynamic} core::num*){(core::num*) →* core::num*}; } diff --git a/pkg/front_end/testcases/general/issue38253.dart.weak.expect b/pkg/front_end/testcases/general/issue38253.dart.weak.expect index 1a33eb726f8..293f3f6cbc8 100644 --- a/pkg/front_end/testcases/general/issue38253.dart.weak.expect +++ b/pkg/front_end/testcases/general/issue38253.dart.weak.expect @@ -18,7 +18,7 @@ import self as self; static field () → Null a = () → Null { function f() → invalid-type { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/issue38253.dart:7:5: Error: A value must be explicitly returned from a non-void function. + return invalid-expression "pkg/front_end/testcases/general/issue38253.dart:7:5: Error: A value must be explicitly returned from a non-void function. return; ^" in null; } diff --git a/pkg/front_end/testcases/general/issue38253.dart.weak.transformed.expect b/pkg/front_end/testcases/general/issue38253.dart.weak.transformed.expect index 1a33eb726f8..293f3f6cbc8 100644 --- a/pkg/front_end/testcases/general/issue38253.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/issue38253.dart.weak.transformed.expect @@ -18,7 +18,7 @@ import self as self; static field () → Null a = () → Null { function f() → invalid-type { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/issue38253.dart:7:5: Error: A value must be explicitly returned from a non-void function. + return invalid-expression "pkg/front_end/testcases/general/issue38253.dart:7:5: Error: A value must be explicitly returned from a non-void function. return; ^" in null; } diff --git a/pkg/front_end/testcases/general/issue38253b.dart.weak.expect b/pkg/front_end/testcases/general/issue38253b.dart.weak.expect index 413a243e938..3d3ebd19e3c 100644 --- a/pkg/front_end/testcases/general/issue38253b.dart.weak.expect +++ b/pkg/front_end/testcases/general/issue38253b.dart.weak.expect @@ -22,12 +22,12 @@ import self as self; static field () → Null a = () → Null { function f1() → invalid-type { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/issue38253b.dart:7:5: Error: A value must be explicitly returned from a non-void function. + return invalid-expression "pkg/front_end/testcases/general/issue38253b.dart:7:5: Error: A value must be explicitly returned from a non-void function. return; ^" in null; } function f2() → invalid-type async { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/general/issue38253b.dart:11:5: Error: A value must be explicitly returned from a non-void async function. + return invalid-expression "pkg/front_end/testcases/general/issue38253b.dart:11:5: Error: A value must be explicitly returned from a non-void async function. return; ^" in null; } diff --git a/pkg/front_end/testcases/general/issue38253b.dart.weak.transformed.expect b/pkg/front_end/testcases/general/issue38253b.dart.weak.transformed.expect index 6f29e794f83..9bfa6ab610d 100644 --- a/pkg/front_end/testcases/general/issue38253b.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/issue38253b.dart.weak.transformed.expect @@ -24,7 +24,7 @@ import "dart:core" as core; static field () → Null a = () → Null { function f1() → invalid-type { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/issue38253b.dart:7:5: Error: A value must be explicitly returned from a non-void function. + return invalid-expression "pkg/front_end/testcases/general/issue38253b.dart:7:5: Error: A value must be explicitly returned from a non-void function. return; ^" in null; } @@ -40,7 +40,7 @@ static field () → Null a = () → Null { try { #L1: { - :return_value = let final Never #t2 = invalid-expression "pkg/front_end/testcases/general/issue38253b.dart:11:5: Error: A value must be explicitly returned from a non-void async function. + :return_value = invalid-expression "pkg/front_end/testcases/general/issue38253b.dart:11:5: Error: A value must be explicitly returned from a non-void async function. return; ^" in null; break #L1; diff --git a/pkg/front_end/testcases/general/issue38253c.dart.weak.expect b/pkg/front_end/testcases/general/issue38253c.dart.weak.expect index cd01b2b76ad..2de98d48915 100644 --- a/pkg/front_end/testcases/general/issue38253c.dart.weak.expect +++ b/pkg/front_end/testcases/general/issue38253c.dart.weak.expect @@ -26,12 +26,12 @@ static field () → Null a = () → Null { function f1() → invalid-type {} function f2() → invalid-type async {} function f3() → core::int { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/issue38253c.dart:8:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/general/issue38253c.dart:8:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int f3() {} ^" in null; } function f4() → asy::Future async { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/general/issue38253c.dart:9:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/general/issue38253c.dart:9:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. Future f4() async {} ^" in null; } diff --git a/pkg/front_end/testcases/general/issue38253c.dart.weak.transformed.expect b/pkg/front_end/testcases/general/issue38253c.dart.weak.transformed.expect index 193bfdf6432..b9327a2f346 100644 --- a/pkg/front_end/testcases/general/issue38253c.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/issue38253c.dart.weak.transformed.expect @@ -49,7 +49,7 @@ static field () → Null a = () → Null { return :async_future; } function f3() → core::int { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/issue38253c.dart:8:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/general/issue38253c.dart:8:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int f3() {} ^" in null; } @@ -65,7 +65,7 @@ static field () → Null a = () → Null { try { #L2: { - :return_value = let final Never #t2 = invalid-expression "pkg/front_end/testcases/general/issue38253c.dart:9:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + :return_value = invalid-expression "pkg/front_end/testcases/general/issue38253c.dart:9:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. Future f4() async {} ^" in null; break #L2; @@ -96,7 +96,7 @@ static field (dynamic) → asy::Future b = (dynamic f) → asy::Future< try { #L3: { - [yield] let dynamic #t3 = asy::_awaitHelper(f, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t1 = asy::_awaitHelper(f, :async_op_then, :async_op_error, :async_op) in null; :return_value = :result; break #L3; } diff --git a/pkg/front_end/testcases/general/issue39344.dart.weak.expect b/pkg/front_end/testcases/general/issue39344.dart.weak.expect index d3e641b950f..1c006fbc7d8 100644 --- a/pkg/front_end/testcases/general/issue39344.dart.weak.expect +++ b/pkg/front_end/testcases/general/issue39344.dart.weak.expect @@ -44,7 +44,7 @@ class Class extends core::Object { method method1a(generic-covariant-impl self::Class::T* t) → void { if(t is self::B*) { core::List* ys = [t{self::Class::T* & self::B* /* '*' & '*' = '*' */}]; - self::xs = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/issue39344.dart:19:12: Error: A value of type 'List' can't be assigned to a variable of type 'List'. + self::xs = invalid-expression "pkg/front_end/testcases/general/issue39344.dart:19:12: Error: A value of type 'List' can't be assigned to a variable of type 'List'. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/general/issue39344.dart'. xs = ys; @@ -54,7 +54,7 @@ class Class extends core::Object { method method1b(generic-covariant-impl self::Class::T* t) → void { if(t is self::B*) { core::List*>* yss = *>[[t{self::Class::T* & self::B* /* '*' & '*' = '*' */}]]; - self::xss = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/issue39344.dart:31:13: Error: A value of type 'List>' can't be assigned to a variable of type 'List>'. + self::xss = invalid-expression "pkg/front_end/testcases/general/issue39344.dart:31:13: Error: A value of type 'List>' can't be assigned to a variable of type 'List>'. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/general/issue39344.dart'. xss = yss; diff --git a/pkg/front_end/testcases/general/issue39344.dart.weak.transformed.expect b/pkg/front_end/testcases/general/issue39344.dart.weak.transformed.expect index c78819b873d..eecd07639ca 100644 --- a/pkg/front_end/testcases/general/issue39344.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/issue39344.dart.weak.transformed.expect @@ -44,7 +44,7 @@ class Class extends core::Object { method method1a(generic-covariant-impl self::Class::T* t) → void { if(t is self::B*) { core::List* ys = core::_GrowableList::_literal1(t{self::Class::T* & self::B* /* '*' & '*' = '*' */}); - self::xs = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/issue39344.dart:19:12: Error: A value of type 'List' can't be assigned to a variable of type 'List'. + self::xs = invalid-expression "pkg/front_end/testcases/general/issue39344.dart:19:12: Error: A value of type 'List' can't be assigned to a variable of type 'List'. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/general/issue39344.dart'. xs = ys; @@ -54,7 +54,7 @@ class Class extends core::Object { method method1b(generic-covariant-impl self::Class::T* t) → void { if(t is self::B*) { core::List*>* yss = core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(t{self::Class::T* & self::B* /* '*' & '*' = '*' */})); - self::xss = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/issue39344.dart:31:13: Error: A value of type 'List>' can't be assigned to a variable of type 'List>'. + self::xss = invalid-expression "pkg/front_end/testcases/general/issue39344.dart:31:13: Error: A value of type 'List>' can't be assigned to a variable of type 'List>'. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/general/issue39344.dart'. xss = yss; diff --git a/pkg/front_end/testcases/general/issue40428.dart.weak.expect b/pkg/front_end/testcases/general/issue40428.dart.weak.expect index 7334c864214..d89d3085d0a 100644 --- a/pkg/front_end/testcases/general/issue40428.dart.weak.expect +++ b/pkg/front_end/testcases/general/issue40428.dart.weak.expect @@ -75,10 +75,10 @@ static method main() → void { new self::NamedMixin2::•(""); } static method errors() → dynamic { - new self::NamedMixin1::•(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/issue40428.dart:28:19: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + new self::NamedMixin1::•(invalid-expression "pkg/front_end/testcases/general/issue40428.dart:28:19: Error: The argument type 'int' can't be assigned to the parameter type 'String'. new NamedMixin1(0); ^" in 0 as{TypeError} core::String*); - new self::NamedMixin2::•(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/issue40428.dart:29:19: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + new self::NamedMixin2::•(invalid-expression "pkg/front_end/testcases/general/issue40428.dart:29:19: Error: The argument type 'int' can't be assigned to the parameter type 'String'. new NamedMixin2(0); ^" in 0 as{TypeError} core::String*); } diff --git a/pkg/front_end/testcases/general/issue40428.dart.weak.transformed.expect b/pkg/front_end/testcases/general/issue40428.dart.weak.transformed.expect index 17296f97b1e..5bc89f55af4 100644 --- a/pkg/front_end/testcases/general/issue40428.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/issue40428.dart.weak.transformed.expect @@ -75,10 +75,10 @@ static method main() → void { new self::NamedMixin2::•(""); } static method errors() → dynamic { - new self::NamedMixin1::•(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/issue40428.dart:28:19: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + new self::NamedMixin1::•(invalid-expression "pkg/front_end/testcases/general/issue40428.dart:28:19: Error: The argument type 'int' can't be assigned to the parameter type 'String'. new NamedMixin1(0); ^" in 0 as{TypeError} core::String*); - new self::NamedMixin2::•(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/issue40428.dart:29:19: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + new self::NamedMixin2::•(invalid-expression "pkg/front_end/testcases/general/issue40428.dart:29:19: Error: The argument type 'int' can't be assigned to the parameter type 'String'. new NamedMixin2(0); ^" in 0 as{TypeError} core::String*); } diff --git a/pkg/front_end/testcases/general/issue41252.dart.weak.expect b/pkg/front_end/testcases/general/issue41252.dart.weak.expect index 2d3e1e5fa1d..6d313f35105 100644 --- a/pkg/front_end/testcases/general/issue41252.dart.weak.expect +++ b/pkg/front_end/testcases/general/issue41252.dart.weak.expect @@ -20,7 +20,7 @@ class A extends core::Object { static final field core::int X = null; static final field core::int foo = invalid-expression "pkg/front_end/testcases/general/issue41252.dart:9:26: Error: Can't use 'X' because it is declared more than once. static final int foo = X + 1; - ^"{dynamic}.+(1) as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + ^"{}.+(1); synthetic constructor •() → self::A : super core::Object::•() ; diff --git a/pkg/front_end/testcases/general/issue41252.dart.weak.transformed.expect b/pkg/front_end/testcases/general/issue41252.dart.weak.transformed.expect index 2d3e1e5fa1d..6d313f35105 100644 --- a/pkg/front_end/testcases/general/issue41252.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/issue41252.dart.weak.transformed.expect @@ -20,7 +20,7 @@ class A extends core::Object { static final field core::int X = null; static final field core::int foo = invalid-expression "pkg/front_end/testcases/general/issue41252.dart:9:26: Error: Can't use 'X' because it is declared more than once. static final int foo = X + 1; - ^"{dynamic}.+(1) as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + ^"{}.+(1); synthetic constructor •() → self::A : super core::Object::•() ; diff --git a/pkg/front_end/testcases/general/issue42610.dart.weak.expect b/pkg/front_end/testcases/general/issue42610.dart.weak.expect index be9d427f58b..44db9741c5e 100644 --- a/pkg/front_end/testcases/general/issue42610.dart.weak.expect +++ b/pkg/front_end/testcases/general/issue42610.dart.weak.expect @@ -32,18 +32,18 @@ import "dart:core" as core; static method test() → void { #C1; - final dynamic x = invalid-expression "pkg/front_end/testcases/general/issue42610.dart:7:9: Error: The final variable 'x' must be initialized. + final invalid-type x = invalid-expression "pkg/front_end/testcases/general/issue42610.dart:7:9: Error: The final variable 'x' must be initialized. Try adding an initializer ('= expression') to the declaration. final x; ^"; - const dynamic y = invalid-expression "pkg/front_end/testcases/general/issue42610.dart:8:9: Error: The const variable 'y' must be initialized. + const invalid-type y = invalid-expression "pkg/front_end/testcases/general/issue42610.dart:8:9: Error: The const variable 'y' must be initialized. Try adding an initializer ('= expression') to the declaration. const y; ^"; final core::int* z = invalid-expression "pkg/front_end/testcases/general/issue42610.dart:9:13: Error: The final variable 'z' must be initialized. Try adding an initializer ('= expression') to the declaration. final int z; - ^" as{TypeError,ForDynamic} core::int*; + ^"; const core::int* w = invalid-expression "pkg/front_end/testcases/general/issue42610.dart:10:13: Error: The const variable 'w' must be initialized. Try adding an initializer ('= expression') to the declaration. const int w; diff --git a/pkg/front_end/testcases/general/issue42610.dart.weak.transformed.expect b/pkg/front_end/testcases/general/issue42610.dart.weak.transformed.expect index 78cba4263a9..44db9741c5e 100644 --- a/pkg/front_end/testcases/general/issue42610.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/issue42610.dart.weak.transformed.expect @@ -32,11 +32,11 @@ import "dart:core" as core; static method test() → void { #C1; - final dynamic x = invalid-expression "pkg/front_end/testcases/general/issue42610.dart:7:9: Error: The final variable 'x' must be initialized. + final invalid-type x = invalid-expression "pkg/front_end/testcases/general/issue42610.dart:7:9: Error: The final variable 'x' must be initialized. Try adding an initializer ('= expression') to the declaration. final x; ^"; - const dynamic y = invalid-expression "pkg/front_end/testcases/general/issue42610.dart:8:9: Error: The const variable 'y' must be initialized. + const invalid-type y = invalid-expression "pkg/front_end/testcases/general/issue42610.dart:8:9: Error: The const variable 'y' must be initialized. Try adding an initializer ('= expression') to the declaration. const y; ^"; diff --git a/pkg/front_end/testcases/general/issue42997.dart.weak.expect b/pkg/front_end/testcases/general/issue42997.dart.weak.expect index 9b9095998fe..453f4c918c7 100644 --- a/pkg/front_end/testcases/general/issue42997.dart.weak.expect +++ b/pkg/front_end/testcases/general/issue42997.dart.weak.expect @@ -55,11 +55,11 @@ class PropertyState#1> state in _states) ; - ^"{dynamic}.<(#C1); invalid-expression "pkg/front_end/testcases/general/issue42997.dart:12:30: Error: This couldn't be parsed. + ^"{}.<(#C1); invalid-expression "pkg/front_end/testcases/general/issue42997.dart:12:30: Error: This couldn't be parsed. for (PropertyState> state in _states) ; - ^" as{TypeError,ForDynamic} core::bool*; invalid-expression "pkg/front_end/testcases/general/issue42997.dart:12:30: Error: This couldn't be parsed. + ^"; invalid-expression "pkg/front_end/testcases/general/issue42997.dart:12:30: Error: This couldn't be parsed. for (PropertyState> state in _states) ; ^", invalid-expression "pkg/front_end/testcases/general/issue42997.dart:12:38: Error: The operator '>>' isn't defined for the class 'Type'. - 'Type' is from 'dart:core'. diff --git a/pkg/front_end/testcases/general/issue42997.dart.weak.transformed.expect b/pkg/front_end/testcases/general/issue42997.dart.weak.transformed.expect index 0d392941f8f..453f4c918c7 100644 --- a/pkg/front_end/testcases/general/issue42997.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/issue42997.dart.weak.transformed.expect @@ -55,9 +55,9 @@ class PropertyState#1> state in _states) ; - ^"{dynamic}.<(#C1); invalid-expression "pkg/front_end/testcases/general/issue42997.dart:12:30: Error: This couldn't be parsed. + ^"{}.<(#C1); invalid-expression "pkg/front_end/testcases/general/issue42997.dart:12:30: Error: This couldn't be parsed. for (PropertyState> state in _states) ; ^"; invalid-expression "pkg/front_end/testcases/general/issue42997.dart:12:30: Error: This couldn't be parsed. for (PropertyState> state in _states) ; diff --git a/pkg/front_end/testcases/general/issue44733.dart.weak.expect b/pkg/front_end/testcases/general/issue44733.dart.weak.expect index 186db3f7007..0b3bd9726b6 100644 --- a/pkg/front_end/testcases/general/issue44733.dart.weak.expect +++ b/pkg/front_end/testcases/general/issue44733.dart.weak.expect @@ -55,7 +55,7 @@ abstract class D extends core::Object { : super core::Object::•() ; get y() → self::E { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/issue44733.dart:18:9: Error: A non-null value must be returned since the return type 'E' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/general/issue44733.dart:18:9: Error: A non-null value must be returned since the return type 'E' doesn't allow null. - 'E' is from 'pkg/front_end/testcases/general/issue44733.dart'. E get y {} ^" in null; @@ -71,7 +71,7 @@ abstract class A extends core::Object { static get x() → self::B return invalid-expression "pkg/front_end/testcases/general/issue44733.dart:9:12: Error: Expected identifier, but got 'super'. B get x => super.x; - ^^^^^"{dynamic}.x as{TypeError,ForDynamic,ForNonNullableByDefault} self::B; + ^^^^^"{}.x; static method f() → void { switch(self::x.{self::A::y}{invalid-type}{}.z) { } diff --git a/pkg/front_end/testcases/general/issue45204.dart.weak.expect b/pkg/front_end/testcases/general/issue45204.dart.weak.expect index 648898517ce..29d551e175b 100644 --- a/pkg/front_end/testcases/general/issue45204.dart.weak.expect +++ b/pkg/front_end/testcases/general/issue45204.dart.weak.expect @@ -141,38 +141,38 @@ static method S2|test3(lowered final core::int #this) → (Y%) → void return (Y% y) → void => self::S2|test3(#this, y); static method foo() → dynamic { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/general/issue45204.dart:15:9: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:15:9: Error: Too few positional arguments: 1 required, 0 given. 3.test(); ^" in self::S|test(3); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/general/issue45204.dart:16:9: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:16:9: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. 4.test(5, 6); ^" in self::S|test(4, 5, 6); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/general/issue45204.dart:17:5: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:17:5: Error: Expected 0 type arguments. 5.test(6); ^" in self::S|test(5, 6); - let final Never #t4 = invalid-expression "pkg/front_end/testcases/general/issue45204.dart:19:10: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:19:10: Error: Too few positional arguments: 1 required, 0 given. 3.test2(); ^" in self::S2|test2(3); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/general/issue45204.dart:20:10: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:20:10: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. 4.test2(5, 6); ^" in self::S2|test2(4, 5, 6); - let final Never #t6 = invalid-expression "pkg/front_end/testcases/general/issue45204.dart:21:5: Error: Expected 0 type arguments. + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:21:5: Error: Expected 0 type arguments. 5.test2(6); ^" in self::S2|test2(5, 6); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/general/issue45204.dart:23:10: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:23:10: Error: Too few positional arguments: 1 required, 0 given. 3.test3(); ^" in self::S2|test3(3); - let final Never #t8 = invalid-expression "pkg/front_end/testcases/general/issue45204.dart:24:10: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:24:10: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. 4.test3(5, 6); ^" in self::S2|test3(4, 5, 6); self::S2|test3(5, 6); - let final Never #t9 = invalid-expression "pkg/front_end/testcases/general/issue45204.dart:26:5: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:26:5: Error: Expected 1 type arguments. 6.test3(7); ^" in self::S2|test3(6, 7); - let final Never #t10 = invalid-expression "pkg/front_end/testcases/general/issue45204.dart:27:5: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:27:5: Error: Expected 1 type arguments. 7.test3(8); ^" in self::S2|test3(7, 8); invalid-expression "pkg/front_end/testcases/general/issue45204.dart:29:8: Error: Too few positional arguments: 1 required, 0 given. diff --git a/pkg/front_end/testcases/general/issue45204.dart.weak.transformed.expect b/pkg/front_end/testcases/general/issue45204.dart.weak.transformed.expect new file mode 100644 index 00000000000..29d551e175b --- /dev/null +++ b/pkg/front_end/testcases/general/issue45204.dart.weak.transformed.expect @@ -0,0 +1,213 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/general/issue45204.dart:29:8: Error: Too few positional arguments: 1 required, 0 given. +// S(3).test(); +// ^ +// pkg/front_end/testcases/general/issue45204.dart:6:8: Context: Found this candidate, but the arguments don't match. +// void test(int x) {} +// ^^^^^^ +// +// pkg/front_end/testcases/general/issue45204.dart:30:8: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// S(4).test(5, 6); +// ^ +// pkg/front_end/testcases/general/issue45204.dart:6:8: Context: Found this candidate, but the arguments don't match. +// void test(int x) {} +// ^^^^^^ +// +// pkg/front_end/testcases/general/issue45204.dart:31:8: Error: Expected 0 type arguments. +// S(5).test(6); +// ^ +// pkg/front_end/testcases/general/issue45204.dart:6:8: Context: Found this candidate, but the arguments don't match. +// void test(int x) {} +// ^^^^^^ +// +// pkg/front_end/testcases/general/issue45204.dart:33:9: Error: Too few positional arguments: 1 required, 0 given. +// S2(3).test2(); +// ^ +// pkg/front_end/testcases/general/issue45204.dart:10:8: Context: Found this candidate, but the arguments don't match. +// void test2(int x) {} +// ^^^^^^^^ +// +// pkg/front_end/testcases/general/issue45204.dart:34:9: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// S2(4).test2(5, 6); +// ^ +// pkg/front_end/testcases/general/issue45204.dart:10:8: Context: Found this candidate, but the arguments don't match. +// void test2(int x) {} +// ^^^^^^^^ +// +// pkg/front_end/testcases/general/issue45204.dart:35:9: Error: Expected 1 type arguments. +// S2(5).test2(6); +// ^ +// pkg/front_end/testcases/general/issue45204.dart:10:8: Context: Found this candidate, but the arguments don't match. +// void test2(int x) {} +// ^^^^^^^^ +// +// pkg/front_end/testcases/general/issue45204.dart:37:9: Error: Too few positional arguments: 1 required, 0 given. +// S2(3).test3(); +// ^ +// pkg/front_end/testcases/general/issue45204.dart:11:8: Context: Found this candidate, but the arguments don't match. +// void test3(Y y) {} +// ^^^^^^^^ +// +// pkg/front_end/testcases/general/issue45204.dart:38:9: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// S2(4).test3(5, 6); +// ^ +// pkg/front_end/testcases/general/issue45204.dart:11:8: Context: Found this candidate, but the arguments don't match. +// void test3(Y y) {} +// ^^^^^^^^ +// +// pkg/front_end/testcases/general/issue45204.dart:40:9: Error: Expected 2 type arguments. +// S2(6).test3(7); +// ^ +// pkg/front_end/testcases/general/issue45204.dart:11:8: Context: Found this candidate, but the arguments don't match. +// void test3(Y y) {} +// ^^^^^^^^ +// +// pkg/front_end/testcases/general/issue45204.dart:41:9: Error: Expected 2 type arguments. +// S2(7).test3(8); +// ^ +// pkg/front_end/testcases/general/issue45204.dart:11:8: Context: Found this candidate, but the arguments don't match. +// void test3(Y y) {} +// ^^^^^^^^ +// +// pkg/front_end/testcases/general/issue45204.dart:15:9: Error: Too few positional arguments: 1 required, 0 given. +// 3.test(); +// ^ +// +// pkg/front_end/testcases/general/issue45204.dart:16:9: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// 4.test(5, 6); +// ^ +// +// pkg/front_end/testcases/general/issue45204.dart:17:5: Error: Expected 0 type arguments. +// 5.test(6); +// ^ +// +// pkg/front_end/testcases/general/issue45204.dart:19:10: Error: Too few positional arguments: 1 required, 0 given. +// 3.test2(); +// ^ +// +// pkg/front_end/testcases/general/issue45204.dart:20:10: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// 4.test2(5, 6); +// ^ +// +// pkg/front_end/testcases/general/issue45204.dart:21:5: Error: Expected 0 type arguments. +// 5.test2(6); +// ^ +// +// pkg/front_end/testcases/general/issue45204.dart:23:10: Error: Too few positional arguments: 1 required, 0 given. +// 3.test3(); +// ^ +// +// pkg/front_end/testcases/general/issue45204.dart:24:10: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// 4.test3(5, 6); +// ^ +// +// pkg/front_end/testcases/general/issue45204.dart:26:5: Error: Expected 1 type arguments. +// 6.test3(7); +// ^ +// +// pkg/front_end/testcases/general/issue45204.dart:27:5: Error: Expected 1 type arguments. +// 7.test3(8); +// ^ +// +import self as self; +import "dart:core" as core; + +extension S on core::int { + method test = self::S|test; + tearoff test = self::S|get#test; +} +extension S2 on core::int { + method test2 = self::S2|test2; + tearoff test2 = self::S2|get#test2; + method test3 = self::S2|test3; + tearoff test3 = self::S2|get#test3; +} +static method S|test(lowered final core::int #this, core::int x) → void {} +static method S|get#test(lowered final core::int #this) → (core::int) → void + return (core::int x) → void => self::S|test(#this, x); +static method S2|test2(lowered final core::int #this, core::int x) → void {} +static method S2|get#test2(lowered final core::int #this) → (core::int) → void + return (core::int x) → void => self::S2|test2(#this, x); +static method S2|test3(lowered final core::int #this, self::S2|test3::Y% y) → void {} +static method S2|get#test3(lowered final core::int #this) → (Y%) → void + return (Y% y) → void => self::S2|test3(#this, y); +static method foo() → dynamic { + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:15:9: Error: Too few positional arguments: 1 required, 0 given. + 3.test(); + ^" in self::S|test(3); + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:16:9: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + 4.test(5, 6); + ^" in self::S|test(4, 5, 6); + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:17:5: Error: Expected 0 type arguments. + 5.test(6); + ^" in self::S|test(5, 6); + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:19:10: Error: Too few positional arguments: 1 required, 0 given. + 3.test2(); + ^" in self::S2|test2(3); + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:20:10: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + 4.test2(5, 6); + ^" in self::S2|test2(4, 5, 6); + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:21:5: Error: Expected 0 type arguments. + 5.test2(6); + ^" in self::S2|test2(5, 6); + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:23:10: Error: Too few positional arguments: 1 required, 0 given. + 3.test3(); + ^" in self::S2|test3(3); + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:24:10: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + 4.test3(5, 6); + ^" in self::S2|test3(4, 5, 6); + self::S2|test3(5, 6); + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:26:5: Error: Expected 1 type arguments. + 6.test3(7); + ^" in self::S2|test3(6, 7); + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:27:5: Error: Expected 1 type arguments. + 7.test3(8); + ^" in self::S2|test3(7, 8); + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:29:8: Error: Too few positional arguments: 1 required, 0 given. + S(3).test(); + ^"; + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:30:8: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + S(4).test(5, 6); + ^"; + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:31:8: Error: Expected 0 type arguments. + S(5).test(6); + ^"; + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:33:9: Error: Too few positional arguments: 1 required, 0 given. + S2(3).test2(); + ^"; + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:34:9: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + S2(4).test2(5, 6); + ^"; + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:35:9: Error: Expected 1 type arguments. + S2(5).test2(6); + ^"; + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:37:9: Error: Too few positional arguments: 1 required, 0 given. + S2(3).test3(); + ^"; + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:38:9: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + S2(4).test3(5, 6); + ^"; + self::S2|test3(5, 6); + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:40:9: Error: Expected 2 type arguments. + S2(6).test3(7); + ^"; + invalid-expression "pkg/front_end/testcases/general/issue45204.dart:41:9: Error: Expected 2 type arguments. + S2(7).test3(8); + ^"; +} +static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/missing_toplevel.dart.weak.transformed.expect b/pkg/front_end/testcases/general/missing_toplevel.dart.weak.transformed.expect index 2ddf977b1ee..983042dadce 100644 --- a/pkg/front_end/testcases/general/missing_toplevel.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/missing_toplevel.dart.weak.transformed.expect @@ -108,7 +108,7 @@ static field dynamic missingBinary = let final self::ClassWithProperty* #t1 = se Try correcting the operator to an existing operator, or defining a '+' operator. var missingBinary = classWithProperty.property += 2; ^"; -static field dynamic missingIndexGet = let final self::ClassWithIndexSet* #t2 = self::classWithIndexSet in let final core::int* #t3 = 0 in let final dynamic #t4 = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:28:40: Error: The operator '[]' isn't defined for the class 'ClassWithIndexSet'. +static field dynamic missingIndexGet = let final self::ClassWithIndexSet* #t2 = self::classWithIndexSet in let final core::int* #t3 = 0 in let final invalid-type #t4 = invalid-expression "pkg/front_end/testcases/general/missing_toplevel.dart:28:40: Error: The operator '[]' isn't defined for the class 'ClassWithIndexSet'. - 'ClassWithIndexSet' is from 'pkg/front_end/testcases/general/missing_toplevel.dart'. Try correcting the operator to an existing operator, or defining a '[]' operator. var missingIndexGet = classWithIndexSet[0] ??= 2; diff --git a/pkg/front_end/testcases/general/mixin_application_inferred_parameter_type.dart.weak.expect b/pkg/front_end/testcases/general/mixin_application_inferred_parameter_type.dart.weak.expect index 3b6915ed4a0..c6579d883f4 100644 --- a/pkg/front_end/testcases/general/mixin_application_inferred_parameter_type.dart.weak.expect +++ b/pkg/front_end/testcases/general/mixin_application_inferred_parameter_type.dart.weak.expect @@ -49,7 +49,7 @@ static method main() → dynamic { new self::Class::•(0); } static method error() → dynamic { - new self::Class::•(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/mixin_application_inferred_parameter_type.dart:20:13: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + new self::Class::•(invalid-expression "pkg/front_end/testcases/general/mixin_application_inferred_parameter_type.dart:20:13: Error: The argument type 'String' can't be assigned to the parameter type 'int'. new Class(''); ^" in "" as{TypeError} core::int*); } diff --git a/pkg/front_end/testcases/general/mixin_application_inferred_parameter_type.dart.weak.transformed.expect b/pkg/front_end/testcases/general/mixin_application_inferred_parameter_type.dart.weak.transformed.expect index d22f3ed0cf7..f060c5f1618 100644 --- a/pkg/front_end/testcases/general/mixin_application_inferred_parameter_type.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/mixin_application_inferred_parameter_type.dart.weak.transformed.expect @@ -49,7 +49,7 @@ static method main() → dynamic { new self::Class::•(0); } static method error() → dynamic { - new self::Class::•(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/mixin_application_inferred_parameter_type.dart:20:13: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + new self::Class::•(invalid-expression "pkg/front_end/testcases/general/mixin_application_inferred_parameter_type.dart:20:13: Error: The argument type 'String' can't be assigned to the parameter type 'int'. new Class(''); ^" in "" as{TypeError} core::int*); } diff --git a/pkg/front_end/testcases/general/named_function_scope.dart.weak.expect b/pkg/front_end/testcases/general/named_function_scope.dart.weak.expect index 208ee130f85..8ae3c40e396 100644 --- a/pkg/front_end/testcases/general/named_function_scope.dart.weak.expect +++ b/pkg/front_end/testcases/general/named_function_scope.dart.weak.expect @@ -129,28 +129,28 @@ static method test() → dynamic { } { self::V* v; - dynamic V = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:31:9: Error: Can't declare 'V' because it was already used in this scope. + invalid-type V = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:31:9: Error: Can't declare 'V' because it was already used in this scope. var V; ^"; } { self::V* v; - dynamic V = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:36:9: Error: Can't declare 'V' because it was already used in this scope. + invalid-type V = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:36:9: Error: Can't declare 'V' because it was already used in this scope. var V = null; ^" in null; } { - () →* Null x = let final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:41:15: Error: Can't declare 'T' because it was already used in this scope. + () →* Null x = let final dynamic #t1 = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:41:15: Error: Can't declare 'T' because it was already used in this scope. var x = T T() {}; ^" in let final () →* Null T = () → Null {} in T; } { self::V* V = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:47:7: Error: Can't declare 'V' because it was already used in this scope. V V; - ^" as{TypeError,ForDynamic} self::V*; + ^"; } { - () →* Null x = let final dynamic #t3 = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:52:13: Error: 'T' is already declared in this scope. + () →* Null x = let final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:52:13: Error: 'T' is already declared in this scope. var x = T() {}; ^" in let final () →* Null T = () → Null {} in T; } diff --git a/pkg/front_end/testcases/general/named_function_scope.dart.weak.transformed.expect b/pkg/front_end/testcases/general/named_function_scope.dart.weak.transformed.expect index 803643c799e..c14d8e67ce2 100644 --- a/pkg/front_end/testcases/general/named_function_scope.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/named_function_scope.dart.weak.transformed.expect @@ -129,18 +129,18 @@ static method test() → dynamic { } { self::V* v; - dynamic V = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:31:9: Error: Can't declare 'V' because it was already used in this scope. + invalid-type V = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:31:9: Error: Can't declare 'V' because it was already used in this scope. var V; ^"; } { self::V* v; - dynamic V = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:36:9: Error: Can't declare 'V' because it was already used in this scope. + invalid-type V = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:36:9: Error: Can't declare 'V' because it was already used in this scope. var V = null; ^" in null; } { - () →* Null x = let final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:41:15: Error: Can't declare 'T' because it was already used in this scope. + () →* Null x = let final invalid-type #t1 = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:41:15: Error: Can't declare 'T' because it was already used in this scope. var x = T T() {}; ^" in let final () →* Null T = () → Null {} in T; } @@ -150,7 +150,7 @@ static method test() → dynamic { ^"; } { - () →* Null x = let final dynamic #t3 = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:52:13: Error: 'T' is already declared in this scope. + () →* Null x = let final invalid-type #t2 = invalid-expression "pkg/front_end/testcases/general/named_function_scope.dart:52:13: Error: 'T' is already declared in this scope. var x = T() {}; ^" in let final () →* Null T = () → Null {} in T; } diff --git a/pkg/front_end/testcases/general/operator_method_not_found.dart.weak.expect b/pkg/front_end/testcases/general/operator_method_not_found.dart.weak.expect index 882b6d82f2a..6486baf5fc5 100644 --- a/pkg/front_end/testcases/general/operator_method_not_found.dart.weak.expect +++ b/pkg/front_end/testcases/general/operator_method_not_found.dart.weak.expect @@ -321,46 +321,46 @@ Try correcting the operator to an existing operator, or defining a 'unary-' oper core::print([]); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:37:9: Error: This couldn't be parsed. print(>foo); - ^"{dynamic}.>(foo)); + ^"{}.>(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:38:9: Error: This couldn't be parsed. print(<=foo); - ^"{dynamic}.<=(foo)); + ^"{}.<=(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:39:9: Error: This couldn't be parsed. print(>=foo); - ^"{dynamic}.>=(foo)); + ^"{}.>=(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:40:9: Error: This couldn't be parsed. print(==foo); ^" =={core::Object::==}{(core::Object*) →* core::bool*} foo); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:41:9: Error: This couldn't be parsed. print(+foo); - ^"{dynamic}.+(foo)); + ^"{}.+(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:42:9: Error: This couldn't be parsed. print(/foo); - ^"{dynamic}./(foo)); + ^"{}./(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:43:9: Error: This couldn't be parsed. print(~/foo); - ^"{dynamic}.~/(foo)); + ^"{}.~/(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:44:9: Error: This couldn't be parsed. print(*foo); - ^"{dynamic}.*(foo)); + ^"{}.*(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:45:9: Error: This couldn't be parsed. print(%foo); - ^"{dynamic}.%(foo)); + ^"{}.%(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:46:9: Error: This couldn't be parsed. print(|foo); - ^"{dynamic}.|(foo)); + ^"{}.|(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:47:9: Error: This couldn't be parsed. print(^foo); - ^"{dynamic}.^(foo)); + ^"{}.^(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:48:9: Error: This couldn't be parsed. print(&foo); - ^"{dynamic}.&(foo)); + ^"{}.&(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:49:9: Error: This couldn't be parsed. print(<}.<<(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:50:9: Error: This couldn't be parsed. print(>>foo); - ^"{dynamic}.>>(foo)); + ^"{}.>>(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:54:13: Error: '~' isn't a binary operator. print(foo ~ 2); ^"); diff --git a/pkg/front_end/testcases/general/operator_method_not_found.dart.weak.transformed.expect b/pkg/front_end/testcases/general/operator_method_not_found.dart.weak.transformed.expect index 69083740aea..46f560586d7 100644 --- a/pkg/front_end/testcases/general/operator_method_not_found.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/operator_method_not_found.dart.weak.transformed.expect @@ -321,46 +321,46 @@ Try correcting the operator to an existing operator, or defining a 'unary-' oper core::print(core::_GrowableList::•(0)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:37:9: Error: This couldn't be parsed. print(>foo); - ^"{dynamic}.>(foo)); + ^"{}.>(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:38:9: Error: This couldn't be parsed. print(<=foo); - ^"{dynamic}.<=(foo)); + ^"{}.<=(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:39:9: Error: This couldn't be parsed. print(>=foo); - ^"{dynamic}.>=(foo)); + ^"{}.>=(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:40:9: Error: This couldn't be parsed. print(==foo); ^" =={core::Object::==}{(core::Object*) →* core::bool*} foo); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:41:9: Error: This couldn't be parsed. print(+foo); - ^"{dynamic}.+(foo)); + ^"{}.+(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:42:9: Error: This couldn't be parsed. print(/foo); - ^"{dynamic}./(foo)); + ^"{}./(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:43:9: Error: This couldn't be parsed. print(~/foo); - ^"{dynamic}.~/(foo)); + ^"{}.~/(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:44:9: Error: This couldn't be parsed. print(*foo); - ^"{dynamic}.*(foo)); + ^"{}.*(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:45:9: Error: This couldn't be parsed. print(%foo); - ^"{dynamic}.%(foo)); + ^"{}.%(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:46:9: Error: This couldn't be parsed. print(|foo); - ^"{dynamic}.|(foo)); + ^"{}.|(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:47:9: Error: This couldn't be parsed. print(^foo); - ^"{dynamic}.^(foo)); + ^"{}.^(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:48:9: Error: This couldn't be parsed. print(&foo); - ^"{dynamic}.&(foo)); + ^"{}.&(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:49:9: Error: This couldn't be parsed. print(<}.<<(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:50:9: Error: This couldn't be parsed. print(>>foo); - ^"{dynamic}.>>(foo)); + ^"{}.>>(foo)); core::print(invalid-expression "pkg/front_end/testcases/general/operator_method_not_found.dart:54:13: Error: '~' isn't a binary operator. print(foo ~ 2); ^"); diff --git a/pkg/front_end/testcases/general/optional.dart.weak.expect b/pkg/front_end/testcases/general/optional.dart.weak.expect index 0c2ea453a65..6ca451d3276 100644 --- a/pkg/front_end/testcases/general/optional.dart.weak.expect +++ b/pkg/front_end/testcases/general/optional.dart.weak.expect @@ -120,22 +120,22 @@ static method main() → dynamic { core::String* string6 = extern.{self::External::externalMethod}(1, 2, 3){(core::int*, [core::int*, core::int*]) →* core::String*}; extern.{self::External::listen}(new self::TestListener::•()){(self::Listener*) →* void}; extern.{self::External::listen}(new self::ExtendedListener::•()){(self::Listener*) →* void}; - extern.{self::External::listen}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/optional.dart:47:21: Error: The argument type 'InvalidListener' can't be assigned to the parameter type 'Listener'. + extern.{self::External::listen}(invalid-expression "pkg/front_end/testcases/general/optional.dart:47:21: Error: The argument type 'InvalidListener' can't be assigned to the parameter type 'Listener'. - 'InvalidListener' is from 'pkg/front_end/testcases/general/optional.dart'. - 'Listener' is from 'pkg/front_end/testcases/general/optional.dart'. extern.listen(new InvalidListener()); ^" in new self::InvalidListener::•() as{TypeError} self::Listener*){(self::Listener*) →* void}; - invalid-type nothing1 = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/general/optional.dart:49:28: Error: Too few positional arguments: 1 required, 0 given. + invalid-type nothing1 = invalid-expression "pkg/front_end/testcases/general/optional.dart:49:28: Error: Too few positional arguments: 1 required, 0 given. var nothing1 = foo.method(); ^" in foo.{self::Foo::method}{}.(){() →* invalid-type}; - invalid-type nothing2 = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/general/optional.dart:50:28: Error: Too many positional arguments: 3 allowed, but 4 found. + invalid-type nothing2 = invalid-expression "pkg/front_end/testcases/general/optional.dart:50:28: Error: Too many positional arguments: 3 allowed, but 4 found. Try removing the extra positional arguments. var nothing2 = foo.method(1, 2, 3, 4); ^" in foo.{self::Foo::method}{}.(1, 2, 3, 4){(invalid-type, invalid-type, invalid-type, invalid-type) →* invalid-type}; - invalid-type nothing3 = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/general/optional.dart:51:39: Error: Too few positional arguments: 1 required, 0 given. + invalid-type nothing3 = invalid-expression "pkg/front_end/testcases/general/optional.dart:51:39: Error: Too few positional arguments: 1 required, 0 given. var nothing3 = extern.externalMethod(); ^" in extern.{self::External::externalMethod}{}.(){() →* invalid-type}; - invalid-type nothing4 = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/general/optional.dart:52:39: Error: Too many positional arguments: 3 allowed, but 4 found. + invalid-type nothing4 = invalid-expression "pkg/front_end/testcases/general/optional.dart:52:39: Error: Too many positional arguments: 3 allowed, but 4 found. Try removing the extra positional arguments. var nothing4 = extern.externalMethod(1, 2, 3, 4); ^" in extern.{self::External::externalMethod}{}.(1, 2, 3, 4){(invalid-type, invalid-type, invalid-type, invalid-type) →* invalid-type}; diff --git a/pkg/front_end/testcases/general/optional.dart.weak.transformed.expect b/pkg/front_end/testcases/general/optional.dart.weak.transformed.expect new file mode 100644 index 00000000000..6ca451d3276 --- /dev/null +++ b/pkg/front_end/testcases/general/optional.dart.weak.transformed.expect @@ -0,0 +1,146 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/general/optional.dart:47:21: Error: The argument type 'InvalidListener' can't be assigned to the parameter type 'Listener'. +// - 'InvalidListener' is from 'pkg/front_end/testcases/general/optional.dart'. +// - 'Listener' is from 'pkg/front_end/testcases/general/optional.dart'. +// extern.listen(new InvalidListener()); +// ^ +// +// pkg/front_end/testcases/general/optional.dart:49:28: Error: Too few positional arguments: 1 required, 0 given. +// var nothing1 = foo.method(); +// ^ +// +// pkg/front_end/testcases/general/optional.dart:50:28: Error: Too many positional arguments: 3 allowed, but 4 found. +// Try removing the extra positional arguments. +// var nothing2 = foo.method(1, 2, 3, 4); +// ^ +// +// pkg/front_end/testcases/general/optional.dart:51:39: Error: Too few positional arguments: 1 required, 0 given. +// var nothing3 = extern.externalMethod(); +// ^ +// +// pkg/front_end/testcases/general/optional.dart:52:39: Error: Too many positional arguments: 3 allowed, but 4 found. +// Try removing the extra positional arguments. +// var nothing4 = extern.externalMethod(1, 2, 3, 4); +// ^ +// +import self as self; +import "dart:core" as core; + +class Foo extends core::Object { + synthetic constructor •() → self::Foo* + : super core::Object::•() + ; + method method(dynamic x, [dynamic y = #C1, dynamic z = #C1]) → dynamic { + return "string"; + } + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +abstract class External extends core::Object { + synthetic constructor •() → self::External* + : super core::Object::•() + ; + abstract method externalMethod(core::int* x, [core::int* y = #C1, core::int* z = #C1]) → core::String*; + abstract method listen(self::Listener* listener) → void; + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +abstract class Listener extends core::Object { + synthetic constructor •() → self::Listener* + : super core::Object::•() + ; + abstract method event(core::String* input, [core::int* x = #C1, core::int* y = #C1]) → void; + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +class TestListener extends self::Listener { + synthetic constructor •() → self::TestListener* + : super self::Listener::•() + ; + method event(core::String* input, [core::int* x = #C1, core::int* y = #C1]) → void {} +} +class ExtendedListener extends self::Listener { + synthetic constructor •() → self::ExtendedListener* + : super self::Listener::•() + ; + method event(core::String* input, [core::int* x = #C1, core::int* y = #C1, dynamic z = #C1]) → void {} +} +class InvalidListener extends core::Object { + synthetic constructor •() → self::InvalidListener* + : super core::Object::•() + ; + method event(dynamic input, [dynamic x = #C1]) → void {} + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +external static method createExternal() → self::External*; +static method main() → dynamic { + self::Foo* foo = new self::Foo::•(); + dynamic string1 = foo.{self::Foo::method}(1){(dynamic, [dynamic, dynamic]) →* dynamic}; + dynamic string2 = foo.{self::Foo::method}(1, 2){(dynamic, [dynamic, dynamic]) →* dynamic}; + dynamic string3 = foo.{self::Foo::method}(1, 2, 3){(dynamic, [dynamic, dynamic]) →* dynamic}; + self::External* extern = self::createExternal(); + core::String* string4 = extern.{self::External::externalMethod}(1){(core::int*, [core::int*, core::int*]) →* core::String*}; + core::String* string5 = extern.{self::External::externalMethod}(1, 2){(core::int*, [core::int*, core::int*]) →* core::String*}; + core::String* string6 = extern.{self::External::externalMethod}(1, 2, 3){(core::int*, [core::int*, core::int*]) →* core::String*}; + extern.{self::External::listen}(new self::TestListener::•()){(self::Listener*) →* void}; + extern.{self::External::listen}(new self::ExtendedListener::•()){(self::Listener*) →* void}; + extern.{self::External::listen}(invalid-expression "pkg/front_end/testcases/general/optional.dart:47:21: Error: The argument type 'InvalidListener' can't be assigned to the parameter type 'Listener'. + - 'InvalidListener' is from 'pkg/front_end/testcases/general/optional.dart'. + - 'Listener' is from 'pkg/front_end/testcases/general/optional.dart'. + extern.listen(new InvalidListener()); + ^" in new self::InvalidListener::•() as{TypeError} self::Listener*){(self::Listener*) →* void}; + invalid-type nothing1 = invalid-expression "pkg/front_end/testcases/general/optional.dart:49:28: Error: Too few positional arguments: 1 required, 0 given. + var nothing1 = foo.method(); + ^" in foo.{self::Foo::method}{}.(){() →* invalid-type}; + invalid-type nothing2 = invalid-expression "pkg/front_end/testcases/general/optional.dart:50:28: Error: Too many positional arguments: 3 allowed, but 4 found. +Try removing the extra positional arguments. + var nothing2 = foo.method(1, 2, 3, 4); + ^" in foo.{self::Foo::method}{}.(1, 2, 3, 4){(invalid-type, invalid-type, invalid-type, invalid-type) →* invalid-type}; + invalid-type nothing3 = invalid-expression "pkg/front_end/testcases/general/optional.dart:51:39: Error: Too few positional arguments: 1 required, 0 given. + var nothing3 = extern.externalMethod(); + ^" in extern.{self::External::externalMethod}{}.(){() →* invalid-type}; + invalid-type nothing4 = invalid-expression "pkg/front_end/testcases/general/optional.dart:52:39: Error: Too many positional arguments: 3 allowed, but 4 found. +Try removing the extra positional arguments. + var nothing4 = extern.externalMethod(1, 2, 3, 4); + ^" in extern.{self::External::externalMethod}{}.(1, 2, 3, 4){(invalid-type, invalid-type, invalid-type, invalid-type) →* invalid-type}; +} + +constants { + #C1 = null +} diff --git a/pkg/front_end/testcases/general/redirecting_initializer_arguments_test.dart.weak.expect b/pkg/front_end/testcases/general/redirecting_initializer_arguments_test.dart.weak.expect index 8a1fe83e922..0375d90c882 100644 --- a/pkg/front_end/testcases/general/redirecting_initializer_arguments_test.dart.weak.expect +++ b/pkg/front_end/testcases/general/redirecting_initializer_arguments_test.dart.weak.expect @@ -12,7 +12,7 @@ import "dart:core" as core; class Foo extends core::Object { generic-covariant-impl field self::Foo::T* x; constructor from(core::String* _init) → self::Foo* - : this self::Foo::_internal(x: let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/redirecting_initializer_arguments_test.dart:12:46: Error: The argument type 'String' can't be assigned to the parameter type 'T'. + : this self::Foo::_internal(x: invalid-expression "pkg/front_end/testcases/general/redirecting_initializer_arguments_test.dart:12:46: Error: The argument type 'String' can't be assigned to the parameter type 'T'. Foo.from(String _init) : this._internal(x: _init); ^" in _init as{TypeError} Never) ; diff --git a/pkg/front_end/testcases/general/redirecting_initializer_arguments_test.dart.weak.transformed.expect b/pkg/front_end/testcases/general/redirecting_initializer_arguments_test.dart.weak.transformed.expect index 8a1fe83e922..0375d90c882 100644 --- a/pkg/front_end/testcases/general/redirecting_initializer_arguments_test.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/redirecting_initializer_arguments_test.dart.weak.transformed.expect @@ -12,7 +12,7 @@ import "dart:core" as core; class Foo extends core::Object { generic-covariant-impl field self::Foo::T* x; constructor from(core::String* _init) → self::Foo* - : this self::Foo::_internal(x: let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/redirecting_initializer_arguments_test.dart:12:46: Error: The argument type 'String' can't be assigned to the parameter type 'T'. + : this self::Foo::_internal(x: invalid-expression "pkg/front_end/testcases/general/redirecting_initializer_arguments_test.dart:12:46: Error: The argument type 'String' can't be assigned to the parameter type 'T'. Foo.from(String _init) : this._internal(x: _init); ^" in _init as{TypeError} Never) ; diff --git a/pkg/front_end/testcases/general/spread_collection_inference.dart.weak.expect b/pkg/front_end/testcases/general/spread_collection_inference.dart.weak.expect index 45b2b8f029e..470fbdae0ca 100644 --- a/pkg/front_end/testcases/general/spread_collection_inference.dart.weak.expect +++ b/pkg/front_end/testcases/general/spread_collection_inference.dart.weak.expect @@ -204,55 +204,55 @@ Try providing type arguments for the literal explicitly to disambiguate it. dynamic map24ambiguous = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:96:28: Error: Both Iterable and Map spread elements encountered in ambiguous literal. dynamic map24ambiguous = {...spread, ...mapSpread}; ^"; - core::int* lhs30 = let final Never* #t34 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:98:36: Error: A value of type 'List' can't be assigned to a variable of type 'int'. + core::int* lhs30 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:98:36: Error: A value of type 'List' can't be assigned to a variable of type 'int'. - 'List' is from 'dart:core'. int lhs30 = /*@ typeArgs=int* */ [...spread]; ^" in ( block { - final core::List* #t35 = core::List::of(spread); - } =>#t35) as{TypeError} core::int*; - core::int* set30 = let final Never* #t36 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:100:36: Error: A value of type 'Set' can't be assigned to a variable of type 'int'. + final core::List* #t34 = core::List::of(spread); + } =>#t34) as{TypeError} core::int*; + core::int* set30 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:100:36: Error: A value of type 'Set' can't be assigned to a variable of type 'int'. - 'Set' is from 'dart:core'. int set30 = /*@ typeArgs=int* */ {...spread, 42}; ^" in ( block { - final core::Set* #t37 = col::LinkedHashSet::of(spread); - #t37.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - } =>#t37) as{TypeError} core::int*; - core::int* set30ambiguous = let final Never* #t38 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:103:7: Error: A value of type 'Set' can't be assigned to a variable of type 'int'. + final core::Set* #t35 = col::LinkedHashSet::of(spread); + #t35.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + } =>#t35) as{TypeError} core::int*; + core::int* set30ambiguous = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:103:7: Error: A value of type 'Set' can't be assigned to a variable of type 'int'. - 'Set' is from 'dart:core'. {...spread}; ^" in ( block { - final core::Set* #t39 = col::LinkedHashSet::•(); - for (final dynamic #t40 in spread) { - final core::int* #t41 = #t40 as{TypeError} core::int*; - #t39.{core::Set::add}{Invariant}(#t41){(core::int*) →* core::bool*}; + final core::Set* #t36 = col::LinkedHashSet::•(); + for (final dynamic #t37 in spread) { + final core::int* #t38 = #t37 as{TypeError} core::int*; + #t36.{core::Set::add}{Invariant}(#t38){(core::int*) →* core::bool*}; } - } =>#t39) as{TypeError} core::int*; - core::int* map30 = let final Never* #t42 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:106:7: Error: A value of type 'Map' can't be assigned to a variable of type 'int'. + } =>#t36) as{TypeError} core::int*; + core::int* map30 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:106:7: Error: A value of type 'Map' can't be assigned to a variable of type 'int'. - 'Map' is from 'dart:core'. {...mapSpread, \"baz\": 42}; ^" in ( block { - final core::Map* #t43 = {}; - for (final core::MapEntry* #t44 in mapSpread.{core::Map::entries}{core::Iterable>}) - #t43.{core::Map::[]=}{Invariant}(#t44.{core::MapEntry::key}{core::String*}, #t44.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; - #t43.{core::Map::[]=}{Invariant}("baz", 42){(core::String*, core::int*) →* void}; - } =>#t43) as{TypeError} core::int*; - core::int* map30ambiguous = let final Never* #t45 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:109:7: Error: A value of type 'Map' can't be assigned to a variable of type 'int'. + final core::Map* #t39 = {}; + for (final core::MapEntry* #t40 in mapSpread.{core::Map::entries}{core::Iterable>}) + #t39.{core::Map::[]=}{Invariant}(#t40.{core::MapEntry::key}{core::String*}, #t40.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + #t39.{core::Map::[]=}{Invariant}("baz", 42){(core::String*, core::int*) →* void}; + } =>#t39) as{TypeError} core::int*; + core::int* map30ambiguous = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:109:7: Error: A value of type 'Map' can't be assigned to a variable of type 'int'. - 'Map' is from 'dart:core'. {...mapSpread}; ^" in ( block { - final core::Map* #t46 = {}; - for (final core::MapEntry* #t47 in mapSpread.{core::Map::entries}{core::Iterable>}) - #t46.{core::Map::[]=}{Invariant}(#t47.{core::MapEntry::key}{core::String*}, #t47.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; - } =>#t46) as{TypeError} core::int*; + final core::Map* #t41 = {}; + for (final core::MapEntry* #t42 in mapSpread.{core::Map::entries}{core::Iterable>}) + #t41.{core::Map::[]=}{Invariant}(#t42.{core::MapEntry::key}{core::String*}, #t42.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + } =>#t41) as{TypeError} core::int*; core::List* lhs40 = [invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:111:38: Error: Unexpected type 'int' of a spread. Expected 'dynamic' or an Iterable. List lhs40 = [...notSpreadInt]; ^"]; core::Set* set40 = block { - final core::Set* #t48 = col::LinkedHashSet::•(); - #t48.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:113:37: Error: Unexpected type 'int' of a spread. Expected 'dynamic' or an Iterable. + final core::Set* #t43 = col::LinkedHashSet::•(); + #t43.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:113:37: Error: Unexpected type 'int' of a spread. Expected 'dynamic' or an Iterable. Set set40 = {...notSpreadInt}; ^"){(dynamic) →* core::bool*}; - } =>#t48; + } =>#t43; core::Map* map40 = {invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:115:55: Error: Unexpected type 'int' of a map spread entry. Expected 'dynamic' or a Map. Map map40 = {...notSpreadInt}; ^": null}; @@ -260,11 +260,11 @@ Try providing type arguments for the literal explicitly to disambiguate it. List lhs50 = [...notSpreadFunction]; ^"]; core::Set* set50 = block { - final core::Set* #t49 = col::LinkedHashSet::•(); - #t49.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:119:37: Error: Unexpected type 'int Function()' of a spread. Expected 'dynamic' or an Iterable. + final core::Set* #t44 = col::LinkedHashSet::•(); + #t44.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:119:37: Error: Unexpected type 'int Function()' of a spread. Expected 'dynamic' or an Iterable. Set set50 = {...notSpreadFunction}; ^"){(dynamic) →* core::bool*}; - } =>#t49; + } =>#t44; core::Map* map50 = {invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:121:55: Error: Unexpected type 'int Function()' of a map spread entry. Expected 'dynamic' or a Map. Map map50 = {...notSpreadFunction}; ^": null}; @@ -272,11 +272,11 @@ Try providing type arguments for the literal explicitly to disambiguate it. List lhs60 = [...spread]; ^"]; core::Set* set60 = block { - final core::Set* #t50 = col::LinkedHashSet::•(); - #t50.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:125:35: Error: Can't assign spread elements of type 'int' to collection elements of type 'String'. + final core::Set* #t45 = col::LinkedHashSet::•(); + #t45.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:125:35: Error: Can't assign spread elements of type 'int' to collection elements of type 'String'. Set set60 = {...spread}; ^"){(core::String*) →* core::bool*}; - } =>#t50; + } =>#t45; core::Map* map60 = {invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:127:39: Error: Can't assign spread entry keys of type 'String' to map entry keys of type 'int'. Map map60 = {...mapSpread}; ^": null}; @@ -287,90 +287,90 @@ Try providing type arguments for the literal explicitly to disambiguate it. List lhs70 = [...null]; ^"]; core::Set* set70 = block { - final core::Set* #t51 = col::LinkedHashSet::•(); - #t51.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:133:29: Error: Can't spread a value with static type 'Null'. + final core::Set* #t46 = col::LinkedHashSet::•(); + #t46.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:133:29: Error: Can't spread a value with static type 'Null'. Set set70 = {...null}; ^"){(core::int*) →* core::bool*}; - } =>#t51; + } =>#t46; core::Set* set71ambiguous = block { - final core::Set* #t52 = col::LinkedHashSet::•(); - #t52.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:137:8: Error: Can't spread a value with static type 'Null'. + final core::Set* #t47 = col::LinkedHashSet::•(); + #t47.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:137:8: Error: Can't spread a value with static type 'Null'. ...null, ^"){(dynamic) →* core::bool*}; - for (final dynamic #t53 in []) { - final dynamic #t54 = #t53 as{TypeError} dynamic; - #t52.{core::Set::add}{Invariant}(#t54){(dynamic) →* core::bool*}; + for (final dynamic #t48 in []) { + final dynamic #t49 = #t48 as{TypeError} dynamic; + #t47.{core::Set::add}{Invariant}(#t49){(dynamic) →* core::bool*}; } - } =>#t52; + } =>#t47; core::Map* map70 = {invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:142:45: Error: Can't spread a value with static type 'Null'. Map map70 = {...null}; ^": null}; core::List* lhs80 = block { - final core::List* #t55 = []; - final core::Iterable* #t56 = null; - if(!(#t56 == null)) - #t55.{core::List::addAll}{Invariant}(#t56){(core::Iterable*) →* void}; - } =>#t55; + final core::List* #t50 = []; + final core::Iterable* #t51 = null; + if(!(#t51 == null)) + #t50.{core::List::addAll}{Invariant}(#t51){(core::Iterable*) →* void}; + } =>#t50; core::Set* set80 = block { - final core::Set* #t57 = col::LinkedHashSet::•(); - final core::Iterable* #t58 = null; - if(!(#t58 == null)) - #t57.{core::Set::addAll}{Invariant}(#t58){(core::Iterable*) →* void}; - } =>#t57; + final core::Set* #t52 = col::LinkedHashSet::•(); + final core::Iterable* #t53 = null; + if(!(#t53 == null)) + #t52.{core::Set::addAll}{Invariant}(#t53){(core::Iterable*) →* void}; + } =>#t52; core::Set* set81ambiguous = block { - final core::Set* #t59 = col::LinkedHashSet::•(); - final core::Iterable* #t60 = null; - if(!(#t60 == null)) - for (final dynamic #t61 in #t60) { - final dynamic #t62 = #t61 as{TypeError} dynamic; - #t59.{core::Set::add}{Invariant}(#t62){(dynamic) →* core::bool*}; + final core::Set* #t54 = col::LinkedHashSet::•(); + final core::Iterable* #t55 = null; + if(!(#t55 == null)) + for (final dynamic #t56 in #t55) { + final dynamic #t57 = #t56 as{TypeError} dynamic; + #t54.{core::Set::add}{Invariant}(#t57){(dynamic) →* core::bool*}; } - for (final dynamic #t63 in []) { - final dynamic #t64 = #t63 as{TypeError} dynamic; - #t59.{core::Set::add}{Invariant}(#t64){(dynamic) →* core::bool*}; + for (final dynamic #t58 in []) { + final dynamic #t59 = #t58 as{TypeError} dynamic; + #t54.{core::Set::add}{Invariant}(#t59){(dynamic) →* core::bool*}; } - } =>#t59; + } =>#t54; core::Map* map80 = block { - final core::Map* #t65 = {}; - final core::Map* #t66 = null; - if(!(#t66 == null)) - for (final core::MapEntry* #t67 in #t66.{core::Map::entries}{core::Iterable>}) - #t65.{core::Map::[]=}{Invariant}(#t67.{core::MapEntry::key}{core::String*}, #t67.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; - } =>#t65; + final core::Map* #t60 = {}; + final core::Map* #t61 = null; + if(!(#t61 == null)) + for (final core::MapEntry* #t62 in #t61.{core::Map::entries}{core::Iterable>}) + #t60.{core::Map::[]=}{Invariant}(#t62.{core::MapEntry::key}{core::String*}, #t62.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + } =>#t60; core::Map* map90 = block { - final core::Map* #t68 = {}; - for (final core::MapEntry* #t69 in self::bar().{core::Map::entries}{core::Iterable>}) - #t68.{core::Map::[]=}{Invariant}(#t69.{core::MapEntry::key}{core::String*}, #t69.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; - } =>#t68; + final core::Map* #t63 = {}; + for (final core::MapEntry* #t64 in self::bar().{core::Map::entries}{core::Iterable>}) + #t63.{core::Map::[]=}{Invariant}(#t64.{core::MapEntry::key}{core::String*}, #t64.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + } =>#t63; core::List* list100 = block { - final core::List* #t70 = []; - for (final dynamic #t71 in listNum) { - final core::int* #t72 = #t71 as{TypeError} core::int*; - #t70.{core::List::add}{Invariant}(#t72){(core::int*) →* void}; + final core::List* #t65 = []; + for (final dynamic #t66 in listNum) { + final core::int* #t67 = #t66 as{TypeError} core::int*; + #t65.{core::List::add}{Invariant}(#t67){(core::int*) →* void}; } - } =>#t70; + } =>#t65; core::Map* map100 = block { - final core::Map* #t73 = {}; - for (final core::MapEntry* #t74 in mapIntNum.{core::Map::entries}{core::Iterable>}) { - final core::num* #t75 = #t74.{core::MapEntry::key}{dynamic} as{TypeError} core::num*; - final core::int* #t76 = #t74.{core::MapEntry::value}{dynamic} as{TypeError} core::int*; - #t73.{core::Map::[]=}{Invariant}(#t75, #t76){(core::num*, core::int*) →* void}; + final core::Map* #t68 = {}; + for (final core::MapEntry* #t69 in mapIntNum.{core::Map::entries}{core::Iterable>}) { + final core::num* #t70 = #t69.{core::MapEntry::key}{dynamic} as{TypeError} core::num*; + final core::int* #t71 = #t69.{core::MapEntry::value}{dynamic} as{TypeError} core::int*; + #t68.{core::Map::[]=}{Invariant}(#t70, #t71){(core::num*, core::int*) →* void}; } - } =>#t73; + } =>#t68; core::List* list110 = block { - final core::List* #t77 = []; - for (final dynamic #t78 in dynVar as{TypeError,ForDynamic} core::Iterable*) { - final core::int* #t79 = #t78 as{TypeError} core::int*; - #t77.{core::List::add}{Invariant}(#t79){(core::int*) →* void}; + final core::List* #t72 = []; + for (final dynamic #t73 in dynVar as{TypeError,ForDynamic} core::Iterable*) { + final core::int* #t74 = #t73 as{TypeError} core::int*; + #t72.{core::List::add}{Invariant}(#t74){(core::int*) →* void}; } - } =>#t77; + } =>#t72; core::Map* map110 = block { - final core::Map* #t80 = {}; - for (final core::MapEntry* #t81 in (dynVar as{TypeError,ForDynamic} core::Map*).{core::Map::entries}{core::Iterable>}) { - final core::num* #t82 = #t81.{core::MapEntry::key}{dynamic} as{TypeError} core::num*; - final core::int* #t83 = #t81.{core::MapEntry::value}{dynamic} as{TypeError} core::int*; - #t80.{core::Map::[]=}{Invariant}(#t82, #t83){(core::num*, core::int*) →* void}; + final core::Map* #t75 = {}; + for (final core::MapEntry* #t76 in (dynVar as{TypeError,ForDynamic} core::Map*).{core::Map::entries}{core::Iterable>}) { + final core::num* #t77 = #t76.{core::MapEntry::key}{dynamic} as{TypeError} core::num*; + final core::int* #t78 = #t76.{core::MapEntry::value}{dynamic} as{TypeError} core::int*; + #t75.{core::Map::[]=}{Invariant}(#t77, #t78){(core::num*, core::int*) →* void}; } - } =>#t80; + } =>#t75; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/spread_collection_inference.dart.weak.transformed.expect b/pkg/front_end/testcases/general/spread_collection_inference.dart.weak.transformed.expect index 05add986dc2..a1ed2c2a7fa 100644 --- a/pkg/front_end/testcases/general/spread_collection_inference.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/spread_collection_inference.dart.weak.transformed.expect @@ -257,71 +257,71 @@ Try providing type arguments for the literal explicitly to disambiguate it. dynamic map24ambiguous = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:96:28: Error: Both Iterable and Map spread elements encountered in ambiguous literal. dynamic map24ambiguous = {...spread, ...mapSpread}; ^"; - core::int* lhs30 = let final Never* #t34 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:98:36: Error: A value of type 'List' can't be assigned to a variable of type 'int'. + core::int* lhs30 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:98:36: Error: A value of type 'List' can't be assigned to a variable of type 'int'. - 'List' is from 'dart:core'. int lhs30 = /*@ typeArgs=int* */ [...spread]; ^" in ( block { - final core::List* #t35 = core::List::of(spread); - } =>#t35) as{TypeError} core::int*; - core::int* set30 = let final Never* #t36 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:100:36: Error: A value of type 'Set' can't be assigned to a variable of type 'int'. + final core::List* #t34 = core::List::of(spread); + } =>#t34) as{TypeError} core::int*; + core::int* set30 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:100:36: Error: A value of type 'Set' can't be assigned to a variable of type 'int'. - 'Set' is from 'dart:core'. int set30 = /*@ typeArgs=int* */ {...spread, 42}; ^" in ( block { - final core::Set* #t37 = col::LinkedHashSet::of(spread); - #t37.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; - } =>#t37) as{TypeError} core::int*; - core::int* set30ambiguous = let final Never* #t38 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:103:7: Error: A value of type 'Set' can't be assigned to a variable of type 'int'. + final core::Set* #t35 = col::LinkedHashSet::of(spread); + #t35.{core::Set::add}{Invariant}(42){(core::int*) →* core::bool*}; + } =>#t35) as{TypeError} core::int*; + core::int* set30ambiguous = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:103:7: Error: A value of type 'Set' can't be assigned to a variable of type 'int'. - 'Set' is from 'dart:core'. {...spread}; ^" in ( block { - final core::Set* #t39 = new col::_CompactLinkedHashSet::•(); + final core::Set* #t36 = new col::_CompactLinkedHashSet::•(); { core::Iterator* :sync-for-iterator = spread.{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t40 = :sync-for-iterator.{core::Iterator::current}{core::int*}; + final dynamic #t37 = :sync-for-iterator.{core::Iterator::current}{core::int*}; { - final core::int* #t41 = #t40 as{TypeError} core::int*; - #t39.{core::Set::add}{Invariant}(#t41){(core::int*) →* core::bool*}; + final core::int* #t38 = #t37 as{TypeError} core::int*; + #t36.{core::Set::add}{Invariant}(#t38){(core::int*) →* core::bool*}; } } } - } =>#t39) as{TypeError} core::int*; - core::int* map30 = let final Never* #t42 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:106:7: Error: A value of type 'Map' can't be assigned to a variable of type 'int'. + } =>#t36) as{TypeError} core::int*; + core::int* map30 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:106:7: Error: A value of type 'Map' can't be assigned to a variable of type 'int'. - 'Map' is from 'dart:core'. {...mapSpread, \"baz\": 42}; ^" in ( block { - final core::Map* #t43 = {}; + final core::Map* #t39 = {}; { core::Iterator>* :sync-for-iterator = mapSpread.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t44 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t43.{core::Map::[]=}{Invariant}(#t44.{core::MapEntry::key}{core::String*}, #t44.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + final core::MapEntry* #t40 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t39.{core::Map::[]=}{Invariant}(#t40.{core::MapEntry::key}{core::String*}, #t40.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; } } - #t43.{core::Map::[]=}{Invariant}("baz", 42){(core::String*, core::int*) →* void}; - } =>#t43) as{TypeError} core::int*; - core::int* map30ambiguous = let final Never* #t45 = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:109:7: Error: A value of type 'Map' can't be assigned to a variable of type 'int'. + #t39.{core::Map::[]=}{Invariant}("baz", 42){(core::String*, core::int*) →* void}; + } =>#t39) as{TypeError} core::int*; + core::int* map30ambiguous = invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:109:7: Error: A value of type 'Map' can't be assigned to a variable of type 'int'. - 'Map' is from 'dart:core'. {...mapSpread}; ^" in ( block { - final core::Map* #t46 = {}; + final core::Map* #t41 = {}; { core::Iterator>* :sync-for-iterator = mapSpread.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t47 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t46.{core::Map::[]=}{Invariant}(#t47.{core::MapEntry::key}{core::String*}, #t47.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + final core::MapEntry* #t42 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t41.{core::Map::[]=}{Invariant}(#t42.{core::MapEntry::key}{core::String*}, #t42.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; } } - } =>#t46) as{TypeError} core::int*; + } =>#t41) as{TypeError} core::int*; core::List* lhs40 = core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:111:38: Error: Unexpected type 'int' of a spread. Expected 'dynamic' or an Iterable. List lhs40 = [...notSpreadInt]; ^"); core::Set* set40 = block { - final core::Set* #t48 = new col::_CompactLinkedHashSet::•(); - #t48.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:113:37: Error: Unexpected type 'int' of a spread. Expected 'dynamic' or an Iterable. + final core::Set* #t43 = new col::_CompactLinkedHashSet::•(); + #t43.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:113:37: Error: Unexpected type 'int' of a spread. Expected 'dynamic' or an Iterable. Set set40 = {...notSpreadInt}; ^"){(dynamic) →* core::bool*}; - } =>#t48; + } =>#t43; core::Map* map40 = {invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:115:55: Error: Unexpected type 'int' of a map spread entry. Expected 'dynamic' or a Map. Map map40 = {...notSpreadInt}; ^": null}; @@ -329,11 +329,11 @@ Try providing type arguments for the literal explicitly to disambiguate it. List lhs50 = [...notSpreadFunction]; ^"); core::Set* set50 = block { - final core::Set* #t49 = new col::_CompactLinkedHashSet::•(); - #t49.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:119:37: Error: Unexpected type 'int Function()' of a spread. Expected 'dynamic' or an Iterable. + final core::Set* #t44 = new col::_CompactLinkedHashSet::•(); + #t44.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:119:37: Error: Unexpected type 'int Function()' of a spread. Expected 'dynamic' or an Iterable. Set set50 = {...notSpreadFunction}; ^"){(dynamic) →* core::bool*}; - } =>#t49; + } =>#t44; core::Map* map50 = {invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:121:55: Error: Unexpected type 'int Function()' of a map spread entry. Expected 'dynamic' or a Map. Map map50 = {...notSpreadFunction}; ^": null}; @@ -341,11 +341,11 @@ Try providing type arguments for the literal explicitly to disambiguate it. List lhs60 = [...spread]; ^"); core::Set* set60 = block { - final core::Set* #t50 = new col::_CompactLinkedHashSet::•(); - #t50.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:125:35: Error: Can't assign spread elements of type 'int' to collection elements of type 'String'. + final core::Set* #t45 = new col::_CompactLinkedHashSet::•(); + #t45.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:125:35: Error: Can't assign spread elements of type 'int' to collection elements of type 'String'. Set set60 = {...spread}; ^"){(core::String*) →* core::bool*}; - } =>#t50; + } =>#t45; core::Map* map60 = {invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:127:39: Error: Can't assign spread entry keys of type 'String' to map entry keys of type 'int'. Map map60 = {...mapSpread}; ^": null}; @@ -356,140 +356,140 @@ Try providing type arguments for the literal explicitly to disambiguate it. List lhs70 = [...null]; ^"); core::Set* set70 = block { - final core::Set* #t51 = new col::_CompactLinkedHashSet::•(); - #t51.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:133:29: Error: Can't spread a value with static type 'Null'. + final core::Set* #t46 = new col::_CompactLinkedHashSet::•(); + #t46.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:133:29: Error: Can't spread a value with static type 'Null'. Set set70 = {...null}; ^"){(core::int*) →* core::bool*}; - } =>#t51; + } =>#t46; core::Set* set71ambiguous = block { - final core::Set* #t52 = new col::_CompactLinkedHashSet::•(); - #t52.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:137:8: Error: Can't spread a value with static type 'Null'. + final core::Set* #t47 = new col::_CompactLinkedHashSet::•(); + #t47.{core::Set::add}{Invariant}(invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:137:8: Error: Can't spread a value with static type 'Null'. ...null, ^"){(dynamic) →* core::bool*}; { core::Iterator* :sync-for-iterator = core::_GrowableList::•(0).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t53 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t48 = :sync-for-iterator.{core::Iterator::current}{dynamic}; { - final dynamic #t54 = #t53 as{TypeError} dynamic; - #t52.{core::Set::add}{Invariant}(#t54){(dynamic) →* core::bool*}; + final dynamic #t49 = #t48 as{TypeError} dynamic; + #t47.{core::Set::add}{Invariant}(#t49){(dynamic) →* core::bool*}; } } } - } =>#t52; + } =>#t47; core::Map* map70 = {invalid-expression "pkg/front_end/testcases/general/spread_collection_inference.dart:142:45: Error: Can't spread a value with static type 'Null'. Map map70 = {...null}; ^": null}; core::List* lhs80 = block { - final core::List* #t55 = core::_GrowableList::•(0); - final core::Iterable* #t56 = null; - if(!(#t56 == null)) - #t55.{core::List::addAll}{Invariant}(#t56){(core::Iterable*) →* void}; - } =>#t55; + final core::List* #t50 = core::_GrowableList::•(0); + final core::Iterable* #t51 = null; + if(!(#t51 == null)) + #t50.{core::List::addAll}{Invariant}(#t51){(core::Iterable*) →* void}; + } =>#t50; core::Set* set80 = block { - final core::Set* #t57 = new col::_CompactLinkedHashSet::•(); - final core::Iterable* #t58 = null; - if(!(#t58 == null)) - #t57.{core::Set::addAll}{Invariant}(#t58){(core::Iterable*) →* void}; - } =>#t57; + final core::Set* #t52 = new col::_CompactLinkedHashSet::•(); + final core::Iterable* #t53 = null; + if(!(#t53 == null)) + #t52.{core::Set::addAll}{Invariant}(#t53){(core::Iterable*) →* void}; + } =>#t52; core::Set* set81ambiguous = block { - final core::Set* #t59 = new col::_CompactLinkedHashSet::•(); - final core::Iterable* #t60 = null; - if(!(#t60 == null)) { - core::Iterator* :sync-for-iterator = #t60.{core::Iterable::iterator}{core::Iterator*}; + final core::Set* #t54 = new col::_CompactLinkedHashSet::•(); + final core::Iterable* #t55 = null; + if(!(#t55 == null)) { + core::Iterator* :sync-for-iterator = #t55.{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t61 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t56 = :sync-for-iterator.{core::Iterator::current}{dynamic}; { - final dynamic #t62 = #t61 as{TypeError} dynamic; - #t59.{core::Set::add}{Invariant}(#t62){(dynamic) →* core::bool*}; + final dynamic #t57 = #t56 as{TypeError} dynamic; + #t54.{core::Set::add}{Invariant}(#t57){(dynamic) →* core::bool*}; } } } { core::Iterator* :sync-for-iterator = core::_GrowableList::•(0).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t63 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t58 = :sync-for-iterator.{core::Iterator::current}{dynamic}; { - final dynamic #t64 = #t63 as{TypeError} dynamic; - #t59.{core::Set::add}{Invariant}(#t64){(dynamic) →* core::bool*}; + final dynamic #t59 = #t58 as{TypeError} dynamic; + #t54.{core::Set::add}{Invariant}(#t59){(dynamic) →* core::bool*}; } } } - } =>#t59; + } =>#t54; core::Map* map80 = block { - final core::Map* #t65 = {}; - final core::Map* #t66 = null; - if(!(#t66 == null)) { - core::Iterator>* :sync-for-iterator = #t66.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; + final core::Map* #t60 = {}; + final core::Map* #t61 = null; + if(!(#t61 == null)) { + core::Iterator>* :sync-for-iterator = #t61.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t67 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t65.{core::Map::[]=}{Invariant}(#t67.{core::MapEntry::key}{core::String*}, #t67.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + final core::MapEntry* #t62 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t60.{core::Map::[]=}{Invariant}(#t62.{core::MapEntry::key}{core::String*}, #t62.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; } } - } =>#t65; + } =>#t60; core::Map* map90 = block { - final core::Map* #t68 = {}; + final core::Map* #t63 = {}; { core::Iterator>* :sync-for-iterator = self::bar().{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t69 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; - #t68.{core::Map::[]=}{Invariant}(#t69.{core::MapEntry::key}{core::String*}, #t69.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; + final core::MapEntry* #t64 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + #t63.{core::Map::[]=}{Invariant}(#t64.{core::MapEntry::key}{core::String*}, #t64.{core::MapEntry::value}{core::int*}){(core::String*, core::int*) →* void}; } } - } =>#t68; + } =>#t63; core::List* list100 = block { - final core::List* #t70 = core::_GrowableList::•(0); + final core::List* #t65 = core::_GrowableList::•(0); { core::Iterator* :sync-for-iterator = listNum.{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t71 = :sync-for-iterator.{core::Iterator::current}{core::num*}; + final dynamic #t66 = :sync-for-iterator.{core::Iterator::current}{core::num*}; { - final core::int* #t72 = #t71 as{TypeError} core::int*; - #t70.{core::List::add}{Invariant}(#t72){(core::int*) →* void}; + final core::int* #t67 = #t66 as{TypeError} core::int*; + #t65.{core::List::add}{Invariant}(#t67){(core::int*) →* void}; } } } - } =>#t70; + } =>#t65; core::Map* map100 = block { - final core::Map* #t73 = {}; + final core::Map* #t68 = {}; { core::Iterator>* :sync-for-iterator = mapIntNum.{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t74 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + final core::MapEntry* #t69 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; { - final core::num* #t75 = #t74.{core::MapEntry::key}{dynamic} as{TypeError} core::num*; - final core::int* #t76 = #t74.{core::MapEntry::value}{dynamic} as{TypeError} core::int*; - #t73.{core::Map::[]=}{Invariant}(#t75, #t76){(core::num*, core::int*) →* void}; + final core::num* #t70 = #t69.{core::MapEntry::key}{dynamic} as{TypeError} core::num*; + final core::int* #t71 = #t69.{core::MapEntry::value}{dynamic} as{TypeError} core::int*; + #t68.{core::Map::[]=}{Invariant}(#t70, #t71){(core::num*, core::int*) →* void}; } } } - } =>#t73; + } =>#t68; core::List* list110 = block { - final core::List* #t77 = core::_GrowableList::•(0); + final core::List* #t72 = core::_GrowableList::•(0); { core::Iterator* :sync-for-iterator = (dynVar as{TypeError,ForDynamic} core::Iterable*).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t78 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t73 = :sync-for-iterator.{core::Iterator::current}{dynamic}; { - final core::int* #t79 = #t78 as{TypeError} core::int*; - #t77.{core::List::add}{Invariant}(#t79){(core::int*) →* void}; + final core::int* #t74 = #t73 as{TypeError} core::int*; + #t72.{core::List::add}{Invariant}(#t74){(core::int*) →* void}; } } } - } =>#t77; + } =>#t72; core::Map* map110 = block { - final core::Map* #t80 = {}; + final core::Map* #t75 = {}; { core::Iterator>* :sync-for-iterator = (dynVar as{TypeError,ForDynamic} core::Map*).{core::Map::entries}{core::Iterable>}.{core::Iterable::iterator}{core::Iterator>*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::MapEntry* #t81 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; + final core::MapEntry* #t76 = :sync-for-iterator.{core::Iterator::current}{core::MapEntry}; { - final core::num* #t82 = #t81.{core::MapEntry::key}{dynamic} as{TypeError} core::num*; - final core::int* #t83 = #t81.{core::MapEntry::value}{dynamic} as{TypeError} core::int*; - #t80.{core::Map::[]=}{Invariant}(#t82, #t83){(core::num*, core::int*) →* void}; + final core::num* #t77 = #t76.{core::MapEntry::key}{dynamic} as{TypeError} core::num*; + final core::int* #t78 = #t76.{core::MapEntry::value}{dynamic} as{TypeError} core::int*; + #t75.{core::Map::[]=}{Invariant}(#t77, #t78){(core::num*, core::int*) →* void}; } } } - } =>#t80; + } =>#t75; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/stream_future.dart.weak.expect b/pkg/front_end/testcases/general/stream_future.dart.weak.expect index cfe7b00e421..2914b7b700d 100644 --- a/pkg/front_end/testcases/general/stream_future.dart.weak.expect +++ b/pkg/front_end/testcases/general/stream_future.dart.weak.expect @@ -38,7 +38,7 @@ static method returnFutureDynamic() → asy::Future* async static method returnFutureClass() → asy::Future* async return new self::Class::•(); static method error() → asy::Stream*>* async* { - yield let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/stream_future.dart:18:9: Error: A value of type 'Future' can't be assigned to a variable of type 'FutureOr'. + yield invalid-expression "pkg/front_end/testcases/general/stream_future.dart:18:9: Error: A value of type 'Future' can't be assigned to a variable of type 'FutureOr'. - 'Future' is from 'dart:async'. - 'Class' is from 'pkg/front_end/testcases/general/stream_future.dart'. yield returnFutureDynamic(); diff --git a/pkg/front_end/testcases/general/stream_future.dart.weak.transformed.expect b/pkg/front_end/testcases/general/stream_future.dart.weak.transformed.expect index ae0443bf1e0..f6ea47725b5 100644 --- a/pkg/front_end/testcases/general/stream_future.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/stream_future.dart.weak.transformed.expect @@ -102,7 +102,7 @@ static method error() → asy::Stream*>* /* originally as try { #L3: { - if(:controller.{asy::_AsyncStarStreamController::add}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/stream_future.dart:18:9: Error: A value of type 'Future' can't be assigned to a variable of type 'FutureOr'. + if(:controller.{asy::_AsyncStarStreamController::add}(invalid-expression "pkg/front_end/testcases/general/stream_future.dart:18:9: Error: A value of type 'Future' can't be assigned to a variable of type 'FutureOr'. - 'Future' is from 'dart:async'. - 'Class' is from 'pkg/front_end/testcases/general/stream_future.dart'. yield returnFutureDynamic(); @@ -188,8 +188,8 @@ static method main() → dynamic /* originally async */ { try #L6: while (true) { - dynamic #t2 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t3 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t1 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t2 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { FutureOr* cls = :for-iterator.{asy::_StreamIterator::current}{FutureOr*}; { @@ -201,7 +201,7 @@ static method main() → dynamic /* originally async */ { } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription*>?} == null)) { - [yield] let dynamic #t4 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t3 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } diff --git a/pkg/front_end/testcases/general/super_access_in_initializer.dart.weak.expect b/pkg/front_end/testcases/general/super_access_in_initializer.dart.weak.expect index 690c624f4f7..57f7ead7ded 100644 --- a/pkg/front_end/testcases/general/super_access_in_initializer.dart.weak.expect +++ b/pkg/front_end/testcases/general/super_access_in_initializer.dart.weak.expect @@ -43,16 +43,16 @@ class Class extends self::Super { constructor •(core::bool* value) → self::Class* : assert(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:15:16: Error: Getter not found: 'property'. : assert(property), - ^^^^^^^^" as{TypeError,ForDynamic} core::bool*), self::Class::field = invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:16:22: Error: Getter not found: 'property'. + ^^^^^^^^"), self::Class::field = invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:16:22: Error: Getter not found: 'property'. this.field = property, - ^^^^^^^^" as{TypeError,ForDynamic} core::bool*, super self::Super::•(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:17:15: Error: Getter not found: 'property'. + ^^^^^^^^", super self::Super::•(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:17:15: Error: Getter not found: 'property'. super(property); - ^^^^^^^^" as{TypeError,ForDynamic} core::bool*) + ^^^^^^^^") ; constructor redirect() → self::Class* : this self::Class::•(invalid-expression "pkg/front_end/testcases/general/super_access_in_initializer.dart:19:27: Error: Getter not found: 'property'. Class.redirect() : this(property); - ^^^^^^^^" as{TypeError,ForDynamic} core::bool*) + ^^^^^^^^") ; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/super_call.dart.weak.expect b/pkg/front_end/testcases/general/super_call.dart.weak.expect index 29d979a9d42..6c726a40d57 100644 --- a/pkg/front_end/testcases/general/super_call.dart.weak.expect +++ b/pkg/front_end/testcases/general/super_call.dart.weak.expect @@ -37,7 +37,7 @@ class B extends self::A { return invalid-expression "pkg/front_end/testcases/general/super_call.dart:17:12: Error: Can't use 'super' as an expression. To delegate a constructor to a super constructor, put the super call as an initializer. return super(5); - ^" as{TypeError,ForDynamic} core::int*; + ^"; } } static method main() → dynamic { diff --git a/pkg/front_end/testcases/general/super_set_abstract.dart.weak.expect b/pkg/front_end/testcases/general/super_set_abstract.dart.weak.expect index d6283ebcb9a..096efc969d8 100644 --- a/pkg/front_end/testcases/general/super_set_abstract.dart.weak.expect +++ b/pkg/front_end/testcases/general/super_set_abstract.dart.weak.expect @@ -36,7 +36,7 @@ class SubClass extends self::Class { : super self::Class::•() ; set setter(core::Object* o) → void { - super.{self::SuperClass::setter} = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/super_set_abstract.dart:15:24: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + super.{self::SuperClass::setter} = invalid-expression "pkg/front_end/testcases/general/super_set_abstract.dart:15:24: Error: A value of type 'String' can't be assigned to a variable of type 'int'. super.setter = '\$o'; ^" in "${o}" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/general/super_set_abstract.dart.weak.transformed.expect b/pkg/front_end/testcases/general/super_set_abstract.dart.weak.transformed.expect index d6283ebcb9a..096efc969d8 100644 --- a/pkg/front_end/testcases/general/super_set_abstract.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/super_set_abstract.dart.weak.transformed.expect @@ -36,7 +36,7 @@ class SubClass extends self::Class { : super self::Class::•() ; set setter(core::Object* o) → void { - super.{self::SuperClass::setter} = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/super_set_abstract.dart:15:24: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + super.{self::SuperClass::setter} = invalid-expression "pkg/front_end/testcases/general/super_set_abstract.dart:15:24: Error: A value of type 'String' can't be assigned to a variable of type 'int'. super.setter = '\$o'; ^" in "${o}" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/general/super_set_covariant.dart.weak.expect b/pkg/front_end/testcases/general/super_set_covariant.dart.weak.expect index 2bcb96a7e80..be8f096366d 100644 --- a/pkg/front_end/testcases/general/super_set_covariant.dart.weak.expect +++ b/pkg/front_end/testcases/general/super_set_covariant.dart.weak.expect @@ -37,7 +37,7 @@ class SubClass extends self::Class { : super self::Class::•() ; set setter(covariant core::int* o) → void { - super.{self::Class::setter} = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/super_set_covariant.dart:18:24: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + super.{self::Class::setter} = invalid-expression "pkg/front_end/testcases/general/super_set_covariant.dart:18:24: Error: A value of type 'String' can't be assigned to a variable of type 'int'. super.setter = '\$o'; ^" in "${o}" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/general/super_set_covariant.dart.weak.transformed.expect b/pkg/front_end/testcases/general/super_set_covariant.dart.weak.transformed.expect index 2bcb96a7e80..be8f096366d 100644 --- a/pkg/front_end/testcases/general/super_set_covariant.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/super_set_covariant.dart.weak.transformed.expect @@ -37,7 +37,7 @@ class SubClass extends self::Class { : super self::Class::•() ; set setter(covariant core::int* o) → void { - super.{self::Class::setter} = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/super_set_covariant.dart:18:24: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + super.{self::Class::setter} = invalid-expression "pkg/front_end/testcases/general/super_set_covariant.dart:18:24: Error: A value of type 'String' can't be assigned to a variable of type 'int'. super.setter = '\$o'; ^" in "${o}" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/general/type_literal_as_metadata.dart.weak.outline.expect b/pkg/front_end/testcases/general/type_literal_as_metadata.dart.weak.outline.expect index f1d030d3e19..49f26e6f625 100644 --- a/pkg/front_end/testcases/general/type_literal_as_metadata.dart.weak.outline.expect +++ b/pkg/front_end/testcases/general/type_literal_as_metadata.dart.weak.outline.expect @@ -24,7 +24,7 @@ class A extends core::Object /*hasConstConstructor*/ { abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } -@let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/type_literal_as_metadata.dart:9:2: Error: This can't be used as an annotation; an annotation should be a reference to a compile-time constant variable, or a call to a constant constructor. +@invalid-expression "pkg/front_end/testcases/general/type_literal_as_metadata.dart:9:2: Error: This can't be used as an annotation; an annotation should be a reference to a compile-time constant variable, or a call to a constant constructor. @A ^" in self::A* class B extends core::Object { @@ -43,8 +43,3 @@ class B extends core::Object { } static method main() → dynamic ; - - -Extra constant evaluation status: -Evaluated: TypeLiteral @ org-dartlang-testcase:///type_literal_as_metadata.dart:9:2 -> TypeLiteralConstant(A*) -Extra constant evaluation: evaluated: 2, effectively constant: 1 diff --git a/pkg/front_end/testcases/general/type_parameter_type_named_int.dart.weak.expect b/pkg/front_end/testcases/general/type_parameter_type_named_int.dart.weak.expect index b61c54e4324..ea169b325d1 100644 --- a/pkg/front_end/testcases/general/type_parameter_type_named_int.dart.weak.expect +++ b/pkg/front_end/testcases/general/type_parameter_type_named_int.dart.weak.expect @@ -35,7 +35,7 @@ class Bar extends core::Object implements self::Foo { : super core::Object::•() ; method setList(core::List* value) → void { - this.{self::Bar::list} = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/type_parameter_type_named_int.dart:13:12: Error: A value of type 'List' can't be assigned to a variable of type 'List'. + this.{self::Bar::list} = invalid-expression "pkg/front_end/testcases/general/type_parameter_type_named_int.dart:13:12: Error: A value of type 'List' can't be assigned to a variable of type 'List'. - 'List' is from 'dart:core'. - 'int/*1*/' is from 'pkg/front_end/testcases/general/type_parameter_type_named_int.dart'. - 'int/*2*/' is from 'dart:core'. diff --git a/pkg/front_end/testcases/general/type_parameter_type_named_int.dart.weak.transformed.expect b/pkg/front_end/testcases/general/type_parameter_type_named_int.dart.weak.transformed.expect index b61c54e4324..ea169b325d1 100644 --- a/pkg/front_end/testcases/general/type_parameter_type_named_int.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/general/type_parameter_type_named_int.dart.weak.transformed.expect @@ -35,7 +35,7 @@ class Bar extends core::Object implements self::Foo { : super core::Object::•() ; method setList(core::List* value) → void { - this.{self::Bar::list} = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/general/type_parameter_type_named_int.dart:13:12: Error: A value of type 'List' can't be assigned to a variable of type 'List'. + this.{self::Bar::list} = invalid-expression "pkg/front_end/testcases/general/type_parameter_type_named_int.dart:13:12: Error: A value of type 'List' can't be assigned to a variable of type 'List'. - 'List' is from 'dart:core'. - 'int/*1*/' is from 'pkg/front_end/testcases/general/type_parameter_type_named_int.dart'. - 'int/*2*/' is from 'dart:core'. diff --git a/pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.weak.expect b/pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.weak.expect index 0c147883500..e90018d7a30 100644 --- a/pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.weak.expect +++ b/pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.weak.expect @@ -14,7 +14,7 @@ static method main() → dynamic { return null; () →* core::String* g = f; g = () → core::String* { - return let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart:12:45: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart:12:45: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ 1; ^" in 1 as{TypeError} core::String*; }; diff --git a/pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.weak.transformed.expect index 0c147883500..e90018d7a30 100644 --- a/pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.weak.transformed.expect @@ -14,7 +14,7 @@ static method main() → dynamic { return null; () →* core::String* g = f; g = () → core::String* { - return let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart:12:45: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart:12:45: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ 1; ^" in 1 as{TypeError} core::String*; }; diff --git a/pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart.weak.expect b/pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart.weak.expect index d5508f08a85..fb5b0b4038e 100644 --- a/pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart.weak.expect +++ b/pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart.weak.expect @@ -34,7 +34,7 @@ static method test() → dynamic { #t1.{self::C::t} = 1.0; } =>#t1; self::C* c_dynamic = new self::C::•(42); - x.{self::C::t} = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart:26:55: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + x.{self::C::t} = invalid-expression "pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart:26:55: Error: A value of type 'String' can't be assigned to a variable of type 'int'. x. /*@target=C.t*/ t = /*error:INVALID_ASSIGNMENT*/ 'hello'; ^" in "hello" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart.weak.transformed.expect index d5508f08a85..fb5b0b4038e 100644 --- a/pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart.weak.transformed.expect @@ -34,7 +34,7 @@ static method test() → dynamic { #t1.{self::C::t} = 1.0; } =>#t1; self::C* c_dynamic = new self::C::•(42); - x.{self::C::t} = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart:26:55: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + x.{self::C::t} = invalid-expression "pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart:26:55: Error: A value of type 'String' can't be assigned to a variable of type 'int'. x. /*@target=C.t*/ t = /*error:INVALID_ASSIGNMENT*/ 'hello'; ^" in "hello" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart b/pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart index e66f39906c1..4e6dac5ea0f 100644 --- a/pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart +++ b/pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart @@ -8,7 +8,7 @@ library test; class A {} test() { - var /*@type=dynamic*/ a = new A /*error:EXTRA_POSITIONAL_ARGUMENTS*/ (42); + var /*@type=invalid-type*/ a = new A /*error:EXTRA_POSITIONAL_ARGUMENTS*/ (42); } main() {} diff --git a/pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart.weak.expect b/pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart.weak.expect index eb010659dd1..63ca5621fae 100644 --- a/pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart.weak.expect +++ b/pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart.weak.expect @@ -2,10 +2,10 @@ library test; // // Problems in library: // -// pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart:11:72: Error: Too many positional arguments: 0 allowed, but 1 found. +// pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart:11:77: Error: Too many positional arguments: 0 allowed, but 1 found. // Try removing the extra positional arguments. -// var /*@type=dynamic*/ a = new A /*error:EXTRA_POSITIONAL_ARGUMENTS*/ (42); -// ^ +// var /*@type=invalid-type*/ a = new A /*error:EXTRA_POSITIONAL_ARGUMENTS*/ (42); +// ^ // pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart:8:7: Context: The class 'A' has a constructor that takes no arguments. // class A {} // ^ @@ -29,9 +29,9 @@ class A extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method test() → dynamic { - dynamic a = invalid-expression "pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart:11:72: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-type a = invalid-expression "pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart:11:77: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. - var /*@type=dynamic*/ a = new A /*error:EXTRA_POSITIONAL_ARGUMENTS*/ (42); - ^"; + var /*@type=invalid-type*/ a = new A /*error:EXTRA_POSITIONAL_ARGUMENTS*/ (42); + ^"; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart.weak.transformed.expect index eb010659dd1..63ca5621fae 100644 --- a/pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart.weak.transformed.expect @@ -2,10 +2,10 @@ library test; // // Problems in library: // -// pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart:11:72: Error: Too many positional arguments: 0 allowed, but 1 found. +// pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart:11:77: Error: Too many positional arguments: 0 allowed, but 1 found. // Try removing the extra positional arguments. -// var /*@type=dynamic*/ a = new A /*error:EXTRA_POSITIONAL_ARGUMENTS*/ (42); -// ^ +// var /*@type=invalid-type*/ a = new A /*error:EXTRA_POSITIONAL_ARGUMENTS*/ (42); +// ^ // pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart:8:7: Context: The class 'A' has a constructor that takes no arguments. // class A {} // ^ @@ -29,9 +29,9 @@ class A extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method test() → dynamic { - dynamic a = invalid-expression "pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart:11:72: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-type a = invalid-expression "pkg/front_end/testcases/inference/constructors_too_many_positional_arguments.dart:11:77: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. - var /*@type=dynamic*/ a = new A /*error:EXTRA_POSITIONAL_ARGUMENTS*/ (42); - ^"; + var /*@type=invalid-type*/ a = new A /*error:EXTRA_POSITIONAL_ARGUMENTS*/ (42); + ^"; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/inference/downwards_inference_assignment_statements.dart.weak.expect b/pkg/front_end/testcases/inference/downwards_inference_assignment_statements.dart.weak.expect index 4fceb254768..c16d9c4769d 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_assignment_statements.dart.weak.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_assignment_statements.dart.weak.expect @@ -11,7 +11,7 @@ import "dart:core" as core; static method test() → void { core::List* l; - l = [let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_assignment_statements.dart:10:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + l = [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_assignment_statements.dart:10:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. l = /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]; ^" in "hello" as{TypeError} core::int*]; l = l = [1]; diff --git a/pkg/front_end/testcases/inference/downwards_inference_assignment_statements.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/downwards_inference_assignment_statements.dart.weak.transformed.expect index 4eebe6940a7..4f1b279880c 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_assignment_statements.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_assignment_statements.dart.weak.transformed.expect @@ -11,7 +11,7 @@ import "dart:core" as core; static method test() → void { core::List* l; - l = core::_GrowableList::_literal1(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_assignment_statements.dart:10:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + l = core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_assignment_statements.dart:10:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. l = /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]; ^" in "hello" as{TypeError} core::int*); l = l = core::_GrowableList::_literal1(1); diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.weak.expect b/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.weak.expect index dd43a5ba632..3550c19a6a2 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.weak.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.weak.expect @@ -118,42 +118,42 @@ class F4 extends core::Object { static method test() → void { new self::F0::•([]); new self::F0::•([3]); - new self::F0::•([let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:32:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F0::•([invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:32:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*]); - new self::F0::•([let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:34:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F0::•([invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:34:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3]); new self::F1::•(a: []); new self::F1::•(a: [3]); - new self::F1::•(a: [let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:41:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F1::•(a: [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:41:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\" ^" in "hello" as{TypeError} core::int*]); - new self::F1::•(a: [let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:44:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F1::•(a: [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:44:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3]); new self::F2::•([]); new self::F2::•([3]); - new self::F2::•([let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:51:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F2::•([invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:51:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*]); - new self::F2::•([let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:53:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F2::•([invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:53:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3]); new self::F3::•(*>[]); new self::F3::•(*>[[3]]); - new self::F3::•(*>[[let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:62:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F3::•(*>[[invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:62:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"] ^" in "hello" as{TypeError} core::int*]]); - new self::F3::•(*>[[let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:65:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F3::•(*>[[invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:65:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"], ^" in "hello" as{TypeError} core::int*], [3]]); new self::F4::•(a: *>[]); new self::F4::•(a: *>[[3]]); - new self::F4::•(a: *>[[let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:74:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F4::•(a: *>[[invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:74:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"] ^" in "hello" as{TypeError} core::int*]]); - new self::F4::•(a: *>[[let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:77:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F4::•(a: *>[[invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:77:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"], ^" in "hello" as{TypeError} core::int*], [3]]); } diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.weak.transformed.expect index 3b3617b20b6..e7bd5e35053 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart.weak.transformed.expect @@ -118,42 +118,42 @@ class F4 extends core::Object { static method test() → void { new self::F0::•(core::_GrowableList::•(0)); new self::F0::•(core::_GrowableList::_literal1(3)); - new self::F0::•(core::_GrowableList::_literal1(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:32:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F0::•(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:32:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*)); - new self::F0::•(core::_GrowableList::_literal2(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:34:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F0::•(core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:34:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3)); new self::F1::•(a: core::_GrowableList::•(0)); new self::F1::•(a: core::_GrowableList::_literal1(3)); - new self::F1::•(a: core::_GrowableList::_literal1(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:41:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F1::•(a: core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:41:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\" ^" in "hello" as{TypeError} core::int*)); - new self::F1::•(a: core::_GrowableList::_literal2(let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:44:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F1::•(a: core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:44:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3)); new self::F2::•(core::_GrowableList::•(0)); new self::F2::•(core::_GrowableList::_literal1(3)); - new self::F2::•(core::_GrowableList::_literal1(let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:51:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F2::•(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:51:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*)); - new self::F2::•(core::_GrowableList::_literal2(let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:53:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F2::•(core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:53:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3)); new self::F3::•(core::_GrowableList::•*>(0)); new self::F3::•(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(3))); - new self::F3::•(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:62:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F3::•(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:62:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"] ^" in "hello" as{TypeError} core::int*))); - new self::F3::•(core::_GrowableList::_literal2*>(core::_GrowableList::_literal1(let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:65:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F3::•(core::_GrowableList::_literal2*>(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:65:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"], ^" in "hello" as{TypeError} core::int*), core::_GrowableList::_literal1(3))); new self::F4::•(a: core::_GrowableList::•*>(0)); new self::F4::•(a: core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(3))); - new self::F4::•(a: core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:74:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F4::•(a: core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:74:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"] ^" in "hello" as{TypeError} core::int*))); - new self::F4::•(a: core::_GrowableList::_literal2*>(core::_GrowableList::_literal1(let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:77:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F4::•(a: core::_GrowableList::_literal2*>(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_constructor_arguments_infer_downwards.dart:77:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"], ^" in "hello" as{TypeError} core::int*), core::_GrowableList::_literal1(3))); } diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart.weak.expect b/pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart.weak.expect index ecefbb28d06..5fd719d88de 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart.weak.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart.weak.expect @@ -53,42 +53,42 @@ static method f4({core::Iterable*>* a = #C1}) → voi static method test() → void { self::f0([]); self::f0([3]); - self::f0([let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:16:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f0([invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:16:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. f0(/*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*]); - self::f0([let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:17:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f0([invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:17:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. f0(/*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", 3]); ^" in "hello" as{TypeError} core::int*, 3]); self::f1(a: []); self::f1(a: [3]); - self::f1(a: [let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:21:74: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f1(a: [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:21:74: Error: A value of type 'String' can't be assigned to a variable of type 'int'. f1(a: /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*]); - self::f1(a: [let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:23:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f1(a: [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:23:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3]); self::f2([]); self::f2([3]); - self::f2([let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:29:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f2([invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:29:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. f2(/*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*]); - self::f2([let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:30:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f2([invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:30:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. f2(/*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", 3]); ^" in "hello" as{TypeError} core::int*, 3]); self::f3(*>[]); self::f3(*>[[3]]); - self::f3(*>[[let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:37:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f3(*>[[invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:37:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"] ^" in "hello" as{TypeError} core::int*]]); - self::f3(*>[[let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:40:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f3(*>[[invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:40:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"], ^" in "hello" as{TypeError} core::int*], [3]]); self::f4(a: *>[]); self::f4(a: *>[[3]]); - self::f4(a: *>[[let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:49:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f4(a: *>[[invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:49:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"] ^" in "hello" as{TypeError} core::int*]]); - self::f4(a: *>[[let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:52:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f4(a: *>[[invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:52:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"], ^" in "hello" as{TypeError} core::int*], [3]]); } diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart.weak.transformed.expect index 2c0dec1d853..8b9a883b958 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart.weak.transformed.expect @@ -53,42 +53,42 @@ static method f4({core::Iterable*>* a = #C1}) → voi static method test() → void { self::f0(core::_GrowableList::•(0)); self::f0(core::_GrowableList::_literal1(3)); - self::f0(core::_GrowableList::_literal1(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:16:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f0(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:16:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. f0(/*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*)); - self::f0(core::_GrowableList::_literal2(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:17:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f0(core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:17:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. f0(/*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", 3]); ^" in "hello" as{TypeError} core::int*, 3)); self::f1(a: core::_GrowableList::•(0)); self::f1(a: core::_GrowableList::_literal1(3)); - self::f1(a: core::_GrowableList::_literal1(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:21:74: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f1(a: core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:21:74: Error: A value of type 'String' can't be assigned to a variable of type 'int'. f1(a: /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*)); - self::f1(a: core::_GrowableList::_literal2(let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:23:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f1(a: core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:23:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3)); self::f2(core::_GrowableList::•(0)); self::f2(core::_GrowableList::_literal1(3)); - self::f2(core::_GrowableList::_literal1(let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:29:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f2(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:29:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. f2(/*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*)); - self::f2(core::_GrowableList::_literal2(let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:30:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f2(core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:30:71: Error: A value of type 'String' can't be assigned to a variable of type 'int'. f2(/*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", 3]); ^" in "hello" as{TypeError} core::int*, 3)); self::f3(core::_GrowableList::•*>(0)); self::f3(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(3))); - self::f3(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:37:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f3(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:37:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"] ^" in "hello" as{TypeError} core::int*))); - self::f3(core::_GrowableList::_literal2*>(core::_GrowableList::_literal1(let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:40:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f3(core::_GrowableList::_literal2*>(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:40:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"], ^" in "hello" as{TypeError} core::int*), core::_GrowableList::_literal1(3))); self::f4(a: core::_GrowableList::•*>(0)); self::f4(a: core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(3))); - self::f4(a: core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:49:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f4(a: core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:49:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"] ^" in "hello" as{TypeError} core::int*))); - self::f4(a: core::_GrowableList::_literal2*>(core::_GrowableList::_literal1(let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:52:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::f4(a: core::_GrowableList::_literal2*>(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_arguments_infer_downwards.dart:52:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"], ^" in "hello" as{TypeError} core::int*), core::_GrowableList::_literal1(3))); } diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart.weak.expect b/pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart.weak.expect index 750de9c1060..20381a9e74d 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart.weak.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart.weak.expect @@ -56,14 +56,14 @@ static method test() → void { { (core::int*) →* core::String* l0 = (core::int* x) → Null => null; (core::int*) →* core::String* l1 = (core::int* x) → core::String* => "hello"; - (core::int*) →* core::String* l2 = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:15:69: Error: A value of type 'String Function(String)' can't be assigned to a variable of type 'String Function(int)'. + (core::int*) →* core::String* l2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:15:69: Error: A value of type 'String Function(String)' can't be assigned to a variable of type 'String Function(int)'. l2 = /*error:INVALID_ASSIGNMENT*/ /*@ returnType=String* */ (String x) => ^" in ((core::String* x) → core::String* => "hello") as{TypeError} (core::int*) →* core::String*; - (core::int*) →* core::String* l3 = (core::int* x) → core::String* => let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:18:80: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + (core::int*) →* core::String* l3 = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:18:80: Error: A value of type 'int' can't be assigned to a variable of type 'String'. l3 = /*error:INVALID_ASSIGNMENT*/ /*@ returnType=String* */ (int x) => 3; ^" in 3 as{TypeError} core::String*; (core::int*) →* core::String* l4 = (core::int* x) → core::String* { - return let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:20:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:20:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ 3; ^" in 3 as{TypeError} core::String*; }; @@ -71,16 +71,16 @@ static method test() → void { { (core::int*) →* core::String* l0 = (core::int* x) → Null => null; (core::int*) →* core::String* l1 = (core::int* x) → core::String* => "hello"; - (core::int*) →* core::String* l2 = (core::int* x) → core::String* => let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:29:13: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + (core::int*) →* core::String* l2 = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:29:13: Error: A value of type 'int' can't be assigned to a variable of type 'String'. 3; ^" in 3 as{TypeError} core::String*; (core::int*) →* core::String* l3 = (core::int* x) → core::String* { - return let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:31:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:31:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ 3; ^" in 3 as{TypeError} core::String*; }; (core::int*) →* core::String* l4 = (core::int* x) → core::String* { - return let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:34:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:34:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ x; ^" in x as{TypeError} core::String*; }; @@ -88,15 +88,15 @@ static method test() → void { { (core::int*) →* core::List* l0 = (core::int* x) → Null => null; (core::int*) →* core::List* l1 = (core::int* x) → core::List* => ["hello"]; - (core::int*) →* core::List* l2 = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:42:76: Error: A value of type 'List Function(String)' can't be assigned to a variable of type 'List Function(int)'. + (core::int*) →* core::List* l2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:42:76: Error: A value of type 'List Function(String)' can't be assigned to a variable of type 'List Function(int)'. - 'List' is from 'dart:core'. l2 = /*error:INVALID_ASSIGNMENT*/ /*@ returnType=List* */ (String ^" in ((core::String* x) → core::List* => ["hello"]) as{TypeError} (core::int*) →* core::List*; - (core::int*) →* core::List* l3 = (core::int* x) → core::List* => [let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:46:58: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + (core::int*) →* core::List* l3 = (core::int* x) → core::List* => [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:46:58: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*]; (core::int*) →* core::List* l4 = (core::int* x) → core::List* { - return [let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:50:52: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:50:52: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*]; }; @@ -104,7 +104,7 @@ static method test() → void { { (core::int*) →* core::int* l0 = (core::int* x) → core::int* => x; (core::int*) →* core::int* l1 = (core::int* x) → core::int* => x.{core::num::+}(1){(core::num*) →* core::int*}; - (core::int*) →* core::String* l2 = (core::int* x) → core::String* => let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:60:13: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + (core::int*) →* core::String* l2 = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:60:13: Error: A value of type 'int' can't be assigned to a variable of type 'String'. x; ^" in x as{TypeError} core::String*; (core::int*) →* core::String* l3 = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:63:14: Error: The method 'substring' isn't defined for the class 'int'. diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart.weak.transformed.expect index 6529a8655ca..43dddcb8552 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart.weak.transformed.expect @@ -56,14 +56,14 @@ static method test() → void { { (core::int*) →* core::String* l0 = (core::int* x) → Null => null; (core::int*) →* core::String* l1 = (core::int* x) → core::String* => "hello"; - (core::int*) →* core::String* l2 = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:15:69: Error: A value of type 'String Function(String)' can't be assigned to a variable of type 'String Function(int)'. + (core::int*) →* core::String* l2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:15:69: Error: A value of type 'String Function(String)' can't be assigned to a variable of type 'String Function(int)'. l2 = /*error:INVALID_ASSIGNMENT*/ /*@ returnType=String* */ (String x) => ^" in ((core::String* x) → core::String* => "hello") as{TypeError} (core::int*) →* core::String*; - (core::int*) →* core::String* l3 = (core::int* x) → core::String* => let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:18:80: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + (core::int*) →* core::String* l3 = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:18:80: Error: A value of type 'int' can't be assigned to a variable of type 'String'. l3 = /*error:INVALID_ASSIGNMENT*/ /*@ returnType=String* */ (int x) => 3; ^" in 3 as{TypeError} core::String*; (core::int*) →* core::String* l4 = (core::int* x) → core::String* { - return let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:20:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:20:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ 3; ^" in 3 as{TypeError} core::String*; }; @@ -71,16 +71,16 @@ static method test() → void { { (core::int*) →* core::String* l0 = (core::int* x) → Null => null; (core::int*) →* core::String* l1 = (core::int* x) → core::String* => "hello"; - (core::int*) →* core::String* l2 = (core::int* x) → core::String* => let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:29:13: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + (core::int*) →* core::String* l2 = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:29:13: Error: A value of type 'int' can't be assigned to a variable of type 'String'. 3; ^" in 3 as{TypeError} core::String*; (core::int*) →* core::String* l3 = (core::int* x) → core::String* { - return let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:31:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:31:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ 3; ^" in 3 as{TypeError} core::String*; }; (core::int*) →* core::String* l4 = (core::int* x) → core::String* { - return let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:34:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:34:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ x; ^" in x as{TypeError} core::String*; }; @@ -88,15 +88,15 @@ static method test() → void { { (core::int*) →* core::List* l0 = (core::int* x) → Null => null; (core::int*) →* core::List* l1 = (core::int* x) → core::List* => core::_GrowableList::_literal1("hello"); - (core::int*) →* core::List* l2 = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:42:76: Error: A value of type 'List Function(String)' can't be assigned to a variable of type 'List Function(int)'. + (core::int*) →* core::List* l2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:42:76: Error: A value of type 'List Function(String)' can't be assigned to a variable of type 'List Function(int)'. - 'List' is from 'dart:core'. l2 = /*error:INVALID_ASSIGNMENT*/ /*@ returnType=List* */ (String ^" in ((core::String* x) → core::List* => core::_GrowableList::_literal1("hello")) as{TypeError} (core::int*) →* core::List*; - (core::int*) →* core::List* l3 = (core::int* x) → core::List* => core::_GrowableList::_literal1(let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:46:58: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + (core::int*) →* core::List* l3 = (core::int* x) → core::List* => core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:46:58: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*); (core::int*) →* core::List* l4 = (core::int* x) → core::List* { - return core::_GrowableList::_literal1(let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:50:52: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:50:52: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*); }; @@ -104,7 +104,7 @@ static method test() → void { { (core::int*) →* core::int* l0 = (core::int* x) → core::int* => x; (core::int*) →* core::int* l1 = (core::int* x) → core::int* => x.{core::num::+}(1){(core::num*) →* core::int*}; - (core::int*) →* core::String* l2 = (core::int* x) → core::String* => let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:60:13: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + (core::int*) →* core::String* l2 = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:60:13: Error: A value of type 'int' can't be assigned to a variable of type 'String'. x; ^" in x as{TypeError} core::String*; (core::int*) →* core::String* l3 = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart:63:14: Error: The method 'substring' isn't defined for the class 'int'. diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart.weak.expect b/pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart.weak.expect index 57ffcdeb77a..6d35ee8fe7d 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart.weak.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart.weak.expect @@ -118,42 +118,42 @@ class F4 extends core::Object { static method test() → void { new self::F0::•([]); new self::F0::•([3]); - new self::F0::•([let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:32:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F0::•([invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:32:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*]); - new self::F0::•([let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:34:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F0::•([invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:34:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3]); new self::F1::•(a: []); new self::F1::•(a: [3]); - new self::F1::•(a: [let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:41:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F1::•(a: [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:41:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\" ^" in "hello" as{TypeError} core::int*]); - new self::F1::•(a: [let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:44:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F1::•(a: [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:44:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3]); new self::F2::•([]); new self::F2::•([3]); - new self::F2::•([let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:51:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F2::•([invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:51:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*]); - new self::F2::•([let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:53:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F2::•([invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:53:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3]); new self::F3::•(*>[]); new self::F3::•(*>[[3]]); - new self::F3::•(*>[[let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:62:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F3::•(*>[[invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:62:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"] ^" in "hello" as{TypeError} core::int*]]); - new self::F3::•(*>[[let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:65:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F3::•(*>[[invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:65:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"], ^" in "hello" as{TypeError} core::int*], [3]]); new self::F4::•(a: *>[]); new self::F4::•(a: *>[[3]]); - new self::F4::•(a: *>[[let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:74:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F4::•(a: *>[[invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:74:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"] ^" in "hello" as{TypeError} core::int*]]); - new self::F4::•(a: *>[[let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:77:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F4::•(a: *>[[invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:77:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"], ^" in "hello" as{TypeError} core::int*], [3]]); new self::F3::•(*>[]); diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart.weak.transformed.expect index 0546231cd71..49e4a199aeb 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart.weak.transformed.expect @@ -118,42 +118,42 @@ class F4 extends core::Object { static method test() → void { new self::F0::•(core::_GrowableList::•(0)); new self::F0::•(core::_GrowableList::_literal1(3)); - new self::F0::•(core::_GrowableList::_literal1(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:32:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F0::•(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:32:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*)); - new self::F0::•(core::_GrowableList::_literal2(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:34:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F0::•(core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:34:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3)); new self::F1::•(a: core::_GrowableList::•(0)); new self::F1::•(a: core::_GrowableList::_literal1(3)); - new self::F1::•(a: core::_GrowableList::_literal1(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:41:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F1::•(a: core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:41:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\" ^" in "hello" as{TypeError} core::int*)); - new self::F1::•(a: core::_GrowableList::_literal2(let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:44:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F1::•(a: core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:44:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3)); new self::F2::•(core::_GrowableList::•(0)); new self::F2::•(core::_GrowableList::_literal1(3)); - new self::F2::•(core::_GrowableList::_literal1(let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:51:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F2::•(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:51:72: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"]); ^" in "hello" as{TypeError} core::int*)); - new self::F2::•(core::_GrowableList::_literal2(let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:53:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F2::•(core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:53:48: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3)); new self::F3::•(core::_GrowableList::•*>(0)); new self::F3::•(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(3))); - new self::F3::•(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:62:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F3::•(core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:62:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"] ^" in "hello" as{TypeError} core::int*))); - new self::F3::•(core::_GrowableList::_literal2*>(core::_GrowableList::_literal1(let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:65:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F3::•(core::_GrowableList::_literal2*>(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:65:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"], ^" in "hello" as{TypeError} core::int*), core::_GrowableList::_literal1(3))); new self::F4::•(a: core::_GrowableList::•*>(0)); new self::F4::•(a: core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(3))); - new self::F4::•(a: core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:74:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F4::•(a: core::_GrowableList::_literal1*>(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:74:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"] ^" in "hello" as{TypeError} core::int*))); - new self::F4::•(a: core::_GrowableList::_literal2*>(core::_GrowableList::_literal1(let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:77:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + new self::F4::•(a: core::_GrowableList::_literal2*>(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_constructor_arguments_infer_downwards.dart:77:70: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*@ typeArgs=int* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"], ^" in "hello" as{TypeError} core::int*), core::_GrowableList::_literal1(3))); new self::F3::•(core::_GrowableList::•*>(0)); diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.weak.expect b/pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.weak.expect index efa8da02176..4d6ba90570f 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.weak.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.weak.expect @@ -58,14 +58,14 @@ static method test() → void { (core::int*) →* core::String* v = f; v = (core::int* x) → Null => null; v = (core::int* x) → core::String* => "hello"; - v = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:14:68: Error: A value of type 'String Function(String)' can't be assigned to a variable of type 'String Function(int)'. + v = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:14:68: Error: A value of type 'String Function(String)' can't be assigned to a variable of type 'String Function(int)'. v = /*error:INVALID_ASSIGNMENT*/ /*@ returnType=String* */ (String x) => ^" in ((core::String* x) → core::String* => "hello") as{TypeError} (core::int*) →* core::String*; - v = (core::int* x) → core::String* => let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:16:79: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + v = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:16:79: Error: A value of type 'int' can't be assigned to a variable of type 'String'. v = /*error:INVALID_ASSIGNMENT*/ /*@ returnType=String* */ (int x) => 3; ^" in 3 as{TypeError} core::String*; v = (core::int* x) → core::String* { - return let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:18:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:18:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ 3; ^" in 3 as{TypeError} core::String*; }; @@ -76,16 +76,16 @@ static method test() → void { (core::int*) →* core::String* v = f; v = (core::int* x) → Null => null; v = (core::int* x) → core::String* => "hello"; - v = (core::int* x) → core::String* => let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:28:9: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + v = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:28:9: Error: A value of type 'int' can't be assigned to a variable of type 'String'. 3; ^" in 3 as{TypeError} core::String*; v = (core::int* x) → core::String* { - return let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:30:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:30:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ 3; ^" in 3 as{TypeError} core::String*; }; v = (core::int* x) → core::String* { - return let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:33:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:33:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ x; ^" in x as{TypeError} core::String*; }; @@ -96,15 +96,15 @@ static method test() → void { (core::int*) →* core::List* v = f; v = (core::int* x) → Null => null; v = (core::int* x) → core::List* => ["hello"]; - v = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:43:75: Error: A value of type 'List Function(String)' can't be assigned to a variable of type 'List Function(int)'. + v = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:43:75: Error: A value of type 'List Function(String)' can't be assigned to a variable of type 'List Function(int)'. - 'List' is from 'dart:core'. v = /*error:INVALID_ASSIGNMENT*/ /*@ returnType=List* */ (String ^" in ((core::String* x) → core::List* => ["hello"]) as{TypeError} (core::int*) →* core::List*; - v = (core::int* x) → core::List* => [let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:46:54: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + v = (core::int* x) → core::List* => [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:46:54: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*]; v = (core::int* x) → core::List* { - return [let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:50:52: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:50:52: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*]; }; @@ -120,7 +120,7 @@ static method test() → void { x = (core::int* x) → core::int* => x; x = (core::int* x) → core::int* => x.{core::num::+}(1){(core::num*) →* core::int*}; (core::int*) →* core::String* y = int2String; - y = (core::int* x) → core::String* => let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:64:9: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + y = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:64:9: Error: A value of type 'int' can't be assigned to a variable of type 'String'. x; ^" in x as{TypeError} core::String*; y = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:66:10: Error: The method 'substring' isn't defined for the class 'int'. diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.weak.transformed.expect index a4b85cbae3e..5bd32d8aec7 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.weak.transformed.expect @@ -58,14 +58,14 @@ static method test() → void { (core::int*) →* core::String* v = f; v = (core::int* x) → Null => null; v = (core::int* x) → core::String* => "hello"; - v = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:14:68: Error: A value of type 'String Function(String)' can't be assigned to a variable of type 'String Function(int)'. + v = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:14:68: Error: A value of type 'String Function(String)' can't be assigned to a variable of type 'String Function(int)'. v = /*error:INVALID_ASSIGNMENT*/ /*@ returnType=String* */ (String x) => ^" in ((core::String* x) → core::String* => "hello") as{TypeError} (core::int*) →* core::String*; - v = (core::int* x) → core::String* => let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:16:79: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + v = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:16:79: Error: A value of type 'int' can't be assigned to a variable of type 'String'. v = /*error:INVALID_ASSIGNMENT*/ /*@ returnType=String* */ (int x) => 3; ^" in 3 as{TypeError} core::String*; v = (core::int* x) → core::String* { - return let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:18:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:18:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ 3; ^" in 3 as{TypeError} core::String*; }; @@ -76,16 +76,16 @@ static method test() → void { (core::int*) →* core::String* v = f; v = (core::int* x) → Null => null; v = (core::int* x) → core::String* => "hello"; - v = (core::int* x) → core::String* => let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:28:9: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + v = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:28:9: Error: A value of type 'int' can't be assigned to a variable of type 'String'. 3; ^" in 3 as{TypeError} core::String*; v = (core::int* x) → core::String* { - return let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:30:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:30:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ 3; ^" in 3 as{TypeError} core::String*; }; v = (core::int* x) → core::String* { - return let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:33:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:33:47: Error: A value of type 'int' can't be assigned to a variable of type 'String'. return /*error:RETURN_OF_INVALID_TYPE*/ x; ^" in x as{TypeError} core::String*; }; @@ -96,15 +96,15 @@ static method test() → void { (core::int*) →* core::List* v = f; v = (core::int* x) → Null => null; v = (core::int* x) → core::List* => core::_GrowableList::_literal1("hello"); - v = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:43:75: Error: A value of type 'List Function(String)' can't be assigned to a variable of type 'List Function(int)'. + v = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:43:75: Error: A value of type 'List Function(String)' can't be assigned to a variable of type 'List Function(int)'. - 'List' is from 'dart:core'. v = /*error:INVALID_ASSIGNMENT*/ /*@ returnType=List* */ (String ^" in ((core::String* x) → core::List* => core::_GrowableList::_literal1("hello")) as{TypeError} (core::int*) →* core::List*; - v = (core::int* x) → core::List* => core::_GrowableList::_literal1(let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:46:54: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + v = (core::int* x) → core::List* => core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:46:54: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*); v = (core::int* x) → core::List* { - return core::_GrowableList::_literal1(let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:50:52: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + return core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:50:52: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*); }; @@ -120,7 +120,7 @@ static method test() → void { x = (core::int* x) → core::int* => x; x = (core::int* x) → core::int* => x.{core::num::+}(1){(core::num*) →* core::int*}; (core::int*) →* core::String* y = int2String; - y = (core::int* x) → core::String* => let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:64:9: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + y = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:64:9: Error: A value of type 'int' can't be assigned to a variable of type 'String'. x; ^" in x as{TypeError} core::String*; y = (core::int* x) → core::String* => invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart:66:10: Error: The method 'substring' isn't defined for the class 'int'. diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart.weak.expect b/pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart.weak.expect index 7e912c8f1f8..f92f0471458 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart.weak.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart.weak.expect @@ -184,26 +184,26 @@ static method test() → void { self::A* a1 = new self::A::named(3, "hello"); self::A* a2 = new self::A::•(3, "hello"); self::A* a3 = new self::A::named(3, "hello"); - self::A* a4 = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:46:50: Error: The constructor returns type 'A' that isn't of expected type 'A'. + self::A* a4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:46:50: Error: The constructor returns type 'A' that isn't of expected type 'A'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. Change the type of the object being constructed or the context in which it is used. a4 = /*error:INVALID_CAST_NEW_EXPR*/ new A(3, \"hello\"); ^" in new self::A::•(3, "hello"); - self::A* a5 = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:48:50: Error: The constructor returns type 'A' that isn't of expected type 'A'. + self::A* a5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:48:50: Error: The constructor returns type 'A' that isn't of expected type 'A'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. Change the type of the object being constructed or the context in which it is used. a5 = /*error:INVALID_CAST_NEW_EXPR*/ new A.named( ^" in new self::A::named(3, "hello"); } { - self::A* a0 = new self::A::•(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:53:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::A* a0 = new self::A::•(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:53:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", - ^" in "hello" as{TypeError} core::int*, let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:54:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + ^" in "hello" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:54:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); ^" in 3 as{TypeError} core::String*); - self::A* a1 = new self::A::named(let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:56:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::A* a1 = new self::A::named(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:56:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", - ^" in "hello" as{TypeError} core::int*, let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:57:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + ^" in "hello" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:57:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); ^" in 3 as{TypeError} core::String*); } @@ -212,26 +212,26 @@ Change the type of the object being constructed or the context in which it is us self::A* a1 = new self::B::named("hello", 3); self::A* a2 = new self::B::•("hello", 3); self::A* a3 = new self::B::named("hello", 3); - self::A* a4 = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:65:47: Error: A value of type 'B' can't be assigned to a variable of type 'A'. + self::A* a4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:65:47: Error: A value of type 'B' can't be assigned to a variable of type 'A'. - 'B' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. a4 = /*error:INVALID_ASSIGNMENT*/ new B(\"hello\", 3); ^" in new self::B::•("hello", 3) as{TypeError} self::A*; - self::A* a5 = let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:67:47: Error: A value of type 'B' can't be assigned to a variable of type 'A'. + self::A* a5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:67:47: Error: A value of type 'B' can't be assigned to a variable of type 'A'. - 'B' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. a5 = /*error:INVALID_ASSIGNMENT*/ new B.named( ^" in new self::B::named("hello", 3) as{TypeError} self::A*; } { - self::A* a0 = new self::B::•(let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:72:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + self::A* a0 = new self::B::•(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:72:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3, - ^" in 3 as{TypeError} core::String*, let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:73:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + ^" in 3 as{TypeError} core::String*, invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:73:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); ^" in "hello" as{TypeError} core::int*); - self::A* a1 = new self::B::named(let final Never* #t11 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:75:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + self::A* a1 = new self::B::named(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:75:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3, - ^" in 3 as{TypeError} core::String*, let final Never* #t12 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:76:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + ^" in 3 as{TypeError} core::String*, invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:76:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); ^" in "hello" as{TypeError} core::int*); } @@ -240,22 +240,22 @@ Change the type of the object being constructed or the context in which it is us self::A* a1 = new self::C::named(3); self::A* a2 = new self::C::•(3); self::A* a3 = new self::C::named(3); - self::A* a4 = let final Never* #t13 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:83:55: Error: A value of type 'C' can't be assigned to a variable of type 'A'. + self::A* a4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:83:55: Error: A value of type 'C' can't be assigned to a variable of type 'A'. - 'C' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. A a4 = /*error:INVALID_ASSIGNMENT*/ new C(3); ^" in new self::C::•(3) as{TypeError} self::A*; - self::A* a5 = let final Never* #t14 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:84:55: Error: A value of type 'C' can't be assigned to a variable of type 'A'. + self::A* a5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:84:55: Error: A value of type 'C' can't be assigned to a variable of type 'A'. - 'C' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. A a5 = /*error:INVALID_ASSIGNMENT*/ new C.named(3); ^" in new self::C::named(3) as{TypeError} self::A*; } { - self::A* a0 = new self::C::•(let final Never* #t15 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:88:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::A* a0 = new self::C::•(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:88:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); ^" in "hello" as{TypeError} core::int*); - self::A* a1 = new self::C::named(let final Never* #t16 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:90:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::A* a1 = new self::C::named(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:90:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); ^" in "hello" as{TypeError} core::int*); } @@ -264,22 +264,22 @@ Change the type of the object being constructed or the context in which it is us self::A* a1 = new self::D::named("hello"); self::A* a2 = new self::D::•("hello"); self::A* a3 = new self::D::named("hello"); - self::A* a4 = let final Never* #t17 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:98:47: Error: A value of type 'D' can't be assigned to a variable of type 'A'. + self::A* a4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:98:47: Error: A value of type 'D' can't be assigned to a variable of type 'A'. - 'D' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. a4 = /*error:INVALID_ASSIGNMENT*/ new D(\"hello\"); ^" in new self::D::•("hello") as{TypeError} self::A*; - self::A* a5 = let final Never* #t18 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:100:47: Error: A value of type 'D' can't be assigned to a variable of type 'A'. + self::A* a5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:100:47: Error: A value of type 'D' can't be assigned to a variable of type 'A'. - 'D' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. a5 = /*error:INVALID_ASSIGNMENT*/ new D.named( ^" in new self::D::named("hello") as{TypeError} self::A*; } { - self::A* a0 = new self::D::•(let final Never* #t19 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:105:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + self::A* a0 = new self::D::•(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:105:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); ^" in 3 as{TypeError} core::String*); - self::A* a1 = new self::D::named(let final Never* #t20 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:107:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + self::A* a1 = new self::D::named(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:107:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); ^" in 3 as{TypeError} core::String*); } @@ -288,19 +288,19 @@ Change the type of the object being constructed or the context in which it is us } { self::A* a0 = new self::F::•(3, "hello", a: [3], b: ["hello"]); - self::A* a1 = new self::F::•(3, "hello", a: [let final Never* #t21 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:118:54: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::A* a1 = new self::F::•(3, "hello", a: [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:118:54: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\" - ^" in "hello" as{TypeError} core::int*], b: [let final Never* #t22 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:121:54: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + ^" in "hello" as{TypeError} core::int*], b: [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:121:54: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*]); self::A* a2 = new self::F::named(3, "hello", 3, "hello"); self::A* a3 = new self::F::named(3, "hello"); - self::A* a4 = new self::F::named(3, "hello", let final Never* #t23 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:129:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::A* a4 = new self::F::named(3, "hello", invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:129:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", - ^" in "hello" as{TypeError} core::int*, let final Never* #t24 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:130:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + ^" in "hello" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:130:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); ^" in 3 as{TypeError} core::String*); - self::A* a5 = new self::F::named(3, "hello", let final Never* #t25 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:134:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::A* a5 = new self::F::named(3, "hello", invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:134:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); ^" in "hello" as{TypeError} core::int*); } diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart.weak.transformed.expect index 72e9445d7b2..4e5791d4096 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart.weak.transformed.expect @@ -184,26 +184,26 @@ static method test() → void { self::A* a1 = new self::A::named(3, "hello"); self::A* a2 = new self::A::•(3, "hello"); self::A* a3 = new self::A::named(3, "hello"); - self::A* a4 = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:46:50: Error: The constructor returns type 'A' that isn't of expected type 'A'. + self::A* a4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:46:50: Error: The constructor returns type 'A' that isn't of expected type 'A'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. Change the type of the object being constructed or the context in which it is used. a4 = /*error:INVALID_CAST_NEW_EXPR*/ new A(3, \"hello\"); ^" in new self::A::•(3, "hello"); - self::A* a5 = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:48:50: Error: The constructor returns type 'A' that isn't of expected type 'A'. + self::A* a5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:48:50: Error: The constructor returns type 'A' that isn't of expected type 'A'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. Change the type of the object being constructed or the context in which it is used. a5 = /*error:INVALID_CAST_NEW_EXPR*/ new A.named( ^" in new self::A::named(3, "hello"); } { - self::A* a0 = new self::A::•(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:53:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::A* a0 = new self::A::•(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:53:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", - ^" in "hello" as{TypeError} core::int*, let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:54:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + ^" in "hello" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:54:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); ^" in 3 as{TypeError} core::String*); - self::A* a1 = new self::A::named(let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:56:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::A* a1 = new self::A::named(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:56:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", - ^" in "hello" as{TypeError} core::int*, let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:57:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + ^" in "hello" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:57:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); ^" in 3 as{TypeError} core::String*); } @@ -212,26 +212,26 @@ Change the type of the object being constructed or the context in which it is us self::A* a1 = new self::B::named("hello", 3); self::A* a2 = new self::B::•("hello", 3); self::A* a3 = new self::B::named("hello", 3); - self::A* a4 = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:65:47: Error: A value of type 'B' can't be assigned to a variable of type 'A'. + self::A* a4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:65:47: Error: A value of type 'B' can't be assigned to a variable of type 'A'. - 'B' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. a4 = /*error:INVALID_ASSIGNMENT*/ new B(\"hello\", 3); ^" in new self::B::•("hello", 3) as{TypeError} self::A*; - self::A* a5 = let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:67:47: Error: A value of type 'B' can't be assigned to a variable of type 'A'. + self::A* a5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:67:47: Error: A value of type 'B' can't be assigned to a variable of type 'A'. - 'B' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. a5 = /*error:INVALID_ASSIGNMENT*/ new B.named( ^" in new self::B::named("hello", 3) as{TypeError} self::A*; } { - self::A* a0 = new self::B::•(let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:72:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + self::A* a0 = new self::B::•(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:72:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3, - ^" in 3 as{TypeError} core::String*, let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:73:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + ^" in 3 as{TypeError} core::String*, invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:73:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); ^" in "hello" as{TypeError} core::int*); - self::A* a1 = new self::B::named(let final Never* #t11 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:75:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + self::A* a1 = new self::B::named(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:75:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3, - ^" in 3 as{TypeError} core::String*, let final Never* #t12 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:76:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + ^" in 3 as{TypeError} core::String*, invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:76:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); ^" in "hello" as{TypeError} core::int*); } @@ -240,22 +240,22 @@ Change the type of the object being constructed or the context in which it is us self::A* a1 = new self::C::named(3); self::A* a2 = new self::C::•(3); self::A* a3 = new self::C::named(3); - self::A* a4 = let final Never* #t13 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:83:55: Error: A value of type 'C' can't be assigned to a variable of type 'A'. + self::A* a4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:83:55: Error: A value of type 'C' can't be assigned to a variable of type 'A'. - 'C' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. A a4 = /*error:INVALID_ASSIGNMENT*/ new C(3); ^" in new self::C::•(3) as{TypeError} self::A*; - self::A* a5 = let final Never* #t14 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:84:55: Error: A value of type 'C' can't be assigned to a variable of type 'A'. + self::A* a5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:84:55: Error: A value of type 'C' can't be assigned to a variable of type 'A'. - 'C' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. A a5 = /*error:INVALID_ASSIGNMENT*/ new C.named(3); ^" in new self::C::named(3) as{TypeError} self::A*; } { - self::A* a0 = new self::C::•(let final Never* #t15 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:88:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::A* a0 = new self::C::•(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:88:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); ^" in "hello" as{TypeError} core::int*); - self::A* a1 = new self::C::named(let final Never* #t16 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:90:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::A* a1 = new self::C::named(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:90:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); ^" in "hello" as{TypeError} core::int*); } @@ -264,22 +264,22 @@ Change the type of the object being constructed or the context in which it is us self::A* a1 = new self::D::named("hello"); self::A* a2 = new self::D::•("hello"); self::A* a3 = new self::D::named("hello"); - self::A* a4 = let final Never* #t17 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:98:47: Error: A value of type 'D' can't be assigned to a variable of type 'A'. + self::A* a4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:98:47: Error: A value of type 'D' can't be assigned to a variable of type 'A'. - 'D' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. a4 = /*error:INVALID_ASSIGNMENT*/ new D(\"hello\"); ^" in new self::D::•("hello") as{TypeError} self::A*; - self::A* a5 = let final Never* #t18 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:100:47: Error: A value of type 'D' can't be assigned to a variable of type 'A'. + self::A* a5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:100:47: Error: A value of type 'D' can't be assigned to a variable of type 'A'. - 'D' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. - 'A' is from 'pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart'. a5 = /*error:INVALID_ASSIGNMENT*/ new D.named( ^" in new self::D::named("hello") as{TypeError} self::A*; } { - self::A* a0 = new self::D::•(let final Never* #t19 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:105:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + self::A* a0 = new self::D::•(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:105:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); ^" in 3 as{TypeError} core::String*); - self::A* a1 = new self::D::named(let final Never* #t20 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:107:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + self::A* a1 = new self::D::named(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:107:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); ^" in 3 as{TypeError} core::String*); } @@ -288,19 +288,19 @@ Change the type of the object being constructed or the context in which it is us } { self::A* a0 = new self::F::•(3, "hello", a: core::_GrowableList::_literal1(3), b: core::_GrowableList::_literal1("hello")); - self::A* a1 = new self::F::•(3, "hello", a: core::_GrowableList::_literal1(let final Never* #t21 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:118:54: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::A* a1 = new self::F::•(3, "hello", a: core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:118:54: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\" - ^" in "hello" as{TypeError} core::int*), b: core::_GrowableList::_literal1(let final Never* #t22 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:121:54: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + ^" in "hello" as{TypeError} core::int*), b: core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:121:54: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*)); self::A* a2 = new self::F::named(3, "hello", 3, "hello"); self::A* a3 = new self::F::named(3, "hello"); - self::A* a4 = new self::F::named(3, "hello", let final Never* #t23 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:129:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::A* a4 = new self::F::named(3, "hello", invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:129:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", - ^" in "hello" as{TypeError} core::int*, let final Never* #t24 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:130:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. + ^" in "hello" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:130:48: Error: The argument type 'int' can't be assigned to the parameter type 'String'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 3); ^" in 3 as{TypeError} core::String*); - self::A* a5 = new self::F::named(3, "hello", let final Never* #t25 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:134:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::A* a5 = new self::F::named(3, "hello", invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_instance_creations_infer_downwards.dart:134:48: Error: The argument type 'String' can't be assigned to the parameter type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\"); ^" in "hello" as{TypeError} core::int*); } diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart.weak.expect b/pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart.weak.expect index c4d983aef93..871e6e1b377 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart.weak.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart.weak.expect @@ -72,10 +72,10 @@ static method main() → void { { core::List* l0 = []; core::List* l1 = [3]; - core::List* l2 = [let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:19:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::List* l2 = [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:19:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\" ^" in "hello" as{TypeError} core::int*]; - core::List* l3 = [let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:22:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::List* l3 = [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:22:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3]; } @@ -86,38 +86,38 @@ static method main() → void { core::List* l3 = ["hello", 3]; } { - core::List* l0 = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:33:61: Error: The list literal type 'List' isn't of expected type 'List'. + core::List* l0 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:33:61: Error: The list literal type 'List' isn't of expected type 'List'. - 'List' is from 'dart:core'. Change the type of the list literal or the context in which it is used. List l0 = /*error:INVALID_CAST_LITERAL_LIST*/ []; ^" in []; - core::List* l1 = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:34:61: Error: The list literal type 'List' isn't of expected type 'List'. + core::List* l1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:34:61: Error: The list literal type 'List' isn't of expected type 'List'. - 'List' is from 'dart:core'. Change the type of the list literal or the context in which it is used. List l1 = /*error:INVALID_CAST_LITERAL_LIST*/ [3]; ^" in [3]; - core::List* l2 = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:35:61: Error: The list literal type 'List' isn't of expected type 'List'. + core::List* l2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:35:61: Error: The list literal type 'List' isn't of expected type 'List'. - 'List' is from 'dart:core'. Change the type of the list literal or the context in which it is used. List l2 = /*error:INVALID_CAST_LITERAL_LIST*/ [ - ^" in [let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:36:50: Error: A value of type 'String' can't be assigned to a variable of type 'num'. + ^" in [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:36:50: Error: A value of type 'String' can't be assigned to a variable of type 'num'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\" ^" in "hello" as{TypeError} core::num*]; - core::List* l3 = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:38:61: Error: The list literal type 'List' isn't of expected type 'List'. + core::List* l3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:38:61: Error: The list literal type 'List' isn't of expected type 'List'. - 'List' is from 'dart:core'. Change the type of the list literal or the context in which it is used. List l3 = /*error:INVALID_CAST_LITERAL_LIST*/ [ - ^" in [let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:39:50: Error: A value of type 'String' can't be assigned to a variable of type 'num'. + ^" in [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:39:50: Error: A value of type 'String' can't be assigned to a variable of type 'num'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::num*, 3]; } { core::Iterable* i0 = []; core::Iterable* i1 = [3]; - core::Iterable* i2 = [let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:47:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Iterable* i2 = [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:47:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\" ^" in "hello" as{TypeError} core::int*]; - core::Iterable* i3 = [let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:50:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Iterable* i3 = [invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:50:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3]; } diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart.weak.transformed.expect index 27af9ab31f2..4a236beb67b 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart.weak.transformed.expect @@ -72,10 +72,10 @@ static method main() → void { { core::List* l0 = core::_GrowableList::•(0); core::List* l1 = core::_GrowableList::_literal1(3); - core::List* l2 = core::_GrowableList::_literal1(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:19:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::List* l2 = core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:19:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\" ^" in "hello" as{TypeError} core::int*); - core::List* l3 = core::_GrowableList::_literal2(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:22:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::List* l3 = core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:22:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3); } @@ -86,38 +86,38 @@ static method main() → void { core::List* l3 = core::_GrowableList::_literal2("hello", 3); } { - core::List* l0 = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:33:61: Error: The list literal type 'List' isn't of expected type 'List'. + core::List* l0 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:33:61: Error: The list literal type 'List' isn't of expected type 'List'. - 'List' is from 'dart:core'. Change the type of the list literal or the context in which it is used. List l0 = /*error:INVALID_CAST_LITERAL_LIST*/ []; ^" in core::_GrowableList::•(0); - core::List* l1 = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:34:61: Error: The list literal type 'List' isn't of expected type 'List'. + core::List* l1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:34:61: Error: The list literal type 'List' isn't of expected type 'List'. - 'List' is from 'dart:core'. Change the type of the list literal or the context in which it is used. List l1 = /*error:INVALID_CAST_LITERAL_LIST*/ [3]; ^" in core::_GrowableList::_literal1(3); - core::List* l2 = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:35:61: Error: The list literal type 'List' isn't of expected type 'List'. + core::List* l2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:35:61: Error: The list literal type 'List' isn't of expected type 'List'. - 'List' is from 'dart:core'. Change the type of the list literal or the context in which it is used. List l2 = /*error:INVALID_CAST_LITERAL_LIST*/ [ - ^" in core::_GrowableList::_literal1(let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:36:50: Error: A value of type 'String' can't be assigned to a variable of type 'num'. + ^" in core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:36:50: Error: A value of type 'String' can't be assigned to a variable of type 'num'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\" ^" in "hello" as{TypeError} core::num*); - core::List* l3 = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:38:61: Error: The list literal type 'List' isn't of expected type 'List'. + core::List* l3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:38:61: Error: The list literal type 'List' isn't of expected type 'List'. - 'List' is from 'dart:core'. Change the type of the list literal or the context in which it is used. List l3 = /*error:INVALID_CAST_LITERAL_LIST*/ [ - ^" in core::_GrowableList::_literal2(let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:39:50: Error: A value of type 'String' can't be assigned to a variable of type 'num'. + ^" in core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:39:50: Error: A value of type 'String' can't be assigned to a variable of type 'num'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::num*, 3); } { core::Iterable* i0 = core::_GrowableList::•(0); core::Iterable* i1 = core::_GrowableList::_literal1(3); - core::Iterable* i2 = core::_GrowableList::_literal1(let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:47:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Iterable* i2 = core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:47:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\" ^" in "hello" as{TypeError} core::int*); - core::Iterable* i3 = core::_GrowableList::_literal2(let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:50:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Iterable* i3 = core::_GrowableList::_literal2(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart:50:50: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ \"hello\", ^" in "hello" as{TypeError} core::int*, 3); } diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart.weak.expect b/pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart.weak.expect index aae9c8c2d9a..21265429581 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart.weak.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart.weak.expect @@ -82,15 +82,15 @@ static method test() → void { { core::Map* l0 = {}; core::Map* l1 = {3: "hello"}; - core::Map* l2 = {let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:20:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Map* l2 = {invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:20:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:MAP_KEY_TYPE_NOT_ASSIGNABLE*/ \"hello\": \"hello\" ^" in "hello" as{TypeError} core::int*: "hello"}; - core::Map* l3 = {3: let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:23:50: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::Map* l3 = {3: invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:23:50: Error: A value of type 'int' can't be assigned to a variable of type 'String'. 3: /*error:MAP_VALUE_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*}; - core::Map* l4 = {3: "hello", let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:27:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Map* l4 = {3: "hello", invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:27:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:MAP_KEY_TYPE_NOT_ASSIGNABLE*/ \"hello\": - ^" in "hello" as{TypeError} core::int*: let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:28:51: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + ^" in "hello" as{TypeError} core::int*: invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:28:51: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*error:MAP_VALUE_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*}; } @@ -105,36 +105,36 @@ static method test() → void { core::Map* l0 = {}; core::Map* l1 = {3: "hello"}; core::Map* l2 = {"hello": "hello"}; - core::Map* l3 = {3: let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:48:50: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::Map* l3 = {3: invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:48:50: Error: A value of type 'int' can't be assigned to a variable of type 'String'. 3: /*error:MAP_VALUE_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*}; - core::Map* l4 = {3: "hello", "hello": let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:52:56: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::Map* l4 = {3: "hello", "hello": invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:52:56: Error: A value of type 'int' can't be assigned to a variable of type 'String'. \"hello\": /*error:MAP_VALUE_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*}; } { core::Map* l0 = {}; core::Map* l1 = {3: "hello"}; - core::Map* l2 = {let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:59:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Map* l2 = {invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:59:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:MAP_KEY_TYPE_NOT_ASSIGNABLE*/ \"hello\": \"hello\" ^" in "hello" as{TypeError} core::int*: "hello"}; core::Map* l3 = {3: 3}; - core::Map* l4 = {3: "hello", let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:64:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Map* l4 = {3: "hello", invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:64:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:MAP_KEY_TYPE_NOT_ASSIGNABLE*/ \"hello\": 3 ^" in "hello" as{TypeError} core::int*: 3}; } { - core::Map* l0 = let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:68:76: Error: The map literal type 'Map' isn't of expected type 'Map'. + core::Map* l0 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:68:76: Error: The map literal type 'Map' isn't of expected type 'Map'. - 'Map' is from 'dart:core'. Change the type of the map literal or the context in which it is used. Map l0 = /*error:INVALID_CAST_LITERAL_MAP*/ {}; ^" in {}; - core::Map* l1 = let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:69:76: Error: The map literal type 'Map' isn't of expected type 'Map'. + core::Map* l1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:69:76: Error: The map literal type 'Map' isn't of expected type 'Map'. - 'Map' is from 'dart:core'. Change the type of the map literal or the context in which it is used. Map l1 = /*error:INVALID_CAST_LITERAL_MAP*/ { ^" in {3: "hello"}; - core::Map* l3 = let final Never* #t11 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:72:76: Error: The map literal type 'Map' isn't of expected type 'Map'. + core::Map* l3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:72:76: Error: The map literal type 'Map' isn't of expected type 'Map'. - 'Map' is from 'dart:core'. Change the type of the map literal or the context in which it is used. Map l3 = /*error:INVALID_CAST_LITERAL_MAP*/ { diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart.weak.transformed.expect index aae9c8c2d9a..21265429581 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart.weak.transformed.expect @@ -82,15 +82,15 @@ static method test() → void { { core::Map* l0 = {}; core::Map* l1 = {3: "hello"}; - core::Map* l2 = {let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:20:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Map* l2 = {invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:20:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:MAP_KEY_TYPE_NOT_ASSIGNABLE*/ \"hello\": \"hello\" ^" in "hello" as{TypeError} core::int*: "hello"}; - core::Map* l3 = {3: let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:23:50: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::Map* l3 = {3: invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:23:50: Error: A value of type 'int' can't be assigned to a variable of type 'String'. 3: /*error:MAP_VALUE_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*}; - core::Map* l4 = {3: "hello", let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:27:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Map* l4 = {3: "hello", invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:27:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:MAP_KEY_TYPE_NOT_ASSIGNABLE*/ \"hello\": - ^" in "hello" as{TypeError} core::int*: let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:28:51: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + ^" in "hello" as{TypeError} core::int*: invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:28:51: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*error:MAP_VALUE_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*}; } @@ -105,36 +105,36 @@ static method test() → void { core::Map* l0 = {}; core::Map* l1 = {3: "hello"}; core::Map* l2 = {"hello": "hello"}; - core::Map* l3 = {3: let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:48:50: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::Map* l3 = {3: invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:48:50: Error: A value of type 'int' can't be assigned to a variable of type 'String'. 3: /*error:MAP_VALUE_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*}; - core::Map* l4 = {3: "hello", "hello": let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:52:56: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::Map* l4 = {3: "hello", "hello": invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:52:56: Error: A value of type 'int' can't be assigned to a variable of type 'String'. \"hello\": /*error:MAP_VALUE_TYPE_NOT_ASSIGNABLE*/ 3 ^" in 3 as{TypeError} core::String*}; } { core::Map* l0 = {}; core::Map* l1 = {3: "hello"}; - core::Map* l2 = {let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:59:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Map* l2 = {invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:59:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:MAP_KEY_TYPE_NOT_ASSIGNABLE*/ \"hello\": \"hello\" ^" in "hello" as{TypeError} core::int*: "hello"}; core::Map* l3 = {3: 3}; - core::Map* l4 = {3: "hello", let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:64:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::Map* l4 = {3: "hello", invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:64:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:MAP_KEY_TYPE_NOT_ASSIGNABLE*/ \"hello\": 3 ^" in "hello" as{TypeError} core::int*: 3}; } { - core::Map* l0 = let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:68:76: Error: The map literal type 'Map' isn't of expected type 'Map'. + core::Map* l0 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:68:76: Error: The map literal type 'Map' isn't of expected type 'Map'. - 'Map' is from 'dart:core'. Change the type of the map literal or the context in which it is used. Map l0 = /*error:INVALID_CAST_LITERAL_MAP*/ {}; ^" in {}; - core::Map* l1 = let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:69:76: Error: The map literal type 'Map' isn't of expected type 'Map'. + core::Map* l1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:69:76: Error: The map literal type 'Map' isn't of expected type 'Map'. - 'Map' is from 'dart:core'. Change the type of the map literal or the context in which it is used. Map l1 = /*error:INVALID_CAST_LITERAL_MAP*/ { ^" in {3: "hello"}; - core::Map* l3 = let final Never* #t11 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:72:76: Error: The map literal type 'Map' isn't of expected type 'Map'. + core::Map* l3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart:72:76: Error: The map literal type 'Map' isn't of expected type 'Map'. - 'Map' is from 'dart:core'. Change the type of the map literal or the context in which it is used. Map l3 = /*error:INVALID_CAST_LITERAL_MAP*/ { diff --git a/pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart.weak.expect b/pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart.weak.expect index f763ed90d38..6c7b42a4119 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart.weak.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart.weak.expect @@ -85,12 +85,12 @@ abstract class MyStream extends asy::Stream*>* async* { yield[]; - yield let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:16:69: Error: A value of type 'MyStream' can't be assigned to a variable of type 'List'. + yield invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:16:69: Error: A value of type 'MyStream' can't be assigned to a variable of type 'List'. - 'MyStream' is from 'pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart'. - 'List' is from 'dart:core'. yield /*error:YIELD_OF_INVALID_TYPE*/ new /*@ typeArgs=dynamic */ MyStream(); ^" in self::MyStream::•() as{TypeError} core::List*; - yield* let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:17:64: Error: A value of type 'List' can't be assigned to a variable of type 'Stream>'. + yield* invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:17:64: Error: A value of type 'List' can't be assigned to a variable of type 'Stream>'. - 'List' is from 'dart:core'. - 'Stream' is from 'dart:async'. yield* /*error:YIELD_OF_INVALID_TYPE*/ /*@typeArgs=dynamic*/ []; @@ -99,12 +99,12 @@ static method foo() → asy::Stream*>* async* { } static method bar() → core::Iterable*>* sync* { yield core::Map::•(); - yield let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:23:63: Error: A value of type 'List' can't be assigned to a variable of type 'Map'. + yield invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:23:63: Error: A value of type 'List' can't be assigned to a variable of type 'Map'. - 'List' is from 'dart:core'. - 'Map' is from 'dart:core'. yield /*error:YIELD_OF_INVALID_TYPE*/ /*@typeArgs=dynamic*/ []; ^" in [] as{TypeError} core::Map*; - yield* let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:24:79: Error: A value of type 'Map' can't be assigned to a variable of type 'Iterable>'. + yield* invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:24:79: Error: A value of type 'Map' can't be assigned to a variable of type 'Iterable>'. - 'Map' is from 'dart:core'. - 'Iterable' is from 'dart:core'. yield* /*error:YIELD_OF_INVALID_TYPE*/ new /*@ typeArgs=dynamic, dynamic */ Map(); diff --git a/pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart.weak.transformed.expect index 0a1fd1f3a5d..da9eb92cd5e 100644 --- a/pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart.weak.transformed.expect @@ -101,7 +101,7 @@ static method foo() → asy::Stream*>* /* originally asyn return null; else [yield] null; - if(:controller.{asy::_AsyncStarStreamController::add}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:16:69: Error: A value of type 'MyStream' can't be assigned to a variable of type 'List'. + if(:controller.{asy::_AsyncStarStreamController::add}(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:16:69: Error: A value of type 'MyStream' can't be assigned to a variable of type 'List'. - 'MyStream' is from 'pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart'. - 'List' is from 'dart:core'. yield /*error:YIELD_OF_INVALID_TYPE*/ new /*@ typeArgs=dynamic */ MyStream(); @@ -109,7 +109,7 @@ static method foo() → asy::Stream*>* /* originally asyn return null; else [yield] null; - if(:controller.{asy::_AsyncStarStreamController::addStream}(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:17:64: Error: A value of type 'List' can't be assigned to a variable of type 'Stream>'. + if(:controller.{asy::_AsyncStarStreamController::addStream}(invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:17:64: Error: A value of type 'List' can't be assigned to a variable of type 'Stream>'. - 'List' is from 'dart:core'. - 'Stream' is from 'dart:async'. yield* /*error:YIELD_OF_INVALID_TYPE*/ /*@typeArgs=dynamic*/ []; @@ -147,7 +147,7 @@ static method bar() → core::Iterable*>* /* o [yield] true; } { - :iterator.{core::_SyncIterator::_current} = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:23:63: Error: A value of type 'List' can't be assigned to a variable of type 'Map'. + :iterator.{core::_SyncIterator::_current} = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:23:63: Error: A value of type 'List' can't be assigned to a variable of type 'Map'. - 'List' is from 'dart:core'. - 'Map' is from 'dart:core'. yield /*error:YIELD_OF_INVALID_TYPE*/ /*@typeArgs=dynamic*/ []; @@ -155,7 +155,7 @@ static method bar() → core::Iterable*>* /* o [yield] true; } { - :iterator.{core::_SyncIterator::_yieldEachIterable} = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:24:79: Error: A value of type 'Map' can't be assigned to a variable of type 'Iterable>'. + :iterator.{core::_SyncIterator::_yieldEachIterable} = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:24:79: Error: A value of type 'Map' can't be assigned to a variable of type 'Iterable>'. - 'Map' is from 'dart:core'. - 'Iterable' is from 'dart:core'. yield* /*error:YIELD_OF_INVALID_TYPE*/ new /*@ typeArgs=dynamic, dynamic */ Map(); diff --git a/pkg/front_end/testcases/inference/future_then_explicit_future.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_explicit_future.dart.weak.expect index 354eb476add..668e6c82edf 100644 --- a/pkg/front_end/testcases/inference/future_then_explicit_future.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_explicit_future.dart.weak.expect @@ -22,12 +22,12 @@ import "dart:async"; static method m1() → dynamic { asy::Future* f; - asy::Future*>*>* x = f.{asy::Future::then}*>*>((core::int* x) → FutureOr*>*>* => let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/future_then_explicit_future.dart:15:99: Error: A value of type 'List' can't be assigned to a variable of type 'FutureOr>>'. + asy::Future*>*>* x = f.{asy::Future::then}*>*>((core::int* x) → FutureOr*>*>* => invalid-expression "pkg/front_end/testcases/inference/future_then_explicit_future.dart:15:99: Error: A value of type 'List' can't be assigned to a variable of type 'FutureOr>>'. - 'List' is from 'dart:core'. - 'Future' is from 'dart:async'. /*@returnType=FutureOr*>*>**/ (/*@type=int**/ x) => /*@typeArgs=dynamic*/ []); ^" in [] as{TypeError} FutureOr*>*>*){((core::int*) →* FutureOr*>*>*, {onError: core::Function*}) →* asy::Future*>*>*}; - asy::Future*>* y = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/future_then_explicit_future.dart:16:25: Error: A value of type 'Future>>' can't be assigned to a variable of type 'Future>'. + asy::Future*>* y = invalid-expression "pkg/front_end/testcases/inference/future_then_explicit_future.dart:16:25: Error: A value of type 'Future>>' can't be assigned to a variable of type 'Future>'. - 'Future' is from 'dart:async'. - 'List' is from 'dart:core'. Future> y = x; diff --git a/pkg/front_end/testcases/inference/future_then_explicit_future.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_explicit_future.dart.weak.transformed.expect index 008d899ad7b..7fb1fa78b33 100644 --- a/pkg/front_end/testcases/inference/future_then_explicit_future.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_explicit_future.dart.weak.transformed.expect @@ -22,12 +22,12 @@ import "dart:async"; static method m1() → dynamic { asy::Future* f; - asy::Future*>*>* x = f.{asy::Future::then}*>*>((core::int* x) → FutureOr*>*>* => let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/future_then_explicit_future.dart:15:99: Error: A value of type 'List' can't be assigned to a variable of type 'FutureOr>>'. + asy::Future*>*>* x = f.{asy::Future::then}*>*>((core::int* x) → FutureOr*>*>* => invalid-expression "pkg/front_end/testcases/inference/future_then_explicit_future.dart:15:99: Error: A value of type 'List' can't be assigned to a variable of type 'FutureOr>>'. - 'List' is from 'dart:core'. - 'Future' is from 'dart:async'. /*@returnType=FutureOr*>*>**/ (/*@type=int**/ x) => /*@typeArgs=dynamic*/ []); ^" in core::_GrowableList::•(0) as{TypeError} FutureOr*>*>*){((core::int*) →* FutureOr*>*>*, {onError: core::Function*}) →* asy::Future*>*>*}; - asy::Future*>* y = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/future_then_explicit_future.dart:16:25: Error: A value of type 'Future>>' can't be assigned to a variable of type 'Future>'. + asy::Future*>* y = invalid-expression "pkg/front_end/testcases/inference/future_then_explicit_future.dart:16:25: Error: A value of type 'Future>>' can't be assigned to a variable of type 'Future>'. - 'Future' is from 'dart:async'. - 'List' is from 'dart:core'. Future> y = x; diff --git a/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.expect index 9d407d067d8..b63576e8803 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.expect @@ -43,7 +43,7 @@ class MyFuture extends core::Object implement } static method main() → void { self::MyFuture* f = self::foo().{self::MyFuture::then}((dynamic _) → core::double* => 2.3){((dynamic) →* FutureOr*, {onError: core::Function*}) →* self::MyFuture*}; - asy::Future* f2 = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/future_then_upwards.dart:21:49: Error: A value of type 'MyFuture' can't be assigned to a variable of type 'Future'. + asy::Future* f2 = invalid-expression "pkg/front_end/testcases/inference/future_then_upwards.dart:21:49: Error: A value of type 'MyFuture' can't be assigned to a variable of type 'Future'. - 'MyFuture' is from 'pkg/front_end/testcases/inference/future_then_upwards.dart'. - 'Future' is from 'dart:async'. Future f2 = /*error:INVALID_ASSIGNMENT*/ f; diff --git a/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.transformed.expect index 9e8fc77bb50..8b4ba4ed0f5 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards.dart.weak.transformed.expect @@ -43,7 +43,7 @@ class MyFuture extends core::Object implement } static method main() → void { self::MyFuture* f = self::foo().{self::MyFuture::then}((dynamic _) → core::double* => 2.3){((dynamic) →* FutureOr*, {onError: core::Function*}) →* self::MyFuture*}; - asy::Future* f2 = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/future_then_upwards.dart:21:49: Error: A value of type 'MyFuture' can't be assigned to a variable of type 'Future'. + asy::Future* f2 = invalid-expression "pkg/front_end/testcases/inference/future_then_upwards.dart:21:49: Error: A value of type 'MyFuture' can't be assigned to a variable of type 'Future'. - 'MyFuture' is from 'pkg/front_end/testcases/inference/future_then_upwards.dart'. - 'Future' is from 'dart:async'. Future f2 = /*error:INVALID_ASSIGNMENT*/ f; diff --git a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.expect index b6b8c88098d..0804da7e302 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.expect @@ -42,7 +42,7 @@ class MyFuture extends core::Object implement } static method main() → void { self::MyFuture* f = self::foo().{self::MyFuture::then}((dynamic _) → core::double* => 2.3){((dynamic) →* FutureOr*, {onError: core::Function*}) →* self::MyFuture*}; - self::MyFuture* f2 = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/future_then_upwards_2.dart:21:51: Error: A value of type 'MyFuture' can't be assigned to a variable of type 'MyFuture'. + self::MyFuture* f2 = invalid-expression "pkg/front_end/testcases/inference/future_then_upwards_2.dart:21:51: Error: A value of type 'MyFuture' can't be assigned to a variable of type 'MyFuture'. - 'MyFuture' is from 'pkg/front_end/testcases/inference/future_then_upwards_2.dart'. MyFuture f2 = /*error:INVALID_ASSIGNMENT*/ f; ^" in f as{TypeError} self::MyFuture*; diff --git a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.transformed.expect index 2811c3150c8..88d7620a233 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_2.dart.weak.transformed.expect @@ -42,7 +42,7 @@ class MyFuture extends core::Object implement } static method main() → void { self::MyFuture* f = self::foo().{self::MyFuture::then}((dynamic _) → core::double* => 2.3){((dynamic) →* FutureOr*, {onError: core::Function*}) →* self::MyFuture*}; - self::MyFuture* f2 = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/future_then_upwards_2.dart:21:51: Error: A value of type 'MyFuture' can't be assigned to a variable of type 'MyFuture'. + self::MyFuture* f2 = invalid-expression "pkg/front_end/testcases/inference/future_then_upwards_2.dart:21:51: Error: A value of type 'MyFuture' can't be assigned to a variable of type 'MyFuture'. - 'MyFuture' is from 'pkg/front_end/testcases/inference/future_then_upwards_2.dart'. MyFuture f2 = /*error:INVALID_ASSIGNMENT*/ f; ^" in f as{TypeError} self::MyFuture*; diff --git a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.expect b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.expect index ca5d863a297..4fe09849fac 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.expect @@ -42,7 +42,7 @@ class MyFuture extends core::Object implement } static method test() → void { asy::Future* f = self::foo().{asy::Future::then}((dynamic _) → core::double* => 2.3){((dynamic) →* FutureOr*, {onError: core::Function*}) →* asy::Future*}; - asy::Future* f2 = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/future_then_upwards_3.dart:21:49: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future* f2 = invalid-expression "pkg/front_end/testcases/inference/future_then_upwards_3.dart:21:49: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future f2 = /*error:INVALID_ASSIGNMENT*/ f; ^" in f as{TypeError} asy::Future*; diff --git a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.transformed.expect index 5cff642d1e0..9fc4067f082 100644 --- a/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_then_upwards_3.dart.weak.transformed.expect @@ -42,7 +42,7 @@ class MyFuture extends core::Object implement } static method test() → void { asy::Future* f = self::foo().{asy::Future::then}((dynamic _) → core::double* => 2.3){((dynamic) →* FutureOr*, {onError: core::Function*}) →* asy::Future*}; - asy::Future* f2 = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/future_then_upwards_3.dart:21:49: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future* f2 = invalid-expression "pkg/front_end/testcases/inference/future_then_upwards_3.dart:21:49: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future f2 = /*error:INVALID_ASSIGNMENT*/ f; ^" in f as{TypeError} asy::Future*; diff --git a/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.expect b/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.expect index 2ac98205e0c..93b66688e11 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.expect @@ -40,7 +40,7 @@ class MyFuture extends core::Object implement return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C10: onTimeout}))){(core::Invocation*) →* dynamic} as{TypeError,ForDynamic} asy::Future*; } static field self::MyFuture* f; -static field asy::Future* t1 = self::f.{self::MyFuture::then}((dynamic _) → asy::Future* => asy::Future::value(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/future_union_downwards.dart:21:47: Error: The argument type 'String' can't be assigned to the parameter type 'FutureOr'. +static field asy::Future* t1 = self::f.{self::MyFuture::then}((dynamic _) → asy::Future* => asy::Future::value(invalid-expression "pkg/front_end/testcases/inference/future_union_downwards.dart:21:47: Error: The argument type 'String' can't be assigned to the parameter type 'FutureOr'. new /*@ typeArgs=int* */ Future.value('hi')); ^" in "hi" as{TypeError} FutureOr?)){((dynamic) →* FutureOr*, {onError: core::Function*}) →* self::MyFuture*}; static field asy::Future*>* t2 = self::f.{self::MyFuture::then}*>((dynamic _) → core::List* => [3]){((dynamic) →* FutureOr*>*, {onError: core::Function*}) →* self::MyFuture*>*}; diff --git a/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.transformed.expect index 41fdde4c6c7..ad8c05c0784 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards.dart.weak.transformed.expect @@ -40,7 +40,7 @@ class MyFuture extends core::Object implement return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C10: onTimeout}))){(core::Invocation*) →* dynamic} as{TypeError,ForDynamic} asy::Future*; } static field self::MyFuture* f; -static field asy::Future* t1 = self::f.{self::MyFuture::then}((dynamic _) → asy::Future* => asy::Future::value(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/future_union_downwards.dart:21:47: Error: The argument type 'String' can't be assigned to the parameter type 'FutureOr'. +static field asy::Future* t1 = self::f.{self::MyFuture::then}((dynamic _) → asy::Future* => asy::Future::value(invalid-expression "pkg/front_end/testcases/inference/future_union_downwards.dart:21:47: Error: The argument type 'String' can't be assigned to the parameter type 'FutureOr'. new /*@ typeArgs=int* */ Future.value('hi')); ^" in "hi" as{TypeError} FutureOr?)){((dynamic) →* FutureOr*, {onError: core::Function*}) →* self::MyFuture*}; static field asy::Future*>* t2 = self::f.{self::MyFuture::then}*>((dynamic _) → core::List* => core::_GrowableList::_literal1(3)){((dynamic) →* FutureOr*>*, {onError: core::Function*}) →* self::MyFuture*>*}; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.expect b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.expect index ec1e7dcdedf..f9bf75bd030 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.expect @@ -40,7 +40,7 @@ class MyFuture extends core::Object implement return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, core::List::unmodifiable([timeLimit]), core::Map::unmodifiable({#C10: onTimeout}))){(core::Invocation*) →* dynamic} as{TypeError,ForDynamic} asy::Future*; } static field asy::Future* f; -static field asy::Future* t1 = self::f.{asy::Future::then}((dynamic _) → asy::Future* => asy::Future::value(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/future_union_downwards_3.dart:21:47: Error: The argument type 'String' can't be assigned to the parameter type 'FutureOr'. +static field asy::Future* t1 = self::f.{asy::Future::then}((dynamic _) → asy::Future* => asy::Future::value(invalid-expression "pkg/front_end/testcases/inference/future_union_downwards_3.dart:21:47: Error: The argument type 'String' can't be assigned to the parameter type 'FutureOr'. new /*@ typeArgs=int* */ Future.value('hi')); ^" in "hi" as{TypeError} FutureOr?)){((dynamic) →* FutureOr*, {onError: core::Function*}) →* asy::Future*}; static field asy::Future*>* t2 = self::f.{asy::Future::then}*>((dynamic _) → core::List* => [3]){((dynamic) →* FutureOr*>*, {onError: core::Function*}) →* asy::Future*>*}; diff --git a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.transformed.expect index b46703a8fe4..0aabd95a6ba 100644 --- a/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/future_union_downwards_3.dart.weak.transformed.expect @@ -40,7 +40,7 @@ class MyFuture extends core::Object implement return this.{self::MyFuture::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C10: onTimeout}))){(core::Invocation*) →* dynamic} as{TypeError,ForDynamic} asy::Future*; } static field asy::Future* f; -static field asy::Future* t1 = self::f.{asy::Future::then}((dynamic _) → asy::Future* => asy::Future::value(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/future_union_downwards_3.dart:21:47: Error: The argument type 'String' can't be assigned to the parameter type 'FutureOr'. +static field asy::Future* t1 = self::f.{asy::Future::then}((dynamic _) → asy::Future* => asy::Future::value(invalid-expression "pkg/front_end/testcases/inference/future_union_downwards_3.dart:21:47: Error: The argument type 'String' can't be assigned to the parameter type 'FutureOr'. new /*@ typeArgs=int* */ Future.value('hi')); ^" in "hi" as{TypeError} FutureOr?)){((dynamic) →* FutureOr*, {onError: core::Function*}) →* asy::Future*}; static field asy::Future*>* t2 = self::f.{asy::Future::then}*>((dynamic _) → core::List* => core::_GrowableList::_literal1(3)){((dynamic) →* FutureOr*>*, {onError: core::Function*}) →* asy::Future*>*}; diff --git a/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.weak.expect b/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.weak.expect index 0a651ec10c6..9c2338181e8 100644 --- a/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.weak.expect +++ b/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.weak.expect @@ -37,17 +37,17 @@ static method f() → dynamic { self::printDouble(math::min(1.0, 2.0)); self::printInt(self::myMax(1, 2) as{TypeError} core::int*); self::printInt(self::myMax(1, 2) as core::int*); - self::printInt(math::max(1, let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:28:35: Error: The argument type 'double' can't be assigned to the parameter type 'int'. + self::printInt(math::max(1, invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:28:35: Error: The argument type 'double' can't be assigned to the parameter type 'int'. /*@ typeArgs=int* */ max(1, 2.0)); ^" in 2.0 as{TypeError} core::int*)); - self::printInt(math::min(1, let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:30:35: Error: The argument type 'double' can't be assigned to the parameter type 'int'. + self::printInt(math::min(1, invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:30:35: Error: The argument type 'double' can't be assigned to the parameter type 'int'. /*@ typeArgs=int* */ min(1, 2.0)); ^" in 2.0 as{TypeError} core::int*)); self::printDouble(math::max(1.0, 2.0)); self::printDouble(math::min(1.0, 2.0)); - self::printInt(math::min(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:37:37: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::printInt(math::min(invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:37:37: Error: The argument type 'String' can't be assigned to the parameter type 'int'. printInt(/*@ typeArgs=int* */ min(\"hi\", \"there\")); - ^" in "hi" as{TypeError} core::int*, let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:37:43: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + ^" in "hi" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:37:43: Error: The argument type 'String' can't be assigned to the parameter type 'int'. printInt(/*@ typeArgs=int* */ min(\"hi\", \"there\")); ^" in "there" as{TypeError} core::int*)); } diff --git a/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.weak.transformed.expect index 0a651ec10c6..9c2338181e8 100644 --- a/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart.weak.transformed.expect @@ -37,17 +37,17 @@ static method f() → dynamic { self::printDouble(math::min(1.0, 2.0)); self::printInt(self::myMax(1, 2) as{TypeError} core::int*); self::printInt(self::myMax(1, 2) as core::int*); - self::printInt(math::max(1, let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:28:35: Error: The argument type 'double' can't be assigned to the parameter type 'int'. + self::printInt(math::max(1, invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:28:35: Error: The argument type 'double' can't be assigned to the parameter type 'int'. /*@ typeArgs=int* */ max(1, 2.0)); ^" in 2.0 as{TypeError} core::int*)); - self::printInt(math::min(1, let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:30:35: Error: The argument type 'double' can't be assigned to the parameter type 'int'. + self::printInt(math::min(1, invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:30:35: Error: The argument type 'double' can't be assigned to the parameter type 'int'. /*@ typeArgs=int* */ min(1, 2.0)); ^" in 2.0 as{TypeError} core::int*)); self::printDouble(math::max(1.0, 2.0)); self::printDouble(math::min(1.0, 2.0)); - self::printInt(math::min(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:37:37: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::printInt(math::min(invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:37:37: Error: The argument type 'String' can't be assigned to the parameter type 'int'. printInt(/*@ typeArgs=int* */ min(\"hi\", \"there\")); - ^" in "hi" as{TypeError} core::int*, let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:37:43: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + ^" in "hi" as{TypeError} core::int*, invalid-expression "pkg/front_end/testcases/inference/generic_methods_dart_math_min_max.dart:37:43: Error: The argument type 'String' can't be assigned to the parameter type 'int'. printInt(/*@ typeArgs=int* */ min(\"hi\", \"there\")); ^" in "there" as{TypeError} core::int*)); } diff --git a/pkg/front_end/testcases/inference/generic_methods_do_not_infer_invalid_override_of_generic_method.dart.weak.expect b/pkg/front_end/testcases/inference/generic_methods_do_not_infer_invalid_override_of_generic_method.dart.weak.expect index c42f670ee7c..6c102feddac 100644 --- a/pkg/front_end/testcases/inference/generic_methods_do_not_infer_invalid_override_of_generic_method.dart.weak.expect +++ b/pkg/front_end/testcases/inference/generic_methods_do_not_infer_invalid_override_of_generic_method.dart.weak.expect @@ -49,7 +49,7 @@ class D extends self::C { return x; } static method main() → dynamic { - core::int* y = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_do_not_infer_invalid_override_of_generic_method.dart:18:73: Error: Expected 0 type arguments. + core::int* y = invalid-expression "pkg/front_end/testcases/inference/generic_methods_do_not_infer_invalid_override_of_generic_method.dart:18:73: Error: Expected 0 type arguments. . /*error:WRONG_NUMBER_OF_TYPE_ARGUMENTS_METHOD*/ /*@target=D.m*/ m( ^" in new self::D::•().{self::D::m}{}.(42){(invalid-type) →* invalid-type}; core::print(y); diff --git a/pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart.weak.expect b/pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart.weak.expect index ebdf203950f..79f41c9b3ec 100644 --- a/pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart.weak.expect +++ b/pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart.weak.expect @@ -13,7 +13,7 @@ static method f(core::List* s) return null; static method test() → dynamic { core::String* x = self::f(["hi"]); - core::String* y = self::f([let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart:13:79: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String* y = self::f([invalid-expression "pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart:13:79: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*@ typeArgs=String* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 42]); ^" in 42 as{TypeError} core::String*]); } diff --git a/pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart.weak.transformed.expect index c6f8ccd19a2..71fc12a8b1f 100644 --- a/pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart.weak.transformed.expect @@ -13,7 +13,7 @@ static method f(core::List* s) return null; static method test() → dynamic { core::String* x = self::f(core::_GrowableList::_literal1("hi")); - core::String* y = self::f(core::_GrowableList::_literal1(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart:13:79: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String* y = self::f(core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart:13:79: Error: A value of type 'int' can't be assigned to a variable of type 'String'. /*@ typeArgs=String* */ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 42]); ^" in 42 as{TypeError} core::String*)); } diff --git a/pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart.weak.expect b/pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart.weak.expect index e8a716adb88..759489c1ce7 100644 --- a/pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart.weak.expect +++ b/pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart.weak.expect @@ -114,10 +114,10 @@ static method test() → dynamic { self::takeIIO(#C1); self::takeDDO(#C1); self::takeOOI((#C1) as{TypeError} (core::Object*, core::Object*) →* core::int*); - self::takeIDI(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:28:73: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'int Function(double, int)'. + self::takeIDI(invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:28:73: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'int Function(double, int)'. /*error:COULD_NOT_INFER,error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ math.max); ^" in (#C1) as{TypeError} (core::double*, core::int*) →* core::int*); - self::takeDID(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:30:73: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'double Function(int, double)'. + self::takeDID(invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:30:73: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'double Function(int, double)'. /*error:COULD_NOT_INFER,error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ math.max); ^" in (#C1) as{TypeError} (core::int*, core::double*) →* core::double*); self::takeOON((#C1) as{TypeError} (core::Object*, core::Object*) →* core::num*); @@ -132,10 +132,10 @@ static method test() → dynamic { self::takeIIO(#C2); self::takeDDO(#C2); self::takeOOI((#C2) as{TypeError} (core::Object*, core::Object*) →* core::int*); - self::takeIDI(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:46:72: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'int Function(double, int)'. + self::takeIDI(invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:46:72: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'int Function(double, int)'. takeIDI(/*error:COULD_NOT_INFER,error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ min); ^" in (#C2) as{TypeError} (core::double*, core::int*) →* core::int*); - self::takeDID(let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:47:72: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'double Function(int, double)'. + self::takeDID(invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:47:72: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'double Function(int, double)'. takeDID(/*error:COULD_NOT_INFER,error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ min); ^" in (#C2) as{TypeError} (core::int*, core::double*) →* core::double*); self::takeOON((#C2) as{TypeError} (core::Object*, core::Object*) →* core::num*); @@ -152,10 +152,10 @@ static method test() → dynamic { self::takeOON((new self::C::•().{self::C::m}{(T*, T*) →* T*}) as{TypeError} (core::Object*, core::Object*) →* core::num*); self::takeOOO((new self::C::•().{self::C::m}{(T*, T*) →* T*}) as{TypeError} (core::Object*, core::Object*) →* core::num*); self::takeOOI((new self::C::•().{self::C::m}{(T*, T*) →* T*}) as{TypeError} (core::Object*, core::Object*) →* core::int*); - self::takeIDI(let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:86:29: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'int Function(double, int)'. + self::takeIDI(invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:86:29: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'int Function(double, int)'. . /*@target=C.m*/ m); ^" in (new self::C::•().{self::C::m}{(T*, T*) →* T*}) as{TypeError} (core::double*, core::int*) →* core::int*); - self::takeDID(let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:89:29: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'double Function(int, double)'. + self::takeDID(invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:89:29: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'double Function(int, double)'. . /*@target=C.m*/ m); ^" in (new self::C::•().{self::C::m}{(T*, T*) →* T*}) as{TypeError} (core::int*, core::double*) →* core::double*); } diff --git a/pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart.weak.transformed.expect index 1ee8bea1e28..dbd1d673250 100644 --- a/pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart.weak.transformed.expect @@ -114,10 +114,10 @@ static method test() → dynamic { self::takeIIO(#C1); self::takeDDO(#C1); self::takeOOI((#C1) as{TypeError} (core::Object*, core::Object*) →* core::int*); - self::takeIDI(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:28:73: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'int Function(double, int)'. + self::takeIDI(invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:28:73: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'int Function(double, int)'. /*error:COULD_NOT_INFER,error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ math.max); ^" in (#C1) as{TypeError} (core::double*, core::int*) →* core::int*); - self::takeDID(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:30:73: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'double Function(int, double)'. + self::takeDID(invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:30:73: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'double Function(int, double)'. /*error:COULD_NOT_INFER,error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ math.max); ^" in (#C1) as{TypeError} (core::int*, core::double*) →* core::double*); self::takeOON((#C1) as{TypeError} (core::Object*, core::Object*) →* core::num*); @@ -132,10 +132,10 @@ static method test() → dynamic { self::takeIIO(#C2); self::takeDDO(#C2); self::takeOOI((#C2) as{TypeError} (core::Object*, core::Object*) →* core::int*); - self::takeIDI(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:46:72: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'int Function(double, int)'. + self::takeIDI(invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:46:72: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'int Function(double, int)'. takeIDI(/*error:COULD_NOT_INFER,error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ min); ^" in (#C2) as{TypeError} (core::double*, core::int*) →* core::int*); - self::takeDID(let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:47:72: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'double Function(int, double)'. + self::takeDID(invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:47:72: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'double Function(int, double)'. takeDID(/*error:COULD_NOT_INFER,error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ min); ^" in (#C2) as{TypeError} (core::int*, core::double*) →* core::double*); self::takeOON((#C2) as{TypeError} (core::Object*, core::Object*) →* core::num*); @@ -152,10 +152,10 @@ static method test() → dynamic { self::takeOON((new self::C::•().{self::C::m}{(T*, T*) →* T*}) as{TypeError} (core::Object*, core::Object*) →* core::num*); self::takeOOO((new self::C::•().{self::C::m}{(T*, T*) →* T*}) as{TypeError} (core::Object*, core::Object*) →* core::num*); self::takeOOI((new self::C::•().{self::C::m}{(T*, T*) →* T*}) as{TypeError} (core::Object*, core::Object*) →* core::int*); - self::takeIDI(let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:86:29: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'int Function(double, int)'. + self::takeIDI(invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:86:29: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'int Function(double, int)'. . /*@target=C.m*/ m); ^" in (new self::C::•().{self::C::m}{(T*, T*) →* T*}) as{TypeError} (core::double*, core::int*) →* core::int*); - self::takeDID(let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:89:29: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'double Function(int, double)'. + self::takeDID(invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_generic_instantiation.dart:89:29: Error: The argument type 'num Function(num, num)' can't be assigned to the parameter type 'double Function(int, double)'. . /*@target=C.m*/ m); ^" in (new self::C::•().{self::C::m}{(T*, T*) →* T*}) as{TypeError} (core::int*, core::double*) →* core::double*); } @@ -191,8 +191,6 @@ Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generi Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:23:16 -> InstantiationConstant(max) Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:24:16 -> InstantiationConstant(max) Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:26:70 -> InstantiationConstant(max) -Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:28:73 -> InstantiationConstant(max) -Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:30:73 -> InstantiationConstant(max) Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:31:70 -> InstantiationConstant(max) Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:32:70 -> InstantiationConstant(max) Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:35:11 -> InstantiationConstant(min) @@ -205,8 +203,6 @@ Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generi Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:42:11 -> InstantiationConstant(min) Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:43:11 -> InstantiationConstant(min) Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:45:65 -> InstantiationConstant(min) -Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:46:72 -> InstantiationConstant(min) -Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:47:72 -> InstantiationConstant(min) Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:48:65 -> InstantiationConstant(min) Evaluated: Instantiation @ org-dartlang-testcase:///generic_methods_infer_generic_instantiation.dart:49:65 -> InstantiationConstant(min) -Extra constant evaluation: evaluated: 133, effectively constant: 28 +Extra constant evaluation: evaluated: 111, effectively constant: 24 diff --git a/pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart b/pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart index 057fc60a4ca..e828e03cd1f 100644 --- a/pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart +++ b/pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart @@ -10,7 +10,7 @@ import 'dart:_foreign_helper' show JS; // error test() { String x = JS('int', '42'); // error - var /*@type=dynamic*/ y = JS('String', '"hello"'); + var /*@type=invalid-type*/ y = JS('String', '"hello"'); y = "world"; y = 42; // error } diff --git a/pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart.weak.expect b/pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart.weak.expect index 4b1c3d61b34..4831a9f8081 100644 --- a/pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart.weak.expect +++ b/pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart.weak.expect @@ -17,9 +17,9 @@ library test; // String x = JS('int', '42'); // error // ^^ // -// pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:13:29: Error: Method not found: 'JS'. -// var /*@type=dynamic*/ y = JS('String', '"hello"'); -// ^^ +// pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:13:34: Error: Method not found: 'JS'. +// var /*@type=invalid-type*/ y = JS('String', '"hello"'); +// ^^ // import self as self; import "dart:core" as core; @@ -29,10 +29,10 @@ import "dart:_foreign_helper" show JS; static method test() → dynamic { core::String* x = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:12:14: Error: Method not found: 'JS'. String x = JS('int', '42'); // error - ^^" as{TypeError,ForDynamic} core::String*; - dynamic y = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:13:29: Error: Method not found: 'JS'. - var /*@type=dynamic*/ y = JS('String', '\"hello\"'); - ^^"; + ^^"; + invalid-type y = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:13:34: Error: Method not found: 'JS'. + var /*@type=invalid-type*/ y = JS('String', '\"hello\"'); + ^^"; y = "world"; y = 42; } diff --git a/pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart.weak.transformed.expect index 59da75c0bb7..23c34adad5c 100644 --- a/pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart.weak.transformed.expect @@ -10,9 +10,9 @@ library test; // String x = JS('int', '42'); // error // ^^ // -// pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:13:29: Error: Method not found: 'JS'. -// var /*@type=dynamic*/ y = JS('String', '"hello"'); -// ^^ +// pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:13:34: Error: Method not found: 'JS'. +// var /*@type=invalid-type*/ y = JS('String', '"hello"'); +// ^^ // import self as self; import "dart:core" as core; @@ -23,9 +23,9 @@ static method test() → dynamic { core::String* x = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:12:14: Error: Method not found: 'JS'. String x = JS('int', '42'); // error ^^"; - dynamic y = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:13:29: Error: Method not found: 'JS'. - var /*@type=dynamic*/ y = JS('String', '\"hello\"'); - ^^"; + invalid-type y = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:13:34: Error: Method not found: 'JS'. + var /*@type=invalid-type*/ y = JS('String', '\"hello\"'); + ^^"; y = "world"; y = 42; } diff --git a/pkg/front_end/testcases/inference/generic_methods_inference_error.dart.weak.expect b/pkg/front_end/testcases/inference/generic_methods_inference_error.dart.weak.expect index fedd32dcba6..f3dc90895db 100644 --- a/pkg/front_end/testcases/inference/generic_methods_inference_error.dart.weak.expect +++ b/pkg/front_end/testcases/inference/generic_methods_inference_error.dart.weak.expect @@ -11,7 +11,7 @@ import "dart:core" as core; static method f() → void { core::List* y; - core::Iterable* x = y.{core::Iterable::map}((core::String* z) → core::String* => let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_inference_error.dart:13:11: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + core::Iterable* x = y.{core::Iterable::map}((core::String* z) → core::String* => invalid-expression "pkg/front_end/testcases/inference/generic_methods_inference_error.dart:13:11: Error: A value of type 'double' can't be assigned to a variable of type 'String'. 1.0); ^" in 1.0 as{TypeError} core::String*){((core::String*) →* core::String*) →* core::Iterable*}; } diff --git a/pkg/front_end/testcases/inference/generic_methods_inference_error.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/generic_methods_inference_error.dart.weak.transformed.expect index fedd32dcba6..f3dc90895db 100644 --- a/pkg/front_end/testcases/inference/generic_methods_inference_error.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/generic_methods_inference_error.dart.weak.transformed.expect @@ -11,7 +11,7 @@ import "dart:core" as core; static method f() → void { core::List* y; - core::Iterable* x = y.{core::Iterable::map}((core::String* z) → core::String* => let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_inference_error.dart:13:11: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + core::Iterable* x = y.{core::Iterable::map}((core::String* z) → core::String* => invalid-expression "pkg/front_end/testcases/inference/generic_methods_inference_error.dart:13:11: Error: A value of type 'double' can't be assigned to a variable of type 'String'. 1.0); ^" in 1.0 as{TypeError} core::String*){((core::String*) →* core::String*) →* core::Iterable*}; } diff --git a/pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart.weak.expect b/pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart.weak.expect index fe912284442..9c5952724b5 100644 --- a/pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart.weak.expect +++ b/pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart.weak.expect @@ -26,7 +26,7 @@ static method test() → dynamic { Try correcting the operator to an existing operator, or defining a '+' operator. /*@ type=int* */ y) => /*info:DYNAMIC_CAST,info:DYNAMIC_INVOKE*/ x /*error:UNDEFINED_OPERATOR*/ + ^" as{TypeError,ForDynamic} FutureOr*){(FutureOr*, (FutureOr*, core::int*) →* FutureOr*) →* FutureOr*}){((core::List*) →* FutureOr*, {onError: core::Function*}) →* asy::Future*}; - asy::Future* results3 = results.{asy::Future::then}((core::List* list) → FutureOr* => list.{core::Iterable::fold}*>("", let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart:31:111: Error: The argument type 'String Function(String, int)' can't be assigned to the parameter type 'FutureOr Function(FutureOr, int)'. + asy::Future* results3 = results.{asy::Future::then}((core::List* list) → FutureOr* => list.{core::Iterable::fold}*>("", invalid-expression "pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart:31:111: Error: The argument type 'String Function(String, int)' can't be assigned to the parameter type 'FutureOr Function(FutureOr, int)'. /*info:INFERRED_TYPE_CLOSURE,error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ /*@ returnType=String* */ (String ^" in ((core::String* x, core::int* y) → core::String* => x.{core::String::+}(y.{core::int::toString}(){() →* core::String*}){(core::String*) →* core::String*}) as{TypeError} (FutureOr*, core::int*) →* FutureOr*){(FutureOr*, (FutureOr*, core::int*) →* FutureOr*) →* FutureOr*}){((core::List*) →* FutureOr*, {onError: core::Function*}) →* asy::Future*}; asy::Future* results4 = results.{asy::Future::then}((core::List* list) → core::String* => list.{core::Iterable::fold}("", (core::String* x, core::int* y) → core::String* => x.{core::String::+}(y.{core::int::toString}(){() →* core::String*}){(core::String*) →* core::String*}){(core::String*, (core::String*, core::int*) →* core::String*) →* core::String*}){((core::List*) →* FutureOr*, {onError: core::Function*}) →* asy::Future*}; diff --git a/pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart.weak.transformed.expect index 393b79da77c..977e13287a8 100644 --- a/pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart.weak.transformed.expect @@ -26,7 +26,7 @@ static method test() → dynamic { Try correcting the operator to an existing operator, or defining a '+' operator. /*@ type=int* */ y) => /*info:DYNAMIC_CAST,info:DYNAMIC_INVOKE*/ x /*error:UNDEFINED_OPERATOR*/ + ^"){(FutureOr*, (FutureOr*, core::int*) →* FutureOr*) →* FutureOr*}){((core::List*) →* FutureOr*, {onError: core::Function*}) →* asy::Future*}; - asy::Future* results3 = results.{asy::Future::then}((core::List* list) → FutureOr* => list.{core::Iterable::fold}*>("", let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart:31:111: Error: The argument type 'String Function(String, int)' can't be assigned to the parameter type 'FutureOr Function(FutureOr, int)'. + asy::Future* results3 = results.{asy::Future::then}((core::List* list) → FutureOr* => list.{core::Iterable::fold}*>("", invalid-expression "pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart:31:111: Error: The argument type 'String Function(String, int)' can't be assigned to the parameter type 'FutureOr Function(FutureOr, int)'. /*info:INFERRED_TYPE_CLOSURE,error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ /*@ returnType=String* */ (String ^" in ((core::String* x, core::int* y) → core::String* => x.{core::String::+}(y.{core::int::toString}(){() →* core::String*}){(core::String*) →* core::String*}) as{TypeError} (FutureOr*, core::int*) →* FutureOr*){(FutureOr*, (FutureOr*, core::int*) →* FutureOr*) →* FutureOr*}){((core::List*) →* FutureOr*, {onError: core::Function*}) →* asy::Future*}; asy::Future* results4 = results.{asy::Future::then}((core::List* list) → core::String* => list.{core::Iterable::fold}("", (core::String* x, core::int* y) → core::String* => x.{core::String::+}(y.{core::int::toString}(){() →* core::String*}){(core::String*) →* core::String*}){(core::String*, (core::String*, core::int*) →* core::String*) →* core::String*}){((core::List*) →* FutureOr*, {onError: core::Function*}) →* asy::Future*}; diff --git a/pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart.weak.expect b/pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart.weak.expect index c0c88a8e3ee..56920851fd1 100644 --- a/pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart.weak.expect @@ -58,16 +58,16 @@ static method foo() → dynamic { core::String* s; core::int* i; s = new self::B::•().{self::B::x}{dynamic} as{TypeError,ForDynamic} core::String*; - s = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:21:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:21:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. s = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.y*/ y; ^" in new self::B::•().{self::B::y}{core::int*} as{TypeError} core::String*; s = new self::B::•().{self::B::z}{core::String*}; - s = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:23:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:23:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. s = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.w*/ w; ^" in new self::B::•().{self::B::w}{core::int*} as{TypeError} core::String*; i = new self::B::•().{self::B::x}{dynamic} as{TypeError,ForDynamic} core::int*; i = new self::B::•().{self::B::y}{core::int*}; - i = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:27:61: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + i = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:27:61: Error: A value of type 'String' can't be assigned to a variable of type 'int'. i = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.z*/ z; ^" in new self::B::•().{self::B::z}{core::String*} as{TypeError} core::int*; i = new self::B::•().{self::B::w}{core::int*}; diff --git a/pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart.weak.transformed.expect index c0c88a8e3ee..56920851fd1 100644 --- a/pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart.weak.transformed.expect @@ -58,16 +58,16 @@ static method foo() → dynamic { core::String* s; core::int* i; s = new self::B::•().{self::B::x}{dynamic} as{TypeError,ForDynamic} core::String*; - s = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:21:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:21:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. s = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.y*/ y; ^" in new self::B::•().{self::B::y}{core::int*} as{TypeError} core::String*; s = new self::B::•().{self::B::z}{core::String*}; - s = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:23:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + s = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:23:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. s = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.w*/ w; ^" in new self::B::•().{self::B::w}{core::int*} as{TypeError} core::String*; i = new self::B::•().{self::B::x}{dynamic} as{TypeError,ForDynamic} core::int*; i = new self::B::•().{self::B::y}{core::int*}; - i = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:27:61: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + i = invalid-expression "pkg/front_end/testcases/inference/infer_correctly_on_multiple_variables_declared_together.dart:27:61: Error: A value of type 'String' can't be assigned to a variable of type 'int'. i = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.z*/ z; ^" in new self::B::•().{self::B::z}{core::String*} as{TypeError} core::int*; i = new self::B::•().{self::B::w}{core::int*}; diff --git a/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart b/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart index fe4097c79eb..7a1c5baae10 100644 --- a/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart +++ b/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart @@ -17,7 +17,7 @@ class B extends A { var a = new A(); // Note: it doesn't matter that some of these refer to 'x'. var b = new B(/*error:UNDEFINED_IDENTIFIER*/ x); // allocations -var c1 = /*@typeArgs=dynamic*/ [ +var c1 = /*@typeArgs=invalid-type*/ [ /*error:UNDEFINED_IDENTIFIER*/ x ]; // list literals var c2 = /*@typeArgs=dynamic*/ const []; @@ -37,7 +37,7 @@ test1() { a = new B(3); b = /*error:INVALID_ASSIGNMENT*/ "hi"; b = new B(3); - c1 = /*@typeArgs=dynamic*/ []; + c1 = /*@typeArgs=invalid-type*/ []; c1 = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ {}; c2 = /*@typeArgs=dynamic*/ []; c2 = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ {}; diff --git a/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart.weak.expect b/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart.weak.expect index 1e12aec0b90..4a751418dd5 100644 --- a/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart.weak.expect @@ -26,7 +26,7 @@ library test; // b = /*error:INVALID_ASSIGNMENT*/ "hi"; // ^ // -// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:41:59: Error: A value of type 'Set' can't be assigned to a variable of type 'List'. +// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:41:59: Error: A value of type 'Set' can't be assigned to a variable of type 'List'. // - 'Set' is from 'dart:core'. // - 'List' is from 'dart:core'. // c1 = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ {}; @@ -104,7 +104,7 @@ static field self::A* a = new self::A::•(); static field self::B* b = new self::B::•(invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:46: Error: Getter not found: 'x'. var b = new B(/*error:UNDEFINED_IDENTIFIER*/ x); // allocations ^"); -static field core::List* c1 = [invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Getter not found: 'x'. +static field core::List* c1 = [invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Getter not found: 'x'. /*error:UNDEFINED_IDENTIFIER*/ x ^"]; static field core::List* c2 = #C1; @@ -122,63 +122,63 @@ var i = /*error:UNDEFINED_OPERATOR,info:DYNAMIC_INVOKE*/ -new A(); ^"; static field self::B* j = null as self::B*; static method test1() → dynamic { - self::a = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:36:36: Error: A value of type 'String' can't be assigned to a variable of type 'A'. + self::a = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:36:36: Error: A value of type 'String' can't be assigned to a variable of type 'A'. - 'A' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. a = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} self::A*; self::a = new self::B::•(3); - self::b = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:38:36: Error: A value of type 'String' can't be assigned to a variable of type 'B'. + self::b = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:38:36: Error: A value of type 'String' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. b = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} self::B*; self::b = new self::B::•(3); - self::c1 = []; - self::c1 = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:41:59: Error: A value of type 'Set' can't be assigned to a variable of type 'List'. + self::c1 = []; + self::c1 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:41:59: Error: A value of type 'Set' can't be assigned to a variable of type 'List'. - 'Set' is from 'dart:core'. - 'List' is from 'dart:core'. c1 = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ {}; ^" in ( block { - final core::Set* #t5 = col::LinkedHashSet::•(); - } =>#t5) as{TypeError} core::List*; + final core::Set* #t2 = col::LinkedHashSet::•(); + } =>#t2) as{TypeError} core::List*; self::c2 = []; - self::c2 = let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:43:59: Error: A value of type 'Set' can't be assigned to a variable of type 'List'. + self::c2 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:43:59: Error: A value of type 'Set' can't be assigned to a variable of type 'List'. - 'Set' is from 'dart:core'. - 'List' is from 'dart:core'. c2 = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ {}; ^" in ( block { - final core::Set* #t7 = col::LinkedHashSet::•(); - } =>#t7) as{TypeError} core::List*; + final core::Set* #t3 = col::LinkedHashSet::•(); + } =>#t3) as{TypeError} core::List*; self::d = {}; - self::d = let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:45:36: Error: A value of type 'int' can't be assigned to a variable of type 'Map'. + self::d = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:45:36: Error: A value of type 'int' can't be assigned to a variable of type 'Map'. - 'Map' is from 'dart:core'. d = /*error:INVALID_ASSIGNMENT*/ 3; ^" in 3 as{TypeError} core::Map*; self::e = new self::A::•(); - self::e = let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:47:67: Error: A value of type 'Map' can't be assigned to a variable of type 'A'. + self::e = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:47:67: Error: A value of type 'Map' can't be assigned to a variable of type 'A'. - 'Map' is from 'dart:core'. - 'A' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. e = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic, dynamic*/ {}; ^" in {} as{TypeError} self::A*; self::f = 3; - self::f = let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:49:36: Error: A value of type 'bool' can't be assigned to a variable of type 'int'. + self::f = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:49:36: Error: A value of type 'bool' can't be assigned to a variable of type 'int'. f = /*error:INVALID_ASSIGNMENT*/ false; ^" in false as{TypeError} core::int*; self::g = 1; - self::g = let final Never* #t11 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:51:36: Error: A value of type 'bool' can't be assigned to a variable of type 'int'. + self::g = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:51:36: Error: A value of type 'bool' can't be assigned to a variable of type 'int'. g = /*error:INVALID_ASSIGNMENT*/ false; ^" in false as{TypeError} core::int*; - self::h = let final Never* #t12 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:52:36: Error: A value of type 'bool' can't be assigned to a variable of type 'B'. + self::h = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:52:36: Error: A value of type 'bool' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. h = /*error:INVALID_ASSIGNMENT*/ false; ^" in false as{TypeError} self::B*; self::h = new self::B::•("b"); self::i = false; self::j = new self::B::•("b"); - self::j = let final Never* #t13 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:56:36: Error: A value of type 'bool' can't be assigned to a variable of type 'B'. + self::j = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:56:36: Error: A value of type 'bool' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. j = /*error:INVALID_ASSIGNMENT*/ false; ^" in false as{TypeError} self::B*; - self::j = let final Never* #t14 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:57:58: Error: A value of type 'List' can't be assigned to a variable of type 'B'. + self::j = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:57:58: Error: A value of type 'List' can't be assigned to a variable of type 'B'. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. j = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ []; diff --git a/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart.weak.outline.expect b/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart.weak.outline.expect index b315ae47645..d754ff84988 100644 --- a/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart.weak.outline.expect +++ b/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart.weak.outline.expect @@ -36,7 +36,7 @@ class B extends self::A { } static field self::A* a; static field self::B* b; -static field core::List* c1; +static field core::List* c1; static field core::List* c2; static field core::Map* d; static field self::A* e; diff --git a/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart.weak.transformed.expect index 0cc2a2fcc84..2ecb02331dc 100644 --- a/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart.weak.transformed.expect @@ -26,7 +26,7 @@ library test; // b = /*error:INVALID_ASSIGNMENT*/ "hi"; // ^ // -// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:41:59: Error: A value of type 'Set' can't be assigned to a variable of type 'List'. +// pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:41:59: Error: A value of type 'Set' can't be assigned to a variable of type 'List'. // - 'Set' is from 'dart:core'. // - 'List' is from 'dart:core'. // c1 = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ {}; @@ -104,7 +104,7 @@ static field self::A* a = new self::A::•(); static field self::B* b = new self::B::•(invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:19:46: Error: Getter not found: 'x'. var b = new B(/*error:UNDEFINED_IDENTIFIER*/ x); // allocations ^"); -static field core::List* c1 = core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Getter not found: 'x'. +static field core::List* c1 = core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:21:34: Error: Getter not found: 'x'. /*error:UNDEFINED_IDENTIFIER*/ x ^"); static field core::List* c2 = #C1; @@ -122,63 +122,63 @@ var i = /*error:UNDEFINED_OPERATOR,info:DYNAMIC_INVOKE*/ -new A(); ^"; static field self::B* j = null; static method test1() → dynamic { - self::a = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:36:36: Error: A value of type 'String' can't be assigned to a variable of type 'A'. + self::a = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:36:36: Error: A value of type 'String' can't be assigned to a variable of type 'A'. - 'A' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. a = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} self::A*; self::a = new self::B::•(3); - self::b = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:38:36: Error: A value of type 'String' can't be assigned to a variable of type 'B'. + self::b = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:38:36: Error: A value of type 'String' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. b = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} self::B*; self::b = new self::B::•(3); - self::c1 = core::_GrowableList::•(0); - self::c1 = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:41:59: Error: A value of type 'Set' can't be assigned to a variable of type 'List'. + self::c1 = core::_GrowableList::•(0); + self::c1 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:41:59: Error: A value of type 'Set' can't be assigned to a variable of type 'List'. - 'Set' is from 'dart:core'. - 'List' is from 'dart:core'. c1 = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ {}; ^" in ( block { - final core::Set* #t5 = new col::_CompactLinkedHashSet::•(); - } =>#t5) as{TypeError} core::List*; + final core::Set* #t2 = new col::_CompactLinkedHashSet::•(); + } =>#t2) as{TypeError} core::List*; self::c2 = core::_GrowableList::•(0); - self::c2 = let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:43:59: Error: A value of type 'Set' can't be assigned to a variable of type 'List'. + self::c2 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:43:59: Error: A value of type 'Set' can't be assigned to a variable of type 'List'. - 'Set' is from 'dart:core'. - 'List' is from 'dart:core'. c2 = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ {}; ^" in ( block { - final core::Set* #t7 = new col::_CompactLinkedHashSet::•(); - } =>#t7) as{TypeError} core::List*; + final core::Set* #t3 = new col::_CompactLinkedHashSet::•(); + } =>#t3) as{TypeError} core::List*; self::d = {}; - self::d = let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:45:36: Error: A value of type 'int' can't be assigned to a variable of type 'Map'. + self::d = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:45:36: Error: A value of type 'int' can't be assigned to a variable of type 'Map'. - 'Map' is from 'dart:core'. d = /*error:INVALID_ASSIGNMENT*/ 3; ^" in 3 as{TypeError} core::Map*; self::e = new self::A::•(); - self::e = let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:47:67: Error: A value of type 'Map' can't be assigned to a variable of type 'A'. + self::e = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:47:67: Error: A value of type 'Map' can't be assigned to a variable of type 'A'. - 'Map' is from 'dart:core'. - 'A' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. e = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic, dynamic*/ {}; ^" in {} as{TypeError} self::A*; self::f = 3; - self::f = let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:49:36: Error: A value of type 'bool' can't be assigned to a variable of type 'int'. + self::f = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:49:36: Error: A value of type 'bool' can't be assigned to a variable of type 'int'. f = /*error:INVALID_ASSIGNMENT*/ false; ^" in false as{TypeError} core::int*; self::g = 1; - self::g = let final Never* #t11 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:51:36: Error: A value of type 'bool' can't be assigned to a variable of type 'int'. + self::g = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:51:36: Error: A value of type 'bool' can't be assigned to a variable of type 'int'. g = /*error:INVALID_ASSIGNMENT*/ false; ^" in false as{TypeError} core::int*; - self::h = let final Never* #t12 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:52:36: Error: A value of type 'bool' can't be assigned to a variable of type 'B'. + self::h = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:52:36: Error: A value of type 'bool' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. h = /*error:INVALID_ASSIGNMENT*/ false; ^" in false as{TypeError} self::B*; self::h = new self::B::•("b"); self::i = false; self::j = new self::B::•("b"); - self::j = let final Never* #t13 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:56:36: Error: A value of type 'bool' can't be assigned to a variable of type 'B'. + self::j = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:56:36: Error: A value of type 'bool' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. j = /*error:INVALID_ASSIGNMENT*/ false; ^" in false as{TypeError} self::B*; - self::j = let final Never* #t14 = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:57:58: Error: A value of type 'List' can't be assigned to a variable of type 'B'. + self::j = invalid-expression "pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart:57:58: Error: A value of type 'List' can't be assigned to a variable of type 'B'. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/inference/infer_from_complex_expressions_if_outer_most_value_is_precise.dart'. j = /*error:INVALID_ASSIGNMENT*/ /*@typeArgs=dynamic*/ []; @@ -193,4 +193,4 @@ constants { Extra constant evaluation status: Evaluated: InstanceInvocation @ org-dartlang-testcase:///infer_from_complex_expressions_if_outer_most_value_is_precise.dart:27:25 -> IntConstant(5) Evaluated: InstanceInvocation @ org-dartlang-testcase:///infer_from_complex_expressions_if_outer_most_value_is_precise.dart:30:32 -> IntConstant(-3) -Extra constant evaluation: evaluated: 74, effectively constant: 2 +Extra constant evaluation: evaluated: 44, effectively constant: 2 diff --git a/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart.weak.expect b/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart.weak.expect index 0bdc6f39db1..cfb8761eef9 100644 --- a/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart.weak.expect @@ -18,10 +18,10 @@ import "org-dartlang-testcase:///infer_from_variables_in_non_cycle_imports_with_ static field core::int* y = inf::x; static method test1() → dynamic { - inf::x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart:13:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + inf::x = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart:13:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. x = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; - self::y = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart:14:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::y = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart:14:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. y = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart.weak.transformed.expect index 0bdc6f39db1..cfb8761eef9 100644 --- a/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart.weak.transformed.expect @@ -18,10 +18,10 @@ import "org-dartlang-testcase:///infer_from_variables_in_non_cycle_imports_with_ static field core::int* y = inf::x; static method test1() → dynamic { - inf::x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart:13:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + inf::x = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart:13:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. x = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; - self::y = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart:14:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::y = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag.dart:14:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. y = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart.weak.expect b/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart.weak.expect index 75422324235..74f640c79a1 100644 --- a/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart.weak.expect @@ -33,10 +33,10 @@ class B extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method test1() → dynamic { - inf::A::x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart:15:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + inf::A::x = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart:15:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. A.x = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; - self::B::y = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart:16:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::B::y = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart:16:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. B.y = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart.weak.transformed.expect index 75422324235..74f640c79a1 100644 --- a/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart.weak.transformed.expect @@ -33,10 +33,10 @@ class B extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method test1() → dynamic { - inf::A::x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart:15:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + inf::A::x = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart:15:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. A.x = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; - self::B::y = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart:16:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::B::y = invalid-expression "pkg/front_end/testcases/inference/infer_from_variables_in_non_cycle_imports_with_flag2.dart:16:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. B.y = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart b/pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart index 0bb3ec15b91..4cb24f05d8f 100644 --- a/pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart +++ b/pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart @@ -6,7 +6,7 @@ library test; test() { - /*@ returnType=dynamic */ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); + /*@returnType=invalid-type*/ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); // Ignore inference for g since Fasta doesn't infer it due to the circularity, // and that's ok. @@ -14,7 +14,7 @@ test() { g() => 0; /*@testedFeatures=inference*/ - var /*@ type=() ->* dynamic */ v = f; + var /*@type=() ->* invalid-type*/ v = f; } main() {} diff --git a/pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart.weak.expect b/pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart.weak.expect index 08ebecb1141..588ca83d817 100644 --- a/pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart.weak.expect @@ -2,25 +2,25 @@ library test; // // Problems in library: // -// pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:9:76: Error: Method not found: 'g'. -// /*@ returnType=dynamic */ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); -// ^ +// pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:9:79: Error: Method not found: 'g'. +// /*@returnType=invalid-type*/ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); +// ^ // // pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:14:3: Error: Can't declare 'g' because it was already used in this scope. // g() => 0; // ^ -// pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:9:76: Context: Previous use of 'g'. -// /*@ returnType=dynamic */ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); -// ^ +// pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:9:79: Context: Previous use of 'g'. +// /*@returnType=invalid-type*/ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); +// ^ // import self as self; import "dart:core" as core; static method test() → dynamic { - function f() → dynamic - return invalid-expression "pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:9:76: Error: Method not found: 'g'. - /*@ returnType=dynamic */ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); - ^"; + function f() → invalid-type + return invalid-expression "pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:9:79: Error: Method not found: 'g'. + /*@returnType=invalid-type*/ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); + ^"; { invalid-expression "pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:14:3: Error: Can't declare 'g' because it was already used in this scope. g() => 0; @@ -28,6 +28,6 @@ static method test() → dynamic { function g() → core::int* return 0; } - () →* dynamic v = f; + () →* invalid-type v = f; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart.weak.transformed.expect index 08ebecb1141..588ca83d817 100644 --- a/pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart.weak.transformed.expect @@ -2,25 +2,25 @@ library test; // // Problems in library: // -// pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:9:76: Error: Method not found: 'g'. -// /*@ returnType=dynamic */ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); -// ^ +// pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:9:79: Error: Method not found: 'g'. +// /*@returnType=invalid-type*/ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); +// ^ // // pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:14:3: Error: Can't declare 'g' because it was already used in this scope. // g() => 0; // ^ -// pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:9:76: Context: Previous use of 'g'. -// /*@ returnType=dynamic */ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); -// ^ +// pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:9:79: Context: Previous use of 'g'. +// /*@returnType=invalid-type*/ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); +// ^ // import self as self; import "dart:core" as core; static method test() → dynamic { - function f() → dynamic - return invalid-expression "pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:9:76: Error: Method not found: 'g'. - /*@ returnType=dynamic */ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); - ^"; + function f() → invalid-type + return invalid-expression "pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:9:79: Error: Method not found: 'g'. + /*@returnType=invalid-type*/ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g(); + ^"; { invalid-expression "pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:14:3: Error: Can't declare 'g' because it was already used in this scope. g() => 0; @@ -28,6 +28,6 @@ static method test() → dynamic { function g() → core::int* return 0; } - () →* dynamic v = f; + () →* invalid-type v = f; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart.weak.expect b/pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart.weak.expect index 73066714a48..454f2debc94 100644 --- a/pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart.weak.expect @@ -33,7 +33,7 @@ class B extends self::A { return 3; } static method foo() → dynamic { - core::String* y = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart:17:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String* y = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart:17:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String y = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.x*/ x; ^" in new self::B::•().{self::B::x}{core::int*} as{TypeError} core::String*; core::int* z = new self::B::•().{self::B::x}{core::int*}; diff --git a/pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart.weak.transformed.expect index 73066714a48..454f2debc94 100644 --- a/pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart.weak.transformed.expect @@ -33,7 +33,7 @@ class B extends self::A { return 3; } static method foo() → dynamic { - core::String* y = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart:17:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String* y = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_overridden_fields2.dart:17:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String y = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.x*/ x; ^" in new self::B::•().{self::B::x}{core::int*} as{TypeError} core::String*; core::int* z = new self::B::•().{self::B::x}{core::int*}; diff --git a/pkg/front_end/testcases/inference/infer_type_on_overridden_fields4.dart.weak.expect b/pkg/front_end/testcases/inference/infer_type_on_overridden_fields4.dart.weak.expect index 357a31169e5..a8b5b219de7 100644 --- a/pkg/front_end/testcases/inference/infer_type_on_overridden_fields4.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_type_on_overridden_fields4.dart.weak.expect @@ -43,7 +43,7 @@ class B extends core::Object implements self::A { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method foo() → dynamic { - core::String* y = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_overridden_fields4.dart:17:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String* y = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_overridden_fields4.dart:17:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String y = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.x*/ x; ^" in new self::B::•().{self::B::x}{core::int*} as{TypeError} core::String*; core::int* z = new self::B::•().{self::B::x}{core::int*}; diff --git a/pkg/front_end/testcases/inference/infer_type_on_overridden_fields4.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_type_on_overridden_fields4.dart.weak.transformed.expect index 357a31169e5..a8b5b219de7 100644 --- a/pkg/front_end/testcases/inference/infer_type_on_overridden_fields4.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_type_on_overridden_fields4.dart.weak.transformed.expect @@ -43,7 +43,7 @@ class B extends core::Object implements self::A { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method foo() → dynamic { - core::String* y = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_overridden_fields4.dart:17:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String* y = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_overridden_fields4.dart:17:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String y = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.x*/ x; ^" in new self::B::•().{self::B::x}{core::int*} as{TypeError} core::String*; core::int* z = new self::B::•().{self::B::x}{core::int*}; diff --git a/pkg/front_end/testcases/inference/infer_type_on_var.dart.weak.expect b/pkg/front_end/testcases/inference/infer_type_on_var.dart.weak.expect index cc7cb0db14c..be69c0e6e99 100644 --- a/pkg/front_end/testcases/inference/infer_type_on_var.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_type_on_var.dart.weak.expect @@ -11,7 +11,7 @@ import "dart:core" as core; static method test1() → dynamic { core::int* x = 3; - x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var.dart:10:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + x = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var.dart:10:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. x = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/inference/infer_type_on_var.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_type_on_var.dart.weak.transformed.expect index cc7cb0db14c..be69c0e6e99 100644 --- a/pkg/front_end/testcases/inference/infer_type_on_var.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_type_on_var.dart.weak.transformed.expect @@ -11,7 +11,7 @@ import "dart:core" as core; static method test1() → dynamic { core::int* x = 3; - x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var.dart:10:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + x = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var.dart:10:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. x = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/inference/infer_type_on_var2.dart.weak.expect b/pkg/front_end/testcases/inference/infer_type_on_var2.dart.weak.expect index d782c48a185..318a2d029ad 100644 --- a/pkg/front_end/testcases/inference/infer_type_on_var2.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_type_on_var2.dart.weak.expect @@ -11,7 +11,7 @@ import "dart:core" as core; static method test2() → dynamic { core::int* x = 3; - x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var2.dart:10:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + x = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var2.dart:10:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. x = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/inference/infer_type_on_var2.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_type_on_var2.dart.weak.transformed.expect index d782c48a185..318a2d029ad 100644 --- a/pkg/front_end/testcases/inference/infer_type_on_var2.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_type_on_var2.dart.weak.transformed.expect @@ -11,7 +11,7 @@ import "dart:core" as core; static method test2() → dynamic { core::int* x = 3; - x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var2.dart:10:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + x = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var2.dart:10:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. x = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart.weak.expect b/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart.weak.expect index 8674afe8f31..f62213944a6 100644 --- a/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart.weak.expect @@ -26,17 +26,17 @@ class A extends core::Object { ; method test1() → dynamic { core::int* a = this.{self::A::x}{core::int*}; - a = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart:13:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + a = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart:13:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. a = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; a = 3; core::int* b = this.{self::A::y}{core::int*}; - b = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart:16:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + b = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart:16:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. b = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; b = 4; core::int* c = this.{self::A::z}{core::int*}; - c = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart:19:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + c = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart:19:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. c = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; c = 4; diff --git a/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart.weak.transformed.expect index 8674afe8f31..f62213944a6 100644 --- a/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart.weak.transformed.expect @@ -26,17 +26,17 @@ class A extends core::Object { ; method test1() → dynamic { core::int* a = this.{self::A::x}{core::int*}; - a = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart:13:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + a = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart:13:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. a = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; a = 3; core::int* b = this.{self::A::y}{core::int*}; - b = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart:16:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + b = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart:16:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. b = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; b = 4; core::int* c = this.{self::A::z}{core::int*}; - c = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart:19:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + c = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_field.dart:19:38: Error: A value of type 'String' can't be assigned to a variable of type 'int'. c = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; c = 4; diff --git a/pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart.weak.expect b/pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart.weak.expect index a0affa1647a..63aa12a147a 100644 --- a/pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart.weak.expect @@ -22,17 +22,17 @@ static field core::int* y = 0; static final field core::int* z = 42; static method test1() → dynamic { core::int* a = self::x; - a = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart:12:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + a = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart:12:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. a = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; a = 3; core::int* b = self::y; - b = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart:15:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + b = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart:15:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. b = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; b = 4; core::int* c = self::z; - c = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart:18:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + c = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart:18:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. c = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; c = 4; diff --git a/pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart.weak.transformed.expect index a0affa1647a..63aa12a147a 100644 --- a/pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart.weak.transformed.expect @@ -22,17 +22,17 @@ static field core::int* y = 0; static final field core::int* z = 42; static method test1() → dynamic { core::int* a = self::x; - a = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart:12:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + a = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart:12:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. a = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; a = 3; core::int* b = self::y; - b = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart:15:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + b = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart:15:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. b = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; b = 4; core::int* c = self::z; - c = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart:18:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + c = invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var_from_top_level.dart:18:36: Error: A value of type 'String' can't be assigned to a variable of type 'int'. c = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; c = 4; diff --git a/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart.weak.expect b/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart.weak.expect index 247bcf02854..dced83dbd82 100644 --- a/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart.weak.expect @@ -38,7 +38,7 @@ class A extends core::Object { } static method foo() → dynamic { core::int* y = new self::C::•().{self::C::x}{core::int*}; - core::String* z = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart:20:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String* z = invalid-expression "pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart:20:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String z = /*error:INVALID_ASSIGNMENT*/ new C(). /*@target=C.x*/ x; ^" in new self::C::•().{self::C::x}{core::int*} as{TypeError} core::String*; } diff --git a/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart.weak.transformed.expect index 247bcf02854..dced83dbd82 100644 --- a/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart.weak.transformed.expect @@ -38,7 +38,7 @@ class A extends core::Object { } static method foo() → dynamic { core::int* y = new self::C::•().{self::C::x}{core::int*}; - core::String* z = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart:20:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String* z = invalid-expression "pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart:20:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String z = /*error:INVALID_ASSIGNMENT*/ new C(). /*@target=C.x*/ x; ^" in new self::C::•().{self::C::x}{core::int*} as{TypeError} core::String*; } diff --git a/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles_b.dart.weak.expect b/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles_b.dart.weak.expect index ebbcf901ba6..0acdfbf1577 100644 --- a/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles_b.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles_b.dart.weak.expect @@ -51,7 +51,7 @@ class A extends core::Object { } static method foo() → dynamic { core::int* y = new test::C::•().{test::C::x}{core::int*}; - core::String* z = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart:20:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String* z = invalid-expression "pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart:20:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String z = /*error:INVALID_ASSIGNMENT*/ new C(). /*@target=C.x*/ x; ^" in new test::C::•().{test::C::x}{core::int*} as{TypeError} core::String*; } diff --git a/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles_b.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles_b.dart.weak.transformed.expect index ebbcf901ba6..0acdfbf1577 100644 --- a/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles_b.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles_b.dart.weak.transformed.expect @@ -51,7 +51,7 @@ class A extends core::Object { } static method foo() → dynamic { core::int* y = new test::C::•().{test::C::x}{core::int*}; - core::String* z = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart:20:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String* z = invalid-expression "pkg/front_end/testcases/inference/infer_type_regardless_of_declaration_order_or_cycles.dart:20:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String z = /*error:INVALID_ASSIGNMENT*/ new C(). /*@target=C.x*/ x; ^" in new test::C::•().{test::C::x}{core::int*} as{TypeError} core::String*; } diff --git a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart.weak.expect b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart.weak.expect index 0dfdff3fb7d..a263f07d328 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart.weak.expect @@ -37,7 +37,7 @@ class B extends core::Object implements self::A { get x() → core::int* return 3; get w() → core::int* - return let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart:15:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + return invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart:15:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. get w => /*error:RETURN_OF_INVALID_TYPE*/ \"hello\"; ^" in "hello" as{TypeError} core::int*; abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode @@ -52,7 +52,7 @@ class B extends core::Object implements self::A { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method foo() → dynamic { - core::String* y = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart:19:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String* y = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart:19:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String y = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.x*/ x; ^" in new self::B::•().{self::B::x}{core::int*} as{TypeError} core::String*; core::int* z = new self::B::•().{self::B::x}{core::int*}; diff --git a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart.weak.transformed.expect index 0dfdff3fb7d..a263f07d328 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart.weak.transformed.expect @@ -37,7 +37,7 @@ class B extends core::Object implements self::A { get x() → core::int* return 3; get w() → core::int* - return let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart:15:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + return invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart:15:45: Error: A value of type 'String' can't be assigned to a variable of type 'int'. get w => /*error:RETURN_OF_INVALID_TYPE*/ \"hello\"; ^" in "hello" as{TypeError} core::int*; abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode @@ -52,7 +52,7 @@ class B extends core::Object implements self::A { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method foo() → dynamic { - core::String* y = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart:19:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String* y = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart:19:68: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String y = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.x*/ x; ^" in new self::B::•().{self::B::x}{core::int*} as{TypeError} core::String*; core::int* z = new self::B::•().{self::B::x}{core::int*}; diff --git a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_4.dart.weak.expect b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_4.dart.weak.expect index 4c24549069c..ce66d879775 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_4.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_4.dart.weak.expect @@ -34,7 +34,7 @@ class B extends self::A { return this.{self::B::y}{self::B::E*}; } static method foo() → dynamic { - core::int* y = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_4.dart:18:73: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::int* y = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_4.dart:18:73: Error: A value of type 'String' can't be assigned to a variable of type 'int'. int y = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.x*/ x; ^" in new self::B::•().{self::B::x}{core::String*} as{TypeError} core::int*; core::String* z = new self::B::•().{self::B::x}{core::String*}; diff --git a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_4.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_4.dart.weak.transformed.expect index 4c24549069c..ce66d879775 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_4.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_4.dart.weak.transformed.expect @@ -34,7 +34,7 @@ class B extends self::A { return this.{self::B::y}{self::B::E*}; } static method foo() → dynamic { - core::int* y = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_4.dart:18:73: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::int* y = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_4.dart:18:73: Error: A value of type 'String' can't be assigned to a variable of type 'int'. int y = /*error:INVALID_ASSIGNMENT*/ new B(). /*@target=B.x*/ x; ^" in new self::B::•().{self::B::x}{core::String*} as{TypeError} core::int*; core::String* z = new self::B::•().{self::B::x}{core::String*}; diff --git a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart.weak.expect b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart.weak.expect index f76b2608bcd..5b19a396bfe 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart.weak.expect @@ -66,7 +66,7 @@ class B extends self::A implemen method m(dynamic a, (dynamic, self::B::E*) →* dynamic f) → core::String* {} } static method foo() → dynamic { - core::int* y = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart:30:25: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::int* y = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart:30:25: Error: A value of type 'String' can't be assigned to a variable of type 'int'. . /*@target=B.m*/ m(null, null); ^" in new self::B::•().{self::B::m}(null, null){(dynamic, (dynamic, dynamic) →* dynamic) →* core::String*} as{TypeError} core::int*; core::String* z = new self::B::•().{self::B::m}(null, null){(dynamic, (dynamic, dynamic) →* dynamic) →* core::String*}; diff --git a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart.weak.transformed.expect index f76b2608bcd..5b19a396bfe 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart.weak.transformed.expect @@ -66,7 +66,7 @@ class B extends self::A implemen method m(dynamic a, (dynamic, self::B::E*) →* dynamic f) → core::String* {} } static method foo() → dynamic { - core::int* y = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart:30:25: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::int* y = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_5.dart:30:25: Error: A value of type 'String' can't be assigned to a variable of type 'int'. . /*@target=B.m*/ m(null, null); ^" in new self::B::•().{self::B::m}(null, null){(dynamic, (dynamic, dynamic) →* dynamic) →* core::String*} as{TypeError} core::int*; core::String* z = new self::B::•().{self::B::m}(null, null){(dynamic, (dynamic, dynamic) →* dynamic) →* core::String*}; diff --git a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart.weak.expect b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart.weak.expect index b156e857f48..27f0da3d123 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart.weak.expect @@ -53,7 +53,7 @@ class B extends self::A implemen method m(dynamic a, (dynamic, core::int*) →* dynamic f) → self::A* {} } static method foo() → dynamic { - core::int* y = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart:30:29: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::int* y = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart:30:29: Error: A value of type 'String' can't be assigned to a variable of type 'int'. . /*@target=A.value*/ value; ^" in new self::B::•().{self::B::m}(null, null){(dynamic, (dynamic, core::int*) →* dynamic) →* self::A*}.{self::A::value}{core::String*} as{TypeError} core::int*; core::String* z = new self::B::•().{self::B::m}(null, null){(dynamic, (dynamic, core::int*) →* dynamic) →* self::A*}.{self::A::value}{core::String*}; diff --git a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart.weak.transformed.expect index b156e857f48..27f0da3d123 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart.weak.transformed.expect @@ -53,7 +53,7 @@ class B extends self::A implemen method m(dynamic a, (dynamic, core::int*) →* dynamic f) → self::A* {} } static method foo() → dynamic { - core::int* y = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart:30:29: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::int* y = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart:30:29: Error: A value of type 'String' can't be assigned to a variable of type 'int'. . /*@target=A.value*/ value; ^" in new self::B::•().{self::B::m}(null, null){(dynamic, (dynamic, core::int*) →* dynamic) →* self::A*}.{self::A::value}{core::String*} as{TypeError} core::int*; core::String* z = new self::B::•().{self::B::m}(null, null){(dynamic, (dynamic, core::int*) →* dynamic) →* self::A*}.{self::A::value}{core::String*}; diff --git a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle_a.dart.weak.expect b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle_a.dart.weak.expect index 5764bd12751..e7555d552f3 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle_a.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle_a.dart.weak.expect @@ -78,7 +78,7 @@ class B extends test::A implemen method m(dynamic a, (dynamic, core::int*) →* dynamic f) → test::A* {} } static method foo() → dynamic { - core::int* y = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart:30:29: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::int* y = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart:30:29: Error: A value of type 'String' can't be assigned to a variable of type 'int'. . /*@target=A.value*/ value; ^" in new test::B::•().{test::B::m}(null, null){(dynamic, (dynamic, core::int*) →* dynamic) →* test::A*}.{test::A::value}{core::String*} as{TypeError} core::int*; core::String* z = new test::B::•().{test::B::m}(null, null){(dynamic, (dynamic, core::int*) →* dynamic) →* test::A*}.{test::A::value}{core::String*}; diff --git a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle_a.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle_a.dart.weak.transformed.expect index 5764bd12751..e7555d552f3 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle_a.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle_a.dart.weak.transformed.expect @@ -78,7 +78,7 @@ class B extends test::A implemen method m(dynamic a, (dynamic, core::int*) →* dynamic f) → test::A* {} } static method foo() → dynamic { - core::int* y = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart:30:29: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::int* y = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_in_library_cycle.dart:30:29: Error: A value of type 'String' can't be assigned to a variable of type 'int'. . /*@target=A.value*/ value; ^" in new test::B::•().{test::B::m}(null, null){(dynamic, (dynamic, core::int*) →* dynamic) →* test::A*}.{test::A::value}{core::String*} as{TypeError} core::int*; core::String* z = new test::B::•().{test::B::m}(null, null){(dynamic, (dynamic, core::int*) →* dynamic) →* test::A*}.{test::A::value}{core::String*}; diff --git a/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart.weak.expect b/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart.weak.expect index 086fb1f6901..4e36d348c54 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart.weak.expect @@ -53,7 +53,7 @@ class Bar*> extends core::Object { ; method foo(generic-covariant-impl self::Bar::T* t) → void { for (core::String* i in t) { - core::int* x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:15:44: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::int* x = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:15:44: Error: A value of type 'String' can't be assigned to a variable of type 'int'. int x = /*error:INVALID_ASSIGNMENT*/ i; ^" in i as{TypeError} core::int*; } @@ -75,7 +75,7 @@ class Baz* list = []; for (self::Foo* x in list) { - core::String* y = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:32:45: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. + core::String* y = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:32:45: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. - 'Foo' is from 'pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart'. String y = /*error:INVALID_ASSIGNMENT*/ x; ^" in x as{TypeError} core::String*; @@ -103,31 +103,31 @@ static method test() → dynamic { for (dynamic x in list) { core::String* y = x as{TypeError,ForDynamic} core::String*; } - for (final self::Foo* #t4 in list) { - core::String* x = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:39:15: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. + for (final self::Foo* #t1 in list) { + core::String* x = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:39:15: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. - 'Foo' is from 'pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart'. Try changing the type of the variable. for (String x in /*error:FOR_IN_OF_INVALID_ELEMENT_TYPE*/ list) { - ^" in #t4 as{TypeError} core::String*; + ^" in #t1 as{TypeError} core::String*; core::String* y = x; } dynamic z; - for (final self::Foo* #t6 in list) { - z = #t6; + for (final self::Foo* #t2 in list) { + z = #t2; core::String* y = z as{TypeError,ForDynamic} core::String*; } core::Iterable* iter = list; - for (final dynamic #t7 in iter) { - self::Foo* x = #t7 as{TypeError,ForDynamic} self::Foo*; + for (final dynamic #t3 in iter) { + self::Foo* x = #t3 as{TypeError,ForDynamic} self::Foo*; self::Foo* y = x; } dynamic iter2 = list; - for (final dynamic #t8 in iter2 as{TypeError,ForDynamic} core::Iterable*) { - self::Foo* x = #t8 as{TypeError,ForDynamic} self::Foo*; + for (final dynamic #t4 in iter2 as{TypeError,ForDynamic} core::Iterable*) { + self::Foo* x = #t4 as{TypeError,ForDynamic} self::Foo*; self::Foo* y = x; } core::Map* map = {}; - for (dynamic x in let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:60:70: Error: The type 'Map' used in the 'for' loop must implement 'Iterable'. + for (dynamic x in invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:60:70: Error: The type 'Map' used in the 'for' loop must implement 'Iterable'. - 'Map' is from 'dart:core'. - 'Foo' is from 'pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart'. - 'Iterable' is from 'dart:core'. diff --git a/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart.weak.transformed.expect index 5eb2f8783ab..d522cdb7ba6 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart.weak.transformed.expect @@ -57,7 +57,7 @@ class Bar*> extends core::Object { for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { core::String* i = :sync-for-iterator.{core::Iterator::current}{core::String*}; { - core::int* x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:15:44: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::int* x = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:15:44: Error: A value of type 'String' can't be assigned to a variable of type 'int'. int x = /*error:INVALID_ASSIGNMENT*/ i; ^" in i as{TypeError} core::int*; } @@ -85,7 +85,7 @@ class Baz* :sync-for-iterator = list.{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final self::Foo* #t4 = :sync-for-iterator.{core::Iterator::current}{self::Foo*}; + final self::Foo* #t1 = :sync-for-iterator.{core::Iterator::current}{self::Foo*}; { - core::String* x = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:39:15: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. + core::String* x = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:39:15: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. - 'Foo' is from 'pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart'. Try changing the type of the variable. for (String x in /*error:FOR_IN_OF_INVALID_ELEMENT_TYPE*/ list) { - ^" in #t4 as{TypeError} core::String*; + ^" in #t1 as{TypeError} core::String*; core::String* y = x; } } @@ -145,9 +145,9 @@ Try changing the type of the variable. { core::Iterator* :sync-for-iterator = list.{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final self::Foo* #t6 = :sync-for-iterator.{core::Iterator::current}{self::Foo*}; + final self::Foo* #t2 = :sync-for-iterator.{core::Iterator::current}{self::Foo*}; { - z = #t6; + z = #t2; core::String* y = z as{TypeError,ForDynamic} core::String*; } } @@ -156,9 +156,9 @@ Try changing the type of the variable. { core::Iterator* :sync-for-iterator = iter.{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t7 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t3 = :sync-for-iterator.{core::Iterator::current}{dynamic}; { - self::Foo* x = #t7 as{TypeError,ForDynamic} self::Foo*; + self::Foo* x = #t3 as{TypeError,ForDynamic} self::Foo*; self::Foo* y = x; } } @@ -167,23 +167,23 @@ Try changing the type of the variable. { core::Iterator* :sync-for-iterator = (iter2 as{TypeError,ForDynamic} core::Iterable*).{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t8 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t4 = :sync-for-iterator.{core::Iterator::current}{dynamic}; { - self::Foo* x = #t8 as{TypeError,ForDynamic} self::Foo*; + self::Foo* x = #t4 as{TypeError,ForDynamic} self::Foo*; self::Foo* y = x; } } } core::Map* map = {}; { - core::Iterator* :sync-for-iterator = (let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:60:70: Error: The type 'Map' used in the 'for' loop must implement 'Iterable'. + core::Iterator* :sync-for-iterator = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart:60:70: Error: The type 'Map' used in the 'for' loop must implement 'Iterable'. - 'Map' is from 'dart:core'. - 'Foo' is from 'pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop.dart'. - 'Iterable' is from 'dart:core'. for (var /*@ type=dynamic */ x in /*error:FOR_IN_OF_INVALID_TYPE*/ map) { - ^" in map as{TypeError} core::Iterable*).{core::Iterable::iterator}{core::Iterator*}; + ^" in map as{TypeError} core::Iterable*.{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - dynamic x = :sync-for-iterator.{core::Iterator::current}{dynamic}; + dynamic x = :sync-for-iterator.{core::Iterator::current}{Never}; { core::String* y = x as{TypeError,ForDynamic} core::String*; } diff --git a/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart.weak.expect b/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart.weak.expect index c01f6d8ed08..5a5abe3c5a6 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart.weak.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart.weak.expect @@ -56,7 +56,7 @@ class Bar*> extends core::Object { ; method foo(generic-covariant-impl self::Bar::T* t) → dynamic async { await for (core::String* i in t) { - core::int* x = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:17:44: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::int* x = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:17:44: Error: A value of type 'String' can't be assigned to a variable of type 'int'. int x = /*error:INVALID_ASSIGNMENT*/ i; ^" in i as{TypeError} core::int*; } @@ -78,7 +78,7 @@ class Baz extends asy::Stream* myStream = self::MyStream::•(); await for (self::Foo* x in myStream) { - core::String* y = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:38:45: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. + core::String* y = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:38:45: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. - 'Foo' is from 'pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart'. String y = /*error:INVALID_ASSIGNMENT*/ x; ^" in x as{TypeError} core::String*; @@ -157,31 +157,31 @@ static method test() → dynamic async { await for (dynamic x in myStream) { core::String* y = x as{TypeError,ForDynamic} core::String*; } - await for (final self::Foo* #t4 in myStream) { - core::String* x = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:45:21: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. + await for (final self::Foo* #t1 in myStream) { + core::String* x = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:45:21: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. - 'Foo' is from 'pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart'. Try changing the type of the variable. await for (String x in /*error:FOR_IN_OF_INVALID_ELEMENT_TYPE*/ myStream) { - ^" in #t4 as{TypeError} core::String*; + ^" in #t1 as{TypeError} core::String*; core::String* y = x; } dynamic z; - await for (final self::Foo* #t6 in myStream) { - z = #t6; + await for (final self::Foo* #t2 in myStream) { + z = #t2; core::String* y = z as{TypeError,ForDynamic} core::String*; } asy::Stream* stream = myStream; - await for (final dynamic #t7 in stream) { - self::Foo* x = #t7 as{TypeError,ForDynamic} self::Foo*; + await for (final dynamic #t3 in stream) { + self::Foo* x = #t3 as{TypeError,ForDynamic} self::Foo*; self::Foo* y = x; } dynamic stream2 = myStream; - await for (final dynamic #t8 in stream2 as{TypeError,ForDynamic} asy::Stream*) { - self::Foo* x = #t8 as{TypeError,ForDynamic} self::Foo*; + await for (final dynamic #t4 in stream2 as{TypeError,ForDynamic} asy::Stream*) { + self::Foo* x = #t4 as{TypeError,ForDynamic} self::Foo*; self::Foo* y = x; } core::Map* map = {}; - await for (dynamic x in let final Never* #t9 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:66:76: Error: The type 'Map' used in the 'for' loop must implement 'Stream'. + await for (dynamic x in invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:66:76: Error: The type 'Map' used in the 'for' loop must implement 'Stream'. - 'Map' is from 'dart:core'. - 'Foo' is from 'pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart'. - 'Stream' is from 'dart:async'. diff --git a/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart.weak.transformed.expect index a8fa0944f6d..ecf46cdc8b1 100644 --- a/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart.weak.transformed.expect @@ -82,7 +82,7 @@ class Bar*> extends core::Object { if(_in::unsafeCast(:result)) { core::String* i = :for-iterator.{asy::_StreamIterator::current}{core::String*}; { - core::int* x = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:17:44: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + core::int* x = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:17:44: Error: A value of type 'String' can't be assigned to a variable of type 'int'. int x = /*error:INVALID_ASSIGNMENT*/ i; ^" in i as{TypeError} core::int*; } @@ -92,7 +92,7 @@ class Bar*> extends core::Object { } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t4 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t3 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } @@ -146,12 +146,12 @@ class Baz}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t4 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t5 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { self::Baz::T* i = :for-iterator.{asy::_StreamIterator::current}{self::Baz::T*}; { - core::int* x = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:25:44: Error: A value of type 'T' can't be assigned to a variable of type 'int'. + core::int* x = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:25:44: Error: A value of type 'T' can't be assigned to a variable of type 'int'. int x = /*error:INVALID_ASSIGNMENT*/ i; ^" in i as{TypeError} core::int*; self::Baz::T* y = i; @@ -162,7 +162,7 @@ class Baz?} == null)) { - [yield] let dynamic #t8 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t6 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } @@ -264,12 +264,12 @@ static method test() → dynamic /* originally async */ { try #L6: while (true) { - dynamic #t9 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t10 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t7 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t8 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { self::Foo* x = :for-iterator.{asy::_StreamIterator::current}{self::Foo*}; { - core::String* y = let final Never* #t11 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:38:45: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. + core::String* y = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:38:45: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. - 'Foo' is from 'pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart'. String y = /*error:INVALID_ASSIGNMENT*/ x; ^" in x as{TypeError} core::String*; @@ -280,7 +280,7 @@ static method test() → dynamic /* originally async */ { } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t12 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t9 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } @@ -290,8 +290,8 @@ static method test() → dynamic /* originally async */ { try #L7: while (true) { - dynamic #t13 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t14 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t10 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t11 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { dynamic x = :for-iterator.{asy::_StreamIterator::current}{dynamic}; { @@ -303,7 +303,7 @@ static method test() → dynamic /* originally async */ { } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t15 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t12 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } @@ -313,16 +313,16 @@ static method test() → dynamic /* originally async */ { try #L8: while (true) { - dynamic #t16 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t17 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t13 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t14 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { - final self::Foo* #t18 = :for-iterator.{asy::_StreamIterator::current}{self::Foo*}; + final self::Foo* #t15 = :for-iterator.{asy::_StreamIterator::current}{self::Foo*}; { - core::String* x = let final Never* #t19 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:45:21: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. + core::String* x = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:45:21: Error: A value of type 'Foo' can't be assigned to a variable of type 'String'. - 'Foo' is from 'pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart'. Try changing the type of the variable. await for (String x in /*error:FOR_IN_OF_INVALID_ELEMENT_TYPE*/ myStream) { - ^" in #t18 as{TypeError} core::String*; + ^" in #t15 as{TypeError} core::String*; core::String* y = x; } } @@ -331,7 +331,7 @@ Try changing the type of the variable. } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t20 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t16 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } @@ -342,12 +342,12 @@ Try changing the type of the variable. try #L9: while (true) { - dynamic #t21 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t22 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t17 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t18 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { - final self::Foo* #t23 = :for-iterator.{asy::_StreamIterator::current}{self::Foo*}; + final self::Foo* #t19 = :for-iterator.{asy::_StreamIterator::current}{self::Foo*}; { - z = #t23; + z = #t19; core::String* y = z as{TypeError,ForDynamic} core::String*; } } @@ -356,7 +356,7 @@ Try changing the type of the variable. } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t24 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t20 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } @@ -366,6 +366,31 @@ Try changing the type of the variable. asy::_StreamIterator* :for-iterator = new asy::_StreamIterator::•(:stream); try #L10: + while (true) { + dynamic #t21 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t22 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + if(_in::unsafeCast(:result)) { + final dynamic #t23 = :for-iterator.{asy::_StreamIterator::current}{dynamic}; + { + self::Foo* x = #t23 as{TypeError,ForDynamic} self::Foo*; + self::Foo* y = x; + } + } + else + break #L10; + } + finally + if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { + [yield] let dynamic #t24 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + :result; + } + } + dynamic stream2 = myStream; + { + asy::Stream* :stream = stream2 as{TypeError,ForDynamic} asy::Stream*; + asy::_StreamIterator* :for-iterator = new asy::_StreamIterator::•(:stream); + try + #L11: while (true) { dynamic #t25 = asy::_asyncStarMoveNextHelper(:stream); [yield] let dynamic #t26 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; @@ -377,7 +402,7 @@ Try changing the type of the variable. } } else - break #L10; + break #L11; } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { @@ -385,34 +410,9 @@ Try changing the type of the variable. :result; } } - dynamic stream2 = myStream; - { - asy::Stream* :stream = stream2 as{TypeError,ForDynamic} asy::Stream*; - asy::_StreamIterator* :for-iterator = new asy::_StreamIterator::•(:stream); - try - #L11: - while (true) { - dynamic #t29 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t30 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; - if(_in::unsafeCast(:result)) { - final dynamic #t31 = :for-iterator.{asy::_StreamIterator::current}{dynamic}; - { - self::Foo* x = #t31 as{TypeError,ForDynamic} self::Foo*; - self::Foo* y = x; - } - } - else - break #L11; - } - finally - if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t32 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; - :result; - } - } core::Map* map = {}; { - asy::Stream* :stream = let final Never* #t33 = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:66:76: Error: The type 'Map' used in the 'for' loop must implement 'Stream'. + Never :stream = invalid-expression "pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart:66:76: Error: The type 'Map' used in the 'for' loop must implement 'Stream'. - 'Map' is from 'dart:core'. - 'Foo' is from 'pkg/front_end/testcases/inference/infer_types_on_loop_indices_for_each_loop_async.dart'. - 'Stream' is from 'dart:async'. @@ -422,8 +422,8 @@ Try changing the type of the variable. try #L12: while (true) { - dynamic #t34 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t35 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t29 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t30 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { dynamic x = :for-iterator.{asy::_StreamIterator::current}{dynamic}; { @@ -435,7 +435,7 @@ Try changing the type of the variable. } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t36 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t31 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } diff --git a/pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart.weak.expect b/pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart.weak.expect index 15684fc0058..2e086bfea05 100644 --- a/pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart.weak.expect +++ b/pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart.weak.expect @@ -11,7 +11,7 @@ import "dart:core" as core; static method test((T*) →* T* f) → void { (core::int*) →* core::int* func; - func = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart:10:12: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. + func = invalid-expression "pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart:10:12: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. func = f.call; ^" in f.call as{TypeError} (core::int*) →* core::int*; } diff --git a/pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart.weak.transformed.expect index 15684fc0058..2e086bfea05 100644 --- a/pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart.weak.transformed.expect @@ -11,7 +11,7 @@ import "dart:core" as core; static method test((T*) →* T* f) → void { (core::int*) →* core::int* func; - func = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart:10:12: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. + func = invalid-expression "pkg/front_end/testcases/inference/instantiate_tearoff_of_call.dart:10:12: Error: A value of type 'T Function(T)' can't be assigned to a variable of type 'int Function(int)'. func = f.call; ^" in f.call as{TypeError} (core::int*) →* core::int*; } diff --git a/pkg/front_end/testcases/inference/list_literals.dart.weak.expect b/pkg/front_end/testcases/inference/list_literals.dart.weak.expect index fb63017f8ee..a4e38e453fb 100644 --- a/pkg/front_end/testcases/inference/list_literals.dart.weak.expect +++ b/pkg/front_end/testcases/inference/list_literals.dart.weak.expect @@ -19,10 +19,10 @@ import "dart:core" as core; static method test1() → dynamic { core::List* x = [1, 2, 3]; - x.{core::List::add}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/list_literals.dart:10:70: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + x.{core::List::add}(invalid-expression "pkg/front_end/testcases/inference/list_literals.dart:10:70: Error: The argument type 'String' can't be assigned to the parameter type 'int'. x. /*@target=List.add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'); ^" in "hi" as{TypeError} core::int*){(core::int*) →* void}; - x.{core::List::add}(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/list_literals.dart:11:70: Error: The argument type 'double' can't be assigned to the parameter type 'int'. + x.{core::List::add}(invalid-expression "pkg/front_end/testcases/inference/list_literals.dart:11:70: Error: The argument type 'double' can't be assigned to the parameter type 'int'. x. /*@target=List.add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 4.0); ^" in 4.0 as{TypeError} core::int*){(core::int*) →* void}; x.{core::List::add}(4){(core::int*) →* void}; @@ -30,7 +30,7 @@ static method test1() → dynamic { } static method test2() → dynamic { core::List* x = [1, 2.0, 3]; - x.{core::List::add}(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/list_literals.dart:18:70: Error: The argument type 'String' can't be assigned to the parameter type 'num'. + x.{core::List::add}(invalid-expression "pkg/front_end/testcases/inference/list_literals.dart:18:70: Error: The argument type 'String' can't be assigned to the parameter type 'num'. x. /*@target=List.add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'); ^" in "hi" as{TypeError} core::num*){(core::num*) →* void}; x.{core::List::add}(4.0){(core::num*) →* void}; diff --git a/pkg/front_end/testcases/inference/list_literals.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/list_literals.dart.weak.transformed.expect index 1f10df90250..6631f988de9 100644 --- a/pkg/front_end/testcases/inference/list_literals.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/list_literals.dart.weak.transformed.expect @@ -19,10 +19,10 @@ import "dart:core" as core; static method test1() → dynamic { core::List* x = core::_GrowableList::_literal3(1, 2, 3); - x.{core::List::add}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/list_literals.dart:10:70: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + x.{core::List::add}(invalid-expression "pkg/front_end/testcases/inference/list_literals.dart:10:70: Error: The argument type 'String' can't be assigned to the parameter type 'int'. x. /*@target=List.add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'); ^" in "hi" as{TypeError} core::int*){(core::int*) →* void}; - x.{core::List::add}(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/list_literals.dart:11:70: Error: The argument type 'double' can't be assigned to the parameter type 'int'. + x.{core::List::add}(invalid-expression "pkg/front_end/testcases/inference/list_literals.dart:11:70: Error: The argument type 'double' can't be assigned to the parameter type 'int'. x. /*@target=List.add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 4.0); ^" in 4.0 as{TypeError} core::int*){(core::int*) →* void}; x.{core::List::add}(4){(core::int*) →* void}; @@ -30,7 +30,7 @@ static method test1() → dynamic { } static method test2() → dynamic { core::List* x = core::_GrowableList::_literal3(1, 2.0, 3); - x.{core::List::add}(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/list_literals.dart:18:70: Error: The argument type 'String' can't be assigned to the parameter type 'num'. + x.{core::List::add}(invalid-expression "pkg/front_end/testcases/inference/list_literals.dart:18:70: Error: The argument type 'String' can't be assigned to the parameter type 'num'. x. /*@target=List.add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'); ^" in "hi" as{TypeError} core::num*){(core::num*) →* void}; x.{core::List::add}(4.0){(core::num*) →* void}; diff --git a/pkg/front_end/testcases/inference/list_literals_top_level.dart.weak.expect b/pkg/front_end/testcases/inference/list_literals_top_level.dart.weak.expect index ae6d28e9ed0..75f767f9ef7 100644 --- a/pkg/front_end/testcases/inference/list_literals_top_level.dart.weak.expect +++ b/pkg/front_end/testcases/inference/list_literals_top_level.dart.weak.expect @@ -20,17 +20,17 @@ import "dart:core" as core; static field core::List* x1 = [1, 2, 3]; static field core::List* x2 = [1, 2.0, 3]; static method test1() → dynamic { - self::x1.{core::List::add}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/list_literals_top_level.dart:10:71: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::x1.{core::List::add}(invalid-expression "pkg/front_end/testcases/inference/list_literals_top_level.dart:10:71: Error: The argument type 'String' can't be assigned to the parameter type 'int'. x1. /*@target=List.add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'); ^" in "hi" as{TypeError} core::int*){(core::int*) →* void}; - self::x1.{core::List::add}(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/list_literals_top_level.dart:11:71: Error: The argument type 'double' can't be assigned to the parameter type 'int'. + self::x1.{core::List::add}(invalid-expression "pkg/front_end/testcases/inference/list_literals_top_level.dart:11:71: Error: The argument type 'double' can't be assigned to the parameter type 'int'. x1. /*@target=List.add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 4.0); ^" in 4.0 as{TypeError} core::int*){(core::int*) →* void}; self::x1.{core::List::add}(4){(core::int*) →* void}; core::List* y = self::x1; } static method test2() → dynamic { - self::x2.{core::List::add}(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/list_literals_top_level.dart:18:71: Error: The argument type 'String' can't be assigned to the parameter type 'num'. + self::x2.{core::List::add}(invalid-expression "pkg/front_end/testcases/inference/list_literals_top_level.dart:18:71: Error: The argument type 'String' can't be assigned to the parameter type 'num'. x2. /*@target=List.add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'); ^" in "hi" as{TypeError} core::num*){(core::num*) →* void}; self::x2.{core::List::add}(4.0){(core::num*) →* void}; diff --git a/pkg/front_end/testcases/inference/list_literals_top_level.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/list_literals_top_level.dart.weak.transformed.expect index 3155e773dfc..ec2a9853f62 100644 --- a/pkg/front_end/testcases/inference/list_literals_top_level.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/list_literals_top_level.dart.weak.transformed.expect @@ -20,17 +20,17 @@ import "dart:core" as core; static field core::List* x1 = core::_GrowableList::_literal3(1, 2, 3); static field core::List* x2 = core::_GrowableList::_literal3(1, 2.0, 3); static method test1() → dynamic { - self::x1.{core::List::add}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/list_literals_top_level.dart:10:71: Error: The argument type 'String' can't be assigned to the parameter type 'int'. + self::x1.{core::List::add}(invalid-expression "pkg/front_end/testcases/inference/list_literals_top_level.dart:10:71: Error: The argument type 'String' can't be assigned to the parameter type 'int'. x1. /*@target=List.add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'); ^" in "hi" as{TypeError} core::int*){(core::int*) →* void}; - self::x1.{core::List::add}(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/list_literals_top_level.dart:11:71: Error: The argument type 'double' can't be assigned to the parameter type 'int'. + self::x1.{core::List::add}(invalid-expression "pkg/front_end/testcases/inference/list_literals_top_level.dart:11:71: Error: The argument type 'double' can't be assigned to the parameter type 'int'. x1. /*@target=List.add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 4.0); ^" in 4.0 as{TypeError} core::int*){(core::int*) →* void}; self::x1.{core::List::add}(4){(core::int*) →* void}; core::List* y = self::x1; } static method test2() → dynamic { - self::x2.{core::List::add}(let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/list_literals_top_level.dart:18:71: Error: The argument type 'String' can't be assigned to the parameter type 'num'. + self::x2.{core::List::add}(invalid-expression "pkg/front_end/testcases/inference/list_literals_top_level.dart:18:71: Error: The argument type 'String' can't be assigned to the parameter type 'num'. x2. /*@target=List.add*/ add(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'); ^" in "hi" as{TypeError} core::num*){(core::num*) →* void}; self::x2.{core::List::add}(4.0){(core::num*) →* void}; diff --git a/pkg/front_end/testcases/inference/local_return_and_yield.dart.weak.expect b/pkg/front_end/testcases/inference/local_return_and_yield.dart.weak.expect index 3d37ae4bca8..421e71c56d6 100644 --- a/pkg/front_end/testcases/inference/local_return_and_yield.dart.weak.expect +++ b/pkg/front_end/testcases/inference/local_return_and_yield.dart.weak.expect @@ -19,7 +19,7 @@ static method main() → dynamic { return (core::int* x) → core::int* => x; } function b() → asy::Future<(core::int*) →* core::int*>* async { - return let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/local_return_and_yield.dart:19:38: Error: A value of type 'Future' can't be assigned to a variable of type 'FutureOr'. + return invalid-expression "pkg/front_end/testcases/inference/local_return_and_yield.dart:19:38: Error: A value of type 'Future' can't be assigned to a variable of type 'FutureOr'. - 'Future' is from 'dart:async'. return /*@ returnType=dynamic */ (/*@ type=dynamic */ x) => x; ^" in ((dynamic x) → dynamic => x) as{TypeError} FutureOr<(core::int*) →* core::int*>*; diff --git a/pkg/front_end/testcases/inference/local_return_and_yield.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/local_return_and_yield.dart.weak.transformed.expect index 00b4229b363..1b776650d05 100644 --- a/pkg/front_end/testcases/inference/local_return_and_yield.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/local_return_and_yield.dart.weak.transformed.expect @@ -30,7 +30,7 @@ static method main() → dynamic { try { #L1: { - :return_value = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/local_return_and_yield.dart:19:38: Error: A value of type 'Future' can't be assigned to a variable of type 'FutureOr'. + :return_value = invalid-expression "pkg/front_end/testcases/inference/local_return_and_yield.dart:19:38: Error: A value of type 'Future' can't be assigned to a variable of type 'FutureOr'. - 'Future' is from 'dart:async'. return /*@ returnType=dynamic */ (/*@ type=dynamic */ x) => x; ^" in ((dynamic x) → dynamic => x) as{TypeError} FutureOr<(core::int*) →* core::int*>*; diff --git a/pkg/front_end/testcases/inference/map_literals.dart.weak.expect b/pkg/front_end/testcases/inference/map_literals.dart.weak.expect index 298f552c512..f3f2fd74957 100644 --- a/pkg/front_end/testcases/inference/map_literals.dart.weak.expect +++ b/pkg/front_end/testcases/inference/map_literals.dart.weak.expect @@ -29,13 +29,13 @@ import "dart:core" as core; static method test1() → dynamic { core::Map* x = {1: "x", 2: "y"}; x.{core::Map::[]=}(3, "z"){(core::int*, core::String*) →* void}; - x.{core::Map::[]=}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:12:46: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + x.{core::Map::[]=}(invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:12:46: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'] = 'w'; ^" in "hi" as{TypeError} core::int*, "w"){(core::int*, core::String*) →* void}; - x.{core::Map::[]=}(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:14:46: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + x.{core::Map::[]=}(invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:14:46: Error: A value of type 'double' can't be assigned to a variable of type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 4.0] = 'u'; ^" in 4.0 as{TypeError} core::int*, "u"){(core::int*, core::String*) →* void}; - x.{core::Map::[]=}(3, let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:15:60: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + x.{core::Map::[]=}(3, invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:15:60: Error: A value of type 'int' can't be assigned to a variable of type 'String'. x /*@target=Map.[]=*/ [3] = /*error:INVALID_ASSIGNMENT*/ 42; ^" in 42 as{TypeError} core::String*){(core::int*, core::String*) →* void}; core::Map* y = x; @@ -43,11 +43,11 @@ static method test1() → dynamic { static method test2() → dynamic { core::Map* x = {1: "x", 2: "y", 3.0: core::RegExp::•(".")}; x.{core::Map::[]=}(3, "z"){(core::num*, core::Pattern*) →* void}; - x.{core::Map::[]=}(let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:27:46: Error: A value of type 'String' can't be assigned to a variable of type 'num'. + x.{core::Map::[]=}(invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:27:46: Error: A value of type 'String' can't be assigned to a variable of type 'num'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'] = 'w'; ^" in "hi" as{TypeError} core::num*, "w"){(core::num*, core::Pattern*) →* void}; x.{core::Map::[]=}(4.0, "u"){(core::num*, core::Pattern*) →* void}; - x.{core::Map::[]=}(3, let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:29:60: Error: A value of type 'int' can't be assigned to a variable of type 'Pattern'. + x.{core::Map::[]=}(3, invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:29:60: Error: A value of type 'int' can't be assigned to a variable of type 'Pattern'. - 'Pattern' is from 'dart:core'. x /*@target=Map.[]=*/ [3] = /*error:INVALID_ASSIGNMENT*/ 42; ^" in 42 as{TypeError} core::Pattern*){(core::num*, core::Pattern*) →* void}; diff --git a/pkg/front_end/testcases/inference/map_literals.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/map_literals.dart.weak.transformed.expect index 298f552c512..f3f2fd74957 100644 --- a/pkg/front_end/testcases/inference/map_literals.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/map_literals.dart.weak.transformed.expect @@ -29,13 +29,13 @@ import "dart:core" as core; static method test1() → dynamic { core::Map* x = {1: "x", 2: "y"}; x.{core::Map::[]=}(3, "z"){(core::int*, core::String*) →* void}; - x.{core::Map::[]=}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:12:46: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + x.{core::Map::[]=}(invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:12:46: Error: A value of type 'String' can't be assigned to a variable of type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'] = 'w'; ^" in "hi" as{TypeError} core::int*, "w"){(core::int*, core::String*) →* void}; - x.{core::Map::[]=}(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:14:46: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + x.{core::Map::[]=}(invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:14:46: Error: A value of type 'double' can't be assigned to a variable of type 'int'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 4.0] = 'u'; ^" in 4.0 as{TypeError} core::int*, "u"){(core::int*, core::String*) →* void}; - x.{core::Map::[]=}(3, let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:15:60: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + x.{core::Map::[]=}(3, invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:15:60: Error: A value of type 'int' can't be assigned to a variable of type 'String'. x /*@target=Map.[]=*/ [3] = /*error:INVALID_ASSIGNMENT*/ 42; ^" in 42 as{TypeError} core::String*){(core::int*, core::String*) →* void}; core::Map* y = x; @@ -43,11 +43,11 @@ static method test1() → dynamic { static method test2() → dynamic { core::Map* x = {1: "x", 2: "y", 3.0: core::RegExp::•(".")}; x.{core::Map::[]=}(3, "z"){(core::num*, core::Pattern*) →* void}; - x.{core::Map::[]=}(let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:27:46: Error: A value of type 'String' can't be assigned to a variable of type 'num'. + x.{core::Map::[]=}(invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:27:46: Error: A value of type 'String' can't be assigned to a variable of type 'num'. /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'] = 'w'; ^" in "hi" as{TypeError} core::num*, "w"){(core::num*, core::Pattern*) →* void}; x.{core::Map::[]=}(4.0, "u"){(core::num*, core::Pattern*) →* void}; - x.{core::Map::[]=}(3, let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:29:60: Error: A value of type 'int' can't be assigned to a variable of type 'Pattern'. + x.{core::Map::[]=}(3, invalid-expression "pkg/front_end/testcases/inference/map_literals.dart:29:60: Error: A value of type 'int' can't be assigned to a variable of type 'Pattern'. - 'Pattern' is from 'dart:core'. x /*@target=Map.[]=*/ [3] = /*error:INVALID_ASSIGNMENT*/ 42; ^" in 42 as{TypeError} core::Pattern*){(core::num*, core::Pattern*) →* void}; diff --git a/pkg/front_end/testcases/inference/map_literals_top_level.dart.weak.expect b/pkg/front_end/testcases/inference/map_literals_top_level.dart.weak.expect index 09b5da10c54..cd284fd017f 100644 --- a/pkg/front_end/testcases/inference/map_literals_top_level.dart.weak.expect +++ b/pkg/front_end/testcases/inference/map_literals_top_level.dart.weak.expect @@ -30,24 +30,24 @@ static field core::Map* x1 = * x2 = {1: "x", 2: "y", 3.0: core::RegExp::•(".")}; static method test1() → dynamic { self::x1.{core::Map::[]=}(3, "z"){(core::int*, core::String*) →* void}; - self::x1.{core::Map::[]=}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:11:66: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::x1.{core::Map::[]=}(invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:11:66: Error: A value of type 'String' can't be assigned to a variable of type 'int'. x1 /*@target=Map.[]=*/ [/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'] = 'w'; ^" in "hi" as{TypeError} core::int*, "w"){(core::int*, core::String*) →* void}; - self::x1.{core::Map::[]=}(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:12:66: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + self::x1.{core::Map::[]=}(invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:12:66: Error: A value of type 'double' can't be assigned to a variable of type 'int'. x1 /*@target=Map.[]=*/ [/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 4.0] = 'u'; ^" in 4.0 as{TypeError} core::int*, "u"){(core::int*, core::String*) →* void}; - self::x1.{core::Map::[]=}(3, let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:13:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + self::x1.{core::Map::[]=}(3, invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:13:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. x1 /*@target=Map.[]=*/ [3] = /*error:INVALID_ASSIGNMENT*/ 42; ^" in 42 as{TypeError} core::String*){(core::int*, core::String*) →* void}; core::Map* y = self::x1; } static method test2() → dynamic { self::x2.{core::Map::[]=}(3, "z"){(core::num*, core::Pattern*) →* void}; - self::x2.{core::Map::[]=}(let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:20:66: Error: A value of type 'String' can't be assigned to a variable of type 'num'. + self::x2.{core::Map::[]=}(invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:20:66: Error: A value of type 'String' can't be assigned to a variable of type 'num'. x2 /*@target=Map.[]=*/ [/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'] = 'w'; ^" in "hi" as{TypeError} core::num*, "w"){(core::num*, core::Pattern*) →* void}; self::x2.{core::Map::[]=}(4.0, "u"){(core::num*, core::Pattern*) →* void}; - self::x2.{core::Map::[]=}(3, let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:22:61: Error: A value of type 'int' can't be assigned to a variable of type 'Pattern'. + self::x2.{core::Map::[]=}(3, invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:22:61: Error: A value of type 'int' can't be assigned to a variable of type 'Pattern'. - 'Pattern' is from 'dart:core'. x2 /*@target=Map.[]=*/ [3] = /*error:INVALID_ASSIGNMENT*/ 42; ^" in 42 as{TypeError} core::Pattern*){(core::num*, core::Pattern*) →* void}; diff --git a/pkg/front_end/testcases/inference/map_literals_top_level.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/map_literals_top_level.dart.weak.transformed.expect index 09b5da10c54..cd284fd017f 100644 --- a/pkg/front_end/testcases/inference/map_literals_top_level.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/map_literals_top_level.dart.weak.transformed.expect @@ -30,24 +30,24 @@ static field core::Map* x1 = * x2 = {1: "x", 2: "y", 3.0: core::RegExp::•(".")}; static method test1() → dynamic { self::x1.{core::Map::[]=}(3, "z"){(core::int*, core::String*) →* void}; - self::x1.{core::Map::[]=}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:11:66: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + self::x1.{core::Map::[]=}(invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:11:66: Error: A value of type 'String' can't be assigned to a variable of type 'int'. x1 /*@target=Map.[]=*/ [/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'] = 'w'; ^" in "hi" as{TypeError} core::int*, "w"){(core::int*, core::String*) →* void}; - self::x1.{core::Map::[]=}(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:12:66: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + self::x1.{core::Map::[]=}(invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:12:66: Error: A value of type 'double' can't be assigned to a variable of type 'int'. x1 /*@target=Map.[]=*/ [/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 4.0] = 'u'; ^" in 4.0 as{TypeError} core::int*, "u"){(core::int*, core::String*) →* void}; - self::x1.{core::Map::[]=}(3, let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:13:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + self::x1.{core::Map::[]=}(3, invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:13:61: Error: A value of type 'int' can't be assigned to a variable of type 'String'. x1 /*@target=Map.[]=*/ [3] = /*error:INVALID_ASSIGNMENT*/ 42; ^" in 42 as{TypeError} core::String*){(core::int*, core::String*) →* void}; core::Map* y = self::x1; } static method test2() → dynamic { self::x2.{core::Map::[]=}(3, "z"){(core::num*, core::Pattern*) →* void}; - self::x2.{core::Map::[]=}(let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:20:66: Error: A value of type 'String' can't be assigned to a variable of type 'num'. + self::x2.{core::Map::[]=}(invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:20:66: Error: A value of type 'String' can't be assigned to a variable of type 'num'. x2 /*@target=Map.[]=*/ [/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/ 'hi'] = 'w'; ^" in "hi" as{TypeError} core::num*, "w"){(core::num*, core::Pattern*) →* void}; self::x2.{core::Map::[]=}(4.0, "u"){(core::num*, core::Pattern*) →* void}; - self::x2.{core::Map::[]=}(3, let final Never* #t5 = invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:22:61: Error: A value of type 'int' can't be assigned to a variable of type 'Pattern'. + self::x2.{core::Map::[]=}(3, invalid-expression "pkg/front_end/testcases/inference/map_literals_top_level.dart:22:61: Error: A value of type 'int' can't be assigned to a variable of type 'Pattern'. - 'Pattern' is from 'dart:core'. x2 /*@target=Map.[]=*/ [3] = /*error:INVALID_ASSIGNMENT*/ 42; ^" in 42 as{TypeError} core::Pattern*){(core::num*, core::Pattern*) →* void}; diff --git a/pkg/front_end/testcases/inference/propagate_inference_transitively.dart.weak.expect b/pkg/front_end/testcases/inference/propagate_inference_transitively.dart.weak.expect index c3ad47e2e1b..81035d4888f 100644 --- a/pkg/front_end/testcases/inference/propagate_inference_transitively.dart.weak.expect +++ b/pkg/front_end/testcases/inference/propagate_inference_transitively.dart.weak.expect @@ -31,11 +31,11 @@ class A extends core::Object { } static method test5() → dynamic { self::A* a1 = new self::A::•(); - a1.{self::A::x} = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/propagate_inference_transitively.dart:14:56: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + a1.{self::A::x} = invalid-expression "pkg/front_end/testcases/inference/propagate_inference_transitively.dart:14:56: Error: A value of type 'String' can't be assigned to a variable of type 'int'. a1. /*@target=A.x*/ x = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; self::A* a2 = new self::A::•(); - a2.{self::A::x} = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/propagate_inference_transitively.dart:17:56: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + a2.{self::A::x} = invalid-expression "pkg/front_end/testcases/inference/propagate_inference_transitively.dart:17:56: Error: A value of type 'String' can't be assigned to a variable of type 'int'. a2. /*@target=A.x*/ x = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/inference/propagate_inference_transitively.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/propagate_inference_transitively.dart.weak.transformed.expect index c3ad47e2e1b..81035d4888f 100644 --- a/pkg/front_end/testcases/inference/propagate_inference_transitively.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/propagate_inference_transitively.dart.weak.transformed.expect @@ -31,11 +31,11 @@ class A extends core::Object { } static method test5() → dynamic { self::A* a1 = new self::A::•(); - a1.{self::A::x} = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/propagate_inference_transitively.dart:14:56: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + a1.{self::A::x} = invalid-expression "pkg/front_end/testcases/inference/propagate_inference_transitively.dart:14:56: Error: A value of type 'String' can't be assigned to a variable of type 'int'. a1. /*@target=A.x*/ x = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; self::A* a2 = new self::A::•(); - a2.{self::A::x} = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/propagate_inference_transitively.dart:17:56: Error: A value of type 'String' can't be assigned to a variable of type 'int'. + a2.{self::A::x} = invalid-expression "pkg/front_end/testcases/inference/propagate_inference_transitively.dart:17:56: Error: A value of type 'String' can't be assigned to a variable of type 'int'. a2. /*@target=A.x*/ x = /*error:INVALID_ASSIGNMENT*/ \"hi\"; ^" in "hi" as{TypeError} core::int*; } diff --git a/pkg/front_end/testcases/inference/top_level_return_and_yield.dart.weak.expect b/pkg/front_end/testcases/inference/top_level_return_and_yield.dart.weak.expect index ba5fd06148f..3ca6230c0a9 100644 --- a/pkg/front_end/testcases/inference/top_level_return_and_yield.dart.weak.expect +++ b/pkg/front_end/testcases/inference/top_level_return_and_yield.dart.weak.expect @@ -18,7 +18,7 @@ static method a() → (core::int*) →* core::int* { return (core::int* x) → core::int* => x; } static method b() → asy::Future<(core::int*) →* core::int*>* async { - return let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/top_level_return_and_yield.dart:18:36: Error: A value of type 'Future' can't be assigned to a variable of type 'FutureOr'. + return invalid-expression "pkg/front_end/testcases/inference/top_level_return_and_yield.dart:18:36: Error: A value of type 'Future' can't be assigned to a variable of type 'FutureOr'. - 'Future' is from 'dart:async'. return /*@ returnType=dynamic */ (/*@ type=dynamic */ x) => x; ^" in ((dynamic x) → dynamic => x) as{TypeError} FutureOr<(core::int*) →* core::int*>*; diff --git a/pkg/front_end/testcases/inference/top_level_return_and_yield.dart.weak.transformed.expect b/pkg/front_end/testcases/inference/top_level_return_and_yield.dart.weak.transformed.expect index f81139c5188..9f7346ab89a 100644 --- a/pkg/front_end/testcases/inference/top_level_return_and_yield.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference/top_level_return_and_yield.dart.weak.transformed.expect @@ -29,7 +29,7 @@ static method b() → asy::Future<(core::int*) →* core::int*>* /* originally a try { #L1: { - :return_value = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/top_level_return_and_yield.dart:18:36: Error: A value of type 'Future' can't be assigned to a variable of type 'FutureOr'. + :return_value = invalid-expression "pkg/front_end/testcases/inference/top_level_return_and_yield.dart:18:36: Error: A value of type 'Future' can't be assigned to a variable of type 'FutureOr'. - 'Future' is from 'dart:async'. return /*@ returnType=dynamic */ (/*@ type=dynamic */ x) => x; ^" in ((dynamic x) → dynamic => x) as{TypeError} FutureOr<(core::int*) →* core::int*>*; diff --git a/pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart.weak.expect b/pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart.weak.expect index 60d54ba2ac4..727e04aef80 100644 --- a/pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart.weak.expect +++ b/pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart.weak.expect @@ -28,30 +28,30 @@ import "dart:async" as asy; static method test() → dynamic async { core::String* s; - for (final dynamic #t1 in let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:10:17: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + for (final dynamic #t1 in invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:10:17: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. - 'Iterable' is from 'dart:core'. for (int x in s) {} ^" in s as{TypeError} core::Iterable*) { core::int* x = #t1 as{TypeError,ForDynamic} core::int*; } - await for (final dynamic #t3 in let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:11:23: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + await for (final dynamic #t2 in invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:11:23: Error: The type 'String' used in the 'for' loop must implement 'Stream'. - 'Stream' is from 'dart:async'. await for (int x in s) {} ^" in s as{TypeError} asy::Stream*) { - core::int* x = #t3 as{TypeError,ForDynamic} core::int*; + core::int* x = #t2 as{TypeError,ForDynamic} core::int*; } core::int* y; - for (final dynamic #t5 in let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:13:13: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + for (final dynamic #t3 in invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:13:13: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. - 'Iterable' is from 'dart:core'. for (y in s) {} ^" in s as{TypeError} core::Iterable*) { - y = #t5 as{TypeError,ForDynamic} core::int*; + y = #t3 as{TypeError,ForDynamic} core::int*; } - await for (final dynamic #t7 in let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:14:19: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + await for (final dynamic #t4 in invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:14:19: Error: The type 'String' used in the 'for' loop must implement 'Stream'. - 'Stream' is from 'dart:async'. await for (y in s) {} ^" in s as{TypeError} asy::Stream*) { - y = #t7 as{TypeError,ForDynamic} core::int*; + y = #t4 as{TypeError,ForDynamic} core::int*; } } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart.weak.transformed.expect b/pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart.weak.transformed.expect index ad564fca22c..aa020dd1b2b 100644 --- a/pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart.weak.transformed.expect @@ -45,19 +45,19 @@ static method test() → dynamic /* originally async */ { { core::String* s; { - core::Iterator* :sync-for-iterator = (let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:10:17: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + core::Iterator* :sync-for-iterator = invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:10:17: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. - 'Iterable' is from 'dart:core'. for (int x in s) {} - ^" in s as{TypeError} core::Iterable*).{core::Iterable::iterator}{core::Iterator*}; + ^" in s as{TypeError} core::Iterable*.{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t2 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t1 = :sync-for-iterator.{core::Iterator::current}{Never}; { - core::int* x = #t2 as{TypeError,ForDynamic} core::int*; + core::int* x = #t1 as{TypeError,ForDynamic} core::int*; } } } { - asy::Stream* :stream = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:11:23: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + Never :stream = invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:11:23: Error: The type 'String' used in the 'for' loop must implement 'Stream'. - 'Stream' is from 'dart:async'. await for (int x in s) {} ^" in s as{TypeError} asy::Stream*; @@ -65,12 +65,12 @@ static method test() → dynamic /* originally async */ { try #L2: while (true) { - dynamic #t4 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t5 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t2 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t3 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { - final dynamic #t6 = :for-iterator.{asy::_StreamIterator::current}{dynamic}; + final dynamic #t4 = :for-iterator.{asy::_StreamIterator::current}{dynamic}; { - core::int* x = #t6 as{TypeError,ForDynamic} core::int*; + core::int* x = #t4 as{TypeError,ForDynamic} core::int*; } } else @@ -78,25 +78,25 @@ static method test() → dynamic /* originally async */ { } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t7 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t5 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } core::int* y; { - core::Iterator* :sync-for-iterator = (let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:13:13: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. + core::Iterator* :sync-for-iterator = invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:13:13: Error: The type 'String' used in the 'for' loop must implement 'Iterable'. - 'Iterable' is from 'dart:core'. for (y in s) {} - ^" in s as{TypeError} core::Iterable*).{core::Iterable::iterator}{core::Iterator*}; + ^" in s as{TypeError} core::Iterable*.{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t9 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t6 = :sync-for-iterator.{core::Iterator::current}{Never}; { - y = #t9 as{TypeError,ForDynamic} core::int*; + y = #t6 as{TypeError,ForDynamic} core::int*; } } } { - asy::Stream* :stream = let final Never* #t10 = invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:14:19: Error: The type 'String' used in the 'for' loop must implement 'Stream'. + Never :stream = invalid-expression "pkg/front_end/testcases/inference_new/for_each_invalid_iterable.dart:14:19: Error: The type 'String' used in the 'for' loop must implement 'Stream'. - 'Stream' is from 'dart:async'. await for (y in s) {} ^" in s as{TypeError} asy::Stream*; @@ -104,12 +104,12 @@ static method test() → dynamic /* originally async */ { try #L3: while (true) { - dynamic #t11 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t12 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t7 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t8 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { - final dynamic #t13 = :for-iterator.{asy::_StreamIterator::current}{dynamic}; + final dynamic #t9 = :for-iterator.{asy::_StreamIterator::current}{dynamic}; { - y = #t13 as{TypeError,ForDynamic} core::int*; + y = #t9 as{TypeError,ForDynamic} core::int*; } } else @@ -117,7 +117,7 @@ static method test() → dynamic /* originally async */ { } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t14 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t10 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } diff --git a/pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart.weak.expect b/pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart.weak.expect index 6613e7c647d..e1955070e03 100644 --- a/pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart.weak.expect +++ b/pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart.weak.expect @@ -61,24 +61,24 @@ static method test() → dynamic async { b = #t4 as{TypeError} self::B*; } for (final self::A* #t5 in iterable) { - i = let final Never* #t6 = invalid-expression "pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart:26:10: Error: A value of type 'A' can't be assigned to a variable of type 'int'. + i = invalid-expression "pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart:26:10: Error: A value of type 'A' can't be assigned to a variable of type 'int'. - 'A' is from 'pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart'. Try changing the type of the variable. for (i in iterable) {} ^" in #t5 as{TypeError} core::int*; } - await for (final self::A* #t7 in stream) { - i = let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart:27:16: Error: A value of type 'A' can't be assigned to a variable of type 'int'. + await for (final self::A* #t6 in stream) { + i = invalid-expression "pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart:27:16: Error: A value of type 'A' can't be assigned to a variable of type 'int'. - 'A' is from 'pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart'. Try changing the type of the variable. await for (i in stream) {} - ^" in #t7 as{TypeError} core::int*; + ^" in #t6 as{TypeError} core::int*; } - for (final self::A* #t9 in self::f*>()) { - a = #t9; + for (final self::A* #t7 in self::f*>()) { + a = #t7; } - await for (final self::A* #t10 in self::f*>()) { - a = #t10; + await for (final self::A* #t8 in self::f*>()) { + a = #t8; } } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart.weak.transformed.expect b/pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart.weak.transformed.expect index 0e6f089d871..2ad99fc3f60 100644 --- a/pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart.weak.transformed.expect @@ -133,7 +133,7 @@ static method test() → dynamic /* originally async */ { for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { final self::A* #t11 = :sync-for-iterator.{core::Iterator::current}{self::A*}; { - i = let final Never* #t12 = invalid-expression "pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart:26:10: Error: A value of type 'A' can't be assigned to a variable of type 'int'. + i = invalid-expression "pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart:26:10: Error: A value of type 'A' can't be assigned to a variable of type 'int'. - 'A' is from 'pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart'. Try changing the type of the variable. for (i in iterable) {} @@ -147,16 +147,16 @@ Try changing the type of the variable. try #L4: while (true) { - dynamic #t13 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t14 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t12 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t13 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { - final self::A* #t15 = :for-iterator.{asy::_StreamIterator::current}{self::A*}; + final self::A* #t14 = :for-iterator.{asy::_StreamIterator::current}{self::A*}; { - i = let final Never* #t16 = invalid-expression "pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart:27:16: Error: A value of type 'A' can't be assigned to a variable of type 'int'. + i = invalid-expression "pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart:27:16: Error: A value of type 'A' can't be assigned to a variable of type 'int'. - 'A' is from 'pkg/front_end/testcases/inference_new/for_each_outer_var_type.dart'. Try changing the type of the variable. await for (i in stream) {} - ^" in #t15 as{TypeError} core::int*; + ^" in #t14 as{TypeError} core::int*; } } else @@ -164,16 +164,16 @@ Try changing the type of the variable. } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t17 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t15 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } { core::Iterator* :sync-for-iterator = self::f*>().{core::Iterable::iterator}{core::Iterator*}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final self::A* #t18 = :sync-for-iterator.{core::Iterator::current}{self::A*}; + final self::A* #t16 = :sync-for-iterator.{core::Iterator::current}{self::A*}; { - a = #t18; + a = #t16; } } } @@ -183,12 +183,12 @@ Try changing the type of the variable. try #L5: while (true) { - dynamic #t19 = asy::_asyncStarMoveNextHelper(:stream); - [yield] let dynamic #t20 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + dynamic #t17 = asy::_asyncStarMoveNextHelper(:stream); + [yield] let dynamic #t18 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::moveNext}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; if(_in::unsafeCast(:result)) { - final self::A* #t21 = :for-iterator.{asy::_StreamIterator::current}{self::A*}; + final self::A* #t19 = :for-iterator.{asy::_StreamIterator::current}{self::A*}; { - a = #t21; + a = #t19; } } else @@ -196,7 +196,7 @@ Try changing the type of the variable. } finally if(!(:for-iterator.{asy::_StreamIterator::_subscription}{asy::StreamSubscription?} == null)) { - [yield] let dynamic #t22 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t20 = asy::_awaitHelper(:for-iterator.{asy::_StreamIterator::cancel}(){() → asy::Future}, :async_op_then, :async_op_error, :async_op) in null; :result; } } diff --git a/pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart.weak.expect b/pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart.weak.expect index 73052042a1b..bae6ac33d17 100644 --- a/pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart.weak.expect +++ b/pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart.weak.expect @@ -96,17 +96,17 @@ abstract class Test3 extends self::Base { core::double* v3 = let final core::String* #t66 = "x" in let final core::double* #t67 = self::getDouble() in let final void #t68 = super.{self::Base::[]=}(#t66, #t67) in #t67; core::num* v5 = let final core::String* #t69 = "x" in let final core::int* #t70 = super.{self::Base::[]}(#t69) in #t70 == null ?{core::num*} let final core::num* #t71 = self::getNum() as{TypeError} core::double* in let final void #t72 = super.{self::Base::[]=}(#t69, #t71) in #t71 : #t70; core::num* v6 = let final core::String* #t73 = "x" in let final core::int* #t74 = super.{self::Base::[]}(#t73) in #t74 == null ?{core::num*} let final core::double* #t75 = self::getDouble() in let final void #t76 = super.{self::Base::[]=}(#t73, #t75) in #t75 : #t74; - core::int* v7 = let final core::String* #t77 = "x" in let final core::int* #t78 = let final Never* #t79 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:106:31: Error: A value of type 'int' can't be assigned to a variable of type 'double'. + core::int* v7 = let final core::String* #t77 = "x" in let final core::int* #t78 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:106:31: Error: A value of type 'int' can't be assigned to a variable of type 'double'. /*@target=num.+*/ += getInt(); - ^" in super.{self::Base::[]}(#t77).{core::num::+}(self::getInt()){(core::num*) →* core::int*} as{TypeError} core::double* in let final void #t80 = super.{self::Base::[]=}(#t77, #t78) in #t78; - core::num* v8 = let final core::String* #t81 = "x" in let final core::num* #t82 = super.{self::Base::[]}(#t81).{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t83 = super.{self::Base::[]=}(#t81, #t82) in #t82; - core::double* v9 = let final core::String* #t84 = "x" in let final core::double* #t85 = super.{self::Base::[]}(#t84).{core::num::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t86 = super.{self::Base::[]=}(#t84, #t85) in #t85; - core::int* v10 = let final core::String* #t87 = "x" in let final core::int* #t88 = let final Never* #t89 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:116:50: Error: A value of type 'int' can't be assigned to a variable of type 'double'. + ^" in super.{self::Base::[]}(#t77).{core::num::+}(self::getInt()){(core::num*) →* core::int*} as{TypeError} core::double* in let final void #t79 = super.{self::Base::[]=}(#t77, #t78) in #t78; + core::num* v8 = let final core::String* #t80 = "x" in let final core::num* #t81 = super.{self::Base::[]}(#t80).{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t82 = super.{self::Base::[]=}(#t80, #t81) in #t81; + core::double* v9 = let final core::String* #t83 = "x" in let final core::double* #t84 = super.{self::Base::[]}(#t83).{core::num::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t85 = super.{self::Base::[]=}(#t83, #t84) in #t84; + core::int* v10 = let final core::String* #t86 = "x" in let final core::int* #t87 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:116:50: Error: A value of type 'int' can't be assigned to a variable of type 'double'. var /*@ type=int* */ v10 = /*@target=num.+*/ ++super - ^" in super.{self::Base::[]}(#t87).{core::num::+}(1){(core::num*) →* core::int*} as{TypeError} core::double* in let final void #t90 = super.{self::Base::[]=}(#t87, #t88) in #t88; - core::int* v11 = let final core::String* #t91 = "x" in let final core::int* #t92 = super.{self::Base::[]}(#t91) in let final void #t93 = super.{self::Base::[]=}(#t91, let final Never* #t94 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:120:33: Error: A value of type 'int' can't be assigned to a variable of type 'double'. + ^" in super.{self::Base::[]}(#t86).{core::num::+}(1){(core::num*) →* core::int*} as{TypeError} core::double* in let final void #t88 = super.{self::Base::[]=}(#t86, #t87) in #t87; + core::int* v11 = let final core::String* #t89 = "x" in let final core::int* #t90 = super.{self::Base::[]}(#t89) in let final void #t91 = super.{self::Base::[]=}(#t89, invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:120:33: Error: A value of type 'int' can't be assigned to a variable of type 'double'. ['x'] /*@target=num.+*/ ++; - ^" in #t92.{core::num::+}(1){(core::num*) →* core::int*} as{TypeError} core::double*) in #t92; + ^" in #t90.{core::num::+}(1){(core::num*) →* core::int*} as{TypeError} core::double*) in #t90; } } abstract class Test4 extends self::Base { @@ -114,14 +114,14 @@ abstract class Test4 extends self::Base { : super self::Base::•() ; method test() → void { - core::int* v1 = let final core::String* #t95 = "x" in let final core::int* #t96 = self::getInt() in let final void #t97 = super.{self::Base::[]=}(#t95, #t96) in #t96; - core::num* v2 = let final core::String* #t98 = "x" in let final core::num* #t99 = self::getNum() as{TypeError} core::int* in let final void #t100 = super.{self::Base::[]=}(#t98, #t99) in #t99; - core::num* v4 = let final core::String* #t101 = "x" in let final core::num* #t102 = super.{self::Base::[]}(#t101) in #t102 == null ?{core::num*} let final core::int* #t103 = self::getInt() in let final void #t104 = super.{self::Base::[]=}(#t101, #t103) in #t103 : #t102; - core::num* v5 = let final core::String* #t105 = "x" in let final core::num* #t106 = super.{self::Base::[]}(#t105) in #t106 == null ?{core::num*} let final core::num* #t107 = self::getNum() as{TypeError} core::int* in let final void #t108 = super.{self::Base::[]=}(#t105, #t107) in #t107 : #t106; - core::num* v7 = let final core::String* #t109 = "x" in let final core::num* #t110 = super.{self::Base::[]}(#t109).{core::num::+}(self::getInt()){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t111 = super.{self::Base::[]=}(#t109, #t110) in #t110; - core::num* v8 = let final core::String* #t112 = "x" in let final core::num* #t113 = super.{self::Base::[]}(#t112).{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t114 = super.{self::Base::[]=}(#t112, #t113) in #t113; - core::num* v10 = let final core::String* #t115 = "x" in let final core::num* #t116 = super.{self::Base::[]}(#t115).{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t117 = super.{self::Base::[]=}(#t115, #t116) in #t116; - core::num* v11 = let final core::String* #t118 = "x" in let final core::num* #t119 = super.{self::Base::[]}(#t118) in let final void #t120 = super.{self::Base::[]=}(#t118, #t119.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::int*) in #t119; + core::int* v1 = let final core::String* #t92 = "x" in let final core::int* #t93 = self::getInt() in let final void #t94 = super.{self::Base::[]=}(#t92, #t93) in #t93; + core::num* v2 = let final core::String* #t95 = "x" in let final core::num* #t96 = self::getNum() as{TypeError} core::int* in let final void #t97 = super.{self::Base::[]=}(#t95, #t96) in #t96; + core::num* v4 = let final core::String* #t98 = "x" in let final core::num* #t99 = super.{self::Base::[]}(#t98) in #t99 == null ?{core::num*} let final core::int* #t100 = self::getInt() in let final void #t101 = super.{self::Base::[]=}(#t98, #t100) in #t100 : #t99; + core::num* v5 = let final core::String* #t102 = "x" in let final core::num* #t103 = super.{self::Base::[]}(#t102) in #t103 == null ?{core::num*} let final core::num* #t104 = self::getNum() as{TypeError} core::int* in let final void #t105 = super.{self::Base::[]=}(#t102, #t104) in #t104 : #t103; + core::num* v7 = let final core::String* #t106 = "x" in let final core::num* #t107 = super.{self::Base::[]}(#t106).{core::num::+}(self::getInt()){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t108 = super.{self::Base::[]=}(#t106, #t107) in #t107; + core::num* v8 = let final core::String* #t109 = "x" in let final core::num* #t110 = super.{self::Base::[]}(#t109).{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t111 = super.{self::Base::[]=}(#t109, #t110) in #t110; + core::num* v10 = let final core::String* #t112 = "x" in let final core::num* #t113 = super.{self::Base::[]}(#t112).{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t114 = super.{self::Base::[]=}(#t112, #t113) in #t113; + core::num* v11 = let final core::String* #t115 = "x" in let final core::num* #t116 = super.{self::Base::[]}(#t115) in let final void #t117 = super.{self::Base::[]=}(#t115, #t116.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::int*) in #t116; } } abstract class Test5 extends self::Base { @@ -129,17 +129,17 @@ abstract class Test5 extends self::Base { : super self::Base::•() ; method test() → void { - core::int* v1 = let final core::String* #t121 = "x" in let final core::int* #t122 = self::getInt() in let final void #t123 = super.{self::Base::[]=}(#t121, #t122) in #t122; - core::num* v2 = let final core::String* #t124 = "x" in let final core::num* #t125 = self::getNum() in let final void #t126 = super.{self::Base::[]=}(#t124, #t125) in #t125; - core::double* v3 = let final core::String* #t127 = "x" in let final core::double* #t128 = self::getDouble() in let final void #t129 = super.{self::Base::[]=}(#t127, #t128) in #t128; - core::num* v4 = let final core::String* #t130 = "x" in let final core::num* #t131 = super.{self::Base::[]}(#t130) in #t131 == null ?{core::num*} let final core::int* #t132 = self::getInt() in let final void #t133 = super.{self::Base::[]=}(#t130, #t132) in #t132 : #t131; - core::num* v5 = let final core::String* #t134 = "x" in let final core::num* #t135 = super.{self::Base::[]}(#t134) in #t135 == null ?{core::num*} let final core::num* #t136 = self::getNum() in let final void #t137 = super.{self::Base::[]=}(#t134, #t136) in #t136 : #t135; - core::num* v6 = let final core::String* #t138 = "x" in let final core::num* #t139 = super.{self::Base::[]}(#t138) in #t139 == null ?{core::num*} let final core::double* #t140 = self::getDouble() in let final void #t141 = super.{self::Base::[]=}(#t138, #t140) in #t140 : #t139; - core::num* v7 = let final core::String* #t142 = "x" in let final core::num* #t143 = super.{self::Base::[]}(#t142).{core::num::+}(self::getInt()){(core::num*) →* core::num*} in let final void #t144 = super.{self::Base::[]=}(#t142, #t143) in #t143; - core::num* v8 = let final core::String* #t145 = "x" in let final core::num* #t146 = super.{self::Base::[]}(#t145).{core::num::+}(self::getNum()){(core::num*) →* core::num*} in let final void #t147 = super.{self::Base::[]=}(#t145, #t146) in #t146; - core::num* v9 = let final core::String* #t148 = "x" in let final core::num* #t149 = super.{self::Base::[]}(#t148).{core::num::+}(self::getDouble()){(core::num*) →* core::num*} in let final void #t150 = super.{self::Base::[]=}(#t148, #t149) in #t149; - core::num* v10 = let final core::String* #t151 = "x" in let final core::num* #t152 = super.{self::Base::[]}(#t151).{core::num::+}(1){(core::num*) →* core::num*} in let final void #t153 = super.{self::Base::[]=}(#t151, #t152) in #t152; - core::num* v11 = let final core::String* #t154 = "x" in let final core::num* #t155 = super.{self::Base::[]}(#t154) in let final void #t156 = super.{self::Base::[]=}(#t154, #t155.{core::num::+}(1){(core::num*) →* core::num*}) in #t155; + core::int* v1 = let final core::String* #t118 = "x" in let final core::int* #t119 = self::getInt() in let final void #t120 = super.{self::Base::[]=}(#t118, #t119) in #t119; + core::num* v2 = let final core::String* #t121 = "x" in let final core::num* #t122 = self::getNum() in let final void #t123 = super.{self::Base::[]=}(#t121, #t122) in #t122; + core::double* v3 = let final core::String* #t124 = "x" in let final core::double* #t125 = self::getDouble() in let final void #t126 = super.{self::Base::[]=}(#t124, #t125) in #t125; + core::num* v4 = let final core::String* #t127 = "x" in let final core::num* #t128 = super.{self::Base::[]}(#t127) in #t128 == null ?{core::num*} let final core::int* #t129 = self::getInt() in let final void #t130 = super.{self::Base::[]=}(#t127, #t129) in #t129 : #t128; + core::num* v5 = let final core::String* #t131 = "x" in let final core::num* #t132 = super.{self::Base::[]}(#t131) in #t132 == null ?{core::num*} let final core::num* #t133 = self::getNum() in let final void #t134 = super.{self::Base::[]=}(#t131, #t133) in #t133 : #t132; + core::num* v6 = let final core::String* #t135 = "x" in let final core::num* #t136 = super.{self::Base::[]}(#t135) in #t136 == null ?{core::num*} let final core::double* #t137 = self::getDouble() in let final void #t138 = super.{self::Base::[]=}(#t135, #t137) in #t137 : #t136; + core::num* v7 = let final core::String* #t139 = "x" in let final core::num* #t140 = super.{self::Base::[]}(#t139).{core::num::+}(self::getInt()){(core::num*) →* core::num*} in let final void #t141 = super.{self::Base::[]=}(#t139, #t140) in #t140; + core::num* v8 = let final core::String* #t142 = "x" in let final core::num* #t143 = super.{self::Base::[]}(#t142).{core::num::+}(self::getNum()){(core::num*) →* core::num*} in let final void #t144 = super.{self::Base::[]=}(#t142, #t143) in #t143; + core::num* v9 = let final core::String* #t145 = "x" in let final core::num* #t146 = super.{self::Base::[]}(#t145).{core::num::+}(self::getDouble()){(core::num*) →* core::num*} in let final void #t147 = super.{self::Base::[]=}(#t145, #t146) in #t146; + core::num* v10 = let final core::String* #t148 = "x" in let final core::num* #t149 = super.{self::Base::[]}(#t148).{core::num::+}(1){(core::num*) →* core::num*} in let final void #t150 = super.{self::Base::[]=}(#t148, #t149) in #t149; + core::num* v11 = let final core::String* #t151 = "x" in let final core::num* #t152 = super.{self::Base::[]}(#t151) in let final void #t153 = super.{self::Base::[]=}(#t151, #t152.{core::num::+}(1){(core::num*) →* core::num*}) in #t152; } } abstract class Test6 extends self::Base { @@ -147,15 +147,15 @@ abstract class Test6 extends self::Base { : super self::Base::•() ; method test() → void { - core::num* v2 = let final core::String* #t157 = "x" in let final core::num* #t158 = self::getNum() as{TypeError} core::double* in let final void #t159 = super.{self::Base::[]=}(#t157, #t158) in #t158; - core::double* v3 = let final core::String* #t160 = "x" in let final core::double* #t161 = self::getDouble() in let final void #t162 = super.{self::Base::[]=}(#t160, #t161) in #t161; - core::num* v5 = let final core::String* #t163 = "x" in let final core::num* #t164 = super.{self::Base::[]}(#t163) in #t164 == null ?{core::num*} let final core::num* #t165 = self::getNum() as{TypeError} core::double* in let final void #t166 = super.{self::Base::[]=}(#t163, #t165) in #t165 : #t164; - core::num* v6 = let final core::String* #t167 = "x" in let final core::num* #t168 = super.{self::Base::[]}(#t167) in #t168 == null ?{core::num*} let final core::double* #t169 = self::getDouble() in let final void #t170 = super.{self::Base::[]=}(#t167, #t169) in #t169 : #t168; - core::num* v7 = let final core::String* #t171 = "x" in let final core::num* #t172 = super.{self::Base::[]}(#t171).{core::num::+}(self::getInt()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t173 = super.{self::Base::[]=}(#t171, #t172) in #t172; - core::num* v8 = let final core::String* #t174 = "x" in let final core::num* #t175 = super.{self::Base::[]}(#t174).{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t176 = super.{self::Base::[]=}(#t174, #t175) in #t175; - core::num* v9 = let final core::String* #t177 = "x" in let final core::num* #t178 = super.{self::Base::[]}(#t177).{core::num::+}(self::getDouble()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t179 = super.{self::Base::[]=}(#t177, #t178) in #t178; - core::num* v10 = let final core::String* #t180 = "x" in let final core::num* #t181 = super.{self::Base::[]}(#t180).{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t182 = super.{self::Base::[]=}(#t180, #t181) in #t181; - core::num* v11 = let final core::String* #t183 = "x" in let final core::num* #t184 = super.{self::Base::[]}(#t183) in let final void #t185 = super.{self::Base::[]=}(#t183, #t184.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::double*) in #t184; + core::num* v2 = let final core::String* #t154 = "x" in let final core::num* #t155 = self::getNum() as{TypeError} core::double* in let final void #t156 = super.{self::Base::[]=}(#t154, #t155) in #t155; + core::double* v3 = let final core::String* #t157 = "x" in let final core::double* #t158 = self::getDouble() in let final void #t159 = super.{self::Base::[]=}(#t157, #t158) in #t158; + core::num* v5 = let final core::String* #t160 = "x" in let final core::num* #t161 = super.{self::Base::[]}(#t160) in #t161 == null ?{core::num*} let final core::num* #t162 = self::getNum() as{TypeError} core::double* in let final void #t163 = super.{self::Base::[]=}(#t160, #t162) in #t162 : #t161; + core::num* v6 = let final core::String* #t164 = "x" in let final core::num* #t165 = super.{self::Base::[]}(#t164) in #t165 == null ?{core::num*} let final core::double* #t166 = self::getDouble() in let final void #t167 = super.{self::Base::[]=}(#t164, #t166) in #t166 : #t165; + core::num* v7 = let final core::String* #t168 = "x" in let final core::num* #t169 = super.{self::Base::[]}(#t168).{core::num::+}(self::getInt()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t170 = super.{self::Base::[]=}(#t168, #t169) in #t169; + core::num* v8 = let final core::String* #t171 = "x" in let final core::num* #t172 = super.{self::Base::[]}(#t171).{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t173 = super.{self::Base::[]=}(#t171, #t172) in #t172; + core::num* v9 = let final core::String* #t174 = "x" in let final core::num* #t175 = super.{self::Base::[]}(#t174).{core::num::+}(self::getDouble()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t176 = super.{self::Base::[]=}(#t174, #t175) in #t175; + core::num* v10 = let final core::String* #t177 = "x" in let final core::num* #t178 = super.{self::Base::[]}(#t177).{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t179 = super.{self::Base::[]=}(#t177, #t178) in #t178; + core::num* v11 = let final core::String* #t180 = "x" in let final core::num* #t181 = super.{self::Base::[]}(#t180) in let final void #t182 = super.{self::Base::[]=}(#t180, #t181.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::double*) in #t181; } } abstract class Test7 extends self::Base { @@ -163,22 +163,22 @@ abstract class Test7 extends self::Base { : super self::Base::•() ; method test() → void { - core::int* v1 = let final core::String* #t186 = "x" in let final core::int* #t187 = self::getInt() in let final void #t188 = super.{self::Base::[]=}(#t186, #t187) in #t187; - core::num* v2 = let final core::String* #t189 = "x" in let final core::num* #t190 = self::getNum() as{TypeError} core::int* in let final void #t191 = super.{self::Base::[]=}(#t189, #t190) in #t190; - core::num* v4 = let final core::String* #t192 = "x" in let final core::double* #t193 = super.{self::Base::[]}(#t192) in #t193 == null ?{core::num*} let final core::int* #t194 = self::getInt() in let final void #t195 = super.{self::Base::[]=}(#t192, #t194) in #t194 : #t193; - core::num* v5 = let final core::String* #t196 = "x" in let final core::double* #t197 = super.{self::Base::[]}(#t196) in #t197 == null ?{core::num*} let final core::num* #t198 = self::getNum() as{TypeError} core::int* in let final void #t199 = super.{self::Base::[]=}(#t196, #t198) in #t198 : #t197; - core::double* v7 = let final core::String* #t200 = "x" in let final core::double* #t201 = let final Never* #t202 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:244:34: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int* v1 = let final core::String* #t183 = "x" in let final core::int* #t184 = self::getInt() in let final void #t185 = super.{self::Base::[]=}(#t183, #t184) in #t184; + core::num* v2 = let final core::String* #t186 = "x" in let final core::num* #t187 = self::getNum() as{TypeError} core::int* in let final void #t188 = super.{self::Base::[]=}(#t186, #t187) in #t187; + core::num* v4 = let final core::String* #t189 = "x" in let final core::double* #t190 = super.{self::Base::[]}(#t189) in #t190 == null ?{core::num*} let final core::int* #t191 = self::getInt() in let final void #t192 = super.{self::Base::[]=}(#t189, #t191) in #t191 : #t190; + core::num* v5 = let final core::String* #t193 = "x" in let final core::double* #t194 = super.{self::Base::[]}(#t193) in #t194 == null ?{core::num*} let final core::num* #t195 = self::getNum() as{TypeError} core::int* in let final void #t196 = super.{self::Base::[]=}(#t193, #t195) in #t195 : #t194; + core::double* v7 = let final core::String* #t197 = "x" in let final core::double* #t198 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:244:34: Error: A value of type 'double' can't be assigned to a variable of type 'int'. /*@target=double.+*/ += getInt(); - ^" in super.{self::Base::[]}(#t200).{core::double::+}(self::getInt()){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t203 = super.{self::Base::[]=}(#t200, #t201) in #t201; - core::double* v8 = let final core::String* #t204 = "x" in let final core::double* #t205 = let final Never* #t206 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:248:34: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + ^" in super.{self::Base::[]}(#t197).{core::double::+}(self::getInt()){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t199 = super.{self::Base::[]=}(#t197, #t198) in #t198; + core::double* v8 = let final core::String* #t200 = "x" in let final core::double* #t201 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:248:34: Error: A value of type 'double' can't be assigned to a variable of type 'int'. /*@target=double.+*/ += getNum(); - ^" in super.{self::Base::[]}(#t204).{core::double::+}(self::getNum()){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t207 = super.{self::Base::[]=}(#t204, #t205) in #t205; - core::double* v10 = let final core::String* #t208 = "x" in let final core::double* #t209 = let final Never* #t210 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:250:56: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + ^" in super.{self::Base::[]}(#t200).{core::double::+}(self::getNum()){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t202 = super.{self::Base::[]=}(#t200, #t201) in #t201; + core::double* v10 = let final core::String* #t203 = "x" in let final core::double* #t204 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:250:56: Error: A value of type 'double' can't be assigned to a variable of type 'int'. var /*@ type=double* */ v10 = /*@target=double.+*/ ++super - ^" in super.{self::Base::[]}(#t208).{core::double::+}(1){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t211 = super.{self::Base::[]=}(#t208, #t209) in #t209; - core::double* v11 = let final core::String* #t212 = "x" in let final core::double* #t213 = super.{self::Base::[]}(#t212) in let final void #t214 = super.{self::Base::[]=}(#t212, let final Never* #t215 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:254:36: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + ^" in super.{self::Base::[]}(#t203).{core::double::+}(1){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t205 = super.{self::Base::[]=}(#t203, #t204) in #t204; + core::double* v11 = let final core::String* #t206 = "x" in let final core::double* #t207 = super.{self::Base::[]}(#t206) in let final void #t208 = super.{self::Base::[]=}(#t206, invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_super_upwards.dart:254:36: Error: A value of type 'double' can't be assigned to a variable of type 'int'. ['x'] /*@target=double.+*/ ++; - ^" in #t213.{core::double::+}(1){(core::num*) →* core::double*} as{TypeError} core::int*) in #t213; + ^" in #t207.{core::double::+}(1){(core::num*) →* core::double*} as{TypeError} core::int*) in #t207; } } abstract class Test8 extends self::Base { @@ -186,17 +186,17 @@ abstract class Test8 extends self::Base { : super self::Base::•() ; method test() → void { - core::int* v1 = let final core::String* #t216 = "x" in let final core::int* #t217 = self::getInt() in let final void #t218 = super.{self::Base::[]=}(#t216, #t217) in #t217; - core::num* v2 = let final core::String* #t219 = "x" in let final core::num* #t220 = self::getNum() in let final void #t221 = super.{self::Base::[]=}(#t219, #t220) in #t220; - core::double* v3 = let final core::String* #t222 = "x" in let final core::double* #t223 = self::getDouble() in let final void #t224 = super.{self::Base::[]=}(#t222, #t223) in #t223; - core::num* v4 = let final core::String* #t225 = "x" in let final core::double* #t226 = super.{self::Base::[]}(#t225) in #t226 == null ?{core::num*} let final core::int* #t227 = self::getInt() in let final void #t228 = super.{self::Base::[]=}(#t225, #t227) in #t227 : #t226; - core::num* v5 = let final core::String* #t229 = "x" in let final core::double* #t230 = super.{self::Base::[]}(#t229) in #t230 == null ?{core::num*} let final core::num* #t231 = self::getNum() in let final void #t232 = super.{self::Base::[]=}(#t229, #t231) in #t231 : #t230; - core::double* v6 = let final core::String* #t233 = "x" in let final core::double* #t234 = super.{self::Base::[]}(#t233) in #t234 == null ?{core::double*} let final core::double* #t235 = self::getDouble() in let final void #t236 = super.{self::Base::[]=}(#t233, #t235) in #t235 : #t234; - core::double* v7 = let final core::String* #t237 = "x" in let final core::double* #t238 = super.{self::Base::[]}(#t237).{core::double::+}(self::getInt()){(core::num*) →* core::double*} in let final void #t239 = super.{self::Base::[]=}(#t237, #t238) in #t238; - core::double* v8 = let final core::String* #t240 = "x" in let final core::double* #t241 = super.{self::Base::[]}(#t240).{core::double::+}(self::getNum()){(core::num*) →* core::double*} in let final void #t242 = super.{self::Base::[]=}(#t240, #t241) in #t241; - core::double* v9 = let final core::String* #t243 = "x" in let final core::double* #t244 = super.{self::Base::[]}(#t243).{core::double::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t245 = super.{self::Base::[]=}(#t243, #t244) in #t244; - core::double* v10 = let final core::String* #t246 = "x" in let final core::double* #t247 = super.{self::Base::[]}(#t246).{core::double::+}(1){(core::num*) →* core::double*} in let final void #t248 = super.{self::Base::[]=}(#t246, #t247) in #t247; - core::double* v11 = let final core::String* #t249 = "x" in let final core::double* #t250 = super.{self::Base::[]}(#t249) in let final void #t251 = super.{self::Base::[]=}(#t249, #t250.{core::double::+}(1){(core::num*) →* core::double*}) in #t250; + core::int* v1 = let final core::String* #t209 = "x" in let final core::int* #t210 = self::getInt() in let final void #t211 = super.{self::Base::[]=}(#t209, #t210) in #t210; + core::num* v2 = let final core::String* #t212 = "x" in let final core::num* #t213 = self::getNum() in let final void #t214 = super.{self::Base::[]=}(#t212, #t213) in #t213; + core::double* v3 = let final core::String* #t215 = "x" in let final core::double* #t216 = self::getDouble() in let final void #t217 = super.{self::Base::[]=}(#t215, #t216) in #t216; + core::num* v4 = let final core::String* #t218 = "x" in let final core::double* #t219 = super.{self::Base::[]}(#t218) in #t219 == null ?{core::num*} let final core::int* #t220 = self::getInt() in let final void #t221 = super.{self::Base::[]=}(#t218, #t220) in #t220 : #t219; + core::num* v5 = let final core::String* #t222 = "x" in let final core::double* #t223 = super.{self::Base::[]}(#t222) in #t223 == null ?{core::num*} let final core::num* #t224 = self::getNum() in let final void #t225 = super.{self::Base::[]=}(#t222, #t224) in #t224 : #t223; + core::double* v6 = let final core::String* #t226 = "x" in let final core::double* #t227 = super.{self::Base::[]}(#t226) in #t227 == null ?{core::double*} let final core::double* #t228 = self::getDouble() in let final void #t229 = super.{self::Base::[]=}(#t226, #t228) in #t228 : #t227; + core::double* v7 = let final core::String* #t230 = "x" in let final core::double* #t231 = super.{self::Base::[]}(#t230).{core::double::+}(self::getInt()){(core::num*) →* core::double*} in let final void #t232 = super.{self::Base::[]=}(#t230, #t231) in #t231; + core::double* v8 = let final core::String* #t233 = "x" in let final core::double* #t234 = super.{self::Base::[]}(#t233).{core::double::+}(self::getNum()){(core::num*) →* core::double*} in let final void #t235 = super.{self::Base::[]=}(#t233, #t234) in #t234; + core::double* v9 = let final core::String* #t236 = "x" in let final core::double* #t237 = super.{self::Base::[]}(#t236).{core::double::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t238 = super.{self::Base::[]=}(#t236, #t237) in #t237; + core::double* v10 = let final core::String* #t239 = "x" in let final core::double* #t240 = super.{self::Base::[]}(#t239).{core::double::+}(1){(core::num*) →* core::double*} in let final void #t241 = super.{self::Base::[]=}(#t239, #t240) in #t240; + core::double* v11 = let final core::String* #t242 = "x" in let final core::double* #t243 = super.{self::Base::[]}(#t242) in let final void #t244 = super.{self::Base::[]=}(#t242, #t243.{core::double::+}(1){(core::num*) →* core::double*}) in #t243; } } abstract class Test9 extends self::Base { @@ -204,15 +204,15 @@ abstract class Test9 extends self::Base { : super self::Base::•() ; method test() → void { - core::num* v2 = let final core::String* #t252 = "x" in let final core::num* #t253 = self::getNum() as{TypeError} core::double* in let final void #t254 = super.{self::Base::[]=}(#t252, #t253) in #t253; - core::double* v3 = let final core::String* #t255 = "x" in let final core::double* #t256 = self::getDouble() in let final void #t257 = super.{self::Base::[]=}(#t255, #t256) in #t256; - core::num* v5 = let final core::String* #t258 = "x" in let final core::double* #t259 = super.{self::Base::[]}(#t258) in #t259 == null ?{core::num*} let final core::num* #t260 = self::getNum() as{TypeError} core::double* in let final void #t261 = super.{self::Base::[]=}(#t258, #t260) in #t260 : #t259; - core::double* v6 = let final core::String* #t262 = "x" in let final core::double* #t263 = super.{self::Base::[]}(#t262) in #t263 == null ?{core::double*} let final core::double* #t264 = self::getDouble() in let final void #t265 = super.{self::Base::[]=}(#t262, #t264) in #t264 : #t263; - core::double* v7 = let final core::String* #t266 = "x" in let final core::double* #t267 = super.{self::Base::[]}(#t266).{core::double::+}(self::getInt()){(core::num*) →* core::double*} in let final void #t268 = super.{self::Base::[]=}(#t266, #t267) in #t267; - core::double* v8 = let final core::String* #t269 = "x" in let final core::double* #t270 = super.{self::Base::[]}(#t269).{core::double::+}(self::getNum()){(core::num*) →* core::double*} in let final void #t271 = super.{self::Base::[]=}(#t269, #t270) in #t270; - core::double* v9 = let final core::String* #t272 = "x" in let final core::double* #t273 = super.{self::Base::[]}(#t272).{core::double::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t274 = super.{self::Base::[]=}(#t272, #t273) in #t273; - core::double* v10 = let final core::String* #t275 = "x" in let final core::double* #t276 = super.{self::Base::[]}(#t275).{core::double::+}(1){(core::num*) →* core::double*} in let final void #t277 = super.{self::Base::[]=}(#t275, #t276) in #t276; - core::double* v11 = let final core::String* #t278 = "x" in let final core::double* #t279 = super.{self::Base::[]}(#t278) in let final void #t280 = super.{self::Base::[]=}(#t278, #t279.{core::double::+}(1){(core::num*) →* core::double*}) in #t279; + core::num* v2 = let final core::String* #t245 = "x" in let final core::num* #t246 = self::getNum() as{TypeError} core::double* in let final void #t247 = super.{self::Base::[]=}(#t245, #t246) in #t246; + core::double* v3 = let final core::String* #t248 = "x" in let final core::double* #t249 = self::getDouble() in let final void #t250 = super.{self::Base::[]=}(#t248, #t249) in #t249; + core::num* v5 = let final core::String* #t251 = "x" in let final core::double* #t252 = super.{self::Base::[]}(#t251) in #t252 == null ?{core::num*} let final core::num* #t253 = self::getNum() as{TypeError} core::double* in let final void #t254 = super.{self::Base::[]=}(#t251, #t253) in #t253 : #t252; + core::double* v6 = let final core::String* #t255 = "x" in let final core::double* #t256 = super.{self::Base::[]}(#t255) in #t256 == null ?{core::double*} let final core::double* #t257 = self::getDouble() in let final void #t258 = super.{self::Base::[]=}(#t255, #t257) in #t257 : #t256; + core::double* v7 = let final core::String* #t259 = "x" in let final core::double* #t260 = super.{self::Base::[]}(#t259).{core::double::+}(self::getInt()){(core::num*) →* core::double*} in let final void #t261 = super.{self::Base::[]=}(#t259, #t260) in #t260; + core::double* v8 = let final core::String* #t262 = "x" in let final core::double* #t263 = super.{self::Base::[]}(#t262).{core::double::+}(self::getNum()){(core::num*) →* core::double*} in let final void #t264 = super.{self::Base::[]=}(#t262, #t263) in #t263; + core::double* v9 = let final core::String* #t265 = "x" in let final core::double* #t266 = super.{self::Base::[]}(#t265).{core::double::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t267 = super.{self::Base::[]=}(#t265, #t266) in #t266; + core::double* v10 = let final core::String* #t268 = "x" in let final core::double* #t269 = super.{self::Base::[]}(#t268).{core::double::+}(1){(core::num*) →* core::double*} in let final void #t270 = super.{self::Base::[]=}(#t268, #t269) in #t269; + core::double* v11 = let final core::String* #t271 = "x" in let final core::double* #t272 = super.{self::Base::[]}(#t271) in let final void #t273 = super.{self::Base::[]=}(#t271, #t272.{core::double::+}(1){(core::num*) →* core::double*}) in #t272; } } static method getInt() → core::int* diff --git a/pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart.weak.expect b/pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart.weak.expect index 7648761eda8..99a0822033e 100644 --- a/pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart.weak.expect +++ b/pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart.weak.expect @@ -101,17 +101,17 @@ abstract class Test3 extends core::Object { core::double* v3 = let final core::String* #t66 = "x" in let final core::double* #t67 = self::getDouble() in let final void #t68 = this.{self::Test3::[]=}(#t66, #t67){(core::String*, core::double*) →* void} in #t67; core::num* v5 = let final core::String* #t69 = "x" in let final core::int* #t70 = this.{self::Test3::[]}(#t69){(core::String*) →* core::int*} in #t70 == null ?{core::num*} let final core::num* #t71 = self::getNum() as{TypeError} core::double* in let final void #t72 = this.{self::Test3::[]=}(#t69, #t71){(core::String*, core::double*) →* void} in #t71 : #t70; core::num* v6 = let final core::String* #t73 = "x" in let final core::int* #t74 = this.{self::Test3::[]}(#t73){(core::String*) →* core::int*} in #t74 == null ?{core::num*} let final core::double* #t75 = self::getDouble() in let final void #t76 = this.{self::Test3::[]=}(#t73, #t75){(core::String*, core::double*) →* void} in #t75 : #t74; - core::int* v7 = let final core::String* #t77 = "x" in let final core::int* #t78 = let final Never* #t79 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:109:27: Error: A value of type 'int' can't be assigned to a variable of type 'double'. + core::int* v7 = let final core::String* #t77 = "x" in let final core::int* #t78 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:109:27: Error: A value of type 'int' can't be assigned to a variable of type 'double'. /*@target=num.+*/ += getInt(); - ^" in this.{self::Test3::[]}(#t77){(core::String*) →* core::int*}.{core::num::+}(self::getInt()){(core::num*) →* core::int*} as{TypeError} core::double* in let final void #t80 = this.{self::Test3::[]=}(#t77, #t78){(core::String*, core::double*) →* void} in #t78; - core::num* v8 = let final core::String* #t81 = "x" in let final core::num* #t82 = this.{self::Test3::[]}(#t81){(core::String*) →* core::int*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t83 = this.{self::Test3::[]=}(#t81, #t82){(core::String*, core::double*) →* void} in #t82; - core::double* v9 = let final core::String* #t84 = "x" in let final core::double* #t85 = this.{self::Test3::[]}(#t84){(core::String*) →* core::int*}.{core::num::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t86 = this.{self::Test3::[]=}(#t84, #t85){(core::String*, core::double*) →* void} in #t85; - core::int* v10 = let final core::String* #t87 = "x" in let final core::int* #t88 = let final Never* #t89 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:119:50: Error: A value of type 'int' can't be assigned to a variable of type 'double'. + ^" in this.{self::Test3::[]}(#t77){(core::String*) →* core::int*}.{core::num::+}(self::getInt()){(core::num*) →* core::int*} as{TypeError} core::double* in let final void #t79 = this.{self::Test3::[]=}(#t77, #t78){(core::String*, core::double*) →* void} in #t78; + core::num* v8 = let final core::String* #t80 = "x" in let final core::num* #t81 = this.{self::Test3::[]}(#t80){(core::String*) →* core::int*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t82 = this.{self::Test3::[]=}(#t80, #t81){(core::String*, core::double*) →* void} in #t81; + core::double* v9 = let final core::String* #t83 = "x" in let final core::double* #t84 = this.{self::Test3::[]}(#t83){(core::String*) →* core::int*}.{core::num::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t85 = this.{self::Test3::[]=}(#t83, #t84){(core::String*, core::double*) →* void} in #t84; + core::int* v10 = let final core::String* #t86 = "x" in let final core::int* #t87 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:119:50: Error: A value of type 'int' can't be assigned to a variable of type 'double'. var /*@ type=int* */ v10 = /*@target=num.+*/ ++this - ^" in this.{self::Test3::[]}(#t87){(core::String*) →* core::int*}.{core::num::+}(1){(core::num*) →* core::int*} as{TypeError} core::double* in let final void #t90 = this.{self::Test3::[]=}(#t87, #t88){(core::String*, core::double*) →* void} in #t88; - core::int* v11 = let final core::String* #t91 = "x" in let final core::int* #t92 = this.{self::Test3::[]}(#t91){(core::String*) →* core::int*} in let final void #t93 = this.{self::Test3::[]=}(#t91, let final Never* #t94 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:124:27: Error: A value of type 'int' can't be assigned to a variable of type 'double'. + ^" in this.{self::Test3::[]}(#t86){(core::String*) →* core::int*}.{core::num::+}(1){(core::num*) →* core::int*} as{TypeError} core::double* in let final void #t88 = this.{self::Test3::[]=}(#t86, #t87){(core::String*, core::double*) →* void} in #t87; + core::int* v11 = let final core::String* #t89 = "x" in let final core::int* #t90 = this.{self::Test3::[]}(#t89){(core::String*) →* core::int*} in let final void #t91 = this.{self::Test3::[]=}(#t89, invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:124:27: Error: A value of type 'int' can't be assigned to a variable of type 'double'. /*@target=num.+*/ ++; - ^" in #t92.{core::num::+}(1){(core::num*) →* core::int*} as{TypeError} core::double*){(core::String*, core::double*) →* void} in #t92; + ^" in #t90.{core::num::+}(1){(core::num*) →* core::int*} as{TypeError} core::double*){(core::String*, core::double*) →* void} in #t90; } abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf @@ -131,14 +131,14 @@ abstract class Test4 extends core::Object { abstract operator [](core::String* s) → core::num*; abstract operator []=(core::String* s, core::int* v) → void; method test() → void { - core::int* v1 = let final core::String* #t95 = "x" in let final core::int* #t96 = self::getInt() in let final void #t97 = this.{self::Test4::[]=}(#t95, #t96){(core::String*, core::int*) →* void} in #t96; - core::num* v2 = let final core::String* #t98 = "x" in let final core::num* #t99 = self::getNum() as{TypeError} core::int* in let final void #t100 = this.{self::Test4::[]=}(#t98, #t99){(core::String*, core::int*) →* void} in #t99; - core::num* v4 = let final core::String* #t101 = "x" in let final core::num* #t102 = this.{self::Test4::[]}(#t101){(core::String*) →* core::num*} in #t102 == null ?{core::num*} let final core::int* #t103 = self::getInt() in let final void #t104 = this.{self::Test4::[]=}(#t101, #t103){(core::String*, core::int*) →* void} in #t103 : #t102; - core::num* v5 = let final core::String* #t105 = "x" in let final core::num* #t106 = this.{self::Test4::[]}(#t105){(core::String*) →* core::num*} in #t106 == null ?{core::num*} let final core::num* #t107 = self::getNum() as{TypeError} core::int* in let final void #t108 = this.{self::Test4::[]=}(#t105, #t107){(core::String*, core::int*) →* void} in #t107 : #t106; - core::num* v7 = let final core::String* #t109 = "x" in let final core::num* #t110 = this.{self::Test4::[]}(#t109){(core::String*) →* core::num*}.{core::num::+}(self::getInt()){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t111 = this.{self::Test4::[]=}(#t109, #t110){(core::String*, core::int*) →* void} in #t110; - core::num* v8 = let final core::String* #t112 = "x" in let final core::num* #t113 = this.{self::Test4::[]}(#t112){(core::String*) →* core::num*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t114 = this.{self::Test4::[]=}(#t112, #t113){(core::String*, core::int*) →* void} in #t113; - core::num* v10 = let final core::String* #t115 = "x" in let final core::num* #t116 = this.{self::Test4::[]}(#t115){(core::String*) →* core::num*}.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t117 = this.{self::Test4::[]=}(#t115, #t116){(core::String*, core::int*) →* void} in #t116; - core::num* v11 = let final core::String* #t118 = "x" in let final core::num* #t119 = this.{self::Test4::[]}(#t118){(core::String*) →* core::num*} in let final void #t120 = this.{self::Test4::[]=}(#t118, #t119.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::int*){(core::String*, core::int*) →* void} in #t119; + core::int* v1 = let final core::String* #t92 = "x" in let final core::int* #t93 = self::getInt() in let final void #t94 = this.{self::Test4::[]=}(#t92, #t93){(core::String*, core::int*) →* void} in #t93; + core::num* v2 = let final core::String* #t95 = "x" in let final core::num* #t96 = self::getNum() as{TypeError} core::int* in let final void #t97 = this.{self::Test4::[]=}(#t95, #t96){(core::String*, core::int*) →* void} in #t96; + core::num* v4 = let final core::String* #t98 = "x" in let final core::num* #t99 = this.{self::Test4::[]}(#t98){(core::String*) →* core::num*} in #t99 == null ?{core::num*} let final core::int* #t100 = self::getInt() in let final void #t101 = this.{self::Test4::[]=}(#t98, #t100){(core::String*, core::int*) →* void} in #t100 : #t99; + core::num* v5 = let final core::String* #t102 = "x" in let final core::num* #t103 = this.{self::Test4::[]}(#t102){(core::String*) →* core::num*} in #t103 == null ?{core::num*} let final core::num* #t104 = self::getNum() as{TypeError} core::int* in let final void #t105 = this.{self::Test4::[]=}(#t102, #t104){(core::String*, core::int*) →* void} in #t104 : #t103; + core::num* v7 = let final core::String* #t106 = "x" in let final core::num* #t107 = this.{self::Test4::[]}(#t106){(core::String*) →* core::num*}.{core::num::+}(self::getInt()){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t108 = this.{self::Test4::[]=}(#t106, #t107){(core::String*, core::int*) →* void} in #t107; + core::num* v8 = let final core::String* #t109 = "x" in let final core::num* #t110 = this.{self::Test4::[]}(#t109){(core::String*) →* core::num*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t111 = this.{self::Test4::[]=}(#t109, #t110){(core::String*, core::int*) →* void} in #t110; + core::num* v10 = let final core::String* #t112 = "x" in let final core::num* #t113 = this.{self::Test4::[]}(#t112){(core::String*) →* core::num*}.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t114 = this.{self::Test4::[]=}(#t112, #t113){(core::String*, core::int*) →* void} in #t113; + core::num* v11 = let final core::String* #t115 = "x" in let final core::num* #t116 = this.{self::Test4::[]}(#t115){(core::String*) →* core::num*} in let final void #t117 = this.{self::Test4::[]=}(#t115, #t116.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::int*){(core::String*, core::int*) →* void} in #t116; } abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf @@ -158,17 +158,17 @@ abstract class Test5 extends core::Object { abstract operator [](core::String* s) → core::num*; abstract operator []=(core::String* s, core::num* v) → void; method test() → void { - core::int* v1 = let final core::String* #t121 = "x" in let final core::int* #t122 = self::getInt() in let final void #t123 = this.{self::Test5::[]=}(#t121, #t122){(core::String*, core::num*) →* void} in #t122; - core::num* v2 = let final core::String* #t124 = "x" in let final core::num* #t125 = self::getNum() in let final void #t126 = this.{self::Test5::[]=}(#t124, #t125){(core::String*, core::num*) →* void} in #t125; - core::double* v3 = let final core::String* #t127 = "x" in let final core::double* #t128 = self::getDouble() in let final void #t129 = this.{self::Test5::[]=}(#t127, #t128){(core::String*, core::num*) →* void} in #t128; - core::num* v4 = let final core::String* #t130 = "x" in let final core::num* #t131 = this.{self::Test5::[]}(#t130){(core::String*) →* core::num*} in #t131 == null ?{core::num*} let final core::int* #t132 = self::getInt() in let final void #t133 = this.{self::Test5::[]=}(#t130, #t132){(core::String*, core::num*) →* void} in #t132 : #t131; - core::num* v5 = let final core::String* #t134 = "x" in let final core::num* #t135 = this.{self::Test5::[]}(#t134){(core::String*) →* core::num*} in #t135 == null ?{core::num*} let final core::num* #t136 = self::getNum() in let final void #t137 = this.{self::Test5::[]=}(#t134, #t136){(core::String*, core::num*) →* void} in #t136 : #t135; - core::num* v6 = let final core::String* #t138 = "x" in let final core::num* #t139 = this.{self::Test5::[]}(#t138){(core::String*) →* core::num*} in #t139 == null ?{core::num*} let final core::double* #t140 = self::getDouble() in let final void #t141 = this.{self::Test5::[]=}(#t138, #t140){(core::String*, core::num*) →* void} in #t140 : #t139; - core::num* v7 = let final core::String* #t142 = "x" in let final core::num* #t143 = this.{self::Test5::[]}(#t142){(core::String*) →* core::num*}.{core::num::+}(self::getInt()){(core::num*) →* core::num*} in let final void #t144 = this.{self::Test5::[]=}(#t142, #t143){(core::String*, core::num*) →* void} in #t143; - core::num* v8 = let final core::String* #t145 = "x" in let final core::num* #t146 = this.{self::Test5::[]}(#t145){(core::String*) →* core::num*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} in let final void #t147 = this.{self::Test5::[]=}(#t145, #t146){(core::String*, core::num*) →* void} in #t146; - core::num* v9 = let final core::String* #t148 = "x" in let final core::num* #t149 = this.{self::Test5::[]}(#t148){(core::String*) →* core::num*}.{core::num::+}(self::getDouble()){(core::num*) →* core::num*} in let final void #t150 = this.{self::Test5::[]=}(#t148, #t149){(core::String*, core::num*) →* void} in #t149; - core::num* v10 = let final core::String* #t151 = "x" in let final core::num* #t152 = this.{self::Test5::[]}(#t151){(core::String*) →* core::num*}.{core::num::+}(1){(core::num*) →* core::num*} in let final void #t153 = this.{self::Test5::[]=}(#t151, #t152){(core::String*, core::num*) →* void} in #t152; - core::num* v11 = let final core::String* #t154 = "x" in let final core::num* #t155 = this.{self::Test5::[]}(#t154){(core::String*) →* core::num*} in let final void #t156 = this.{self::Test5::[]=}(#t154, #t155.{core::num::+}(1){(core::num*) →* core::num*}){(core::String*, core::num*) →* void} in #t155; + core::int* v1 = let final core::String* #t118 = "x" in let final core::int* #t119 = self::getInt() in let final void #t120 = this.{self::Test5::[]=}(#t118, #t119){(core::String*, core::num*) →* void} in #t119; + core::num* v2 = let final core::String* #t121 = "x" in let final core::num* #t122 = self::getNum() in let final void #t123 = this.{self::Test5::[]=}(#t121, #t122){(core::String*, core::num*) →* void} in #t122; + core::double* v3 = let final core::String* #t124 = "x" in let final core::double* #t125 = self::getDouble() in let final void #t126 = this.{self::Test5::[]=}(#t124, #t125){(core::String*, core::num*) →* void} in #t125; + core::num* v4 = let final core::String* #t127 = "x" in let final core::num* #t128 = this.{self::Test5::[]}(#t127){(core::String*) →* core::num*} in #t128 == null ?{core::num*} let final core::int* #t129 = self::getInt() in let final void #t130 = this.{self::Test5::[]=}(#t127, #t129){(core::String*, core::num*) →* void} in #t129 : #t128; + core::num* v5 = let final core::String* #t131 = "x" in let final core::num* #t132 = this.{self::Test5::[]}(#t131){(core::String*) →* core::num*} in #t132 == null ?{core::num*} let final core::num* #t133 = self::getNum() in let final void #t134 = this.{self::Test5::[]=}(#t131, #t133){(core::String*, core::num*) →* void} in #t133 : #t132; + core::num* v6 = let final core::String* #t135 = "x" in let final core::num* #t136 = this.{self::Test5::[]}(#t135){(core::String*) →* core::num*} in #t136 == null ?{core::num*} let final core::double* #t137 = self::getDouble() in let final void #t138 = this.{self::Test5::[]=}(#t135, #t137){(core::String*, core::num*) →* void} in #t137 : #t136; + core::num* v7 = let final core::String* #t139 = "x" in let final core::num* #t140 = this.{self::Test5::[]}(#t139){(core::String*) →* core::num*}.{core::num::+}(self::getInt()){(core::num*) →* core::num*} in let final void #t141 = this.{self::Test5::[]=}(#t139, #t140){(core::String*, core::num*) →* void} in #t140; + core::num* v8 = let final core::String* #t142 = "x" in let final core::num* #t143 = this.{self::Test5::[]}(#t142){(core::String*) →* core::num*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} in let final void #t144 = this.{self::Test5::[]=}(#t142, #t143){(core::String*, core::num*) →* void} in #t143; + core::num* v9 = let final core::String* #t145 = "x" in let final core::num* #t146 = this.{self::Test5::[]}(#t145){(core::String*) →* core::num*}.{core::num::+}(self::getDouble()){(core::num*) →* core::num*} in let final void #t147 = this.{self::Test5::[]=}(#t145, #t146){(core::String*, core::num*) →* void} in #t146; + core::num* v10 = let final core::String* #t148 = "x" in let final core::num* #t149 = this.{self::Test5::[]}(#t148){(core::String*) →* core::num*}.{core::num::+}(1){(core::num*) →* core::num*} in let final void #t150 = this.{self::Test5::[]=}(#t148, #t149){(core::String*, core::num*) →* void} in #t149; + core::num* v11 = let final core::String* #t151 = "x" in let final core::num* #t152 = this.{self::Test5::[]}(#t151){(core::String*) →* core::num*} in let final void #t153 = this.{self::Test5::[]=}(#t151, #t152.{core::num::+}(1){(core::num*) →* core::num*}){(core::String*, core::num*) →* void} in #t152; } abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf @@ -188,15 +188,15 @@ abstract class Test6 extends core::Object { abstract operator [](core::String* s) → core::num*; abstract operator []=(core::String* s, core::double* v) → void; method test() → void { - core::num* v2 = let final core::String* #t157 = "x" in let final core::num* #t158 = self::getNum() as{TypeError} core::double* in let final void #t159 = this.{self::Test6::[]=}(#t157, #t158){(core::String*, core::double*) →* void} in #t158; - core::double* v3 = let final core::String* #t160 = "x" in let final core::double* #t161 = self::getDouble() in let final void #t162 = this.{self::Test6::[]=}(#t160, #t161){(core::String*, core::double*) →* void} in #t161; - core::num* v5 = let final core::String* #t163 = "x" in let final core::num* #t164 = this.{self::Test6::[]}(#t163){(core::String*) →* core::num*} in #t164 == null ?{core::num*} let final core::num* #t165 = self::getNum() as{TypeError} core::double* in let final void #t166 = this.{self::Test6::[]=}(#t163, #t165){(core::String*, core::double*) →* void} in #t165 : #t164; - core::num* v6 = let final core::String* #t167 = "x" in let final core::num* #t168 = this.{self::Test6::[]}(#t167){(core::String*) →* core::num*} in #t168 == null ?{core::num*} let final core::double* #t169 = self::getDouble() in let final void #t170 = this.{self::Test6::[]=}(#t167, #t169){(core::String*, core::double*) →* void} in #t169 : #t168; - core::num* v7 = let final core::String* #t171 = "x" in let final core::num* #t172 = this.{self::Test6::[]}(#t171){(core::String*) →* core::num*}.{core::num::+}(self::getInt()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t173 = this.{self::Test6::[]=}(#t171, #t172){(core::String*, core::double*) →* void} in #t172; - core::num* v8 = let final core::String* #t174 = "x" in let final core::num* #t175 = this.{self::Test6::[]}(#t174){(core::String*) →* core::num*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t176 = this.{self::Test6::[]=}(#t174, #t175){(core::String*, core::double*) →* void} in #t175; - core::num* v9 = let final core::String* #t177 = "x" in let final core::num* #t178 = this.{self::Test6::[]}(#t177){(core::String*) →* core::num*}.{core::num::+}(self::getDouble()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t179 = this.{self::Test6::[]=}(#t177, #t178){(core::String*, core::double*) →* void} in #t178; - core::num* v10 = let final core::String* #t180 = "x" in let final core::num* #t181 = this.{self::Test6::[]}(#t180){(core::String*) →* core::num*}.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t182 = this.{self::Test6::[]=}(#t180, #t181){(core::String*, core::double*) →* void} in #t181; - core::num* v11 = let final core::String* #t183 = "x" in let final core::num* #t184 = this.{self::Test6::[]}(#t183){(core::String*) →* core::num*} in let final void #t185 = this.{self::Test6::[]=}(#t183, #t184.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::double*){(core::String*, core::double*) →* void} in #t184; + core::num* v2 = let final core::String* #t154 = "x" in let final core::num* #t155 = self::getNum() as{TypeError} core::double* in let final void #t156 = this.{self::Test6::[]=}(#t154, #t155){(core::String*, core::double*) →* void} in #t155; + core::double* v3 = let final core::String* #t157 = "x" in let final core::double* #t158 = self::getDouble() in let final void #t159 = this.{self::Test6::[]=}(#t157, #t158){(core::String*, core::double*) →* void} in #t158; + core::num* v5 = let final core::String* #t160 = "x" in let final core::num* #t161 = this.{self::Test6::[]}(#t160){(core::String*) →* core::num*} in #t161 == null ?{core::num*} let final core::num* #t162 = self::getNum() as{TypeError} core::double* in let final void #t163 = this.{self::Test6::[]=}(#t160, #t162){(core::String*, core::double*) →* void} in #t162 : #t161; + core::num* v6 = let final core::String* #t164 = "x" in let final core::num* #t165 = this.{self::Test6::[]}(#t164){(core::String*) →* core::num*} in #t165 == null ?{core::num*} let final core::double* #t166 = self::getDouble() in let final void #t167 = this.{self::Test6::[]=}(#t164, #t166){(core::String*, core::double*) →* void} in #t166 : #t165; + core::num* v7 = let final core::String* #t168 = "x" in let final core::num* #t169 = this.{self::Test6::[]}(#t168){(core::String*) →* core::num*}.{core::num::+}(self::getInt()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t170 = this.{self::Test6::[]=}(#t168, #t169){(core::String*, core::double*) →* void} in #t169; + core::num* v8 = let final core::String* #t171 = "x" in let final core::num* #t172 = this.{self::Test6::[]}(#t171){(core::String*) →* core::num*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t173 = this.{self::Test6::[]=}(#t171, #t172){(core::String*, core::double*) →* void} in #t172; + core::num* v9 = let final core::String* #t174 = "x" in let final core::num* #t175 = this.{self::Test6::[]}(#t174){(core::String*) →* core::num*}.{core::num::+}(self::getDouble()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t176 = this.{self::Test6::[]=}(#t174, #t175){(core::String*, core::double*) →* void} in #t175; + core::num* v10 = let final core::String* #t177 = "x" in let final core::num* #t178 = this.{self::Test6::[]}(#t177){(core::String*) →* core::num*}.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t179 = this.{self::Test6::[]=}(#t177, #t178){(core::String*, core::double*) →* void} in #t178; + core::num* v11 = let final core::String* #t180 = "x" in let final core::num* #t181 = this.{self::Test6::[]}(#t180){(core::String*) →* core::num*} in let final void #t182 = this.{self::Test6::[]=}(#t180, #t181.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::double*){(core::String*, core::double*) →* void} in #t181; } abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf @@ -216,22 +216,22 @@ abstract class Test7 extends core::Object { abstract operator [](core::String* s) → core::double*; abstract operator []=(core::String* s, core::int* v) → void; method test() → void { - core::int* v1 = let final core::String* #t186 = "x" in let final core::int* #t187 = self::getInt() in let final void #t188 = this.{self::Test7::[]=}(#t186, #t187){(core::String*, core::int*) →* void} in #t187; - core::num* v2 = let final core::String* #t189 = "x" in let final core::num* #t190 = self::getNum() as{TypeError} core::int* in let final void #t191 = this.{self::Test7::[]=}(#t189, #t190){(core::String*, core::int*) →* void} in #t190; - core::num* v4 = let final core::String* #t192 = "x" in let final core::double* #t193 = this.{self::Test7::[]}(#t192){(core::String*) →* core::double*} in #t193 == null ?{core::num*} let final core::int* #t194 = self::getInt() in let final void #t195 = this.{self::Test7::[]=}(#t192, #t194){(core::String*, core::int*) →* void} in #t194 : #t193; - core::num* v5 = let final core::String* #t196 = "x" in let final core::double* #t197 = this.{self::Test7::[]}(#t196){(core::String*) →* core::double*} in #t197 == null ?{core::num*} let final core::num* #t198 = self::getNum() as{TypeError} core::int* in let final void #t199 = this.{self::Test7::[]=}(#t196, #t198){(core::String*, core::int*) →* void} in #t198 : #t197; - core::double* v7 = let final core::String* #t200 = "x" in let final core::double* #t201 = let final Never* #t202 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:264:30: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int* v1 = let final core::String* #t183 = "x" in let final core::int* #t184 = self::getInt() in let final void #t185 = this.{self::Test7::[]=}(#t183, #t184){(core::String*, core::int*) →* void} in #t184; + core::num* v2 = let final core::String* #t186 = "x" in let final core::num* #t187 = self::getNum() as{TypeError} core::int* in let final void #t188 = this.{self::Test7::[]=}(#t186, #t187){(core::String*, core::int*) →* void} in #t187; + core::num* v4 = let final core::String* #t189 = "x" in let final core::double* #t190 = this.{self::Test7::[]}(#t189){(core::String*) →* core::double*} in #t190 == null ?{core::num*} let final core::int* #t191 = self::getInt() in let final void #t192 = this.{self::Test7::[]=}(#t189, #t191){(core::String*, core::int*) →* void} in #t191 : #t190; + core::num* v5 = let final core::String* #t193 = "x" in let final core::double* #t194 = this.{self::Test7::[]}(#t193){(core::String*) →* core::double*} in #t194 == null ?{core::num*} let final core::num* #t195 = self::getNum() as{TypeError} core::int* in let final void #t196 = this.{self::Test7::[]=}(#t193, #t195){(core::String*, core::int*) →* void} in #t195 : #t194; + core::double* v7 = let final core::String* #t197 = "x" in let final core::double* #t198 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:264:30: Error: A value of type 'double' can't be assigned to a variable of type 'int'. /*@target=double.+*/ += getInt(); - ^" in this.{self::Test7::[]}(#t200){(core::String*) →* core::double*}.{core::double::+}(self::getInt()){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t203 = this.{self::Test7::[]=}(#t200, #t201){(core::String*, core::int*) →* void} in #t201; - core::double* v8 = let final core::String* #t204 = "x" in let final core::double* #t205 = let final Never* #t206 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:268:30: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + ^" in this.{self::Test7::[]}(#t197){(core::String*) →* core::double*}.{core::double::+}(self::getInt()){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t199 = this.{self::Test7::[]=}(#t197, #t198){(core::String*, core::int*) →* void} in #t198; + core::double* v8 = let final core::String* #t200 = "x" in let final core::double* #t201 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:268:30: Error: A value of type 'double' can't be assigned to a variable of type 'int'. /*@target=double.+*/ += getNum(); - ^" in this.{self::Test7::[]}(#t204){(core::String*) →* core::double*}.{core::double::+}(self::getNum()){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t207 = this.{self::Test7::[]=}(#t204, #t205){(core::String*, core::int*) →* void} in #t205; - core::double* v10 = let final core::String* #t208 = "x" in let final core::double* #t209 = let final Never* #t210 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:270:56: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + ^" in this.{self::Test7::[]}(#t200){(core::String*) →* core::double*}.{core::double::+}(self::getNum()){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t202 = this.{self::Test7::[]=}(#t200, #t201){(core::String*, core::int*) →* void} in #t201; + core::double* v10 = let final core::String* #t203 = "x" in let final core::double* #t204 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:270:56: Error: A value of type 'double' can't be assigned to a variable of type 'int'. var /*@ type=double* */ v10 = /*@target=double.+*/ ++this - ^" in this.{self::Test7::[]}(#t208){(core::String*) →* core::double*}.{core::double::+}(1){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t211 = this.{self::Test7::[]=}(#t208, #t209){(core::String*, core::int*) →* void} in #t209; - core::double* v11 = let final core::String* #t212 = "x" in let final core::double* #t213 = this.{self::Test7::[]}(#t212){(core::String*) →* core::double*} in let final void #t214 = this.{self::Test7::[]=}(#t212, let final Never* #t215 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:275:30: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + ^" in this.{self::Test7::[]}(#t203){(core::String*) →* core::double*}.{core::double::+}(1){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t205 = this.{self::Test7::[]=}(#t203, #t204){(core::String*, core::int*) →* void} in #t204; + core::double* v11 = let final core::String* #t206 = "x" in let final core::double* #t207 = this.{self::Test7::[]}(#t206){(core::String*) →* core::double*} in let final void #t208 = this.{self::Test7::[]=}(#t206, invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_this_upwards.dart:275:30: Error: A value of type 'double' can't be assigned to a variable of type 'int'. /*@target=double.+*/ ++; - ^" in #t213.{core::double::+}(1){(core::num*) →* core::double*} as{TypeError} core::int*){(core::String*, core::int*) →* void} in #t213; + ^" in #t207.{core::double::+}(1){(core::num*) →* core::double*} as{TypeError} core::int*){(core::String*, core::int*) →* void} in #t207; } abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf @@ -251,17 +251,17 @@ abstract class Test8 extends core::Object { abstract operator [](core::String* s) → core::double*; abstract operator []=(core::String* s, core::num* v) → void; method test() → void { - core::int* v1 = let final core::String* #t216 = "x" in let final core::int* #t217 = self::getInt() in let final void #t218 = this.{self::Test8::[]=}(#t216, #t217){(core::String*, core::num*) →* void} in #t217; - core::num* v2 = let final core::String* #t219 = "x" in let final core::num* #t220 = self::getNum() in let final void #t221 = this.{self::Test8::[]=}(#t219, #t220){(core::String*, core::num*) →* void} in #t220; - core::double* v3 = let final core::String* #t222 = "x" in let final core::double* #t223 = self::getDouble() in let final void #t224 = this.{self::Test8::[]=}(#t222, #t223){(core::String*, core::num*) →* void} in #t223; - core::num* v4 = let final core::String* #t225 = "x" in let final core::double* #t226 = this.{self::Test8::[]}(#t225){(core::String*) →* core::double*} in #t226 == null ?{core::num*} let final core::int* #t227 = self::getInt() in let final void #t228 = this.{self::Test8::[]=}(#t225, #t227){(core::String*, core::num*) →* void} in #t227 : #t226; - core::num* v5 = let final core::String* #t229 = "x" in let final core::double* #t230 = this.{self::Test8::[]}(#t229){(core::String*) →* core::double*} in #t230 == null ?{core::num*} let final core::num* #t231 = self::getNum() in let final void #t232 = this.{self::Test8::[]=}(#t229, #t231){(core::String*, core::num*) →* void} in #t231 : #t230; - core::double* v6 = let final core::String* #t233 = "x" in let final core::double* #t234 = this.{self::Test8::[]}(#t233){(core::String*) →* core::double*} in #t234 == null ?{core::double*} let final core::double* #t235 = self::getDouble() in let final void #t236 = this.{self::Test8::[]=}(#t233, #t235){(core::String*, core::num*) →* void} in #t235 : #t234; - core::double* v7 = let final core::String* #t237 = "x" in let final core::double* #t238 = this.{self::Test8::[]}(#t237){(core::String*) →* core::double*}.{core::double::+}(self::getInt()){(core::num*) →* core::double*} in let final void #t239 = this.{self::Test8::[]=}(#t237, #t238){(core::String*, core::num*) →* void} in #t238; - core::double* v8 = let final core::String* #t240 = "x" in let final core::double* #t241 = this.{self::Test8::[]}(#t240){(core::String*) →* core::double*}.{core::double::+}(self::getNum()){(core::num*) →* core::double*} in let final void #t242 = this.{self::Test8::[]=}(#t240, #t241){(core::String*, core::num*) →* void} in #t241; - core::double* v9 = let final core::String* #t243 = "x" in let final core::double* #t244 = this.{self::Test8::[]}(#t243){(core::String*) →* core::double*}.{core::double::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t245 = this.{self::Test8::[]=}(#t243, #t244){(core::String*, core::num*) →* void} in #t244; - core::double* v10 = let final core::String* #t246 = "x" in let final core::double* #t247 = this.{self::Test8::[]}(#t246){(core::String*) →* core::double*}.{core::double::+}(1){(core::num*) →* core::double*} in let final void #t248 = this.{self::Test8::[]=}(#t246, #t247){(core::String*, core::num*) →* void} in #t247; - core::double* v11 = let final core::String* #t249 = "x" in let final core::double* #t250 = this.{self::Test8::[]}(#t249){(core::String*) →* core::double*} in let final void #t251 = this.{self::Test8::[]=}(#t249, #t250.{core::double::+}(1){(core::num*) →* core::double*}){(core::String*, core::num*) →* void} in #t250; + core::int* v1 = let final core::String* #t209 = "x" in let final core::int* #t210 = self::getInt() in let final void #t211 = this.{self::Test8::[]=}(#t209, #t210){(core::String*, core::num*) →* void} in #t210; + core::num* v2 = let final core::String* #t212 = "x" in let final core::num* #t213 = self::getNum() in let final void #t214 = this.{self::Test8::[]=}(#t212, #t213){(core::String*, core::num*) →* void} in #t213; + core::double* v3 = let final core::String* #t215 = "x" in let final core::double* #t216 = self::getDouble() in let final void #t217 = this.{self::Test8::[]=}(#t215, #t216){(core::String*, core::num*) →* void} in #t216; + core::num* v4 = let final core::String* #t218 = "x" in let final core::double* #t219 = this.{self::Test8::[]}(#t218){(core::String*) →* core::double*} in #t219 == null ?{core::num*} let final core::int* #t220 = self::getInt() in let final void #t221 = this.{self::Test8::[]=}(#t218, #t220){(core::String*, core::num*) →* void} in #t220 : #t219; + core::num* v5 = let final core::String* #t222 = "x" in let final core::double* #t223 = this.{self::Test8::[]}(#t222){(core::String*) →* core::double*} in #t223 == null ?{core::num*} let final core::num* #t224 = self::getNum() in let final void #t225 = this.{self::Test8::[]=}(#t222, #t224){(core::String*, core::num*) →* void} in #t224 : #t223; + core::double* v6 = let final core::String* #t226 = "x" in let final core::double* #t227 = this.{self::Test8::[]}(#t226){(core::String*) →* core::double*} in #t227 == null ?{core::double*} let final core::double* #t228 = self::getDouble() in let final void #t229 = this.{self::Test8::[]=}(#t226, #t228){(core::String*, core::num*) →* void} in #t228 : #t227; + core::double* v7 = let final core::String* #t230 = "x" in let final core::double* #t231 = this.{self::Test8::[]}(#t230){(core::String*) →* core::double*}.{core::double::+}(self::getInt()){(core::num*) →* core::double*} in let final void #t232 = this.{self::Test8::[]=}(#t230, #t231){(core::String*, core::num*) →* void} in #t231; + core::double* v8 = let final core::String* #t233 = "x" in let final core::double* #t234 = this.{self::Test8::[]}(#t233){(core::String*) →* core::double*}.{core::double::+}(self::getNum()){(core::num*) →* core::double*} in let final void #t235 = this.{self::Test8::[]=}(#t233, #t234){(core::String*, core::num*) →* void} in #t234; + core::double* v9 = let final core::String* #t236 = "x" in let final core::double* #t237 = this.{self::Test8::[]}(#t236){(core::String*) →* core::double*}.{core::double::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t238 = this.{self::Test8::[]=}(#t236, #t237){(core::String*, core::num*) →* void} in #t237; + core::double* v10 = let final core::String* #t239 = "x" in let final core::double* #t240 = this.{self::Test8::[]}(#t239){(core::String*) →* core::double*}.{core::double::+}(1){(core::num*) →* core::double*} in let final void #t241 = this.{self::Test8::[]=}(#t239, #t240){(core::String*, core::num*) →* void} in #t240; + core::double* v11 = let final core::String* #t242 = "x" in let final core::double* #t243 = this.{self::Test8::[]}(#t242){(core::String*) →* core::double*} in let final void #t244 = this.{self::Test8::[]=}(#t242, #t243.{core::double::+}(1){(core::num*) →* core::double*}){(core::String*, core::num*) →* void} in #t243; } abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf @@ -281,15 +281,15 @@ abstract class Test9 extends core::Object { abstract operator [](core::String* s) → core::double*; abstract operator []=(core::String* s, core::double* v) → void; method test() → void { - core::num* v2 = let final core::String* #t252 = "x" in let final core::num* #t253 = self::getNum() as{TypeError} core::double* in let final void #t254 = this.{self::Test9::[]=}(#t252, #t253){(core::String*, core::double*) →* void} in #t253; - core::double* v3 = let final core::String* #t255 = "x" in let final core::double* #t256 = self::getDouble() in let final void #t257 = this.{self::Test9::[]=}(#t255, #t256){(core::String*, core::double*) →* void} in #t256; - core::num* v5 = let final core::String* #t258 = "x" in let final core::double* #t259 = this.{self::Test9::[]}(#t258){(core::String*) →* core::double*} in #t259 == null ?{core::num*} let final core::num* #t260 = self::getNum() as{TypeError} core::double* in let final void #t261 = this.{self::Test9::[]=}(#t258, #t260){(core::String*, core::double*) →* void} in #t260 : #t259; - core::double* v6 = let final core::String* #t262 = "x" in let final core::double* #t263 = this.{self::Test9::[]}(#t262){(core::String*) →* core::double*} in #t263 == null ?{core::double*} let final core::double* #t264 = self::getDouble() in let final void #t265 = this.{self::Test9::[]=}(#t262, #t264){(core::String*, core::double*) →* void} in #t264 : #t263; - core::double* v7 = let final core::String* #t266 = "x" in let final core::double* #t267 = this.{self::Test9::[]}(#t266){(core::String*) →* core::double*}.{core::double::+}(self::getInt()){(core::num*) →* core::double*} in let final void #t268 = this.{self::Test9::[]=}(#t266, #t267){(core::String*, core::double*) →* void} in #t267; - core::double* v8 = let final core::String* #t269 = "x" in let final core::double* #t270 = this.{self::Test9::[]}(#t269){(core::String*) →* core::double*}.{core::double::+}(self::getNum()){(core::num*) →* core::double*} in let final void #t271 = this.{self::Test9::[]=}(#t269, #t270){(core::String*, core::double*) →* void} in #t270; - core::double* v9 = let final core::String* #t272 = "x" in let final core::double* #t273 = this.{self::Test9::[]}(#t272){(core::String*) →* core::double*}.{core::double::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t274 = this.{self::Test9::[]=}(#t272, #t273){(core::String*, core::double*) →* void} in #t273; - core::double* v10 = let final core::String* #t275 = "x" in let final core::double* #t276 = this.{self::Test9::[]}(#t275){(core::String*) →* core::double*}.{core::double::+}(1){(core::num*) →* core::double*} in let final void #t277 = this.{self::Test9::[]=}(#t275, #t276){(core::String*, core::double*) →* void} in #t276; - core::double* v11 = let final core::String* #t278 = "x" in let final core::double* #t279 = this.{self::Test9::[]}(#t278){(core::String*) →* core::double*} in let final void #t280 = this.{self::Test9::[]=}(#t278, #t279.{core::double::+}(1){(core::num*) →* core::double*}){(core::String*, core::double*) →* void} in #t279; + core::num* v2 = let final core::String* #t245 = "x" in let final core::num* #t246 = self::getNum() as{TypeError} core::double* in let final void #t247 = this.{self::Test9::[]=}(#t245, #t246){(core::String*, core::double*) →* void} in #t246; + core::double* v3 = let final core::String* #t248 = "x" in let final core::double* #t249 = self::getDouble() in let final void #t250 = this.{self::Test9::[]=}(#t248, #t249){(core::String*, core::double*) →* void} in #t249; + core::num* v5 = let final core::String* #t251 = "x" in let final core::double* #t252 = this.{self::Test9::[]}(#t251){(core::String*) →* core::double*} in #t252 == null ?{core::num*} let final core::num* #t253 = self::getNum() as{TypeError} core::double* in let final void #t254 = this.{self::Test9::[]=}(#t251, #t253){(core::String*, core::double*) →* void} in #t253 : #t252; + core::double* v6 = let final core::String* #t255 = "x" in let final core::double* #t256 = this.{self::Test9::[]}(#t255){(core::String*) →* core::double*} in #t256 == null ?{core::double*} let final core::double* #t257 = self::getDouble() in let final void #t258 = this.{self::Test9::[]=}(#t255, #t257){(core::String*, core::double*) →* void} in #t257 : #t256; + core::double* v7 = let final core::String* #t259 = "x" in let final core::double* #t260 = this.{self::Test9::[]}(#t259){(core::String*) →* core::double*}.{core::double::+}(self::getInt()){(core::num*) →* core::double*} in let final void #t261 = this.{self::Test9::[]=}(#t259, #t260){(core::String*, core::double*) →* void} in #t260; + core::double* v8 = let final core::String* #t262 = "x" in let final core::double* #t263 = this.{self::Test9::[]}(#t262){(core::String*) →* core::double*}.{core::double::+}(self::getNum()){(core::num*) →* core::double*} in let final void #t264 = this.{self::Test9::[]=}(#t262, #t263){(core::String*, core::double*) →* void} in #t263; + core::double* v9 = let final core::String* #t265 = "x" in let final core::double* #t266 = this.{self::Test9::[]}(#t265){(core::String*) →* core::double*}.{core::double::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t267 = this.{self::Test9::[]=}(#t265, #t266){(core::String*, core::double*) →* void} in #t266; + core::double* v10 = let final core::String* #t268 = "x" in let final core::double* #t269 = this.{self::Test9::[]}(#t268){(core::String*) →* core::double*}.{core::double::+}(1){(core::num*) →* core::double*} in let final void #t270 = this.{self::Test9::[]=}(#t268, #t269){(core::String*, core::double*) →* void} in #t269; + core::double* v11 = let final core::String* #t271 = "x" in let final core::double* #t272 = this.{self::Test9::[]}(#t271){(core::String*) →* core::double*} in let final void #t273 = this.{self::Test9::[]=}(#t271, #t272.{core::double::+}(1){(core::num*) →* core::double*}){(core::String*, core::double*) →* void} in #t272; } abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf diff --git a/pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart.weak.expect b/pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart.weak.expect index fcc9cd1a5e2..3b91dc5414a 100644 --- a/pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart.weak.expect +++ b/pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart.weak.expect @@ -84,92 +84,92 @@ static method test3(self::Test* t) → void { core::double* v3 = let final self::Test* #t86 = t in let final core::String* #t87 = "x" in let final core::double* #t88 = self::getDouble() in let final void #t89 = #t86.{self::Test::[]=}(#t87, #t88){(core::String*, core::double*) →* void} in #t88; core::num* v5 = let final self::Test* #t90 = t in let final core::String* #t91 = "x" in let final core::int* #t92 = #t90.{self::Test::[]}(#t91){(core::String*) →* core::int*} in #t92 == null ?{core::num*} let final core::num* #t93 = self::getNum() as{TypeError} core::double* in let final void #t94 = #t90.{self::Test::[]=}(#t91, #t93){(core::String*, core::double*) →* void} in #t93 : #t92; core::num* v6 = let final self::Test* #t95 = t in let final core::String* #t96 = "x" in let final core::int* #t97 = #t95.{self::Test::[]}(#t96){(core::String*) →* core::int*} in #t97 == null ?{core::num*} let final core::double* #t98 = self::getDouble() in let final void #t99 = #t95.{self::Test::[]=}(#t96, #t98){(core::String*, core::double*) →* void} in #t98 : #t97; - core::int* v7 = let final self::Test* #t100 = t in let final core::String* #t101 = "x" in let final core::int* #t102 = let final Never* #t103 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:90:74: Error: A value of type 'int' can't be assigned to a variable of type 'double'. + core::int* v7 = let final self::Test* #t100 = t in let final core::String* #t101 = "x" in let final core::int* #t102 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:90:74: Error: A value of type 'int' can't be assigned to a variable of type 'double'. t /*@target=Test.[]*/ /*@target=Test.[]=*/ ['x'] /*@target=num.+*/ += - ^" in #t100.{self::Test::[]}(#t101){(core::String*) →* core::int*}.{core::num::+}(self::getInt()){(core::num*) →* core::int*} as{TypeError} core::double* in let final void #t104 = #t100.{self::Test::[]=}(#t101, #t102){(core::String*, core::double*) →* void} in #t102; - core::num* v8 = let final self::Test* #t105 = t in let final core::String* #t106 = "x" in let final core::num* #t107 = #t105.{self::Test::[]}(#t106){(core::String*) →* core::int*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t108 = #t105.{self::Test::[]=}(#t106, #t107){(core::String*, core::double*) →* void} in #t107; - core::double* v9 = let final self::Test* #t109 = t in let final core::String* #t110 = "x" in let final core::double* #t111 = #t109.{self::Test::[]}(#t110){(core::String*) →* core::int*}.{core::num::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t112 = #t109.{self::Test::[]=}(#t110, #t111){(core::String*, core::double*) →* void} in #t111; - core::int* v10 = let final self::Test* #t113 = t in let final core::String* #t114 = "x" in let final core::int* #t115 = let final Never* #t116 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:102:25: Error: A value of type 'int' can't be assigned to a variable of type 'double'. + ^" in #t100.{self::Test::[]}(#t101){(core::String*) →* core::int*}.{core::num::+}(self::getInt()){(core::num*) →* core::int*} as{TypeError} core::double* in let final void #t103 = #t100.{self::Test::[]=}(#t101, #t102){(core::String*, core::double*) →* void} in #t102; + core::num* v8 = let final self::Test* #t104 = t in let final core::String* #t105 = "x" in let final core::num* #t106 = #t104.{self::Test::[]}(#t105){(core::String*) →* core::int*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t107 = #t104.{self::Test::[]=}(#t105, #t106){(core::String*, core::double*) →* void} in #t106; + core::double* v9 = let final self::Test* #t108 = t in let final core::String* #t109 = "x" in let final core::double* #t110 = #t108.{self::Test::[]}(#t109){(core::String*) →* core::int*}.{core::num::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t111 = #t108.{self::Test::[]=}(#t109, #t110){(core::String*, core::double*) →* void} in #t110; + core::int* v10 = let final self::Test* #t112 = t in let final core::String* #t113 = "x" in let final core::int* #t114 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:102:25: Error: A value of type 'int' can't be assigned to a variable of type 'double'. /*@target=num.+*/ ++t /*@target=Test.[]*/ /*@target=Test.[]=*/ ['x']; - ^" in #t113.{self::Test::[]}(#t114){(core::String*) →* core::int*}.{core::num::+}(1){(core::num*) →* core::int*} as{TypeError} core::double* in let final void #t117 = #t113.{self::Test::[]=}(#t114, #t115){(core::String*, core::double*) →* void} in #t115; - core::int* v11 = let final self::Test* #t118 = t in let final core::String* #t119 = "x" in let final core::int* #t120 = #t118.{self::Test::[]}(#t119){(core::String*) →* core::int*} in let final void #t121 = #t118.{self::Test::[]=}(#t119, let final Never* #t122 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:105:74: Error: A value of type 'int' can't be assigned to a variable of type 'double'. + ^" in #t112.{self::Test::[]}(#t113){(core::String*) →* core::int*}.{core::num::+}(1){(core::num*) →* core::int*} as{TypeError} core::double* in let final void #t115 = #t112.{self::Test::[]=}(#t113, #t114){(core::String*, core::double*) →* void} in #t114; + core::int* v11 = let final self::Test* #t116 = t in let final core::String* #t117 = "x" in let final core::int* #t118 = #t116.{self::Test::[]}(#t117){(core::String*) →* core::int*} in let final void #t119 = #t116.{self::Test::[]=}(#t117, invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:105:74: Error: A value of type 'int' can't be assigned to a variable of type 'double'. t /*@target=Test.[]*/ /*@target=Test.[]=*/ ['x'] /*@target=num.+*/ ++; - ^" in #t120.{core::num::+}(1){(core::num*) →* core::int*} as{TypeError} core::double*){(core::String*, core::double*) →* void} in #t120; + ^" in #t118.{core::num::+}(1){(core::num*) →* core::int*} as{TypeError} core::double*){(core::String*, core::double*) →* void} in #t118; } static method test4(self::Test* t) → void { - core::int* v1 = let final self::Test* #t123 = t in let final core::String* #t124 = "x" in let final core::int* #t125 = self::getInt() in let final void #t126 = #t123.{self::Test::[]=}(#t124, #t125){(core::String*, core::int*) →* void} in #t125; - core::num* v2 = let final self::Test* #t127 = t in let final core::String* #t128 = "x" in let final core::num* #t129 = self::getNum() as{TypeError} core::int* in let final void #t130 = #t127.{self::Test::[]=}(#t128, #t129){(core::String*, core::int*) →* void} in #t129; - core::num* v4 = let final self::Test* #t131 = t in let final core::String* #t132 = "x" in let final core::num* #t133 = #t131.{self::Test::[]}(#t132){(core::String*) →* core::num*} in #t133 == null ?{core::num*} let final core::int* #t134 = self::getInt() in let final void #t135 = #t131.{self::Test::[]=}(#t132, #t134){(core::String*, core::int*) →* void} in #t134 : #t133; - core::num* v5 = let final self::Test* #t136 = t in let final core::String* #t137 = "x" in let final core::num* #t138 = #t136.{self::Test::[]}(#t137){(core::String*) →* core::num*} in #t138 == null ?{core::num*} let final core::num* #t139 = self::getNum() as{TypeError} core::int* in let final void #t140 = #t136.{self::Test::[]=}(#t137, #t139){(core::String*, core::int*) →* void} in #t139 : #t138; - core::num* v7 = let final self::Test* #t141 = t in let final core::String* #t142 = "x" in let final core::num* #t143 = #t141.{self::Test::[]}(#t142){(core::String*) →* core::num*}.{core::num::+}(self::getInt()){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t144 = #t141.{self::Test::[]=}(#t142, #t143){(core::String*, core::int*) →* void} in #t143; - core::num* v8 = let final self::Test* #t145 = t in let final core::String* #t146 = "x" in let final core::num* #t147 = #t145.{self::Test::[]}(#t146){(core::String*) →* core::num*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t148 = #t145.{self::Test::[]=}(#t146, #t147){(core::String*, core::int*) →* void} in #t147; - core::num* v10 = let final self::Test* #t149 = t in let final core::String* #t150 = "x" in let final core::num* #t151 = #t149.{self::Test::[]}(#t150){(core::String*) →* core::num*}.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t152 = #t149.{self::Test::[]=}(#t150, #t151){(core::String*, core::int*) →* void} in #t151; - core::num* v11 = let final self::Test* #t153 = t in let final core::String* #t154 = "x" in let final core::num* #t155 = #t153.{self::Test::[]}(#t154){(core::String*) →* core::num*} in let final void #t156 = #t153.{self::Test::[]=}(#t154, #t155.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::int*){(core::String*, core::int*) →* void} in #t155; + core::int* v1 = let final self::Test* #t120 = t in let final core::String* #t121 = "x" in let final core::int* #t122 = self::getInt() in let final void #t123 = #t120.{self::Test::[]=}(#t121, #t122){(core::String*, core::int*) →* void} in #t122; + core::num* v2 = let final self::Test* #t124 = t in let final core::String* #t125 = "x" in let final core::num* #t126 = self::getNum() as{TypeError} core::int* in let final void #t127 = #t124.{self::Test::[]=}(#t125, #t126){(core::String*, core::int*) →* void} in #t126; + core::num* v4 = let final self::Test* #t128 = t in let final core::String* #t129 = "x" in let final core::num* #t130 = #t128.{self::Test::[]}(#t129){(core::String*) →* core::num*} in #t130 == null ?{core::num*} let final core::int* #t131 = self::getInt() in let final void #t132 = #t128.{self::Test::[]=}(#t129, #t131){(core::String*, core::int*) →* void} in #t131 : #t130; + core::num* v5 = let final self::Test* #t133 = t in let final core::String* #t134 = "x" in let final core::num* #t135 = #t133.{self::Test::[]}(#t134){(core::String*) →* core::num*} in #t135 == null ?{core::num*} let final core::num* #t136 = self::getNum() as{TypeError} core::int* in let final void #t137 = #t133.{self::Test::[]=}(#t134, #t136){(core::String*, core::int*) →* void} in #t136 : #t135; + core::num* v7 = let final self::Test* #t138 = t in let final core::String* #t139 = "x" in let final core::num* #t140 = #t138.{self::Test::[]}(#t139){(core::String*) →* core::num*}.{core::num::+}(self::getInt()){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t141 = #t138.{self::Test::[]=}(#t139, #t140){(core::String*, core::int*) →* void} in #t140; + core::num* v8 = let final self::Test* #t142 = t in let final core::String* #t143 = "x" in let final core::num* #t144 = #t142.{self::Test::[]}(#t143){(core::String*) →* core::num*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t145 = #t142.{self::Test::[]=}(#t143, #t144){(core::String*, core::int*) →* void} in #t144; + core::num* v10 = let final self::Test* #t146 = t in let final core::String* #t147 = "x" in let final core::num* #t148 = #t146.{self::Test::[]}(#t147){(core::String*) →* core::num*}.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::int* in let final void #t149 = #t146.{self::Test::[]=}(#t147, #t148){(core::String*, core::int*) →* void} in #t148; + core::num* v11 = let final self::Test* #t150 = t in let final core::String* #t151 = "x" in let final core::num* #t152 = #t150.{self::Test::[]}(#t151){(core::String*) →* core::num*} in let final void #t153 = #t150.{self::Test::[]=}(#t151, #t152.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::int*){(core::String*, core::int*) →* void} in #t152; } static method test5(self::Test* t) → void { - core::int* v1 = let final self::Test* #t157 = t in let final core::String* #t158 = "x" in let final core::int* #t159 = self::getInt() in let final void #t160 = #t157.{self::Test::[]=}(#t158, #t159){(core::String*, core::num*) →* void} in #t159; - core::num* v2 = let final self::Test* #t161 = t in let final core::String* #t162 = "x" in let final core::num* #t163 = self::getNum() in let final void #t164 = #t161.{self::Test::[]=}(#t162, #t163){(core::String*, core::num*) →* void} in #t163; - core::double* v3 = let final self::Test* #t165 = t in let final core::String* #t166 = "x" in let final core::double* #t167 = self::getDouble() in let final void #t168 = #t165.{self::Test::[]=}(#t166, #t167){(core::String*, core::num*) →* void} in #t167; - core::num* v4 = let final self::Test* #t169 = t in let final core::String* #t170 = "x" in let final core::num* #t171 = #t169.{self::Test::[]}(#t170){(core::String*) →* core::num*} in #t171 == null ?{core::num*} let final core::int* #t172 = self::getInt() in let final void #t173 = #t169.{self::Test::[]=}(#t170, #t172){(core::String*, core::num*) →* void} in #t172 : #t171; - core::num* v5 = let final self::Test* #t174 = t in let final core::String* #t175 = "x" in let final core::num* #t176 = #t174.{self::Test::[]}(#t175){(core::String*) →* core::num*} in #t176 == null ?{core::num*} let final core::num* #t177 = self::getNum() in let final void #t178 = #t174.{self::Test::[]=}(#t175, #t177){(core::String*, core::num*) →* void} in #t177 : #t176; - core::num* v6 = let final self::Test* #t179 = t in let final core::String* #t180 = "x" in let final core::num* #t181 = #t179.{self::Test::[]}(#t180){(core::String*) →* core::num*} in #t181 == null ?{core::num*} let final core::double* #t182 = self::getDouble() in let final void #t183 = #t179.{self::Test::[]=}(#t180, #t182){(core::String*, core::num*) →* void} in #t182 : #t181; - core::num* v7 = let final self::Test* #t184 = t in let final core::String* #t185 = "x" in let final core::num* #t186 = #t184.{self::Test::[]}(#t185){(core::String*) →* core::num*}.{core::num::+}(self::getInt()){(core::num*) →* core::num*} in let final void #t187 = #t184.{self::Test::[]=}(#t185, #t186){(core::String*, core::num*) →* void} in #t186; - core::num* v8 = let final self::Test* #t188 = t in let final core::String* #t189 = "x" in let final core::num* #t190 = #t188.{self::Test::[]}(#t189){(core::String*) →* core::num*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} in let final void #t191 = #t188.{self::Test::[]=}(#t189, #t190){(core::String*, core::num*) →* void} in #t190; - core::num* v9 = let final self::Test* #t192 = t in let final core::String* #t193 = "x" in let final core::num* #t194 = #t192.{self::Test::[]}(#t193){(core::String*) →* core::num*}.{core::num::+}(self::getDouble()){(core::num*) →* core::num*} in let final void #t195 = #t192.{self::Test::[]=}(#t193, #t194){(core::String*, core::num*) →* void} in #t194; - core::num* v10 = let final self::Test* #t196 = t in let final core::String* #t197 = "x" in let final core::num* #t198 = #t196.{self::Test::[]}(#t197){(core::String*) →* core::num*}.{core::num::+}(1){(core::num*) →* core::num*} in let final void #t199 = #t196.{self::Test::[]=}(#t197, #t198){(core::String*, core::num*) →* void} in #t198; - core::num* v11 = let final self::Test* #t200 = t in let final core::String* #t201 = "x" in let final core::num* #t202 = #t200.{self::Test::[]}(#t201){(core::String*) →* core::num*} in let final void #t203 = #t200.{self::Test::[]=}(#t201, #t202.{core::num::+}(1){(core::num*) →* core::num*}){(core::String*, core::num*) →* void} in #t202; + core::int* v1 = let final self::Test* #t154 = t in let final core::String* #t155 = "x" in let final core::int* #t156 = self::getInt() in let final void #t157 = #t154.{self::Test::[]=}(#t155, #t156){(core::String*, core::num*) →* void} in #t156; + core::num* v2 = let final self::Test* #t158 = t in let final core::String* #t159 = "x" in let final core::num* #t160 = self::getNum() in let final void #t161 = #t158.{self::Test::[]=}(#t159, #t160){(core::String*, core::num*) →* void} in #t160; + core::double* v3 = let final self::Test* #t162 = t in let final core::String* #t163 = "x" in let final core::double* #t164 = self::getDouble() in let final void #t165 = #t162.{self::Test::[]=}(#t163, #t164){(core::String*, core::num*) →* void} in #t164; + core::num* v4 = let final self::Test* #t166 = t in let final core::String* #t167 = "x" in let final core::num* #t168 = #t166.{self::Test::[]}(#t167){(core::String*) →* core::num*} in #t168 == null ?{core::num*} let final core::int* #t169 = self::getInt() in let final void #t170 = #t166.{self::Test::[]=}(#t167, #t169){(core::String*, core::num*) →* void} in #t169 : #t168; + core::num* v5 = let final self::Test* #t171 = t in let final core::String* #t172 = "x" in let final core::num* #t173 = #t171.{self::Test::[]}(#t172){(core::String*) →* core::num*} in #t173 == null ?{core::num*} let final core::num* #t174 = self::getNum() in let final void #t175 = #t171.{self::Test::[]=}(#t172, #t174){(core::String*, core::num*) →* void} in #t174 : #t173; + core::num* v6 = let final self::Test* #t176 = t in let final core::String* #t177 = "x" in let final core::num* #t178 = #t176.{self::Test::[]}(#t177){(core::String*) →* core::num*} in #t178 == null ?{core::num*} let final core::double* #t179 = self::getDouble() in let final void #t180 = #t176.{self::Test::[]=}(#t177, #t179){(core::String*, core::num*) →* void} in #t179 : #t178; + core::num* v7 = let final self::Test* #t181 = t in let final core::String* #t182 = "x" in let final core::num* #t183 = #t181.{self::Test::[]}(#t182){(core::String*) →* core::num*}.{core::num::+}(self::getInt()){(core::num*) →* core::num*} in let final void #t184 = #t181.{self::Test::[]=}(#t182, #t183){(core::String*, core::num*) →* void} in #t183; + core::num* v8 = let final self::Test* #t185 = t in let final core::String* #t186 = "x" in let final core::num* #t187 = #t185.{self::Test::[]}(#t186){(core::String*) →* core::num*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} in let final void #t188 = #t185.{self::Test::[]=}(#t186, #t187){(core::String*, core::num*) →* void} in #t187; + core::num* v9 = let final self::Test* #t189 = t in let final core::String* #t190 = "x" in let final core::num* #t191 = #t189.{self::Test::[]}(#t190){(core::String*) →* core::num*}.{core::num::+}(self::getDouble()){(core::num*) →* core::num*} in let final void #t192 = #t189.{self::Test::[]=}(#t190, #t191){(core::String*, core::num*) →* void} in #t191; + core::num* v10 = let final self::Test* #t193 = t in let final core::String* #t194 = "x" in let final core::num* #t195 = #t193.{self::Test::[]}(#t194){(core::String*) →* core::num*}.{core::num::+}(1){(core::num*) →* core::num*} in let final void #t196 = #t193.{self::Test::[]=}(#t194, #t195){(core::String*, core::num*) →* void} in #t195; + core::num* v11 = let final self::Test* #t197 = t in let final core::String* #t198 = "x" in let final core::num* #t199 = #t197.{self::Test::[]}(#t198){(core::String*) →* core::num*} in let final void #t200 = #t197.{self::Test::[]=}(#t198, #t199.{core::num::+}(1){(core::num*) →* core::num*}){(core::String*, core::num*) →* void} in #t199; } static method test6(self::Test* t) → void { - core::num* v2 = let final self::Test* #t204 = t in let final core::String* #t205 = "x" in let final core::num* #t206 = self::getNum() as{TypeError} core::double* in let final void #t207 = #t204.{self::Test::[]=}(#t205, #t206){(core::String*, core::double*) →* void} in #t206; - core::double* v3 = let final self::Test* #t208 = t in let final core::String* #t209 = "x" in let final core::double* #t210 = self::getDouble() in let final void #t211 = #t208.{self::Test::[]=}(#t209, #t210){(core::String*, core::double*) →* void} in #t210; - core::num* v5 = let final self::Test* #t212 = t in let final core::String* #t213 = "x" in let final core::num* #t214 = #t212.{self::Test::[]}(#t213){(core::String*) →* core::num*} in #t214 == null ?{core::num*} let final core::num* #t215 = self::getNum() as{TypeError} core::double* in let final void #t216 = #t212.{self::Test::[]=}(#t213, #t215){(core::String*, core::double*) →* void} in #t215 : #t214; - core::num* v6 = let final self::Test* #t217 = t in let final core::String* #t218 = "x" in let final core::num* #t219 = #t217.{self::Test::[]}(#t218){(core::String*) →* core::num*} in #t219 == null ?{core::num*} let final core::double* #t220 = self::getDouble() in let final void #t221 = #t217.{self::Test::[]=}(#t218, #t220){(core::String*, core::double*) →* void} in #t220 : #t219; - core::num* v7 = let final self::Test* #t222 = t in let final core::String* #t223 = "x" in let final core::num* #t224 = #t222.{self::Test::[]}(#t223){(core::String*) →* core::num*}.{core::num::+}(self::getInt()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t225 = #t222.{self::Test::[]=}(#t223, #t224){(core::String*, core::double*) →* void} in #t224; - core::num* v8 = let final self::Test* #t226 = t in let final core::String* #t227 = "x" in let final core::num* #t228 = #t226.{self::Test::[]}(#t227){(core::String*) →* core::num*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t229 = #t226.{self::Test::[]=}(#t227, #t228){(core::String*, core::double*) →* void} in #t228; - core::num* v9 = let final self::Test* #t230 = t in let final core::String* #t231 = "x" in let final core::num* #t232 = #t230.{self::Test::[]}(#t231){(core::String*) →* core::num*}.{core::num::+}(self::getDouble()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t233 = #t230.{self::Test::[]=}(#t231, #t232){(core::String*, core::double*) →* void} in #t232; - core::num* v10 = let final self::Test* #t234 = t in let final core::String* #t235 = "x" in let final core::num* #t236 = #t234.{self::Test::[]}(#t235){(core::String*) →* core::num*}.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t237 = #t234.{self::Test::[]=}(#t235, #t236){(core::String*, core::double*) →* void} in #t236; - core::num* v11 = let final self::Test* #t238 = t in let final core::String* #t239 = "x" in let final core::num* #t240 = #t238.{self::Test::[]}(#t239){(core::String*) →* core::num*} in let final void #t241 = #t238.{self::Test::[]=}(#t239, #t240.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::double*){(core::String*, core::double*) →* void} in #t240; + core::num* v2 = let final self::Test* #t201 = t in let final core::String* #t202 = "x" in let final core::num* #t203 = self::getNum() as{TypeError} core::double* in let final void #t204 = #t201.{self::Test::[]=}(#t202, #t203){(core::String*, core::double*) →* void} in #t203; + core::double* v3 = let final self::Test* #t205 = t in let final core::String* #t206 = "x" in let final core::double* #t207 = self::getDouble() in let final void #t208 = #t205.{self::Test::[]=}(#t206, #t207){(core::String*, core::double*) →* void} in #t207; + core::num* v5 = let final self::Test* #t209 = t in let final core::String* #t210 = "x" in let final core::num* #t211 = #t209.{self::Test::[]}(#t210){(core::String*) →* core::num*} in #t211 == null ?{core::num*} let final core::num* #t212 = self::getNum() as{TypeError} core::double* in let final void #t213 = #t209.{self::Test::[]=}(#t210, #t212){(core::String*, core::double*) →* void} in #t212 : #t211; + core::num* v6 = let final self::Test* #t214 = t in let final core::String* #t215 = "x" in let final core::num* #t216 = #t214.{self::Test::[]}(#t215){(core::String*) →* core::num*} in #t216 == null ?{core::num*} let final core::double* #t217 = self::getDouble() in let final void #t218 = #t214.{self::Test::[]=}(#t215, #t217){(core::String*, core::double*) →* void} in #t217 : #t216; + core::num* v7 = let final self::Test* #t219 = t in let final core::String* #t220 = "x" in let final core::num* #t221 = #t219.{self::Test::[]}(#t220){(core::String*) →* core::num*}.{core::num::+}(self::getInt()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t222 = #t219.{self::Test::[]=}(#t220, #t221){(core::String*, core::double*) →* void} in #t221; + core::num* v8 = let final self::Test* #t223 = t in let final core::String* #t224 = "x" in let final core::num* #t225 = #t223.{self::Test::[]}(#t224){(core::String*) →* core::num*}.{core::num::+}(self::getNum()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t226 = #t223.{self::Test::[]=}(#t224, #t225){(core::String*, core::double*) →* void} in #t225; + core::num* v9 = let final self::Test* #t227 = t in let final core::String* #t228 = "x" in let final core::num* #t229 = #t227.{self::Test::[]}(#t228){(core::String*) →* core::num*}.{core::num::+}(self::getDouble()){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t230 = #t227.{self::Test::[]=}(#t228, #t229){(core::String*, core::double*) →* void} in #t229; + core::num* v10 = let final self::Test* #t231 = t in let final core::String* #t232 = "x" in let final core::num* #t233 = #t231.{self::Test::[]}(#t232){(core::String*) →* core::num*}.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::double* in let final void #t234 = #t231.{self::Test::[]=}(#t232, #t233){(core::String*, core::double*) →* void} in #t233; + core::num* v11 = let final self::Test* #t235 = t in let final core::String* #t236 = "x" in let final core::num* #t237 = #t235.{self::Test::[]}(#t236){(core::String*) →* core::num*} in let final void #t238 = #t235.{self::Test::[]=}(#t236, #t237.{core::num::+}(1){(core::num*) →* core::num*} as{TypeError} core::double*){(core::String*, core::double*) →* void} in #t237; } static method test7(self::Test* t) → void { - core::int* v1 = let final self::Test* #t242 = t in let final core::String* #t243 = "x" in let final core::int* #t244 = self::getInt() in let final void #t245 = #t242.{self::Test::[]=}(#t243, #t244){(core::String*, core::int*) →* void} in #t244; - core::num* v2 = let final self::Test* #t246 = t in let final core::String* #t247 = "x" in let final core::num* #t248 = self::getNum() as{TypeError} core::int* in let final void #t249 = #t246.{self::Test::[]=}(#t247, #t248){(core::String*, core::int*) →* void} in #t248; - core::num* v4 = let final self::Test* #t250 = t in let final core::String* #t251 = "x" in let final core::double* #t252 = #t250.{self::Test::[]}(#t251){(core::String*) →* core::double*} in #t252 == null ?{core::num*} let final core::int* #t253 = self::getInt() in let final void #t254 = #t250.{self::Test::[]=}(#t251, #t253){(core::String*, core::int*) →* void} in #t253 : #t252; - core::num* v5 = let final self::Test* #t255 = t in let final core::String* #t256 = "x" in let final core::double* #t257 = #t255.{self::Test::[]}(#t256){(core::String*) →* core::double*} in #t257 == null ?{core::num*} let final core::num* #t258 = self::getNum() as{TypeError} core::int* in let final void #t259 = #t255.{self::Test::[]=}(#t256, #t258){(core::String*, core::int*) →* void} in #t258 : #t257; - core::double* v7 = let final self::Test* #t260 = t in let final core::String* #t261 = "x" in let final core::double* #t262 = let final Never* #t263 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:211:77: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int* v1 = let final self::Test* #t239 = t in let final core::String* #t240 = "x" in let final core::int* #t241 = self::getInt() in let final void #t242 = #t239.{self::Test::[]=}(#t240, #t241){(core::String*, core::int*) →* void} in #t241; + core::num* v2 = let final self::Test* #t243 = t in let final core::String* #t244 = "x" in let final core::num* #t245 = self::getNum() as{TypeError} core::int* in let final void #t246 = #t243.{self::Test::[]=}(#t244, #t245){(core::String*, core::int*) →* void} in #t245; + core::num* v4 = let final self::Test* #t247 = t in let final core::String* #t248 = "x" in let final core::double* #t249 = #t247.{self::Test::[]}(#t248){(core::String*) →* core::double*} in #t249 == null ?{core::num*} let final core::int* #t250 = self::getInt() in let final void #t251 = #t247.{self::Test::[]=}(#t248, #t250){(core::String*, core::int*) →* void} in #t250 : #t249; + core::num* v5 = let final self::Test* #t252 = t in let final core::String* #t253 = "x" in let final core::double* #t254 = #t252.{self::Test::[]}(#t253){(core::String*) →* core::double*} in #t254 == null ?{core::num*} let final core::num* #t255 = self::getNum() as{TypeError} core::int* in let final void #t256 = #t252.{self::Test::[]=}(#t253, #t255){(core::String*, core::int*) →* void} in #t255 : #t254; + core::double* v7 = let final self::Test* #t257 = t in let final core::String* #t258 = "x" in let final core::double* #t259 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:211:77: Error: A value of type 'double' can't be assigned to a variable of type 'int'. t /*@target=Test.[]*/ /*@target=Test.[]=*/ ['x'] /*@target=double.+*/ += - ^" in #t260.{self::Test::[]}(#t261){(core::String*) →* core::double*}.{core::double::+}(self::getInt()){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t264 = #t260.{self::Test::[]=}(#t261, #t262){(core::String*, core::int*) →* void} in #t262; - core::double* v8 = let final self::Test* #t265 = t in let final core::String* #t266 = "x" in let final core::double* #t267 = let final Never* #t268 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:215:77: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + ^" in #t257.{self::Test::[]}(#t258){(core::String*) →* core::double*}.{core::double::+}(self::getInt()){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t260 = #t257.{self::Test::[]=}(#t258, #t259){(core::String*, core::int*) →* void} in #t259; + core::double* v8 = let final self::Test* #t261 = t in let final core::String* #t262 = "x" in let final core::double* #t263 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:215:77: Error: A value of type 'double' can't be assigned to a variable of type 'int'. t /*@target=Test.[]*/ /*@target=Test.[]=*/ ['x'] /*@target=double.+*/ += - ^" in #t265.{self::Test::[]}(#t266){(core::String*) →* core::double*}.{core::double::+}(self::getNum()){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t269 = #t265.{self::Test::[]=}(#t266, #t267){(core::String*, core::int*) →* void} in #t267; - core::double* v10 = let final self::Test* #t270 = t in let final core::String* #t271 = "x" in let final core::double* #t272 = let final Never* #t273 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:219:28: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + ^" in #t261.{self::Test::[]}(#t262){(core::String*) →* core::double*}.{core::double::+}(self::getNum()){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t264 = #t261.{self::Test::[]=}(#t262, #t263){(core::String*, core::int*) →* void} in #t263; + core::double* v10 = let final self::Test* #t265 = t in let final core::String* #t266 = "x" in let final core::double* #t267 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:219:28: Error: A value of type 'double' can't be assigned to a variable of type 'int'. /*@target=double.+*/ ++t - ^" in #t270.{self::Test::[]}(#t271){(core::String*) →* core::double*}.{core::double::+}(1){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t274 = #t270.{self::Test::[]=}(#t271, #t272){(core::String*, core::int*) →* void} in #t272; - core::double* v11 = let final self::Test* #t275 = t in let final core::String* #t276 = "x" in let final core::double* #t277 = #t275.{self::Test::[]}(#t276){(core::String*) →* core::double*} in let final void #t278 = #t275.{self::Test::[]=}(#t276, let final Never* #t279 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:223:77: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + ^" in #t265.{self::Test::[]}(#t266){(core::String*) →* core::double*}.{core::double::+}(1){(core::num*) →* core::double*} as{TypeError} core::int* in let final void #t268 = #t265.{self::Test::[]=}(#t266, #t267){(core::String*, core::int*) →* void} in #t267; + core::double* v11 = let final self::Test* #t269 = t in let final core::String* #t270 = "x" in let final core::double* #t271 = #t269.{self::Test::[]}(#t270){(core::String*) →* core::double*} in let final void #t272 = #t269.{self::Test::[]=}(#t270, invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_index_upwards.dart:223:77: Error: A value of type 'double' can't be assigned to a variable of type 'int'. t /*@target=Test.[]*/ /*@target=Test.[]=*/ ['x'] /*@target=double.+*/ ++; - ^" in #t277.{core::double::+}(1){(core::num*) →* core::double*} as{TypeError} core::int*){(core::String*, core::int*) →* void} in #t277; + ^" in #t271.{core::double::+}(1){(core::num*) →* core::double*} as{TypeError} core::int*){(core::String*, core::int*) →* void} in #t271; } static method test8(self::Test* t) → void { - core::int* v1 = let final self::Test* #t280 = t in let final core::String* #t281 = "x" in let final core::int* #t282 = self::getInt() in let final void #t283 = #t280.{self::Test::[]=}(#t281, #t282){(core::String*, core::num*) →* void} in #t282; - core::num* v2 = let final self::Test* #t284 = t in let final core::String* #t285 = "x" in let final core::num* #t286 = self::getNum() in let final void #t287 = #t284.{self::Test::[]=}(#t285, #t286){(core::String*, core::num*) →* void} in #t286; - core::double* v3 = let final self::Test* #t288 = t in let final core::String* #t289 = "x" in let final core::double* #t290 = self::getDouble() in let final void #t291 = #t288.{self::Test::[]=}(#t289, #t290){(core::String*, core::num*) →* void} in #t290; - core::num* v4 = let final self::Test* #t292 = t in let final core::String* #t293 = "x" in let final core::double* #t294 = #t292.{self::Test::[]}(#t293){(core::String*) →* core::double*} in #t294 == null ?{core::num*} let final core::int* #t295 = self::getInt() in let final void #t296 = #t292.{self::Test::[]=}(#t293, #t295){(core::String*, core::num*) →* void} in #t295 : #t294; - core::num* v5 = let final self::Test* #t297 = t in let final core::String* #t298 = "x" in let final core::double* #t299 = #t297.{self::Test::[]}(#t298){(core::String*) →* core::double*} in #t299 == null ?{core::num*} let final core::num* #t300 = self::getNum() in let final void #t301 = #t297.{self::Test::[]=}(#t298, #t300){(core::String*, core::num*) →* void} in #t300 : #t299; - core::double* v6 = let final self::Test* #t302 = t in let final core::String* #t303 = "x" in let final core::double* #t304 = #t302.{self::Test::[]}(#t303){(core::String*) →* core::double*} in #t304 == null ?{core::double*} let final core::double* #t305 = self::getDouble() in let final void #t306 = #t302.{self::Test::[]=}(#t303, #t305){(core::String*, core::num*) →* void} in #t305 : #t304; - core::double* v7 = let final self::Test* #t307 = t in let final core::String* #t308 = "x" in let final core::double* #t309 = #t307.{self::Test::[]}(#t308){(core::String*) →* core::double*}.{core::double::+}(self::getInt()){(core::num*) →* core::double*} in let final void #t310 = #t307.{self::Test::[]=}(#t308, #t309){(core::String*, core::num*) →* void} in #t309; - core::double* v8 = let final self::Test* #t311 = t in let final core::String* #t312 = "x" in let final core::double* #t313 = #t311.{self::Test::[]}(#t312){(core::String*) →* core::double*}.{core::double::+}(self::getNum()){(core::num*) →* core::double*} in let final void #t314 = #t311.{self::Test::[]=}(#t312, #t313){(core::String*, core::num*) →* void} in #t313; - core::double* v9 = let final self::Test* #t315 = t in let final core::String* #t316 = "x" in let final core::double* #t317 = #t315.{self::Test::[]}(#t316){(core::String*) →* core::double*}.{core::double::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t318 = #t315.{self::Test::[]=}(#t316, #t317){(core::String*, core::num*) →* void} in #t317; - core::double* v10 = let final self::Test* #t319 = t in let final core::String* #t320 = "x" in let final core::double* #t321 = #t319.{self::Test::[]}(#t320){(core::String*) →* core::double*}.{core::double::+}(1){(core::num*) →* core::double*} in let final void #t322 = #t319.{self::Test::[]=}(#t320, #t321){(core::String*, core::num*) →* void} in #t321; - core::double* v11 = let final self::Test* #t323 = t in let final core::String* #t324 = "x" in let final core::double* #t325 = #t323.{self::Test::[]}(#t324){(core::String*) →* core::double*} in let final void #t326 = #t323.{self::Test::[]=}(#t324, #t325.{core::double::+}(1){(core::num*) →* core::double*}){(core::String*, core::num*) →* void} in #t325; + core::int* v1 = let final self::Test* #t273 = t in let final core::String* #t274 = "x" in let final core::int* #t275 = self::getInt() in let final void #t276 = #t273.{self::Test::[]=}(#t274, #t275){(core::String*, core::num*) →* void} in #t275; + core::num* v2 = let final self::Test* #t277 = t in let final core::String* #t278 = "x" in let final core::num* #t279 = self::getNum() in let final void #t280 = #t277.{self::Test::[]=}(#t278, #t279){(core::String*, core::num*) →* void} in #t279; + core::double* v3 = let final self::Test* #t281 = t in let final core::String* #t282 = "x" in let final core::double* #t283 = self::getDouble() in let final void #t284 = #t281.{self::Test::[]=}(#t282, #t283){(core::String*, core::num*) →* void} in #t283; + core::num* v4 = let final self::Test* #t285 = t in let final core::String* #t286 = "x" in let final core::double* #t287 = #t285.{self::Test::[]}(#t286){(core::String*) →* core::double*} in #t287 == null ?{core::num*} let final core::int* #t288 = self::getInt() in let final void #t289 = #t285.{self::Test::[]=}(#t286, #t288){(core::String*, core::num*) →* void} in #t288 : #t287; + core::num* v5 = let final self::Test* #t290 = t in let final core::String* #t291 = "x" in let final core::double* #t292 = #t290.{self::Test::[]}(#t291){(core::String*) →* core::double*} in #t292 == null ?{core::num*} let final core::num* #t293 = self::getNum() in let final void #t294 = #t290.{self::Test::[]=}(#t291, #t293){(core::String*, core::num*) →* void} in #t293 : #t292; + core::double* v6 = let final self::Test* #t295 = t in let final core::String* #t296 = "x" in let final core::double* #t297 = #t295.{self::Test::[]}(#t296){(core::String*) →* core::double*} in #t297 == null ?{core::double*} let final core::double* #t298 = self::getDouble() in let final void #t299 = #t295.{self::Test::[]=}(#t296, #t298){(core::String*, core::num*) →* void} in #t298 : #t297; + core::double* v7 = let final self::Test* #t300 = t in let final core::String* #t301 = "x" in let final core::double* #t302 = #t300.{self::Test::[]}(#t301){(core::String*) →* core::double*}.{core::double::+}(self::getInt()){(core::num*) →* core::double*} in let final void #t303 = #t300.{self::Test::[]=}(#t301, #t302){(core::String*, core::num*) →* void} in #t302; + core::double* v8 = let final self::Test* #t304 = t in let final core::String* #t305 = "x" in let final core::double* #t306 = #t304.{self::Test::[]}(#t305){(core::String*) →* core::double*}.{core::double::+}(self::getNum()){(core::num*) →* core::double*} in let final void #t307 = #t304.{self::Test::[]=}(#t305, #t306){(core::String*, core::num*) →* void} in #t306; + core::double* v9 = let final self::Test* #t308 = t in let final core::String* #t309 = "x" in let final core::double* #t310 = #t308.{self::Test::[]}(#t309){(core::String*) →* core::double*}.{core::double::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t311 = #t308.{self::Test::[]=}(#t309, #t310){(core::String*, core::num*) →* void} in #t310; + core::double* v10 = let final self::Test* #t312 = t in let final core::String* #t313 = "x" in let final core::double* #t314 = #t312.{self::Test::[]}(#t313){(core::String*) →* core::double*}.{core::double::+}(1){(core::num*) →* core::double*} in let final void #t315 = #t312.{self::Test::[]=}(#t313, #t314){(core::String*, core::num*) →* void} in #t314; + core::double* v11 = let final self::Test* #t316 = t in let final core::String* #t317 = "x" in let final core::double* #t318 = #t316.{self::Test::[]}(#t317){(core::String*) →* core::double*} in let final void #t319 = #t316.{self::Test::[]=}(#t317, #t318.{core::double::+}(1){(core::num*) →* core::double*}){(core::String*, core::num*) →* void} in #t318; } static method test9(self::Test* t) → void { - core::num* v2 = let final self::Test* #t327 = t in let final core::String* #t328 = "x" in let final core::num* #t329 = self::getNum() as{TypeError} core::double* in let final void #t330 = #t327.{self::Test::[]=}(#t328, #t329){(core::String*, core::double*) →* void} in #t329; - core::double* v3 = let final self::Test* #t331 = t in let final core::String* #t332 = "x" in let final core::double* #t333 = self::getDouble() in let final void #t334 = #t331.{self::Test::[]=}(#t332, #t333){(core::String*, core::double*) →* void} in #t333; - core::num* v5 = let final self::Test* #t335 = t in let final core::String* #t336 = "x" in let final core::double* #t337 = #t335.{self::Test::[]}(#t336){(core::String*) →* core::double*} in #t337 == null ?{core::num*} let final core::num* #t338 = self::getNum() as{TypeError} core::double* in let final void #t339 = #t335.{self::Test::[]=}(#t336, #t338){(core::String*, core::double*) →* void} in #t338 : #t337; - core::double* v6 = let final self::Test* #t340 = t in let final core::String* #t341 = "x" in let final core::double* #t342 = #t340.{self::Test::[]}(#t341){(core::String*) →* core::double*} in #t342 == null ?{core::double*} let final core::double* #t343 = self::getDouble() in let final void #t344 = #t340.{self::Test::[]=}(#t341, #t343){(core::String*, core::double*) →* void} in #t343 : #t342; - core::double* v7 = let final self::Test* #t345 = t in let final core::String* #t346 = "x" in let final core::double* #t347 = #t345.{self::Test::[]}(#t346){(core::String*) →* core::double*}.{core::double::+}(self::getInt()){(core::num*) →* core::double*} in let final void #t348 = #t345.{self::Test::[]=}(#t346, #t347){(core::String*, core::double*) →* void} in #t347; - core::double* v8 = let final self::Test* #t349 = t in let final core::String* #t350 = "x" in let final core::double* #t351 = #t349.{self::Test::[]}(#t350){(core::String*) →* core::double*}.{core::double::+}(self::getNum()){(core::num*) →* core::double*} in let final void #t352 = #t349.{self::Test::[]=}(#t350, #t351){(core::String*, core::double*) →* void} in #t351; - core::double* v9 = let final self::Test* #t353 = t in let final core::String* #t354 = "x" in let final core::double* #t355 = #t353.{self::Test::[]}(#t354){(core::String*) →* core::double*}.{core::double::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t356 = #t353.{self::Test::[]=}(#t354, #t355){(core::String*, core::double*) →* void} in #t355; - core::double* v10 = let final self::Test* #t357 = t in let final core::String* #t358 = "x" in let final core::double* #t359 = #t357.{self::Test::[]}(#t358){(core::String*) →* core::double*}.{core::double::+}(1){(core::num*) →* core::double*} in let final void #t360 = #t357.{self::Test::[]=}(#t358, #t359){(core::String*, core::double*) →* void} in #t359; - core::double* v11 = let final self::Test* #t361 = t in let final core::String* #t362 = "x" in let final core::double* #t363 = #t361.{self::Test::[]}(#t362){(core::String*) →* core::double*} in let final void #t364 = #t361.{self::Test::[]=}(#t362, #t363.{core::double::+}(1){(core::num*) →* core::double*}){(core::String*, core::double*) →* void} in #t363; + core::num* v2 = let final self::Test* #t320 = t in let final core::String* #t321 = "x" in let final core::num* #t322 = self::getNum() as{TypeError} core::double* in let final void #t323 = #t320.{self::Test::[]=}(#t321, #t322){(core::String*, core::double*) →* void} in #t322; + core::double* v3 = let final self::Test* #t324 = t in let final core::String* #t325 = "x" in let final core::double* #t326 = self::getDouble() in let final void #t327 = #t324.{self::Test::[]=}(#t325, #t326){(core::String*, core::double*) →* void} in #t326; + core::num* v5 = let final self::Test* #t328 = t in let final core::String* #t329 = "x" in let final core::double* #t330 = #t328.{self::Test::[]}(#t329){(core::String*) →* core::double*} in #t330 == null ?{core::num*} let final core::num* #t331 = self::getNum() as{TypeError} core::double* in let final void #t332 = #t328.{self::Test::[]=}(#t329, #t331){(core::String*, core::double*) →* void} in #t331 : #t330; + core::double* v6 = let final self::Test* #t333 = t in let final core::String* #t334 = "x" in let final core::double* #t335 = #t333.{self::Test::[]}(#t334){(core::String*) →* core::double*} in #t335 == null ?{core::double*} let final core::double* #t336 = self::getDouble() in let final void #t337 = #t333.{self::Test::[]=}(#t334, #t336){(core::String*, core::double*) →* void} in #t336 : #t335; + core::double* v7 = let final self::Test* #t338 = t in let final core::String* #t339 = "x" in let final core::double* #t340 = #t338.{self::Test::[]}(#t339){(core::String*) →* core::double*}.{core::double::+}(self::getInt()){(core::num*) →* core::double*} in let final void #t341 = #t338.{self::Test::[]=}(#t339, #t340){(core::String*, core::double*) →* void} in #t340; + core::double* v8 = let final self::Test* #t342 = t in let final core::String* #t343 = "x" in let final core::double* #t344 = #t342.{self::Test::[]}(#t343){(core::String*) →* core::double*}.{core::double::+}(self::getNum()){(core::num*) →* core::double*} in let final void #t345 = #t342.{self::Test::[]=}(#t343, #t344){(core::String*, core::double*) →* void} in #t344; + core::double* v9 = let final self::Test* #t346 = t in let final core::String* #t347 = "x" in let final core::double* #t348 = #t346.{self::Test::[]}(#t347){(core::String*) →* core::double*}.{core::double::+}(self::getDouble()){(core::num*) →* core::double*} in let final void #t349 = #t346.{self::Test::[]=}(#t347, #t348){(core::String*, core::double*) →* void} in #t348; + core::double* v10 = let final self::Test* #t350 = t in let final core::String* #t351 = "x" in let final core::double* #t352 = #t350.{self::Test::[]}(#t351){(core::String*) →* core::double*}.{core::double::+}(1){(core::num*) →* core::double*} in let final void #t353 = #t350.{self::Test::[]=}(#t351, #t352){(core::String*, core::double*) →* void} in #t352; + core::double* v11 = let final self::Test* #t354 = t in let final core::String* #t355 = "x" in let final core::double* #t356 = #t354.{self::Test::[]}(#t355){(core::String*) →* core::double*} in let final void #t357 = #t354.{self::Test::[]=}(#t355, #t356.{core::double::+}(1){(core::num*) →* core::double*}){(core::String*, core::double*) →* void} in #t356; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart.weak.expect b/pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart.weak.expect index 2269e14285b..1bf4996b28d 100644 --- a/pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart.weak.expect +++ b/pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart.weak.expect @@ -60,20 +60,20 @@ class B extends core::Object { abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } -static field core::int* v_prefix_pp = let final self::B* #t1 = new self::B::•() in #t1.{self::B::a} = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:17:36: Error: A value of type 'int' can't be assigned to a variable of type 'A'. +static field core::int* v_prefix_pp = let final self::B* #t1 = new self::B::•() in #t1.{self::B::a} = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:17:36: Error: A value of type 'int' can't be assigned to a variable of type 'A'. - 'A' is from 'pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart'. var v_prefix_pp = (/*@target=A.+*/ ++new /*@ type=B* */ B() ^" in #t1.{self::B::a}{self::A*}.{self::A::+}(1){(dynamic) →* core::int*} as{TypeError} self::A*; -static field core::double* v_prefix_mm = let final self::B* #t3 = new self::B::•() in #t3.{self::B::a} = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:19:36: Error: A value of type 'double' can't be assigned to a variable of type 'A'. +static field core::double* v_prefix_mm = let final self::B* #t2 = new self::B::•() in #t2.{self::B::a} = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:19:36: Error: A value of type 'double' can't be assigned to a variable of type 'A'. - 'A' is from 'pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart'. var v_prefix_mm = (/*@target=A.-*/ --new /*@ type=B* */ B() - ^" in #t3.{self::B::a}{self::A*}.{self::A::-}(1){(dynamic) →* core::double*} as{TypeError} self::A*; -static field self::A* v_postfix_pp = let final self::B* #t5 = new self::B::•() in let final self::A* #t6 = #t5.{self::B::a}{self::A*} in let final core::int* #t7 = #t5.{self::B::a} = let final Never* #t8 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:23:40: Error: A value of type 'int' can't be assigned to a variable of type 'A'. + ^" in #t2.{self::B::a}{self::A*}.{self::A::-}(1){(dynamic) →* core::double*} as{TypeError} self::A*; +static field self::A* v_postfix_pp = let final self::B* #t3 = new self::B::•() in let final self::A* #t4 = #t3.{self::B::a}{self::A*} in let final core::int* #t5 = #t3.{self::B::a} = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:23:40: Error: A value of type 'int' can't be assigned to a variable of type 'A'. - 'A' is from 'pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart'. /*@ type=int* */ a /*@target=A.+*/ ++); - ^" in #t6.{self::A::+}(1){(dynamic) →* core::int*} as{TypeError} self::A* in #t6; -static field self::A* v_postfix_mm = let final self::B* #t9 = new self::B::•() in let final self::A* #t10 = #t9.{self::B::a}{self::A*} in let final core::double* #t11 = #t9.{self::B::a} = let final Never* #t12 = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:26:43: Error: A value of type 'double' can't be assigned to a variable of type 'A'. + ^" in #t4.{self::A::+}(1){(dynamic) →* core::int*} as{TypeError} self::A* in #t4; +static field self::A* v_postfix_mm = let final self::B* #t6 = new self::B::•() in let final self::A* #t7 = #t6.{self::B::a}{self::A*} in let final core::double* #t8 = #t6.{self::B::a} = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:26:43: Error: A value of type 'double' can't be assigned to a variable of type 'A'. - 'A' is from 'pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart'. /*@ type=double* */ a /*@target=A.-*/ --); - ^" in #t10.{self::A::-}(1){(dynamic) →* core::double*} as{TypeError} self::A* in #t10; + ^" in #t7.{self::A::-}(1){(dynamic) →* core::double*} as{TypeError} self::A* in #t7; static method main() → dynamic {} diff --git a/pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart.weak.transformed.expect b/pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart.weak.transformed.expect new file mode 100644 index 00000000000..1bf4996b28d --- /dev/null +++ b/pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart.weak.transformed.expect @@ -0,0 +1,79 @@ +library test; +// +// Problems in library: +// +// pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:17:36: Error: A value of type 'int' can't be assigned to a variable of type 'A'. +// - 'A' is from 'pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart'. +// var v_prefix_pp = (/*@target=A.+*/ ++new /*@ type=B* */ B() +// ^ +// +// pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:19:36: Error: A value of type 'double' can't be assigned to a variable of type 'A'. +// - 'A' is from 'pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart'. +// var v_prefix_mm = (/*@target=A.-*/ --new /*@ type=B* */ B() +// ^ +// +// pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:23:40: Error: A value of type 'int' can't be assigned to a variable of type 'A'. +// - 'A' is from 'pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart'. +// /*@ type=int* */ a /*@target=A.+*/ ++); +// ^ +// +// pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:26:43: Error: A value of type 'double' can't be assigned to a variable of type 'A'. +// - 'A' is from 'pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart'. +// /*@ type=double* */ a /*@target=A.-*/ --); +// ^ +// +import self as self; +import "dart:core" as core; + +class A extends core::Object { + synthetic constructor •() → self::A* + : super core::Object::•() + ; + operator +(dynamic other) → core::int* + return 1; + operator -(dynamic other) → core::double* + return 2.0; + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +class B extends core::Object { + field self::A* a = null; + synthetic constructor •() → self::B* + : super core::Object::•() + ; + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +static field core::int* v_prefix_pp = let final self::B* #t1 = new self::B::•() in #t1.{self::B::a} = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:17:36: Error: A value of type 'int' can't be assigned to a variable of type 'A'. + - 'A' is from 'pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart'. +var v_prefix_pp = (/*@target=A.+*/ ++new /*@ type=B* */ B() + ^" in #t1.{self::B::a}{self::A*}.{self::A::+}(1){(dynamic) →* core::int*} as{TypeError} self::A*; +static field core::double* v_prefix_mm = let final self::B* #t2 = new self::B::•() in #t2.{self::B::a} = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:19:36: Error: A value of type 'double' can't be assigned to a variable of type 'A'. + - 'A' is from 'pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart'. +var v_prefix_mm = (/*@target=A.-*/ --new /*@ type=B* */ B() + ^" in #t2.{self::B::a}{self::A*}.{self::A::-}(1){(dynamic) →* core::double*} as{TypeError} self::A*; +static field self::A* v_postfix_pp = let final self::B* #t3 = new self::B::•() in let final self::A* #t4 = #t3.{self::B::a}{self::A*} in let final core::int* #t5 = #t3.{self::B::a} = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:23:40: Error: A value of type 'int' can't be assigned to a variable of type 'A'. + - 'A' is from 'pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart'. + /*@ type=int* */ a /*@target=A.+*/ ++); + ^" in #t4.{self::A::+}(1){(dynamic) →* core::int*} as{TypeError} self::A* in #t4; +static field self::A* v_postfix_mm = let final self::B* #t6 = new self::B::•() in let final self::A* #t7 = #t6.{self::B::a}{self::A*} in let final core::double* #t8 = #t6.{self::B::a} = invalid-expression "pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart:26:43: Error: A value of type 'double' can't be assigned to a variable of type 'A'. + - 'A' is from 'pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart'. + /*@ type=double* */ a /*@target=A.-*/ --); + ^" in #t7.{self::A::-}(1){(dynamic) →* core::double*} as{TypeError} self::A* in #t7; +static method main() → dynamic {} diff --git a/pkg/front_end/testcases/inference_new/invalid_assignment_during_toplevel_inference.dart.weak.expect b/pkg/front_end/testcases/inference_new/invalid_assignment_during_toplevel_inference.dart.weak.expect index 423be1fa399..3faad324645 100644 --- a/pkg/front_end/testcases/inference_new/invalid_assignment_during_toplevel_inference.dart.weak.expect +++ b/pkg/front_end/testcases/inference_new/invalid_assignment_during_toplevel_inference.dart.weak.expect @@ -11,7 +11,7 @@ import "dart:core" as core; static field core::int* i; static field core::String* s; -static field core::String* x = self::i = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference_new/invalid_assignment_during_toplevel_inference.dart:9:13: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +static field core::String* x = self::i = invalid-expression "pkg/front_end/testcases/inference_new/invalid_assignment_during_toplevel_inference.dart:9:13: Error: A value of type 'String' can't be assigned to a variable of type 'int'. var x = i = s; ^" in self::s as{TypeError} core::int*; static method main() → dynamic {} diff --git a/pkg/front_end/testcases/inference_new/invalid_assignment_during_toplevel_inference.dart.weak.transformed.expect b/pkg/front_end/testcases/inference_new/invalid_assignment_during_toplevel_inference.dart.weak.transformed.expect new file mode 100644 index 00000000000..3faad324645 --- /dev/null +++ b/pkg/front_end/testcases/inference_new/invalid_assignment_during_toplevel_inference.dart.weak.transformed.expect @@ -0,0 +1,17 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/inference_new/invalid_assignment_during_toplevel_inference.dart:9:13: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +// var x = i = s; +// ^ +// +import self as self; +import "dart:core" as core; + +static field core::int* i; +static field core::String* s; +static field core::String* x = self::i = invalid-expression "pkg/front_end/testcases/inference_new/invalid_assignment_during_toplevel_inference.dart:9:13: Error: A value of type 'String' can't be assigned to a variable of type 'int'. +var x = i = s; + ^" in self::s as{TypeError} core::int*; +static method main() → dynamic {} diff --git a/pkg/front_end/testcases/late_lowering/compound.dart.strong.expect b/pkg/front_end/testcases/late_lowering/compound.dart.strong.expect index 72b278b0e79..844cd74d436 100644 --- a/pkg/front_end/testcases/late_lowering/compound.dart.strong.expect +++ b/pkg/front_end/testcases/late_lowering/compound.dart.strong.expect @@ -38,9 +38,9 @@ static method error() → dynamic { return #local = #t6; else throw new _in::LateError::localAI("local"); - #local#set((let final Never #t7 = invalid-expression "pkg/front_end/testcases/late_lowering/compound.dart:20:3: Error: Late variable 'local' without initializer is definitely unassigned. + #local#set(invalid-expression "pkg/front_end/testcases/late_lowering/compound.dart:20:3: Error: Late variable 'local' without initializer is definitely unassigned. local += 0; - ^^^^^" in #local#get(){() → core::int}).{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; + ^^^^^" in #local#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/late_lowering/compound.dart.strong.transformed.expect b/pkg/front_end/testcases/late_lowering/compound.dart.strong.transformed.expect index 72b278b0e79..844cd74d436 100644 --- a/pkg/front_end/testcases/late_lowering/compound.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/late_lowering/compound.dart.strong.transformed.expect @@ -38,9 +38,9 @@ static method error() → dynamic { return #local = #t6; else throw new _in::LateError::localAI("local"); - #local#set((let final Never #t7 = invalid-expression "pkg/front_end/testcases/late_lowering/compound.dart:20:3: Error: Late variable 'local' without initializer is definitely unassigned. + #local#set(invalid-expression "pkg/front_end/testcases/late_lowering/compound.dart:20:3: Error: Late variable 'local' without initializer is definitely unassigned. local += 0; - ^^^^^" in #local#get(){() → core::int}).{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; + ^^^^^" in #local#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/late_lowering/compound.dart.weak.expect b/pkg/front_end/testcases/late_lowering/compound.dart.weak.expect index 918a8c79350..eb987a63e74 100644 --- a/pkg/front_end/testcases/late_lowering/compound.dart.weak.expect +++ b/pkg/front_end/testcases/late_lowering/compound.dart.weak.expect @@ -52,9 +52,9 @@ static method error() → dynamic { #local#isSet = true; return #local = #t3; } - #local#set((let final Never #t4 = invalid-expression "pkg/front_end/testcases/late_lowering/compound.dart:20:3: Error: Late variable 'local' without initializer is definitely unassigned. + #local#set(invalid-expression "pkg/front_end/testcases/late_lowering/compound.dart:20:3: Error: Late variable 'local' without initializer is definitely unassigned. local += 0; - ^^^^^" in #local#get(){() → core::int}).{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; + ^^^^^" in #local#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/late_lowering/compound.dart.weak.transformed.expect b/pkg/front_end/testcases/late_lowering/compound.dart.weak.transformed.expect index 918a8c79350..eb987a63e74 100644 --- a/pkg/front_end/testcases/late_lowering/compound.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/late_lowering/compound.dart.weak.transformed.expect @@ -52,9 +52,9 @@ static method error() → dynamic { #local#isSet = true; return #local = #t3; } - #local#set((let final Never #t4 = invalid-expression "pkg/front_end/testcases/late_lowering/compound.dart:20:3: Error: Late variable 'local' without initializer is definitely unassigned. + #local#set(invalid-expression "pkg/front_end/testcases/late_lowering/compound.dart:20:3: Error: Late variable 'local' without initializer is definitely unassigned. local += 0; - ^^^^^" in #local#get(){() → core::int}).{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; + ^^^^^" in #local#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.strong.expect b/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.strong.expect index d7714fce254..cc9b3785f0a 100644 --- a/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.strong.expect +++ b/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.strong.expect @@ -95,13 +95,13 @@ static field (T%) → Null fieldDirect = ) → dynamic}; - let final Never #t6 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:30:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:30:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(T%) → dynamic}; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:31:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:31:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t8 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:32:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:32:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; }; @@ -110,27 +110,27 @@ static field (core::bool, T%) → Null fieldC lowered core::bool #local2#isSet = false; function #local2#get() → T% return #local2#isSet ?{T%} #local2{T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(T% #t9) → dynamic + function #local2#set(T% #t6) → dynamic if(#local2#isSet) throw new _in::LateError::localAI("local2"); else { #local2#isSet = true; - return #local2 = #t9; + return #local2 = #t6; } lowered final core::int? #local4; function #local4#get() → core::int - return let final core::int? #t10 = #local4 in #t10 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t10{core::int}; - function #local4#set(core::int #t11) → dynamic + return let final core::int? #t7 = #local4 in #t7 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t7{core::int}; + function #local4#set(core::int #t8) → dynamic if(#local4 == null) - return #local4 = #t11; + return #local4 = #t8; else throw new _in::LateError::localAI("local4"); lowered final FutureOr? #local6; function #local6#get() → FutureOr - return let final FutureOr? #t12 = #local6 in #t12 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t12{FutureOr}; - function #local6#set(FutureOr#t13) → dynamic + return let final FutureOr? #t9 = #local6 in #t9 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t9{FutureOr}; + function #local6#set(FutureOr#t10) → dynamic if(#local6 == null) - return #local6 = #t13; + return #local6 = #t10; else throw new _in::LateError::localAI("local6"); if(b) { @@ -141,27 +141,27 @@ static field (core::bool, T%) → Null fieldC #local2#set(value){(T%) → dynamic}; #local4#set(0){(core::int) → dynamic}; #local6#set(0){(FutureOr) → dynamic}; - let final Never #t14 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:70:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:70:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(T%) → dynamic}; - let final Never #t15 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:71:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:71:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t16 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:72:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:72:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; }; static field () → Null fieldCompound = () → Null { lowered final core::int? #local4; function #local4#get() → core::int - return let final core::int? #t17 = #local4 in #t17 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t17{core::int}; - function #local4#set(core::int #t18) → dynamic + return let final core::int? #t11 = #local4 in #t11 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t11{core::int}; + function #local4#set(core::int #t12) → dynamic if(#local4 == null) - return #local4 = #t18; + return #local4 = #t12; else throw new _in::LateError::localAI("local4"); #local4#set(0){(core::int) → dynamic}; - let final Never #t19 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:88:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:88:3: Error: Late final variable '#local4' definitely assigned. local4 += 0; // error ^^^^^^^" in #local4#set(#local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; }; @@ -170,39 +170,39 @@ static method methodDirect(self::methodDirect lowered core::bool #local2#isSet = false; function #local2#get() → self::methodDirect::T% return #local2#isSet ?{self::methodDirect::T%} #local2{self::methodDirect::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodDirect::T% #t20) → dynamic + function #local2#set(self::methodDirect::T% #t13) → dynamic if(#local2#isSet) throw new _in::LateError::localAI("local2"); else { #local2#isSet = true; - return #local2 = #t20; + return #local2 = #t13; } lowered final core::int? #local4; function #local4#get() → core::int - return let final core::int? #t21 = #local4 in #t21 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t21{core::int}; - function #local4#set(core::int #t22) → dynamic + return let final core::int? #t14 = #local4 in #t14 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t14{core::int}; + function #local4#set(core::int #t15) → dynamic if(#local4 == null) - return #local4 = #t22; + return #local4 = #t15; else throw new _in::LateError::localAI("local4"); lowered final FutureOr? #local6; function #local6#get() → FutureOr - return let final FutureOr? #t23 = #local6 in #t23 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t23{FutureOr}; - function #local6#set(FutureOr#t24) → dynamic + return let final FutureOr? #t16 = #local6 in #t16 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t16{FutureOr}; + function #local6#set(FutureOr#t17) → dynamic if(#local6 == null) - return #local6 = #t24; + return #local6 = #t17; else throw new _in::LateError::localAI("local6"); #local2#set(value){(self::methodDirect::T%) → dynamic}; #local4#set(0){(core::int) → dynamic}; #local6#set(0){(FutureOr) → dynamic}; - let final Never #t25 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:16:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:16:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(self::methodDirect::T%) → dynamic}; - let final Never #t26 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:17:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:17:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t27 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:18:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:18:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; } @@ -211,27 +211,27 @@ static method methodConditional(core::bool b, lowered core::bool #local2#isSet = false; function #local2#get() → self::methodConditional::T% return #local2#isSet ?{self::methodConditional::T%} #local2{self::methodConditional::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodConditional::T% #t28) → dynamic + function #local2#set(self::methodConditional::T% #t18) → dynamic if(#local2#isSet) throw new _in::LateError::localAI("local2"); else { #local2#isSet = true; - return #local2 = #t28; + return #local2 = #t18; } lowered final core::int? #local4; function #local4#get() → core::int - return let final core::int? #t29 = #local4 in #t29 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t29{core::int}; - function #local4#set(core::int #t30) → dynamic + return let final core::int? #t19 = #local4 in #t19 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t19{core::int}; + function #local4#set(core::int #t20) → dynamic if(#local4 == null) - return #local4 = #t30; + return #local4 = #t20; else throw new _in::LateError::localAI("local4"); lowered final FutureOr? #local6; function #local6#get() → FutureOr - return let final FutureOr? #t31 = #local6 in #t31 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t31{FutureOr}; - function #local6#set(FutureOr#t32) → dynamic + return let final FutureOr? #t21 = #local6 in #t21 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t21{FutureOr}; + function #local6#set(FutureOr#t22) → dynamic if(#local6 == null) - return #local6 = #t32; + return #local6 = #t22; else throw new _in::LateError::localAI("local6"); if(b) { @@ -242,27 +242,27 @@ static method methodConditional(core::bool b, #local2#set(value){(self::methodConditional::T%) → dynamic}; #local4#set(0){(core::int) → dynamic}; #local6#set(0){(FutureOr) → dynamic}; - let final Never #t33 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:50:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:50:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(self::methodConditional::T%) → dynamic}; - let final Never #t34 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:51:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:51:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t35 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:52:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:52:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; } static method methodCompound() → dynamic { lowered final core::int? #local4; function #local4#get() → core::int - return let final core::int? #t36 = #local4 in #t36 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t36{core::int}; - function #local4#set(core::int #t37) → dynamic + return let final core::int? #t23 = #local4 in #t23 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t23{core::int}; + function #local4#set(core::int #t24) → dynamic if(#local4 == null) - return #local4 = #t37; + return #local4 = #t24; else throw new _in::LateError::localAI("local4"); #local4#set(0){(core::int) → dynamic}; - let final Never #t38 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:80:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:80:3: Error: Late final variable '#local4' definitely assigned. local4 += 0; // error ^^^^^^^" in #local4#set(#local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; } diff --git a/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.strong.transformed.expect b/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.strong.transformed.expect index d7714fce254..cc9b3785f0a 100644 --- a/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.strong.transformed.expect @@ -95,13 +95,13 @@ static field (T%) → Null fieldDirect = ) → dynamic}; - let final Never #t6 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:30:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:30:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(T%) → dynamic}; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:31:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:31:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t8 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:32:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:32:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; }; @@ -110,27 +110,27 @@ static field (core::bool, T%) → Null fieldC lowered core::bool #local2#isSet = false; function #local2#get() → T% return #local2#isSet ?{T%} #local2{T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(T% #t9) → dynamic + function #local2#set(T% #t6) → dynamic if(#local2#isSet) throw new _in::LateError::localAI("local2"); else { #local2#isSet = true; - return #local2 = #t9; + return #local2 = #t6; } lowered final core::int? #local4; function #local4#get() → core::int - return let final core::int? #t10 = #local4 in #t10 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t10{core::int}; - function #local4#set(core::int #t11) → dynamic + return let final core::int? #t7 = #local4 in #t7 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t7{core::int}; + function #local4#set(core::int #t8) → dynamic if(#local4 == null) - return #local4 = #t11; + return #local4 = #t8; else throw new _in::LateError::localAI("local4"); lowered final FutureOr? #local6; function #local6#get() → FutureOr - return let final FutureOr? #t12 = #local6 in #t12 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t12{FutureOr}; - function #local6#set(FutureOr#t13) → dynamic + return let final FutureOr? #t9 = #local6 in #t9 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t9{FutureOr}; + function #local6#set(FutureOr#t10) → dynamic if(#local6 == null) - return #local6 = #t13; + return #local6 = #t10; else throw new _in::LateError::localAI("local6"); if(b) { @@ -141,27 +141,27 @@ static field (core::bool, T%) → Null fieldC #local2#set(value){(T%) → dynamic}; #local4#set(0){(core::int) → dynamic}; #local6#set(0){(FutureOr) → dynamic}; - let final Never #t14 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:70:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:70:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(T%) → dynamic}; - let final Never #t15 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:71:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:71:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t16 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:72:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:72:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; }; static field () → Null fieldCompound = () → Null { lowered final core::int? #local4; function #local4#get() → core::int - return let final core::int? #t17 = #local4 in #t17 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t17{core::int}; - function #local4#set(core::int #t18) → dynamic + return let final core::int? #t11 = #local4 in #t11 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t11{core::int}; + function #local4#set(core::int #t12) → dynamic if(#local4 == null) - return #local4 = #t18; + return #local4 = #t12; else throw new _in::LateError::localAI("local4"); #local4#set(0){(core::int) → dynamic}; - let final Never #t19 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:88:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:88:3: Error: Late final variable '#local4' definitely assigned. local4 += 0; // error ^^^^^^^" in #local4#set(#local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; }; @@ -170,39 +170,39 @@ static method methodDirect(self::methodDirect lowered core::bool #local2#isSet = false; function #local2#get() → self::methodDirect::T% return #local2#isSet ?{self::methodDirect::T%} #local2{self::methodDirect::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodDirect::T% #t20) → dynamic + function #local2#set(self::methodDirect::T% #t13) → dynamic if(#local2#isSet) throw new _in::LateError::localAI("local2"); else { #local2#isSet = true; - return #local2 = #t20; + return #local2 = #t13; } lowered final core::int? #local4; function #local4#get() → core::int - return let final core::int? #t21 = #local4 in #t21 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t21{core::int}; - function #local4#set(core::int #t22) → dynamic + return let final core::int? #t14 = #local4 in #t14 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t14{core::int}; + function #local4#set(core::int #t15) → dynamic if(#local4 == null) - return #local4 = #t22; + return #local4 = #t15; else throw new _in::LateError::localAI("local4"); lowered final FutureOr? #local6; function #local6#get() → FutureOr - return let final FutureOr? #t23 = #local6 in #t23 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t23{FutureOr}; - function #local6#set(FutureOr#t24) → dynamic + return let final FutureOr? #t16 = #local6 in #t16 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t16{FutureOr}; + function #local6#set(FutureOr#t17) → dynamic if(#local6 == null) - return #local6 = #t24; + return #local6 = #t17; else throw new _in::LateError::localAI("local6"); #local2#set(value){(self::methodDirect::T%) → dynamic}; #local4#set(0){(core::int) → dynamic}; #local6#set(0){(FutureOr) → dynamic}; - let final Never #t25 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:16:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:16:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(self::methodDirect::T%) → dynamic}; - let final Never #t26 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:17:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:17:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t27 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:18:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:18:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; } @@ -211,27 +211,27 @@ static method methodConditional(core::bool b, lowered core::bool #local2#isSet = false; function #local2#get() → self::methodConditional::T% return #local2#isSet ?{self::methodConditional::T%} #local2{self::methodConditional::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodConditional::T% #t28) → dynamic + function #local2#set(self::methodConditional::T% #t18) → dynamic if(#local2#isSet) throw new _in::LateError::localAI("local2"); else { #local2#isSet = true; - return #local2 = #t28; + return #local2 = #t18; } lowered final core::int? #local4; function #local4#get() → core::int - return let final core::int? #t29 = #local4 in #t29 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t29{core::int}; - function #local4#set(core::int #t30) → dynamic + return let final core::int? #t19 = #local4 in #t19 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t19{core::int}; + function #local4#set(core::int #t20) → dynamic if(#local4 == null) - return #local4 = #t30; + return #local4 = #t20; else throw new _in::LateError::localAI("local4"); lowered final FutureOr? #local6; function #local6#get() → FutureOr - return let final FutureOr? #t31 = #local6 in #t31 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t31{FutureOr}; - function #local6#set(FutureOr#t32) → dynamic + return let final FutureOr? #t21 = #local6 in #t21 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t21{FutureOr}; + function #local6#set(FutureOr#t22) → dynamic if(#local6 == null) - return #local6 = #t32; + return #local6 = #t22; else throw new _in::LateError::localAI("local6"); if(b) { @@ -242,27 +242,27 @@ static method methodConditional(core::bool b, #local2#set(value){(self::methodConditional::T%) → dynamic}; #local4#set(0){(core::int) → dynamic}; #local6#set(0){(FutureOr) → dynamic}; - let final Never #t33 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:50:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:50:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(self::methodConditional::T%) → dynamic}; - let final Never #t34 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:51:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:51:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t35 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:52:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:52:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; } static method methodCompound() → dynamic { lowered final core::int? #local4; function #local4#get() → core::int - return let final core::int? #t36 = #local4 in #t36 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t36{core::int}; - function #local4#set(core::int #t37) → dynamic + return let final core::int? #t23 = #local4 in #t23 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t23{core::int}; + function #local4#set(core::int #t24) → dynamic if(#local4 == null) - return #local4 = #t37; + return #local4 = #t24; else throw new _in::LateError::localAI("local4"); #local4#set(0){(core::int) → dynamic}; - let final Never #t38 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:80:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:80:3: Error: Late final variable '#local4' definitely assigned. local4 += 0; // error ^^^^^^^" in #local4#set(#local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; } diff --git a/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.weak.expect b/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.weak.expect index 62841e6a950..28154dd5b94 100644 --- a/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.weak.expect +++ b/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.weak.expect @@ -101,13 +101,13 @@ static field (T%) → Null fieldDirect = ) → dynamic}; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:30:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:30:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(T%) → dynamic}; - let final Never #t5 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:31:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:31:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t6 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:32:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:32:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; }; @@ -116,34 +116,34 @@ static field (core::bool, T%) → Null fieldC lowered core::bool #local2#isSet = false; function #local2#get() → T% return #local2#isSet ?{T%} #local2{T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(T% #t7) → dynamic + function #local2#set(T% #t4) → dynamic if(#local2#isSet) throw new _in::LateError::localAI("local2"); else { #local2#isSet = true; - return #local2 = #t7; + return #local2 = #t4; } lowered final core::int? #local4; lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t8) → dynamic + function #local4#set(core::int #t5) → dynamic if(#local4#isSet) throw new _in::LateError::localAI("local4"); else { #local4#isSet = true; - return #local4 = #t8; + return #local4 = #t5; } lowered final FutureOr? #local6; lowered core::bool #local6#isSet = false; function #local6#get() → FutureOr return #local6#isSet ?{FutureOr} #local6{FutureOr} : throw new _in::LateError::localNI("local6"); - function #local6#set(FutureOr#t9) → dynamic + function #local6#set(FutureOr#t6) → dynamic if(#local6#isSet) throw new _in::LateError::localAI("local6"); else { #local6#isSet = true; - return #local6 = #t9; + return #local6 = #t6; } if(b) { #local2#set(value){(T%) → dynamic}; @@ -153,13 +153,13 @@ static field (core::bool, T%) → Null fieldC #local2#set(value){(T%) → dynamic}; #local4#set(0){(core::int) → dynamic}; #local6#set(0){(FutureOr) → dynamic}; - let final Never #t10 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:70:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:70:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(T%) → dynamic}; - let final Never #t11 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:71:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:71:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t12 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:72:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:72:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; }; @@ -168,15 +168,15 @@ static field () → Null fieldCompound = () → Null { lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t13) → dynamic + function #local4#set(core::int #t7) → dynamic if(#local4#isSet) throw new _in::LateError::localAI("local4"); else { #local4#isSet = true; - return #local4 = #t13; + return #local4 = #t7; } #local4#set(0){(core::int) → dynamic}; - let final Never #t14 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:88:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:88:3: Error: Late final variable '#local4' definitely assigned. local4 += 0; // error ^^^^^^^" in #local4#set(#local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; }; @@ -185,45 +185,45 @@ static method methodDirect(self::methodDirect lowered core::bool #local2#isSet = false; function #local2#get() → self::methodDirect::T% return #local2#isSet ?{self::methodDirect::T%} #local2{self::methodDirect::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodDirect::T% #t15) → dynamic + function #local2#set(self::methodDirect::T% #t8) → dynamic if(#local2#isSet) throw new _in::LateError::localAI("local2"); else { #local2#isSet = true; - return #local2 = #t15; + return #local2 = #t8; } lowered final core::int? #local4; lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t16) → dynamic + function #local4#set(core::int #t9) → dynamic if(#local4#isSet) throw new _in::LateError::localAI("local4"); else { #local4#isSet = true; - return #local4 = #t16; + return #local4 = #t9; } lowered final FutureOr? #local6; lowered core::bool #local6#isSet = false; function #local6#get() → FutureOr return #local6#isSet ?{FutureOr} #local6{FutureOr} : throw new _in::LateError::localNI("local6"); - function #local6#set(FutureOr#t17) → dynamic + function #local6#set(FutureOr#t10) → dynamic if(#local6#isSet) throw new _in::LateError::localAI("local6"); else { #local6#isSet = true; - return #local6 = #t17; + return #local6 = #t10; } #local2#set(value){(self::methodDirect::T%) → dynamic}; #local4#set(0){(core::int) → dynamic}; #local6#set(0){(FutureOr) → dynamic}; - let final Never #t18 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:16:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:16:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(self::methodDirect::T%) → dynamic}; - let final Never #t19 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:17:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:17:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t20 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:18:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:18:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; } @@ -232,34 +232,34 @@ static method methodConditional(core::bool b, lowered core::bool #local2#isSet = false; function #local2#get() → self::methodConditional::T% return #local2#isSet ?{self::methodConditional::T%} #local2{self::methodConditional::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodConditional::T% #t21) → dynamic + function #local2#set(self::methodConditional::T% #t11) → dynamic if(#local2#isSet) throw new _in::LateError::localAI("local2"); else { #local2#isSet = true; - return #local2 = #t21; + return #local2 = #t11; } lowered final core::int? #local4; lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t22) → dynamic + function #local4#set(core::int #t12) → dynamic if(#local4#isSet) throw new _in::LateError::localAI("local4"); else { #local4#isSet = true; - return #local4 = #t22; + return #local4 = #t12; } lowered final FutureOr? #local6; lowered core::bool #local6#isSet = false; function #local6#get() → FutureOr return #local6#isSet ?{FutureOr} #local6{FutureOr} : throw new _in::LateError::localNI("local6"); - function #local6#set(FutureOr#t23) → dynamic + function #local6#set(FutureOr#t13) → dynamic if(#local6#isSet) throw new _in::LateError::localAI("local6"); else { #local6#isSet = true; - return #local6 = #t23; + return #local6 = #t13; } if(b) { #local2#set(value){(self::methodConditional::T%) → dynamic}; @@ -269,13 +269,13 @@ static method methodConditional(core::bool b, #local2#set(value){(self::methodConditional::T%) → dynamic}; #local4#set(0){(core::int) → dynamic}; #local6#set(0){(FutureOr) → dynamic}; - let final Never #t24 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:50:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:50:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(self::methodConditional::T%) → dynamic}; - let final Never #t25 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:51:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:51:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t26 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:52:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:52:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; } @@ -284,15 +284,15 @@ static method methodCompound() → dynamic { lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t27) → dynamic + function #local4#set(core::int #t14) → dynamic if(#local4#isSet) throw new _in::LateError::localAI("local4"); else { #local4#isSet = true; - return #local4 = #t27; + return #local4 = #t14; } #local4#set(0){(core::int) → dynamic}; - let final Never #t28 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:80:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:80:3: Error: Late final variable '#local4' definitely assigned. local4 += 0; // error ^^^^^^^" in #local4#set(#local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; } diff --git a/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.weak.transformed.expect b/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.weak.transformed.expect index 62841e6a950..28154dd5b94 100644 --- a/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/late_lowering/definitely_assigned.dart.weak.transformed.expect @@ -101,13 +101,13 @@ static field (T%) → Null fieldDirect = ) → dynamic}; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:30:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:30:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(T%) → dynamic}; - let final Never #t5 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:31:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:31:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t6 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:32:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:32:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; }; @@ -116,34 +116,34 @@ static field (core::bool, T%) → Null fieldC lowered core::bool #local2#isSet = false; function #local2#get() → T% return #local2#isSet ?{T%} #local2{T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(T% #t7) → dynamic + function #local2#set(T% #t4) → dynamic if(#local2#isSet) throw new _in::LateError::localAI("local2"); else { #local2#isSet = true; - return #local2 = #t7; + return #local2 = #t4; } lowered final core::int? #local4; lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t8) → dynamic + function #local4#set(core::int #t5) → dynamic if(#local4#isSet) throw new _in::LateError::localAI("local4"); else { #local4#isSet = true; - return #local4 = #t8; + return #local4 = #t5; } lowered final FutureOr? #local6; lowered core::bool #local6#isSet = false; function #local6#get() → FutureOr return #local6#isSet ?{FutureOr} #local6{FutureOr} : throw new _in::LateError::localNI("local6"); - function #local6#set(FutureOr#t9) → dynamic + function #local6#set(FutureOr#t6) → dynamic if(#local6#isSet) throw new _in::LateError::localAI("local6"); else { #local6#isSet = true; - return #local6 = #t9; + return #local6 = #t6; } if(b) { #local2#set(value){(T%) → dynamic}; @@ -153,13 +153,13 @@ static field (core::bool, T%) → Null fieldC #local2#set(value){(T%) → dynamic}; #local4#set(0){(core::int) → dynamic}; #local6#set(0){(FutureOr) → dynamic}; - let final Never #t10 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:70:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:70:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(T%) → dynamic}; - let final Never #t11 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:71:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:71:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t12 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:72:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:72:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; }; @@ -168,15 +168,15 @@ static field () → Null fieldCompound = () → Null { lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t13) → dynamic + function #local4#set(core::int #t7) → dynamic if(#local4#isSet) throw new _in::LateError::localAI("local4"); else { #local4#isSet = true; - return #local4 = #t13; + return #local4 = #t7; } #local4#set(0){(core::int) → dynamic}; - let final Never #t14 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:88:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:88:3: Error: Late final variable '#local4' definitely assigned. local4 += 0; // error ^^^^^^^" in #local4#set(#local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; }; @@ -185,45 +185,45 @@ static method methodDirect(self::methodDirect lowered core::bool #local2#isSet = false; function #local2#get() → self::methodDirect::T% return #local2#isSet ?{self::methodDirect::T%} #local2{self::methodDirect::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodDirect::T% #t15) → dynamic + function #local2#set(self::methodDirect::T% #t8) → dynamic if(#local2#isSet) throw new _in::LateError::localAI("local2"); else { #local2#isSet = true; - return #local2 = #t15; + return #local2 = #t8; } lowered final core::int? #local4; lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t16) → dynamic + function #local4#set(core::int #t9) → dynamic if(#local4#isSet) throw new _in::LateError::localAI("local4"); else { #local4#isSet = true; - return #local4 = #t16; + return #local4 = #t9; } lowered final FutureOr? #local6; lowered core::bool #local6#isSet = false; function #local6#get() → FutureOr return #local6#isSet ?{FutureOr} #local6{FutureOr} : throw new _in::LateError::localNI("local6"); - function #local6#set(FutureOr#t17) → dynamic + function #local6#set(FutureOr#t10) → dynamic if(#local6#isSet) throw new _in::LateError::localAI("local6"); else { #local6#isSet = true; - return #local6 = #t17; + return #local6 = #t10; } #local2#set(value){(self::methodDirect::T%) → dynamic}; #local4#set(0){(core::int) → dynamic}; #local6#set(0){(FutureOr) → dynamic}; - let final Never #t18 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:16:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:16:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(self::methodDirect::T%) → dynamic}; - let final Never #t19 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:17:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:17:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t20 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:18:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:18:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; } @@ -232,34 +232,34 @@ static method methodConditional(core::bool b, lowered core::bool #local2#isSet = false; function #local2#get() → self::methodConditional::T% return #local2#isSet ?{self::methodConditional::T%} #local2{self::methodConditional::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodConditional::T% #t21) → dynamic + function #local2#set(self::methodConditional::T% #t11) → dynamic if(#local2#isSet) throw new _in::LateError::localAI("local2"); else { #local2#isSet = true; - return #local2 = #t21; + return #local2 = #t11; } lowered final core::int? #local4; lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t22) → dynamic + function #local4#set(core::int #t12) → dynamic if(#local4#isSet) throw new _in::LateError::localAI("local4"); else { #local4#isSet = true; - return #local4 = #t22; + return #local4 = #t12; } lowered final FutureOr? #local6; lowered core::bool #local6#isSet = false; function #local6#get() → FutureOr return #local6#isSet ?{FutureOr} #local6{FutureOr} : throw new _in::LateError::localNI("local6"); - function #local6#set(FutureOr#t23) → dynamic + function #local6#set(FutureOr#t13) → dynamic if(#local6#isSet) throw new _in::LateError::localAI("local6"); else { #local6#isSet = true; - return #local6 = #t23; + return #local6 = #t13; } if(b) { #local2#set(value){(self::methodConditional::T%) → dynamic}; @@ -269,13 +269,13 @@ static method methodConditional(core::bool b, #local2#set(value){(self::methodConditional::T%) → dynamic}; #local4#set(0){(core::int) → dynamic}; #local6#set(0){(FutureOr) → dynamic}; - let final Never #t24 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:50:3: Error: Late final variable '#local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:50:3: Error: Late final variable '#local2' definitely assigned. local2 = value; // error ^^^^^^^" in #local2#set(value){(self::methodConditional::T%) → dynamic}; - let final Never #t25 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:51:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:51:3: Error: Late final variable '#local4' definitely assigned. local4 = 0; // error ^^^^^^^" in #local4#set(0){(core::int) → dynamic}; - let final Never #t26 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:52:3: Error: Late final variable '#local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:52:3: Error: Late final variable '#local6' definitely assigned. local6 = 0; // error ^^^^^^^" in #local6#set(0){(FutureOr) → dynamic}; } @@ -284,15 +284,15 @@ static method methodCompound() → dynamic { lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t27) → dynamic + function #local4#set(core::int #t14) → dynamic if(#local4#isSet) throw new _in::LateError::localAI("local4"); else { #local4#isSet = true; - return #local4 = #t27; + return #local4 = #t14; } #local4#set(0){(core::int) → dynamic}; - let final Never #t28 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:80:3: Error: Late final variable '#local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:80:3: Error: Late final variable '#local4' definitely assigned. local4 += 0; // error ^^^^^^^" in #local4#set(#local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; } diff --git a/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.strong.expect b/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.strong.expect index 0b556b41f3b..b85ce55b763 100644 --- a/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.strong.expect +++ b/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.strong.expect @@ -131,22 +131,22 @@ static field (T%) → Null fieldDirect = }; #local7#get(){() → T%}; @@ -157,22 +157,22 @@ static field (core::bool, T%) → Null fieldC lowered core::bool #local2#isSet = false; function #local2#get() → T% return #local2#isSet ?{T%} #local2{T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(T% #t13) → dynamic { + function #local2#set(T% #t7) → dynamic { #local2#isSet = true; - return #local2 = #t13; + return #local2 = #t7; } core::int local3; lowered core::int? #local4; function #local4#get() → core::int - return let final core::int? #t14 = #local4 in #t14 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t14{core::int}; - function #local4#set(core::int #t15) → dynamic - return #local4 = #t15; + return let final core::int? #t8 = #local4 in #t8 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t8{core::int}; + function #local4#set(core::int #t9) → dynamic + return #local4 = #t9; FutureOrlocal5; lowered FutureOr? #local6; function #local6#get() → FutureOr - return let final FutureOr? #t16 = #local6 in #t16 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t16{FutureOr}; - function #local6#set(FutureOr#t17) → dynamic - return #local6 = #t17; + return let final FutureOr? #t10 = #local6 in #t10 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t10{FutureOr}; + function #local6#set(FutureOr#t11) → dynamic + return #local6 = #t11; lowered T? #local7; lowered core::bool #local7#isSet = false; function #local7#get() → T% { @@ -182,9 +182,9 @@ static field (core::bool, T%) → Null fieldC } return #local7{T%}; } - function #local7#set(T% #t18) → dynamic { + function #local7#set(T% #t12) → dynamic { #local7#isSet = true; - return #local7 = #t18; + return #local7 = #t12; } if(b) { local1 = value; @@ -195,15 +195,15 @@ static field (core::bool, T%) → Null fieldC #local6#set(0){(FutureOr) → dynamic}; #local7#get(){() → T%}; } - let final Never #t19 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; #local2#get(){() → T%}; - let final Never #t20 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; #local4#get(){() → core::int}; - let final Never #t21 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; #local6#get(){() → FutureOr}; @@ -213,15 +213,15 @@ static field () → Null fieldCompound = () → Null { core::int local3; lowered core::int? #local4; function #local4#get() → core::int - return let final core::int? #t22 = #local4 in #t22 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t22{core::int}; - function #local4#set(core::int #t23) → dynamic - return #local4 = #t23; - local3 = (let final Never #t24 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + return let final core::int? #t13 = #local4 in #t13 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t13{core::int}; + function #local4#set(core::int #t14) → dynamic + return #local4 = #t14; + local3 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - #local4#set((let final Never #t25 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + #local4#set(invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in #local4#get(){() → core::int}).{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; + ^^^^^^" in #local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; }; static method methodDirect(self::methodDirect::T% value) → dynamic { self::methodDirect::T% local1; @@ -229,22 +229,22 @@ static method methodDirect(self::methodDirect lowered core::bool #local2#isSet = false; function #local2#get() → self::methodDirect::T% return #local2#isSet ?{self::methodDirect::T%} #local2{self::methodDirect::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodDirect::T% #t26) → dynamic { + function #local2#set(self::methodDirect::T% #t15) → dynamic { #local2#isSet = true; - return #local2 = #t26; + return #local2 = #t15; } core::int local3; lowered core::int? #local4; function #local4#get() → core::int - return let final core::int? #t27 = #local4 in #t27 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t27{core::int}; - function #local4#set(core::int #t28) → dynamic - return #local4 = #t28; + return let final core::int? #t16 = #local4 in #t16 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t16{core::int}; + function #local4#set(core::int #t17) → dynamic + return #local4 = #t17; FutureOrlocal5; lowered FutureOr? #local6; function #local6#get() → FutureOr - return let final FutureOr? #t29 = #local6 in #t29 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t29{FutureOr}; - function #local6#set(FutureOr#t30) → dynamic - return #local6 = #t30; + return let final FutureOr? #t18 = #local6 in #t18 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t18{FutureOr}; + function #local6#set(FutureOr#t19) → dynamic + return #local6 = #t19; lowered self::methodDirect::T? #local7; lowered core::bool #local7#isSet = false; function #local7#get() → self::methodDirect::T% { @@ -254,26 +254,26 @@ static method methodDirect(self::methodDirect } return #local7{self::methodDirect::T%}; } - function #local7#set(self::methodDirect::T% #t31) → dynamic { + function #local7#set(self::methodDirect::T% #t20) → dynamic { #local7#isSet = true; - return #local7 = #t31; + return #local7 = #t20; } - let final Never #t32 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; - let final Never #t33 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. local2; // error ^^^^^^" in #local2#get(){() → self::methodDirect::T%}; - let final Never #t34 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; - let final Never #t35 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4; // error ^^^^^^" in #local4#get(){() → core::int}; - let final Never #t36 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; - let final Never #t37 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. local6; // error ^^^^^^" in #local6#get(){() → FutureOr}; #local7#get(){() → self::methodDirect::T%}; @@ -284,22 +284,22 @@ static method methodConditional(core::bool b, lowered core::bool #local2#isSet = false; function #local2#get() → self::methodConditional::T% return #local2#isSet ?{self::methodConditional::T%} #local2{self::methodConditional::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodConditional::T% #t38) → dynamic { + function #local2#set(self::methodConditional::T% #t21) → dynamic { #local2#isSet = true; - return #local2 = #t38; + return #local2 = #t21; } core::int local3; lowered core::int? #local4; function #local4#get() → core::int - return let final core::int? #t39 = #local4 in #t39 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t39{core::int}; - function #local4#set(core::int #t40) → dynamic - return #local4 = #t40; + return let final core::int? #t22 = #local4 in #t22 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t22{core::int}; + function #local4#set(core::int #t23) → dynamic + return #local4 = #t23; FutureOrlocal5; lowered FutureOr? #local6; function #local6#get() → FutureOr - return let final FutureOr? #t41 = #local6 in #t41 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t41{FutureOr}; - function #local6#set(FutureOr#t42) → dynamic - return #local6 = #t42; + return let final FutureOr? #t24 = #local6 in #t24 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t24{FutureOr}; + function #local6#set(FutureOr#t25) → dynamic + return #local6 = #t25; lowered self::methodConditional::T? #local7; lowered core::bool #local7#isSet = false; function #local7#get() → self::methodConditional::T% { @@ -309,9 +309,9 @@ static method methodConditional(core::bool b, } return #local7{self::methodConditional::T%}; } - function #local7#set(self::methodConditional::T% #t43) → dynamic { + function #local7#set(self::methodConditional::T% #t26) → dynamic { #local7#isSet = true; - return #local7 = #t43; + return #local7 = #t26; } if(b) { local1 = value; @@ -322,15 +322,15 @@ static method methodConditional(core::bool b, #local6#set(0){(FutureOr) → dynamic}; #local7#set(value){(self::methodConditional::T%) → dynamic}; } - let final Never #t44 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; #local2#get(){() → self::methodConditional::T%}; - let final Never #t45 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; #local4#get(){() → core::int}; - let final Never #t46 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; #local6#get(){() → FutureOr}; @@ -340,14 +340,14 @@ static method methodCompound() → dynamic { core::int local3; lowered core::int? #local4; function #local4#get() → core::int - return let final core::int? #t47 = #local4 in #t47 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t47{core::int}; - function #local4#set(core::int #t48) → dynamic - return #local4 = #t48; - local3 = (let final Never #t49 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + return let final core::int? #t27 = #local4 in #t27 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t27{core::int}; + function #local4#set(core::int #t28) → dynamic + return #local4 = #t28; + local3 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - #local4#set((let final Never #t50 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + #local4#set(invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in #local4#get(){() → core::int}).{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; + ^^^^^^" in #local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.strong.transformed.expect b/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.strong.transformed.expect index 0b556b41f3b..b85ce55b763 100644 --- a/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.strong.transformed.expect @@ -131,22 +131,22 @@ static field (T%) → Null fieldDirect = }; #local7#get(){() → T%}; @@ -157,22 +157,22 @@ static field (core::bool, T%) → Null fieldC lowered core::bool #local2#isSet = false; function #local2#get() → T% return #local2#isSet ?{T%} #local2{T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(T% #t13) → dynamic { + function #local2#set(T% #t7) → dynamic { #local2#isSet = true; - return #local2 = #t13; + return #local2 = #t7; } core::int local3; lowered core::int? #local4; function #local4#get() → core::int - return let final core::int? #t14 = #local4 in #t14 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t14{core::int}; - function #local4#set(core::int #t15) → dynamic - return #local4 = #t15; + return let final core::int? #t8 = #local4 in #t8 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t8{core::int}; + function #local4#set(core::int #t9) → dynamic + return #local4 = #t9; FutureOrlocal5; lowered FutureOr? #local6; function #local6#get() → FutureOr - return let final FutureOr? #t16 = #local6 in #t16 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t16{FutureOr}; - function #local6#set(FutureOr#t17) → dynamic - return #local6 = #t17; + return let final FutureOr? #t10 = #local6 in #t10 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t10{FutureOr}; + function #local6#set(FutureOr#t11) → dynamic + return #local6 = #t11; lowered T? #local7; lowered core::bool #local7#isSet = false; function #local7#get() → T% { @@ -182,9 +182,9 @@ static field (core::bool, T%) → Null fieldC } return #local7{T%}; } - function #local7#set(T% #t18) → dynamic { + function #local7#set(T% #t12) → dynamic { #local7#isSet = true; - return #local7 = #t18; + return #local7 = #t12; } if(b) { local1 = value; @@ -195,15 +195,15 @@ static field (core::bool, T%) → Null fieldC #local6#set(0){(FutureOr) → dynamic}; #local7#get(){() → T%}; } - let final Never #t19 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; #local2#get(){() → T%}; - let final Never #t20 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; #local4#get(){() → core::int}; - let final Never #t21 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; #local6#get(){() → FutureOr}; @@ -213,15 +213,15 @@ static field () → Null fieldCompound = () → Null { core::int local3; lowered core::int? #local4; function #local4#get() → core::int - return let final core::int? #t22 = #local4 in #t22 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t22{core::int}; - function #local4#set(core::int #t23) → dynamic - return #local4 = #t23; - local3 = (let final Never #t24 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + return let final core::int? #t13 = #local4 in #t13 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t13{core::int}; + function #local4#set(core::int #t14) → dynamic + return #local4 = #t14; + local3 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - #local4#set((let final Never #t25 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + #local4#set(invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in #local4#get(){() → core::int}).{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; + ^^^^^^" in #local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; }; static method methodDirect(self::methodDirect::T% value) → dynamic { self::methodDirect::T% local1; @@ -229,22 +229,22 @@ static method methodDirect(self::methodDirect lowered core::bool #local2#isSet = false; function #local2#get() → self::methodDirect::T% return #local2#isSet ?{self::methodDirect::T%} #local2{self::methodDirect::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodDirect::T% #t26) → dynamic { + function #local2#set(self::methodDirect::T% #t15) → dynamic { #local2#isSet = true; - return #local2 = #t26; + return #local2 = #t15; } core::int local3; lowered core::int? #local4; function #local4#get() → core::int - return let final core::int? #t27 = #local4 in #t27 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t27{core::int}; - function #local4#set(core::int #t28) → dynamic - return #local4 = #t28; + return let final core::int? #t16 = #local4 in #t16 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t16{core::int}; + function #local4#set(core::int #t17) → dynamic + return #local4 = #t17; FutureOrlocal5; lowered FutureOr? #local6; function #local6#get() → FutureOr - return let final FutureOr? #t29 = #local6 in #t29 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t29{FutureOr}; - function #local6#set(FutureOr#t30) → dynamic - return #local6 = #t30; + return let final FutureOr? #t18 = #local6 in #t18 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t18{FutureOr}; + function #local6#set(FutureOr#t19) → dynamic + return #local6 = #t19; lowered self::methodDirect::T? #local7; lowered core::bool #local7#isSet = false; function #local7#get() → self::methodDirect::T% { @@ -254,26 +254,26 @@ static method methodDirect(self::methodDirect } return #local7{self::methodDirect::T%}; } - function #local7#set(self::methodDirect::T% #t31) → dynamic { + function #local7#set(self::methodDirect::T% #t20) → dynamic { #local7#isSet = true; - return #local7 = #t31; + return #local7 = #t20; } - let final Never #t32 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; - let final Never #t33 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. local2; // error ^^^^^^" in #local2#get(){() → self::methodDirect::T%}; - let final Never #t34 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; - let final Never #t35 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4; // error ^^^^^^" in #local4#get(){() → core::int}; - let final Never #t36 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; - let final Never #t37 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. local6; // error ^^^^^^" in #local6#get(){() → FutureOr}; #local7#get(){() → self::methodDirect::T%}; @@ -284,22 +284,22 @@ static method methodConditional(core::bool b, lowered core::bool #local2#isSet = false; function #local2#get() → self::methodConditional::T% return #local2#isSet ?{self::methodConditional::T%} #local2{self::methodConditional::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodConditional::T% #t38) → dynamic { + function #local2#set(self::methodConditional::T% #t21) → dynamic { #local2#isSet = true; - return #local2 = #t38; + return #local2 = #t21; } core::int local3; lowered core::int? #local4; function #local4#get() → core::int - return let final core::int? #t39 = #local4 in #t39 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t39{core::int}; - function #local4#set(core::int #t40) → dynamic - return #local4 = #t40; + return let final core::int? #t22 = #local4 in #t22 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t22{core::int}; + function #local4#set(core::int #t23) → dynamic + return #local4 = #t23; FutureOrlocal5; lowered FutureOr? #local6; function #local6#get() → FutureOr - return let final FutureOr? #t41 = #local6 in #t41 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t41{FutureOr}; - function #local6#set(FutureOr#t42) → dynamic - return #local6 = #t42; + return let final FutureOr? #t24 = #local6 in #t24 == null ?{FutureOr} throw new _in::LateError::localNI("local6") : #t24{FutureOr}; + function #local6#set(FutureOr#t25) → dynamic + return #local6 = #t25; lowered self::methodConditional::T? #local7; lowered core::bool #local7#isSet = false; function #local7#get() → self::methodConditional::T% { @@ -309,9 +309,9 @@ static method methodConditional(core::bool b, } return #local7{self::methodConditional::T%}; } - function #local7#set(self::methodConditional::T% #t43) → dynamic { + function #local7#set(self::methodConditional::T% #t26) → dynamic { #local7#isSet = true; - return #local7 = #t43; + return #local7 = #t26; } if(b) { local1 = value; @@ -322,15 +322,15 @@ static method methodConditional(core::bool b, #local6#set(0){(FutureOr) → dynamic}; #local7#set(value){(self::methodConditional::T%) → dynamic}; } - let final Never #t44 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; #local2#get(){() → self::methodConditional::T%}; - let final Never #t45 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; #local4#get(){() → core::int}; - let final Never #t46 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; #local6#get(){() → FutureOr}; @@ -340,14 +340,14 @@ static method methodCompound() → dynamic { core::int local3; lowered core::int? #local4; function #local4#get() → core::int - return let final core::int? #t47 = #local4 in #t47 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t47{core::int}; - function #local4#set(core::int #t48) → dynamic - return #local4 = #t48; - local3 = (let final Never #t49 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + return let final core::int? #t27 = #local4 in #t27 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t27{core::int}; + function #local4#set(core::int #t28) → dynamic + return #local4 = #t28; + local3 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - #local4#set((let final Never #t50 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + #local4#set(invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in #local4#get(){() → core::int}).{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; + ^^^^^^" in #local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.weak.expect b/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.weak.expect index 2c9947ce2d9..55899828400 100644 --- a/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.weak.expect +++ b/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.weak.expect @@ -137,22 +137,22 @@ static field (T%) → Null fieldDirect = }; #local7#get(){() → T%}; @@ -163,27 +163,27 @@ static field (core::bool, T%) → Null fieldC lowered core::bool #local2#isSet = false; function #local2#get() → T% return #local2#isSet ?{T%} #local2{T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(T% #t11) → dynamic { + function #local2#set(T% #t5) → dynamic { #local2#isSet = true; - return #local2 = #t11; + return #local2 = #t5; } core::int local3; lowered core::int? #local4; lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t12) → dynamic { + function #local4#set(core::int #t6) → dynamic { #local4#isSet = true; - return #local4 = #t12; + return #local4 = #t6; } FutureOrlocal5; lowered FutureOr? #local6; lowered core::bool #local6#isSet = false; function #local6#get() → FutureOr return #local6#isSet ?{FutureOr} #local6{FutureOr} : throw new _in::LateError::localNI("local6"); - function #local6#set(FutureOr#t13) → dynamic { + function #local6#set(FutureOr#t7) → dynamic { #local6#isSet = true; - return #local6 = #t13; + return #local6 = #t7; } lowered T? #local7; lowered core::bool #local7#isSet = false; @@ -194,9 +194,9 @@ static field (core::bool, T%) → Null fieldC } return #local7{T%}; } - function #local7#set(T% #t14) → dynamic { + function #local7#set(T% #t8) → dynamic { #local7#isSet = true; - return #local7 = #t14; + return #local7 = #t8; } if(b) { local1 = value; @@ -207,15 +207,15 @@ static field (core::bool, T%) → Null fieldC #local6#set(0){(FutureOr) → dynamic}; #local7#get(){() → T%}; } - let final Never #t15 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; #local2#get(){() → T%}; - let final Never #t16 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; #local4#get(){() → core::int}; - let final Never #t17 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; #local6#get(){() → FutureOr}; @@ -227,16 +227,16 @@ static field () → Null fieldCompound = () → Null { lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t18) → dynamic { + function #local4#set(core::int #t9) → dynamic { #local4#isSet = true; - return #local4 = #t18; + return #local4 = #t9; } - local3 = (let final Never #t19 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + local3 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - #local4#set((let final Never #t20 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + #local4#set(invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in #local4#get(){() → core::int}).{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; + ^^^^^^" in #local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; }; static method methodDirect(self::methodDirect::T% value) → dynamic { self::methodDirect::T% local1; @@ -244,27 +244,27 @@ static method methodDirect(self::methodDirect lowered core::bool #local2#isSet = false; function #local2#get() → self::methodDirect::T% return #local2#isSet ?{self::methodDirect::T%} #local2{self::methodDirect::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodDirect::T% #t21) → dynamic { + function #local2#set(self::methodDirect::T% #t10) → dynamic { #local2#isSet = true; - return #local2 = #t21; + return #local2 = #t10; } core::int local3; lowered core::int? #local4; lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t22) → dynamic { + function #local4#set(core::int #t11) → dynamic { #local4#isSet = true; - return #local4 = #t22; + return #local4 = #t11; } FutureOrlocal5; lowered FutureOr? #local6; lowered core::bool #local6#isSet = false; function #local6#get() → FutureOr return #local6#isSet ?{FutureOr} #local6{FutureOr} : throw new _in::LateError::localNI("local6"); - function #local6#set(FutureOr#t23) → dynamic { + function #local6#set(FutureOr#t12) → dynamic { #local6#isSet = true; - return #local6 = #t23; + return #local6 = #t12; } lowered self::methodDirect::T? #local7; lowered core::bool #local7#isSet = false; @@ -275,26 +275,26 @@ static method methodDirect(self::methodDirect } return #local7{self::methodDirect::T%}; } - function #local7#set(self::methodDirect::T% #t24) → dynamic { + function #local7#set(self::methodDirect::T% #t13) → dynamic { #local7#isSet = true; - return #local7 = #t24; + return #local7 = #t13; } - let final Never #t25 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; - let final Never #t26 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. local2; // error ^^^^^^" in #local2#get(){() → self::methodDirect::T%}; - let final Never #t27 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; - let final Never #t28 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4; // error ^^^^^^" in #local4#get(){() → core::int}; - let final Never #t29 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; - let final Never #t30 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. local6; // error ^^^^^^" in #local6#get(){() → FutureOr}; #local7#get(){() → self::methodDirect::T%}; @@ -305,27 +305,27 @@ static method methodConditional(core::bool b, lowered core::bool #local2#isSet = false; function #local2#get() → self::methodConditional::T% return #local2#isSet ?{self::methodConditional::T%} #local2{self::methodConditional::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodConditional::T% #t31) → dynamic { + function #local2#set(self::methodConditional::T% #t14) → dynamic { #local2#isSet = true; - return #local2 = #t31; + return #local2 = #t14; } core::int local3; lowered core::int? #local4; lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t32) → dynamic { + function #local4#set(core::int #t15) → dynamic { #local4#isSet = true; - return #local4 = #t32; + return #local4 = #t15; } FutureOrlocal5; lowered FutureOr? #local6; lowered core::bool #local6#isSet = false; function #local6#get() → FutureOr return #local6#isSet ?{FutureOr} #local6{FutureOr} : throw new _in::LateError::localNI("local6"); - function #local6#set(FutureOr#t33) → dynamic { + function #local6#set(FutureOr#t16) → dynamic { #local6#isSet = true; - return #local6 = #t33; + return #local6 = #t16; } lowered self::methodConditional::T? #local7; lowered core::bool #local7#isSet = false; @@ -336,9 +336,9 @@ static method methodConditional(core::bool b, } return #local7{self::methodConditional::T%}; } - function #local7#set(self::methodConditional::T% #t34) → dynamic { + function #local7#set(self::methodConditional::T% #t17) → dynamic { #local7#isSet = true; - return #local7 = #t34; + return #local7 = #t17; } if(b) { local1 = value; @@ -349,15 +349,15 @@ static method methodConditional(core::bool b, #local6#set(0){(FutureOr) → dynamic}; #local7#set(value){(self::methodConditional::T%) → dynamic}; } - let final Never #t35 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; #local2#get(){() → self::methodConditional::T%}; - let final Never #t36 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; #local4#get(){() → core::int}; - let final Never #t37 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; #local6#get(){() → FutureOr}; @@ -369,15 +369,15 @@ static method methodCompound() → dynamic { lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t38) → dynamic { + function #local4#set(core::int #t18) → dynamic { #local4#isSet = true; - return #local4 = #t38; + return #local4 = #t18; } - local3 = (let final Never #t39 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + local3 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - #local4#set((let final Never #t40 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + #local4#set(invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in #local4#get(){() → core::int}).{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; + ^^^^^^" in #local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.weak.transformed.expect b/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.weak.transformed.expect index 2c9947ce2d9..55899828400 100644 --- a/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/late_lowering/definitely_unassigned.dart.weak.transformed.expect @@ -137,22 +137,22 @@ static field (T%) → Null fieldDirect = }; #local7#get(){() → T%}; @@ -163,27 +163,27 @@ static field (core::bool, T%) → Null fieldC lowered core::bool #local2#isSet = false; function #local2#get() → T% return #local2#isSet ?{T%} #local2{T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(T% #t11) → dynamic { + function #local2#set(T% #t5) → dynamic { #local2#isSet = true; - return #local2 = #t11; + return #local2 = #t5; } core::int local3; lowered core::int? #local4; lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t12) → dynamic { + function #local4#set(core::int #t6) → dynamic { #local4#isSet = true; - return #local4 = #t12; + return #local4 = #t6; } FutureOrlocal5; lowered FutureOr? #local6; lowered core::bool #local6#isSet = false; function #local6#get() → FutureOr return #local6#isSet ?{FutureOr} #local6{FutureOr} : throw new _in::LateError::localNI("local6"); - function #local6#set(FutureOr#t13) → dynamic { + function #local6#set(FutureOr#t7) → dynamic { #local6#isSet = true; - return #local6 = #t13; + return #local6 = #t7; } lowered T? #local7; lowered core::bool #local7#isSet = false; @@ -194,9 +194,9 @@ static field (core::bool, T%) → Null fieldC } return #local7{T%}; } - function #local7#set(T% #t14) → dynamic { + function #local7#set(T% #t8) → dynamic { #local7#isSet = true; - return #local7 = #t14; + return #local7 = #t8; } if(b) { local1 = value; @@ -207,15 +207,15 @@ static field (core::bool, T%) → Null fieldC #local6#set(0){(FutureOr) → dynamic}; #local7#get(){() → T%}; } - let final Never #t15 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; #local2#get(){() → T%}; - let final Never #t16 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; #local4#get(){() → core::int}; - let final Never #t17 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; #local6#get(){() → FutureOr}; @@ -227,16 +227,16 @@ static field () → Null fieldCompound = () → Null { lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t18) → dynamic { + function #local4#set(core::int #t9) → dynamic { #local4#isSet = true; - return #local4 = #t18; + return #local4 = #t9; } - local3 = (let final Never #t19 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + local3 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - #local4#set((let final Never #t20 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + #local4#set(invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in #local4#get(){() → core::int}).{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; + ^^^^^^" in #local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; }; static method methodDirect(self::methodDirect::T% value) → dynamic { self::methodDirect::T% local1; @@ -244,27 +244,27 @@ static method methodDirect(self::methodDirect lowered core::bool #local2#isSet = false; function #local2#get() → self::methodDirect::T% return #local2#isSet ?{self::methodDirect::T%} #local2{self::methodDirect::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodDirect::T% #t21) → dynamic { + function #local2#set(self::methodDirect::T% #t10) → dynamic { #local2#isSet = true; - return #local2 = #t21; + return #local2 = #t10; } core::int local3; lowered core::int? #local4; lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t22) → dynamic { + function #local4#set(core::int #t11) → dynamic { #local4#isSet = true; - return #local4 = #t22; + return #local4 = #t11; } FutureOrlocal5; lowered FutureOr? #local6; lowered core::bool #local6#isSet = false; function #local6#get() → FutureOr return #local6#isSet ?{FutureOr} #local6{FutureOr} : throw new _in::LateError::localNI("local6"); - function #local6#set(FutureOr#t23) → dynamic { + function #local6#set(FutureOr#t12) → dynamic { #local6#isSet = true; - return #local6 = #t23; + return #local6 = #t12; } lowered self::methodDirect::T? #local7; lowered core::bool #local7#isSet = false; @@ -275,26 +275,26 @@ static method methodDirect(self::methodDirect } return #local7{self::methodDirect::T%}; } - function #local7#set(self::methodDirect::T% #t24) → dynamic { + function #local7#set(self::methodDirect::T% #t13) → dynamic { #local7#isSet = true; - return #local7 = #t24; + return #local7 = #t13; } - let final Never #t25 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; - let final Never #t26 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. local2; // error ^^^^^^" in #local2#get(){() → self::methodDirect::T%}; - let final Never #t27 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; - let final Never #t28 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4; // error ^^^^^^" in #local4#get(){() → core::int}; - let final Never #t29 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; - let final Never #t30 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. local6; // error ^^^^^^" in #local6#get(){() → FutureOr}; #local7#get(){() → self::methodDirect::T%}; @@ -305,27 +305,27 @@ static method methodConditional(core::bool b, lowered core::bool #local2#isSet = false; function #local2#get() → self::methodConditional::T% return #local2#isSet ?{self::methodConditional::T%} #local2{self::methodConditional::T%} : throw new _in::LateError::localNI("local2"); - function #local2#set(self::methodConditional::T% #t31) → dynamic { + function #local2#set(self::methodConditional::T% #t14) → dynamic { #local2#isSet = true; - return #local2 = #t31; + return #local2 = #t14; } core::int local3; lowered core::int? #local4; lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t32) → dynamic { + function #local4#set(core::int #t15) → dynamic { #local4#isSet = true; - return #local4 = #t32; + return #local4 = #t15; } FutureOrlocal5; lowered FutureOr? #local6; lowered core::bool #local6#isSet = false; function #local6#get() → FutureOr return #local6#isSet ?{FutureOr} #local6{FutureOr} : throw new _in::LateError::localNI("local6"); - function #local6#set(FutureOr#t33) → dynamic { + function #local6#set(FutureOr#t16) → dynamic { #local6#isSet = true; - return #local6 = #t33; + return #local6 = #t16; } lowered self::methodConditional::T? #local7; lowered core::bool #local7#isSet = false; @@ -336,9 +336,9 @@ static method methodConditional(core::bool b, } return #local7{self::methodConditional::T%}; } - function #local7#set(self::methodConditional::T% #t34) → dynamic { + function #local7#set(self::methodConditional::T% #t17) → dynamic { #local7#isSet = true; - return #local7 = #t34; + return #local7 = #t17; } if(b) { local1 = value; @@ -349,15 +349,15 @@ static method methodConditional(core::bool b, #local6#set(0){(FutureOr) → dynamic}; #local7#set(value){(self::methodConditional::T%) → dynamic}; } - let final Never #t35 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; #local2#get(){() → self::methodConditional::T%}; - let final Never #t36 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; #local4#get(){() → core::int}; - let final Never #t37 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; #local6#get(){() → FutureOr}; @@ -369,15 +369,15 @@ static method methodCompound() → dynamic { lowered core::bool #local4#isSet = false; function #local4#get() → core::int return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4"); - function #local4#set(core::int #t38) → dynamic { + function #local4#set(core::int #t18) → dynamic { #local4#isSet = true; - return #local4 = #t38; + return #local4 = #t18; } - local3 = (let final Never #t39 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + local3 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - #local4#set((let final Never #t40 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + #local4#set(invalid-expression "pkg/front_end/testcases/late_lowering/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in #local4#get(){() → core::int}).{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; + ^^^^^^" in #local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic}; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/late_lowering/later.dart.strong.expect b/pkg/front_end/testcases/late_lowering/later.dart.strong.expect index d80fa11ee50..20030f22c02 100644 --- a/pkg/front_end/testcases/late_lowering/later.dart.strong.expect +++ b/pkg/front_end/testcases/late_lowering/later.dart.strong.expect @@ -141,7 +141,7 @@ static method fisk() → dynamic async { function #s1#get() → core::String return let final core::String? #t8 = #s1 in #t8 == null ?{core::String} #s1 = invalid-expression "pkg/front_end/testcases/late_lowering/later.dart:40:20: Error: `await` expressions are not supported in late local initializers. late String s1 = await hest(); // Error. - ^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::String : #t8{core::String}; + ^^^^^" : #t8{core::String}; function #s1#set(core::String #t9) → dynamic return #s1 = #t9; lowered core::String? #s2; diff --git a/pkg/front_end/testcases/late_lowering/later.dart.weak.expect b/pkg/front_end/testcases/late_lowering/later.dart.weak.expect index 0026c6bb1d4..a38e25a874f 100644 --- a/pkg/front_end/testcases/late_lowering/later.dart.weak.expect +++ b/pkg/front_end/testcases/late_lowering/later.dart.weak.expect @@ -163,7 +163,7 @@ static method fisk() → dynamic async { if(!#s1#isSet) { #s1 = invalid-expression "pkg/front_end/testcases/late_lowering/later.dart:40:20: Error: `await` expressions are not supported in late local initializers. late String s1 = await hest(); // Error. - ^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + ^^^^^"; #s1#isSet = true; } return #s1{core::String}; diff --git a/pkg/front_end/testcases/nnbd/assignability.dart.strong.expect b/pkg/front_end/testcases/nnbd/assignability.dart.strong.expect index 6dec7c2253a..5603cdc7ea2 100644 --- a/pkg/front_end/testcases/nnbd/assignability.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/assignability.dart.strong.expect @@ -1032,758 +1032,758 @@ static method ok(core::Object objectArg, core::Object? objectNullableArg, core::num numArg, core::num? numNullableArg, core::int intArg, core::int? intNullableArg, core::double doubleArg, core::double? doubleNullableArg, core::Function functionArg, core::Function? functionNullableArg, () → void toVoidArg, () →? void toVoidNullableArg, self::Tearoffable tearoffableArg, self::Tearoffable? tearoffableNullableArg, self::error::XnonNull xNonNullArg, self::error::XnonNull? xNonNullNullableArg, self::error::XpotentiallyNull% xPotentiallyNullArg, self::error::XpotentiallyNull? xPotentiallyNullNullableArg, self::error::YnonNull yNonNullArg, self::error::YnonNull? yNonNullNullableArg, self::error::YpotentiallyNull% yPotentiallyNullArg, self::error::YpotentiallyNull? yPotentiallyNullNullableArg) → dynamic { - core::Object objectVar = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't. + core::Object objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. Object objectVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't. - 'Function' is from 'dart:core'. - 'Object' is from 'dart:core'. objectVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. - 'Object' is from 'dart:core'. objectVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - core::num numVar = let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:128:16: Error: A value of type 'Object' can't be assigned to a variable of type 'num'. + core::num numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:128:16: Error: A value of type 'Object' can't be assigned to a variable of type 'num'. - 'Object' is from 'dart:core'. num numVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:129:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:129:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'num'. - 'Object' is from 'dart:core'. numVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't. numVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't. numVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't. numVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:133:12: Error: A value of type 'Function' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:133:12: Error: A value of type 'Function' can't be assigned to a variable of type 'num'. - 'Function' is from 'dart:core'. numVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:134:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:134:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'num'. - 'Function' is from 'dart:core'. numVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:135:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:135:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'num'. numVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:136:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:136:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'num'. numVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:137:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:137:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'num'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. numVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:138:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:138:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'num'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. numVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:139:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:139:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'num'. numVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:140:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:140:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'num'. numVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t29 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:141:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:141:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'num'. numVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:142:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:142:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'num'. numVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:143:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:143:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'num'. numVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:144:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:144:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'num'. numVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:145:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:145:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'num'. numVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:146:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:146:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'num'. numVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - core::int intVar = let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:148:16: Error: A value of type 'Object' can't be assigned to a variable of type 'int'. + core::int intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:148:16: Error: A value of type 'Object' can't be assigned to a variable of type 'int'. - 'Object' is from 'dart:core'. int intVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:149:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:149:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'int'. - 'Object' is from 'dart:core'. intVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t37 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:150:12: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:150:12: Error: A value of type 'num' can't be assigned to a variable of type 'int'. intVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t38 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:151:12: Error: A value of type 'num?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:151:12: Error: A value of type 'num?' can't be assigned to a variable of type 'int'. intVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. intVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t40 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:153:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:153:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. intVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t41 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:154:12: Error: A value of type 'double?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:154:12: Error: A value of type 'double?' can't be assigned to a variable of type 'int'. intVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t42 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:155:12: Error: A value of type 'Function' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:155:12: Error: A value of type 'Function' can't be assigned to a variable of type 'int'. - 'Function' is from 'dart:core'. intVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:156:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:156:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'int'. - 'Function' is from 'dart:core'. intVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t44 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:157:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:157:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'int'. intVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:158:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:158:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'int'. intVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:159:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:159:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'int'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. intVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t47 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:160:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:160:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'int'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. intVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t48 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:161:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:161:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'int'. intVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t49 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:162:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:162:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'int'. intVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t50 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:163:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:163:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'int'. intVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t51 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:164:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:164:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'int'. intVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t52 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:165:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:165:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'int'. intVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t53 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:166:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:166:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'int'. intVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t54 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:167:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:167:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'int'. intVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t55 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:168:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:168:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'int'. intVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - core::double doubleVar = let final Never #t56 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:170:22: Error: A value of type 'Object' can't be assigned to a variable of type 'double'. + core::double doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:170:22: Error: A value of type 'Object' can't be assigned to a variable of type 'double'. - 'Object' is from 'dart:core'. double doubleVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t57 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:171:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:171:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'double'. - 'Object' is from 'dart:core'. doubleVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t58 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:172:15: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:172:15: Error: A value of type 'num' can't be assigned to a variable of type 'double'. doubleVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t59 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:173:15: Error: A value of type 'num?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:173:15: Error: A value of type 'num?' can't be assigned to a variable of type 'double'. doubleVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t60 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:174:15: Error: A value of type 'int' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:174:15: Error: A value of type 'int' can't be assigned to a variable of type 'double'. doubleVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t61 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:175:15: Error: A value of type 'int?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:175:15: Error: A value of type 'int?' can't be assigned to a variable of type 'double'. doubleVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t62 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't. doubleVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t63 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:177:15: Error: A value of type 'Function' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:177:15: Error: A value of type 'Function' can't be assigned to a variable of type 'double'. - 'Function' is from 'dart:core'. doubleVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t64 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:178:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:178:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'double'. - 'Function' is from 'dart:core'. doubleVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t65 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:179:15: Error: A value of type 'void Function()' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:179:15: Error: A value of type 'void Function()' can't be assigned to a variable of type 'double'. doubleVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t66 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:180:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:180:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'double'. doubleVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t67 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:181:15: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:181:15: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'double'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. doubleVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t68 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:182:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:182:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'double'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. doubleVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t69 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:183:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:183:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'double'. doubleVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t70 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:184:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:184:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'double'. doubleVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t71 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:185:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:185:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'double'. doubleVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t72 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:186:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:186:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'double'. doubleVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t73 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:187:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:187:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'double'. doubleVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t74 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:188:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:188:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'double'. doubleVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t75 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:189:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:189:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'double'. doubleVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t76 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:190:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:190:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'double'. doubleVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - core::Function functionVar = let final Never #t77 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:192:26: Error: A value of type 'Object' can't be assigned to a variable of type 'Function'. + core::Function functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:192:26: Error: A value of type 'Object' can't be assigned to a variable of type 'Function'. - 'Object' is from 'dart:core'. - 'Function' is from 'dart:core'. Function functionVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t78 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:193:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:193:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'Function'. - 'Object' is from 'dart:core'. - 'Function' is from 'dart:core'. functionVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t79 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:194:17: Error: A value of type 'num' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:194:17: Error: A value of type 'num' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t80 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:195:17: Error: A value of type 'num?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:195:17: Error: A value of type 'num?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t81 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:196:17: Error: A value of type 'int' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:196:17: Error: A value of type 'int' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t82 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:197:17: Error: A value of type 'int?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:197:17: Error: A value of type 'int?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t83 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:198:17: Error: A value of type 'double' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:198:17: Error: A value of type 'double' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t84 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:199:17: Error: A value of type 'double?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:199:17: Error: A value of type 'double?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t85 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't. - 'Function' is from 'dart:core'. functionVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t86 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't. - 'Function' is from 'dart:core'. functionVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t87 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:202:17: Error: Can't tear off method 'call' from a potentially null value. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:202:17: Error: Can't tear off method 'call' from a potentially null value. functionVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError} core::Function; - functionVar = let final Never #t88 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:203:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:203:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t89 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:204:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:204:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t90 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:205:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:205:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t91 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:206:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:206:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t92 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:207:17: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:207:17: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t93 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:208:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:208:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t94 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:209:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:209:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t95 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:210:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:210:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - () → void toVoidVar = let final Never #t96 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:212:31: Error: A value of type 'Object' can't be assigned to a variable of type 'void Function()'. + () → void toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:212:31: Error: A value of type 'Object' can't be assigned to a variable of type 'void Function()'. - 'Object' is from 'dart:core'. void Function() toVoidVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t97 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:213:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:213:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'void Function()'. - 'Object' is from 'dart:core'. toVoidVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t98 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:214:15: Error: A value of type 'num' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:214:15: Error: A value of type 'num' can't be assigned to a variable of type 'void Function()'. toVoidVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t99 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:215:15: Error: A value of type 'num?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:215:15: Error: A value of type 'num?' can't be assigned to a variable of type 'void Function()'. toVoidVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t100 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:216:15: Error: A value of type 'int' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:216:15: Error: A value of type 'int' can't be assigned to a variable of type 'void Function()'. toVoidVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t101 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:217:15: Error: A value of type 'int?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:217:15: Error: A value of type 'int?' can't be assigned to a variable of type 'void Function()'. toVoidVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t102 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:218:15: Error: A value of type 'double' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:218:15: Error: A value of type 'double' can't be assigned to a variable of type 'void Function()'. toVoidVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t103 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:219:15: Error: A value of type 'double?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:219:15: Error: A value of type 'double?' can't be assigned to a variable of type 'void Function()'. toVoidVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t104 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:220:15: Error: A value of type 'Function' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:220:15: Error: A value of type 'Function' can't be assigned to a variable of type 'void Function()'. - 'Function' is from 'dart:core'. toVoidVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t105 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:221:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:221:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'void Function()'. - 'Function' is from 'dart:core'. toVoidVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t106 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't. toVoidVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t107 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:223:15: Error: Can't tear off method 'call' from a potentially null value. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:223:15: Error: Can't tear off method 'call' from a potentially null value. toVoidVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError} () → void; - toVoidVar = let final Never #t108 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:224:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:224:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t109 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:225:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:225:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t110 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:226:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:226:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t111 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:227:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:227:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t112 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:228:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:228:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t113 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:229:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:229:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t114 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:230:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:230:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t115 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:231:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:231:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - self::Tearoffable tearoffableVar = let final Never #t116 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:233:32: Error: A value of type 'Object' can't be assigned to a variable of type 'Tearoffable'. + self::Tearoffable tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:233:32: Error: A value of type 'Object' can't be assigned to a variable of type 'Tearoffable'. - 'Object' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. Tearoffable tearoffableVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t117 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:234:20: Error: A value of type 'Object?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:234:20: Error: A value of type 'Object?' can't be assigned to a variable of type 'Tearoffable'. - 'Object' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t118 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:235:20: Error: A value of type 'num' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:235:20: Error: A value of type 'num' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t119 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:236:20: Error: A value of type 'num?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:236:20: Error: A value of type 'num?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t120 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:237:20: Error: A value of type 'int' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:237:20: Error: A value of type 'int' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t121 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:238:20: Error: A value of type 'int?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:238:20: Error: A value of type 'int?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t122 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:239:20: Error: A value of type 'double' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:239:20: Error: A value of type 'double' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t123 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:240:20: Error: A value of type 'double?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:240:20: Error: A value of type 'double?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t124 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:241:20: Error: A value of type 'Function' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:241:20: Error: A value of type 'Function' can't be assigned to a variable of type 'Tearoffable'. - 'Function' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t125 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:242:20: Error: A value of type 'Function?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:242:20: Error: A value of type 'Function?' can't be assigned to a variable of type 'Tearoffable'. - 'Function' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t126 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:243:20: Error: A value of type 'void Function()' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:243:20: Error: A value of type 'void Function()' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t127 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:244:20: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:244:20: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t128 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t129 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:246:20: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:246:20: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t130 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:247:20: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:247:20: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t131 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:248:20: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:248:20: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t132 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:249:20: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:249:20: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t133 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:250:20: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:250:20: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t134 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:251:20: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:251:20: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t135 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:252:20: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:252:20: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t136 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:253:20: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:253:20: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - self::error::XnonNull xNonNullVar = let final Never #t137 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:255:26: Error: A value of type 'Object' can't be assigned to a variable of type 'XnonNull'. + self::error::XnonNull xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:255:26: Error: A value of type 'Object' can't be assigned to a variable of type 'XnonNull'. - 'Object' is from 'dart:core'. XnonNull xNonNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t138 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:256:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:256:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'XnonNull'. - 'Object' is from 'dart:core'. xNonNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t139 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:257:17: Error: A value of type 'num' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:257:17: Error: A value of type 'num' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t140 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:258:17: Error: A value of type 'num?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:258:17: Error: A value of type 'num?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t141 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:259:17: Error: A value of type 'int' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:259:17: Error: A value of type 'int' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t142 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:260:17: Error: A value of type 'int?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:260:17: Error: A value of type 'int?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t143 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:261:17: Error: A value of type 'double' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:261:17: Error: A value of type 'double' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t144 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:262:17: Error: A value of type 'double?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:262:17: Error: A value of type 'double?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t145 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:263:17: Error: A value of type 'Function' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:263:17: Error: A value of type 'Function' can't be assigned to a variable of type 'XnonNull'. - 'Function' is from 'dart:core'. xNonNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t146 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:264:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:264:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'XnonNull'. - 'Function' is from 'dart:core'. xNonNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t147 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:265:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:265:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t148 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:266:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:266:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t149 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:267:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:267:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xNonNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t150 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:268:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:268:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xNonNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t151 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't. xNonNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t152 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:270:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:270:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t153 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:271:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:271:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t154 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't. xNonNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t155 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:273:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:273:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t156 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:274:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:274:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - self::error::XpotentiallyNull% xPotentiallyNullVar = let final Never #t157 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:276:42: Error: A value of type 'Object' can't be assigned to a variable of type 'XpotentiallyNull'. + self::error::XpotentiallyNull% xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:276:42: Error: A value of type 'Object' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Object' is from 'dart:core'. XpotentiallyNull xPotentiallyNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t158 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:277:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:277:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Object' is from 'dart:core'. xPotentiallyNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t159 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:278:25: Error: A value of type 'num' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:278:25: Error: A value of type 'num' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t160 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:279:25: Error: A value of type 'num?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:279:25: Error: A value of type 'num?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t161 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:280:25: Error: A value of type 'int' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:280:25: Error: A value of type 'int' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t162 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:281:25: Error: A value of type 'int?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:281:25: Error: A value of type 'int?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t163 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:282:25: Error: A value of type 'double' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:282:25: Error: A value of type 'double' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t164 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:283:25: Error: A value of type 'double?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:283:25: Error: A value of type 'double?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t165 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:284:25: Error: A value of type 'Function' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:284:25: Error: A value of type 'Function' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Function' is from 'dart:core'. xPotentiallyNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t166 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:285:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:285:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Function' is from 'dart:core'. xPotentiallyNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t167 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:286:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:286:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t168 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:287:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:287:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t169 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:288:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:288:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xPotentiallyNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t170 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:289:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:289:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xPotentiallyNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t171 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:290:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:290:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t172 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:291:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:291:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t173 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. xPotentiallyNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t174 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:293:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:293:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t175 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:294:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:294:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t176 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. xPotentiallyNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - self::error::YnonNull yNonNullVar = let final Never #t177 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:297:26: Error: A value of type 'Object' can't be assigned to a variable of type 'YnonNull'. + self::error::YnonNull yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:297:26: Error: A value of type 'Object' can't be assigned to a variable of type 'YnonNull'. - 'Object' is from 'dart:core'. YnonNull yNonNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t178 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:298:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:298:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'YnonNull'. - 'Object' is from 'dart:core'. yNonNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t179 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:299:17: Error: A value of type 'num' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:299:17: Error: A value of type 'num' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t180 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:300:17: Error: A value of type 'num?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:300:17: Error: A value of type 'num?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t181 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:301:17: Error: A value of type 'int' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:301:17: Error: A value of type 'int' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t182 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:302:17: Error: A value of type 'int?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:302:17: Error: A value of type 'int?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t183 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:303:17: Error: A value of type 'double' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:303:17: Error: A value of type 'double' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t184 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:304:17: Error: A value of type 'double?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:304:17: Error: A value of type 'double?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t185 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:305:17: Error: A value of type 'Function' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:305:17: Error: A value of type 'Function' can't be assigned to a variable of type 'YnonNull'. - 'Function' is from 'dart:core'. yNonNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t186 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:306:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:306:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'YnonNull'. - 'Function' is from 'dart:core'. yNonNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t187 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:307:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:307:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t188 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:308:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:308:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t189 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:309:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:309:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yNonNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t190 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:310:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:310:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yNonNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t191 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:311:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:311:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t192 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:312:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:312:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t193 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:313:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:313:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t194 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:314:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:314:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t195 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't. yNonNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t196 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:316:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:316:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t197 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:317:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:317:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - self::error::YpotentiallyNull% yPotentiallyNullVar = let final Never #t198 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:319:42: Error: A value of type 'Object' can't be assigned to a variable of type 'YpotentiallyNull'. + self::error::YpotentiallyNull% yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:319:42: Error: A value of type 'Object' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Object' is from 'dart:core'. YpotentiallyNull yPotentiallyNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t199 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:320:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:320:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Object' is from 'dart:core'. yPotentiallyNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t200 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:321:25: Error: A value of type 'num' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:321:25: Error: A value of type 'num' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t201 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:322:25: Error: A value of type 'num?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:322:25: Error: A value of type 'num?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t202 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:323:25: Error: A value of type 'int' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:323:25: Error: A value of type 'int' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t203 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:324:25: Error: A value of type 'int?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:324:25: Error: A value of type 'int?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t204 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:325:25: Error: A value of type 'double' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:325:25: Error: A value of type 'double' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t205 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:326:25: Error: A value of type 'double?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:326:25: Error: A value of type 'double?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t206 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:327:25: Error: A value of type 'Function' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:327:25: Error: A value of type 'Function' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Function' is from 'dart:core'. yPotentiallyNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t207 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:328:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:328:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Function' is from 'dart:core'. yPotentiallyNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t208 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:329:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:329:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t209 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:330:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:330:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t210 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:331:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:331:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yPotentiallyNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t211 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:332:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:332:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yPotentiallyNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t212 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:333:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:333:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t213 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:334:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:334:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t214 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:335:25: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:335:25: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t215 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:336:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:336:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t216 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:337:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:337:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t217 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:338:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:338:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t218 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't. yPotentiallyNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; } diff --git a/pkg/front_end/testcases/nnbd/assignability.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/assignability.dart.strong.transformed.expect index 8a79a2f6f69..bf5a3088381 100644 --- a/pkg/front_end/testcases/nnbd/assignability.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/assignability.dart.strong.transformed.expect @@ -1032,758 +1032,758 @@ static method ok(core::Object objectArg, core::Object? objectNullableArg, core::num numArg, core::num? numNullableArg, core::int intArg, core::int? intNullableArg, core::double doubleArg, core::double? doubleNullableArg, core::Function functionArg, core::Function? functionNullableArg, () → void toVoidArg, () →? void toVoidNullableArg, self::Tearoffable tearoffableArg, self::Tearoffable? tearoffableNullableArg, self::error::XnonNull xNonNullArg, self::error::XnonNull? xNonNullNullableArg, self::error::XpotentiallyNull% xPotentiallyNullArg, self::error::XpotentiallyNull? xPotentiallyNullNullableArg, self::error::YnonNull yNonNullArg, self::error::YnonNull? yNonNullNullableArg, self::error::YpotentiallyNull% yPotentiallyNullArg, self::error::YpotentiallyNull? yPotentiallyNullNullableArg) → dynamic { - core::Object objectVar = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't. + core::Object objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. Object objectVar = objectNullableArg; - ^" in let core::Object? #t5 = objectNullableArg in #t5 == null ?{core::Object} #t5 as{TypeError,ForNonNullableByDefault} core::Object : #t5{core::Object}; - objectVar = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't. + ^" in let core::Object? #t4 = objectNullableArg in #t4 == null ?{core::Object} #t4 as{TypeError,ForNonNullableByDefault} core::Object : #t4{core::Object}; + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = numNullableArg; - ^" in let core::num? #t7 = numNullableArg in #t7 == null ?{core::Object} #t7 as{TypeError,ForNonNullableByDefault} core::Object : #t7{core::Object}; - objectVar = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't. + ^" in let core::num? #t5 = numNullableArg in #t5 == null ?{core::Object} #t5 as{TypeError,ForNonNullableByDefault} core::Object : #t5{core::Object}; + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = intNullableArg; - ^" in let core::int? #t9 = intNullableArg in #t9 == null ?{core::Object} #t9 as{TypeError,ForNonNullableByDefault} core::Object : #t9{core::Object}; - objectVar = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't. + ^" in let core::int? #t6 = intNullableArg in #t6 == null ?{core::Object} #t6 as{TypeError,ForNonNullableByDefault} core::Object : #t6{core::Object}; + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = doubleNullableArg; - ^" in let core::double? #t11 = doubleNullableArg in #t11 == null ?{core::Object} #t11 as{TypeError,ForNonNullableByDefault} core::Object : #t11{core::Object}; - objectVar = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't. + ^" in let core::double? #t7 = doubleNullableArg in #t7 == null ?{core::Object} #t7 as{TypeError,ForNonNullableByDefault} core::Object : #t7{core::Object}; + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't. - 'Function' is from 'dart:core'. - 'Object' is from 'dart:core'. objectVar = functionNullableArg; - ^" in let core::Function? #t13 = functionNullableArg in #t13 == null ?{core::Object} #t13 as{TypeError,ForNonNullableByDefault} core::Object : #t13{core::Object}; - objectVar = let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't. + ^" in let core::Function? #t8 = functionNullableArg in #t8 == null ?{core::Object} #t8 as{TypeError,ForNonNullableByDefault} core::Object : #t8{core::Object}; + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = toVoidNullableArg; - ^" in let () →? void #t15 = toVoidNullableArg in #t15 == null ?{core::Object} #t15 as{TypeError,ForNonNullableByDefault} core::Object : #t15{core::Object}; - objectVar = let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't. + ^" in let () →? void #t9 = toVoidNullableArg in #t9 == null ?{core::Object} #t9 as{TypeError,ForNonNullableByDefault} core::Object : #t9{core::Object}; + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. - 'Object' is from 'dart:core'. objectVar = tearoffableNullableArg; - ^" in let self::Tearoffable? #t17 = tearoffableNullableArg in #t17 == null ?{core::Object} #t17 as{TypeError,ForNonNullableByDefault} core::Object : #t17{core::Object}; - objectVar = let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't. + ^" in let self::Tearoffable? #t10 = tearoffableNullableArg in #t10 == null ?{core::Object} #t10 as{TypeError,ForNonNullableByDefault} core::Object : #t10{core::Object}; + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = xNonNullNullableArg; - ^" in let self::error::XnonNull? #t19 = xNonNullNullableArg in #t19 == null ?{core::Object} #t19 as{TypeError,ForNonNullableByDefault} core::Object : #t19{core::Object}; - objectVar = let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't. + ^" in let self::error::XnonNull? #t11 = xNonNullNullableArg in #t11 == null ?{core::Object} #t11 as{TypeError,ForNonNullableByDefault} core::Object : #t11{core::Object}; + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = xPotentiallyNullArg; - ^" in let self::error::XpotentiallyNull% #t21 = xPotentiallyNullArg in #t21 == null ?{core::Object} #t21 as{TypeError,ForNonNullableByDefault} core::Object : #t21{core::Object}; - objectVar = let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't. + ^" in let self::error::XpotentiallyNull% #t12 = xPotentiallyNullArg in #t12 == null ?{core::Object} #t12 as{TypeError,ForNonNullableByDefault} core::Object : #t12{core::Object}; + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = xPotentiallyNullNullableArg; - ^" in let self::error::XpotentiallyNull? #t23 = xPotentiallyNullNullableArg in #t23 == null ?{core::Object} #t23 as{TypeError,ForNonNullableByDefault} core::Object : #t23{core::Object}; - objectVar = let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't. + ^" in let self::error::XpotentiallyNull? #t13 = xPotentiallyNullNullableArg in #t13 == null ?{core::Object} #t13 as{TypeError,ForNonNullableByDefault} core::Object : #t13{core::Object}; + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = yNonNullNullableArg; - ^" in let self::error::YnonNull? #t25 = yNonNullNullableArg in #t25 == null ?{core::Object} #t25 as{TypeError,ForNonNullableByDefault} core::Object : #t25{core::Object}; - objectVar = let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't. + ^" in let self::error::YnonNull? #t14 = yNonNullNullableArg in #t14 == null ?{core::Object} #t14 as{TypeError,ForNonNullableByDefault} core::Object : #t14{core::Object}; + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = yPotentiallyNullArg; - ^" in let self::error::YpotentiallyNull% #t27 = yPotentiallyNullArg in #t27 == null ?{core::Object} #t27 as{TypeError,ForNonNullableByDefault} core::Object : #t27{core::Object}; - objectVar = let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't. + ^" in let self::error::YpotentiallyNull% #t15 = yPotentiallyNullArg in #t15 == null ?{core::Object} #t15 as{TypeError,ForNonNullableByDefault} core::Object : #t15{core::Object}; + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = yPotentiallyNullNullableArg; - ^" in let self::error::YpotentiallyNull? #t29 = yPotentiallyNullNullableArg in #t29 == null ?{core::Object} #t29 as{TypeError,ForNonNullableByDefault} core::Object : #t29{core::Object}; - core::num numVar = let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:128:16: Error: A value of type 'Object' can't be assigned to a variable of type 'num'. + ^" in let self::error::YpotentiallyNull? #t16 = yPotentiallyNullNullableArg in #t16 == null ?{core::Object} #t16 as{TypeError,ForNonNullableByDefault} core::Object : #t16{core::Object}; + core::num numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:128:16: Error: A value of type 'Object' can't be assigned to a variable of type 'num'. - 'Object' is from 'dart:core'. num numVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:129:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:129:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'num'. - 'Object' is from 'dart:core'. numVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't. numVar = numNullableArg; - ^" in let core::num? #t33 = numNullableArg in #t33 == null ?{core::num} #t33 as{TypeError,ForNonNullableByDefault} core::num : #t33{core::num}; - numVar = let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't. + ^" in let core::num? #t17 = numNullableArg in #t17 == null ?{core::num} #t17 as{TypeError,ForNonNullableByDefault} core::num : #t17{core::num}; + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't. numVar = intNullableArg; - ^" in let core::int? #t35 = intNullableArg in #t35 == null ?{core::num} #t35 as{TypeError,ForNonNullableByDefault} core::num : #t35{core::num}; - numVar = let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't. + ^" in let core::int? #t18 = intNullableArg in #t18 == null ?{core::num} #t18 as{TypeError,ForNonNullableByDefault} core::num : #t18{core::num}; + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't. numVar = doubleNullableArg; - ^" in let core::double? #t37 = doubleNullableArg in #t37 == null ?{core::num} #t37 as{TypeError,ForNonNullableByDefault} core::num : #t37{core::num}; - numVar = let final Never #t38 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:133:12: Error: A value of type 'Function' can't be assigned to a variable of type 'num'. + ^" in let core::double? #t19 = doubleNullableArg in #t19 == null ?{core::num} #t19 as{TypeError,ForNonNullableByDefault} core::num : #t19{core::num}; + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:133:12: Error: A value of type 'Function' can't be assigned to a variable of type 'num'. - 'Function' is from 'dart:core'. numVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:134:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:134:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'num'. - 'Function' is from 'dart:core'. numVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t40 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:135:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:135:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'num'. numVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t41 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:136:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:136:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'num'. numVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t42 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:137:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:137:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'num'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. numVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:138:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:138:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'num'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. numVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t44 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:139:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:139:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'num'. numVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:140:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:140:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'num'. numVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:141:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:141:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'num'. numVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t47 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:142:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:142:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'num'. numVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t48 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:143:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:143:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'num'. numVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t49 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:144:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:144:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'num'. numVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t50 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:145:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:145:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'num'. numVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t51 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:146:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:146:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'num'. numVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - core::int intVar = let final Never #t52 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:148:16: Error: A value of type 'Object' can't be assigned to a variable of type 'int'. + core::int intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:148:16: Error: A value of type 'Object' can't be assigned to a variable of type 'int'. - 'Object' is from 'dart:core'. int intVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t53 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:149:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:149:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'int'. - 'Object' is from 'dart:core'. intVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t54 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:150:12: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:150:12: Error: A value of type 'num' can't be assigned to a variable of type 'int'. intVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t55 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:151:12: Error: A value of type 'num?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:151:12: Error: A value of type 'num?' can't be assigned to a variable of type 'int'. intVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t56 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. intVar = intNullableArg; - ^" in let core::int? #t57 = intNullableArg in #t57 == null ?{core::int} #t57 as{TypeError,ForNonNullableByDefault} core::int : #t57{core::int}; - intVar = let final Never #t58 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:153:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + ^" in let core::int? #t20 = intNullableArg in #t20 == null ?{core::int} #t20 as{TypeError,ForNonNullableByDefault} core::int : #t20{core::int}; + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:153:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. intVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t59 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:154:12: Error: A value of type 'double?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:154:12: Error: A value of type 'double?' can't be assigned to a variable of type 'int'. intVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t60 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:155:12: Error: A value of type 'Function' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:155:12: Error: A value of type 'Function' can't be assigned to a variable of type 'int'. - 'Function' is from 'dart:core'. intVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t61 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:156:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:156:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'int'. - 'Function' is from 'dart:core'. intVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t62 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:157:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:157:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'int'. intVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t63 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:158:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:158:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'int'. intVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t64 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:159:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:159:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'int'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. intVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t65 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:160:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:160:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'int'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. intVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t66 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:161:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:161:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'int'. intVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t67 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:162:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:162:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'int'. intVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t68 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:163:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:163:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'int'. intVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t69 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:164:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:164:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'int'. intVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t70 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:165:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:165:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'int'. intVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t71 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:166:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:166:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'int'. intVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t72 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:167:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:167:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'int'. intVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t73 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:168:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:168:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'int'. intVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - core::double doubleVar = let final Never #t74 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:170:22: Error: A value of type 'Object' can't be assigned to a variable of type 'double'. + core::double doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:170:22: Error: A value of type 'Object' can't be assigned to a variable of type 'double'. - 'Object' is from 'dart:core'. double doubleVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t75 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:171:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:171:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'double'. - 'Object' is from 'dart:core'. doubleVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t76 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:172:15: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:172:15: Error: A value of type 'num' can't be assigned to a variable of type 'double'. doubleVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t77 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:173:15: Error: A value of type 'num?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:173:15: Error: A value of type 'num?' can't be assigned to a variable of type 'double'. doubleVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t78 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:174:15: Error: A value of type 'int' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:174:15: Error: A value of type 'int' can't be assigned to a variable of type 'double'. doubleVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t79 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:175:15: Error: A value of type 'int?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:175:15: Error: A value of type 'int?' can't be assigned to a variable of type 'double'. doubleVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t80 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't. doubleVar = doubleNullableArg; - ^" in let core::double? #t81 = doubleNullableArg in #t81 == null ?{core::double} #t81 as{TypeError,ForNonNullableByDefault} core::double : #t81{core::double}; - doubleVar = let final Never #t82 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:177:15: Error: A value of type 'Function' can't be assigned to a variable of type 'double'. + ^" in let core::double? #t21 = doubleNullableArg in #t21 == null ?{core::double} #t21 as{TypeError,ForNonNullableByDefault} core::double : #t21{core::double}; + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:177:15: Error: A value of type 'Function' can't be assigned to a variable of type 'double'. - 'Function' is from 'dart:core'. doubleVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t83 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:178:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:178:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'double'. - 'Function' is from 'dart:core'. doubleVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t84 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:179:15: Error: A value of type 'void Function()' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:179:15: Error: A value of type 'void Function()' can't be assigned to a variable of type 'double'. doubleVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t85 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:180:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:180:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'double'. doubleVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t86 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:181:15: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:181:15: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'double'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. doubleVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t87 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:182:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:182:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'double'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. doubleVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t88 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:183:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:183:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'double'. doubleVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t89 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:184:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:184:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'double'. doubleVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t90 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:185:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:185:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'double'. doubleVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t91 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:186:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:186:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'double'. doubleVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t92 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:187:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:187:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'double'. doubleVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t93 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:188:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:188:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'double'. doubleVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t94 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:189:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:189:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'double'. doubleVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t95 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:190:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:190:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'double'. doubleVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - core::Function functionVar = let final Never #t96 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:192:26: Error: A value of type 'Object' can't be assigned to a variable of type 'Function'. + core::Function functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:192:26: Error: A value of type 'Object' can't be assigned to a variable of type 'Function'. - 'Object' is from 'dart:core'. - 'Function' is from 'dart:core'. Function functionVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t97 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:193:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:193:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'Function'. - 'Object' is from 'dart:core'. - 'Function' is from 'dart:core'. functionVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t98 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:194:17: Error: A value of type 'num' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:194:17: Error: A value of type 'num' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t99 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:195:17: Error: A value of type 'num?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:195:17: Error: A value of type 'num?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t100 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:196:17: Error: A value of type 'int' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:196:17: Error: A value of type 'int' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t101 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:197:17: Error: A value of type 'int?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:197:17: Error: A value of type 'int?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t102 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:198:17: Error: A value of type 'double' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:198:17: Error: A value of type 'double' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t103 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:199:17: Error: A value of type 'double?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:199:17: Error: A value of type 'double?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t104 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't. - 'Function' is from 'dart:core'. functionVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t105 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't. - 'Function' is from 'dart:core'. functionVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t106 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:202:17: Error: Can't tear off method 'call' from a potentially null value. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:202:17: Error: Can't tear off method 'call' from a potentially null value. functionVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError} core::Function; - functionVar = let final Never #t107 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:203:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:203:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t108 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:204:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:204:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t109 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:205:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:205:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t110 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:206:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:206:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t111 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:207:17: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:207:17: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t112 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:208:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:208:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t113 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:209:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:209:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t114 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:210:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:210:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - () → void toVoidVar = let final Never #t115 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:212:31: Error: A value of type 'Object' can't be assigned to a variable of type 'void Function()'. + () → void toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:212:31: Error: A value of type 'Object' can't be assigned to a variable of type 'void Function()'. - 'Object' is from 'dart:core'. void Function() toVoidVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t116 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:213:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:213:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'void Function()'. - 'Object' is from 'dart:core'. toVoidVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t117 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:214:15: Error: A value of type 'num' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:214:15: Error: A value of type 'num' can't be assigned to a variable of type 'void Function()'. toVoidVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t118 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:215:15: Error: A value of type 'num?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:215:15: Error: A value of type 'num?' can't be assigned to a variable of type 'void Function()'. toVoidVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t119 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:216:15: Error: A value of type 'int' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:216:15: Error: A value of type 'int' can't be assigned to a variable of type 'void Function()'. toVoidVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t120 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:217:15: Error: A value of type 'int?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:217:15: Error: A value of type 'int?' can't be assigned to a variable of type 'void Function()'. toVoidVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t121 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:218:15: Error: A value of type 'double' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:218:15: Error: A value of type 'double' can't be assigned to a variable of type 'void Function()'. toVoidVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t122 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:219:15: Error: A value of type 'double?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:219:15: Error: A value of type 'double?' can't be assigned to a variable of type 'void Function()'. toVoidVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t123 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:220:15: Error: A value of type 'Function' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:220:15: Error: A value of type 'Function' can't be assigned to a variable of type 'void Function()'. - 'Function' is from 'dart:core'. toVoidVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t124 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:221:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:221:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'void Function()'. - 'Function' is from 'dart:core'. toVoidVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t125 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't. toVoidVar = toVoidNullableArg; - ^" in let () →? void #t126 = toVoidNullableArg in #t126 == null ?{() → void} #t126 as{TypeError,ForNonNullableByDefault} () → void : #t126{() → void}; - toVoidVar = let final Never #t127 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:223:15: Error: Can't tear off method 'call' from a potentially null value. + ^" in let () →? void #t22 = toVoidNullableArg in #t22 == null ?{() → void} #t22 as{TypeError,ForNonNullableByDefault} () → void : #t22{() → void}; + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:223:15: Error: Can't tear off method 'call' from a potentially null value. toVoidVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError} () → void; - toVoidVar = let final Never #t128 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:224:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:224:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t129 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:225:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:225:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t130 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:226:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:226:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t131 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:227:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:227:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t132 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:228:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:228:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t133 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:229:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:229:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t134 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:230:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:230:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t135 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:231:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:231:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - self::Tearoffable tearoffableVar = let final Never #t136 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:233:32: Error: A value of type 'Object' can't be assigned to a variable of type 'Tearoffable'. + self::Tearoffable tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:233:32: Error: A value of type 'Object' can't be assigned to a variable of type 'Tearoffable'. - 'Object' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. Tearoffable tearoffableVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t137 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:234:20: Error: A value of type 'Object?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:234:20: Error: A value of type 'Object?' can't be assigned to a variable of type 'Tearoffable'. - 'Object' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t138 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:235:20: Error: A value of type 'num' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:235:20: Error: A value of type 'num' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t139 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:236:20: Error: A value of type 'num?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:236:20: Error: A value of type 'num?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t140 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:237:20: Error: A value of type 'int' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:237:20: Error: A value of type 'int' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t141 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:238:20: Error: A value of type 'int?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:238:20: Error: A value of type 'int?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t142 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:239:20: Error: A value of type 'double' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:239:20: Error: A value of type 'double' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t143 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:240:20: Error: A value of type 'double?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:240:20: Error: A value of type 'double?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t144 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:241:20: Error: A value of type 'Function' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:241:20: Error: A value of type 'Function' can't be assigned to a variable of type 'Tearoffable'. - 'Function' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t145 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:242:20: Error: A value of type 'Function?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:242:20: Error: A value of type 'Function?' can't be assigned to a variable of type 'Tearoffable'. - 'Function' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t146 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:243:20: Error: A value of type 'void Function()' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:243:20: Error: A value of type 'void Function()' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t147 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:244:20: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:244:20: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t148 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = tearoffableNullableArg; - ^" in let self::Tearoffable? #t149 = tearoffableNullableArg in #t149 == null ?{self::Tearoffable} #t149 as{TypeError,ForNonNullableByDefault} self::Tearoffable : #t149{self::Tearoffable}; - tearoffableVar = let final Never #t150 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:246:20: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Tearoffable'. + ^" in let self::Tearoffable? #t23 = tearoffableNullableArg in #t23 == null ?{self::Tearoffable} #t23 as{TypeError,ForNonNullableByDefault} self::Tearoffable : #t23{self::Tearoffable}; + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:246:20: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t151 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:247:20: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:247:20: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t152 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:248:20: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:248:20: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t153 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:249:20: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:249:20: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t154 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:250:20: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:250:20: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t155 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:251:20: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:251:20: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t156 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:252:20: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:252:20: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t157 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:253:20: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:253:20: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - self::error::XnonNull xNonNullVar = let final Never #t158 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:255:26: Error: A value of type 'Object' can't be assigned to a variable of type 'XnonNull'. + self::error::XnonNull xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:255:26: Error: A value of type 'Object' can't be assigned to a variable of type 'XnonNull'. - 'Object' is from 'dart:core'. XnonNull xNonNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t159 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:256:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:256:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'XnonNull'. - 'Object' is from 'dart:core'. xNonNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t160 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:257:17: Error: A value of type 'num' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:257:17: Error: A value of type 'num' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t161 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:258:17: Error: A value of type 'num?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:258:17: Error: A value of type 'num?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t162 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:259:17: Error: A value of type 'int' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:259:17: Error: A value of type 'int' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t163 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:260:17: Error: A value of type 'int?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:260:17: Error: A value of type 'int?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t164 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:261:17: Error: A value of type 'double' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:261:17: Error: A value of type 'double' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t165 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:262:17: Error: A value of type 'double?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:262:17: Error: A value of type 'double?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t166 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:263:17: Error: A value of type 'Function' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:263:17: Error: A value of type 'Function' can't be assigned to a variable of type 'XnonNull'. - 'Function' is from 'dart:core'. xNonNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t167 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:264:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:264:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'XnonNull'. - 'Function' is from 'dart:core'. xNonNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t168 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:265:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:265:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t169 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:266:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:266:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t170 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:267:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:267:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xNonNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t171 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:268:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:268:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xNonNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t172 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't. xNonNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t173 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:270:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:270:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t174 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:271:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:271:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t175 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't. xNonNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t176 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:273:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:273:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t177 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:274:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:274:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - self::error::XpotentiallyNull% xPotentiallyNullVar = let final Never #t178 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:276:42: Error: A value of type 'Object' can't be assigned to a variable of type 'XpotentiallyNull'. + self::error::XpotentiallyNull% xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:276:42: Error: A value of type 'Object' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Object' is from 'dart:core'. XpotentiallyNull xPotentiallyNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t179 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:277:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:277:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Object' is from 'dart:core'. xPotentiallyNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t180 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:278:25: Error: A value of type 'num' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:278:25: Error: A value of type 'num' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t181 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:279:25: Error: A value of type 'num?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:279:25: Error: A value of type 'num?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t182 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:280:25: Error: A value of type 'int' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:280:25: Error: A value of type 'int' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t183 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:281:25: Error: A value of type 'int?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:281:25: Error: A value of type 'int?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t184 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:282:25: Error: A value of type 'double' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:282:25: Error: A value of type 'double' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t185 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:283:25: Error: A value of type 'double?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:283:25: Error: A value of type 'double?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t186 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:284:25: Error: A value of type 'Function' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:284:25: Error: A value of type 'Function' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Function' is from 'dart:core'. xPotentiallyNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t187 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:285:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:285:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Function' is from 'dart:core'. xPotentiallyNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t188 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:286:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:286:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t189 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:287:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:287:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t190 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:288:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:288:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xPotentiallyNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t191 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:289:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:289:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xPotentiallyNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t192 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:290:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:290:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t193 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:291:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:291:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t194 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. xPotentiallyNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t195 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:293:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:293:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t196 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:294:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:294:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t197 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. xPotentiallyNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - self::error::YnonNull yNonNullVar = let final Never #t198 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:297:26: Error: A value of type 'Object' can't be assigned to a variable of type 'YnonNull'. + self::error::YnonNull yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:297:26: Error: A value of type 'Object' can't be assigned to a variable of type 'YnonNull'. - 'Object' is from 'dart:core'. YnonNull yNonNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t199 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:298:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:298:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'YnonNull'. - 'Object' is from 'dart:core'. yNonNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t200 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:299:17: Error: A value of type 'num' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:299:17: Error: A value of type 'num' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t201 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:300:17: Error: A value of type 'num?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:300:17: Error: A value of type 'num?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t202 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:301:17: Error: A value of type 'int' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:301:17: Error: A value of type 'int' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t203 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:302:17: Error: A value of type 'int?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:302:17: Error: A value of type 'int?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t204 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:303:17: Error: A value of type 'double' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:303:17: Error: A value of type 'double' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t205 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:304:17: Error: A value of type 'double?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:304:17: Error: A value of type 'double?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t206 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:305:17: Error: A value of type 'Function' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:305:17: Error: A value of type 'Function' can't be assigned to a variable of type 'YnonNull'. - 'Function' is from 'dart:core'. yNonNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t207 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:306:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:306:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'YnonNull'. - 'Function' is from 'dart:core'. yNonNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t208 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:307:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:307:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t209 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:308:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:308:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t210 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:309:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:309:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yNonNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t211 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:310:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:310:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yNonNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t212 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:311:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:311:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t213 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:312:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:312:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t214 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:313:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:313:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t215 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:314:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:314:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t216 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't. yNonNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t217 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:316:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:316:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t218 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:317:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:317:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - self::error::YpotentiallyNull% yPotentiallyNullVar = let final Never #t219 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:319:42: Error: A value of type 'Object' can't be assigned to a variable of type 'YpotentiallyNull'. + self::error::YpotentiallyNull% yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:319:42: Error: A value of type 'Object' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Object' is from 'dart:core'. YpotentiallyNull yPotentiallyNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t220 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:320:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:320:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Object' is from 'dart:core'. yPotentiallyNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t221 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:321:25: Error: A value of type 'num' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:321:25: Error: A value of type 'num' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t222 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:322:25: Error: A value of type 'num?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:322:25: Error: A value of type 'num?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t223 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:323:25: Error: A value of type 'int' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:323:25: Error: A value of type 'int' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t224 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:324:25: Error: A value of type 'int?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:324:25: Error: A value of type 'int?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t225 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:325:25: Error: A value of type 'double' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:325:25: Error: A value of type 'double' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t226 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:326:25: Error: A value of type 'double?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:326:25: Error: A value of type 'double?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t227 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:327:25: Error: A value of type 'Function' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:327:25: Error: A value of type 'Function' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Function' is from 'dart:core'. yPotentiallyNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t228 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:328:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:328:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Function' is from 'dart:core'. yPotentiallyNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t229 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:329:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:329:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t230 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:330:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:330:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t231 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:331:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:331:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yPotentiallyNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t232 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:332:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:332:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yPotentiallyNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t233 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:333:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:333:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t234 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:334:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:334:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t235 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:335:25: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:335:25: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t236 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:336:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:336:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t237 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:337:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:337:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t238 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:338:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:338:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t239 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't. yPotentiallyNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; } diff --git a/pkg/front_end/testcases/nnbd/assignability.dart.weak.expect b/pkg/front_end/testcases/nnbd/assignability.dart.weak.expect index 6dec7c2253a..5603cdc7ea2 100644 --- a/pkg/front_end/testcases/nnbd/assignability.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/assignability.dart.weak.expect @@ -1032,758 +1032,758 @@ static method ok(core::Object objectArg, core::Object? objectNullableArg, core::num numArg, core::num? numNullableArg, core::int intArg, core::int? intNullableArg, core::double doubleArg, core::double? doubleNullableArg, core::Function functionArg, core::Function? functionNullableArg, () → void toVoidArg, () →? void toVoidNullableArg, self::Tearoffable tearoffableArg, self::Tearoffable? tearoffableNullableArg, self::error::XnonNull xNonNullArg, self::error::XnonNull? xNonNullNullableArg, self::error::XpotentiallyNull% xPotentiallyNullArg, self::error::XpotentiallyNull? xPotentiallyNullNullableArg, self::error::YnonNull yNonNullArg, self::error::YnonNull? yNonNullNullableArg, self::error::YpotentiallyNull% yPotentiallyNullArg, self::error::YpotentiallyNull? yPotentiallyNullNullableArg) → dynamic { - core::Object objectVar = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't. + core::Object objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. Object objectVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't. - 'Function' is from 'dart:core'. - 'Object' is from 'dart:core'. objectVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. - 'Object' is from 'dart:core'. objectVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::Object; - objectVar = let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::Object; - core::num numVar = let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:128:16: Error: A value of type 'Object' can't be assigned to a variable of type 'num'. + core::num numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:128:16: Error: A value of type 'Object' can't be assigned to a variable of type 'num'. - 'Object' is from 'dart:core'. num numVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:129:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:129:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'num'. - 'Object' is from 'dart:core'. numVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't. numVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't. numVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't. numVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:133:12: Error: A value of type 'Function' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:133:12: Error: A value of type 'Function' can't be assigned to a variable of type 'num'. - 'Function' is from 'dart:core'. numVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:134:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:134:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'num'. - 'Function' is from 'dart:core'. numVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:135:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:135:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'num'. numVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:136:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:136:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'num'. numVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:137:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:137:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'num'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. numVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:138:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:138:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'num'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. numVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:139:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:139:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'num'. numVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:140:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:140:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'num'. numVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t29 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:141:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:141:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'num'. numVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:142:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:142:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'num'. numVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:143:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:143:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'num'. numVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:144:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:144:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'num'. numVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:145:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:145:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'num'. numVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:146:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:146:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'num'. numVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - core::int intVar = let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:148:16: Error: A value of type 'Object' can't be assigned to a variable of type 'int'. + core::int intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:148:16: Error: A value of type 'Object' can't be assigned to a variable of type 'int'. - 'Object' is from 'dart:core'. int intVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:149:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:149:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'int'. - 'Object' is from 'dart:core'. intVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t37 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:150:12: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:150:12: Error: A value of type 'num' can't be assigned to a variable of type 'int'. intVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t38 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:151:12: Error: A value of type 'num?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:151:12: Error: A value of type 'num?' can't be assigned to a variable of type 'int'. intVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. intVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t40 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:153:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:153:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. intVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t41 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:154:12: Error: A value of type 'double?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:154:12: Error: A value of type 'double?' can't be assigned to a variable of type 'int'. intVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t42 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:155:12: Error: A value of type 'Function' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:155:12: Error: A value of type 'Function' can't be assigned to a variable of type 'int'. - 'Function' is from 'dart:core'. intVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:156:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:156:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'int'. - 'Function' is from 'dart:core'. intVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t44 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:157:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:157:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'int'. intVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:158:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:158:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'int'. intVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:159:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:159:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'int'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. intVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t47 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:160:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:160:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'int'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. intVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t48 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:161:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:161:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'int'. intVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t49 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:162:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:162:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'int'. intVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t50 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:163:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:163:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'int'. intVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t51 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:164:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:164:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'int'. intVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t52 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:165:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:165:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'int'. intVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t53 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:166:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:166:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'int'. intVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t54 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:167:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:167:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'int'. intVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t55 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:168:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:168:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'int'. intVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - core::double doubleVar = let final Never #t56 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:170:22: Error: A value of type 'Object' can't be assigned to a variable of type 'double'. + core::double doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:170:22: Error: A value of type 'Object' can't be assigned to a variable of type 'double'. - 'Object' is from 'dart:core'. double doubleVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t57 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:171:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:171:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'double'. - 'Object' is from 'dart:core'. doubleVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t58 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:172:15: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:172:15: Error: A value of type 'num' can't be assigned to a variable of type 'double'. doubleVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t59 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:173:15: Error: A value of type 'num?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:173:15: Error: A value of type 'num?' can't be assigned to a variable of type 'double'. doubleVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t60 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:174:15: Error: A value of type 'int' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:174:15: Error: A value of type 'int' can't be assigned to a variable of type 'double'. doubleVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t61 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:175:15: Error: A value of type 'int?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:175:15: Error: A value of type 'int?' can't be assigned to a variable of type 'double'. doubleVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t62 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't. doubleVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t63 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:177:15: Error: A value of type 'Function' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:177:15: Error: A value of type 'Function' can't be assigned to a variable of type 'double'. - 'Function' is from 'dart:core'. doubleVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t64 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:178:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:178:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'double'. - 'Function' is from 'dart:core'. doubleVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t65 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:179:15: Error: A value of type 'void Function()' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:179:15: Error: A value of type 'void Function()' can't be assigned to a variable of type 'double'. doubleVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t66 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:180:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:180:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'double'. doubleVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t67 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:181:15: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:181:15: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'double'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. doubleVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t68 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:182:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:182:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'double'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. doubleVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t69 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:183:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:183:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'double'. doubleVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t70 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:184:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:184:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'double'. doubleVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t71 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:185:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:185:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'double'. doubleVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t72 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:186:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:186:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'double'. doubleVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t73 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:187:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:187:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'double'. doubleVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t74 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:188:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:188:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'double'. doubleVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t75 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:189:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:189:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'double'. doubleVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t76 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:190:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:190:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'double'. doubleVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - core::Function functionVar = let final Never #t77 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:192:26: Error: A value of type 'Object' can't be assigned to a variable of type 'Function'. + core::Function functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:192:26: Error: A value of type 'Object' can't be assigned to a variable of type 'Function'. - 'Object' is from 'dart:core'. - 'Function' is from 'dart:core'. Function functionVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t78 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:193:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:193:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'Function'. - 'Object' is from 'dart:core'. - 'Function' is from 'dart:core'. functionVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t79 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:194:17: Error: A value of type 'num' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:194:17: Error: A value of type 'num' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t80 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:195:17: Error: A value of type 'num?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:195:17: Error: A value of type 'num?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t81 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:196:17: Error: A value of type 'int' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:196:17: Error: A value of type 'int' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t82 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:197:17: Error: A value of type 'int?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:197:17: Error: A value of type 'int?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t83 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:198:17: Error: A value of type 'double' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:198:17: Error: A value of type 'double' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t84 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:199:17: Error: A value of type 'double?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:199:17: Error: A value of type 'double?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t85 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't. - 'Function' is from 'dart:core'. functionVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t86 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't. - 'Function' is from 'dart:core'. functionVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t87 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:202:17: Error: Can't tear off method 'call' from a potentially null value. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:202:17: Error: Can't tear off method 'call' from a potentially null value. functionVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError} core::Function; - functionVar = let final Never #t88 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:203:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:203:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t89 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:204:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:204:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t90 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:205:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:205:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t91 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:206:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:206:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t92 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:207:17: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:207:17: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t93 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:208:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:208:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t94 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:209:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:209:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t95 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:210:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:210:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - () → void toVoidVar = let final Never #t96 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:212:31: Error: A value of type 'Object' can't be assigned to a variable of type 'void Function()'. + () → void toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:212:31: Error: A value of type 'Object' can't be assigned to a variable of type 'void Function()'. - 'Object' is from 'dart:core'. void Function() toVoidVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t97 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:213:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:213:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'void Function()'. - 'Object' is from 'dart:core'. toVoidVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t98 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:214:15: Error: A value of type 'num' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:214:15: Error: A value of type 'num' can't be assigned to a variable of type 'void Function()'. toVoidVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t99 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:215:15: Error: A value of type 'num?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:215:15: Error: A value of type 'num?' can't be assigned to a variable of type 'void Function()'. toVoidVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t100 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:216:15: Error: A value of type 'int' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:216:15: Error: A value of type 'int' can't be assigned to a variable of type 'void Function()'. toVoidVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t101 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:217:15: Error: A value of type 'int?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:217:15: Error: A value of type 'int?' can't be assigned to a variable of type 'void Function()'. toVoidVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t102 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:218:15: Error: A value of type 'double' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:218:15: Error: A value of type 'double' can't be assigned to a variable of type 'void Function()'. toVoidVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t103 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:219:15: Error: A value of type 'double?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:219:15: Error: A value of type 'double?' can't be assigned to a variable of type 'void Function()'. toVoidVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t104 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:220:15: Error: A value of type 'Function' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:220:15: Error: A value of type 'Function' can't be assigned to a variable of type 'void Function()'. - 'Function' is from 'dart:core'. toVoidVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t105 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:221:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:221:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'void Function()'. - 'Function' is from 'dart:core'. toVoidVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t106 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't. toVoidVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t107 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:223:15: Error: Can't tear off method 'call' from a potentially null value. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:223:15: Error: Can't tear off method 'call' from a potentially null value. toVoidVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError} () → void; - toVoidVar = let final Never #t108 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:224:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:224:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t109 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:225:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:225:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t110 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:226:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:226:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t111 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:227:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:227:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t112 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:228:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:228:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t113 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:229:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:229:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t114 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:230:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:230:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t115 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:231:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:231:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - self::Tearoffable tearoffableVar = let final Never #t116 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:233:32: Error: A value of type 'Object' can't be assigned to a variable of type 'Tearoffable'. + self::Tearoffable tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:233:32: Error: A value of type 'Object' can't be assigned to a variable of type 'Tearoffable'. - 'Object' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. Tearoffable tearoffableVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t117 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:234:20: Error: A value of type 'Object?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:234:20: Error: A value of type 'Object?' can't be assigned to a variable of type 'Tearoffable'. - 'Object' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t118 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:235:20: Error: A value of type 'num' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:235:20: Error: A value of type 'num' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t119 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:236:20: Error: A value of type 'num?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:236:20: Error: A value of type 'num?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t120 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:237:20: Error: A value of type 'int' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:237:20: Error: A value of type 'int' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t121 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:238:20: Error: A value of type 'int?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:238:20: Error: A value of type 'int?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t122 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:239:20: Error: A value of type 'double' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:239:20: Error: A value of type 'double' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t123 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:240:20: Error: A value of type 'double?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:240:20: Error: A value of type 'double?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t124 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:241:20: Error: A value of type 'Function' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:241:20: Error: A value of type 'Function' can't be assigned to a variable of type 'Tearoffable'. - 'Function' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t125 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:242:20: Error: A value of type 'Function?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:242:20: Error: A value of type 'Function?' can't be assigned to a variable of type 'Tearoffable'. - 'Function' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t126 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:243:20: Error: A value of type 'void Function()' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:243:20: Error: A value of type 'void Function()' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t127 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:244:20: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:244:20: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t128 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t129 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:246:20: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:246:20: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t130 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:247:20: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:247:20: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t131 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:248:20: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:248:20: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t132 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:249:20: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:249:20: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t133 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:250:20: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:250:20: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t134 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:251:20: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:251:20: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t135 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:252:20: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:252:20: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t136 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:253:20: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:253:20: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - self::error::XnonNull xNonNullVar = let final Never #t137 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:255:26: Error: A value of type 'Object' can't be assigned to a variable of type 'XnonNull'. + self::error::XnonNull xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:255:26: Error: A value of type 'Object' can't be assigned to a variable of type 'XnonNull'. - 'Object' is from 'dart:core'. XnonNull xNonNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t138 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:256:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:256:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'XnonNull'. - 'Object' is from 'dart:core'. xNonNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t139 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:257:17: Error: A value of type 'num' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:257:17: Error: A value of type 'num' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t140 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:258:17: Error: A value of type 'num?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:258:17: Error: A value of type 'num?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t141 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:259:17: Error: A value of type 'int' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:259:17: Error: A value of type 'int' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t142 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:260:17: Error: A value of type 'int?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:260:17: Error: A value of type 'int?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t143 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:261:17: Error: A value of type 'double' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:261:17: Error: A value of type 'double' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t144 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:262:17: Error: A value of type 'double?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:262:17: Error: A value of type 'double?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t145 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:263:17: Error: A value of type 'Function' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:263:17: Error: A value of type 'Function' can't be assigned to a variable of type 'XnonNull'. - 'Function' is from 'dart:core'. xNonNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t146 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:264:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:264:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'XnonNull'. - 'Function' is from 'dart:core'. xNonNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t147 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:265:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:265:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t148 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:266:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:266:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t149 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:267:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:267:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xNonNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t150 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:268:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:268:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xNonNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t151 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't. xNonNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t152 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:270:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:270:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t153 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:271:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:271:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t154 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't. xNonNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t155 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:273:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:273:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t156 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:274:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:274:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - self::error::XpotentiallyNull% xPotentiallyNullVar = let final Never #t157 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:276:42: Error: A value of type 'Object' can't be assigned to a variable of type 'XpotentiallyNull'. + self::error::XpotentiallyNull% xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:276:42: Error: A value of type 'Object' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Object' is from 'dart:core'. XpotentiallyNull xPotentiallyNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t158 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:277:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:277:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Object' is from 'dart:core'. xPotentiallyNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t159 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:278:25: Error: A value of type 'num' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:278:25: Error: A value of type 'num' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t160 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:279:25: Error: A value of type 'num?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:279:25: Error: A value of type 'num?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t161 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:280:25: Error: A value of type 'int' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:280:25: Error: A value of type 'int' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t162 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:281:25: Error: A value of type 'int?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:281:25: Error: A value of type 'int?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t163 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:282:25: Error: A value of type 'double' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:282:25: Error: A value of type 'double' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t164 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:283:25: Error: A value of type 'double?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:283:25: Error: A value of type 'double?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t165 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:284:25: Error: A value of type 'Function' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:284:25: Error: A value of type 'Function' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Function' is from 'dart:core'. xPotentiallyNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t166 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:285:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:285:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Function' is from 'dart:core'. xPotentiallyNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t167 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:286:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:286:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t168 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:287:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:287:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t169 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:288:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:288:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xPotentiallyNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t170 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:289:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:289:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xPotentiallyNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t171 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:290:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:290:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t172 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:291:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:291:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t173 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. xPotentiallyNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t174 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:293:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:293:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t175 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:294:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:294:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t176 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. xPotentiallyNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - self::error::YnonNull yNonNullVar = let final Never #t177 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:297:26: Error: A value of type 'Object' can't be assigned to a variable of type 'YnonNull'. + self::error::YnonNull yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:297:26: Error: A value of type 'Object' can't be assigned to a variable of type 'YnonNull'. - 'Object' is from 'dart:core'. YnonNull yNonNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t178 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:298:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:298:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'YnonNull'. - 'Object' is from 'dart:core'. yNonNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t179 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:299:17: Error: A value of type 'num' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:299:17: Error: A value of type 'num' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t180 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:300:17: Error: A value of type 'num?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:300:17: Error: A value of type 'num?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t181 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:301:17: Error: A value of type 'int' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:301:17: Error: A value of type 'int' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t182 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:302:17: Error: A value of type 'int?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:302:17: Error: A value of type 'int?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t183 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:303:17: Error: A value of type 'double' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:303:17: Error: A value of type 'double' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t184 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:304:17: Error: A value of type 'double?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:304:17: Error: A value of type 'double?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t185 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:305:17: Error: A value of type 'Function' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:305:17: Error: A value of type 'Function' can't be assigned to a variable of type 'YnonNull'. - 'Function' is from 'dart:core'. yNonNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t186 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:306:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:306:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'YnonNull'. - 'Function' is from 'dart:core'. yNonNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t187 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:307:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:307:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t188 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:308:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:308:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t189 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:309:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:309:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yNonNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t190 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:310:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:310:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yNonNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t191 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:311:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:311:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t192 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:312:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:312:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t193 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:313:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:313:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t194 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:314:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:314:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t195 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't. yNonNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t196 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:316:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:316:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t197 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:317:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:317:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - self::error::YpotentiallyNull% yPotentiallyNullVar = let final Never #t198 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:319:42: Error: A value of type 'Object' can't be assigned to a variable of type 'YpotentiallyNull'. + self::error::YpotentiallyNull% yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:319:42: Error: A value of type 'Object' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Object' is from 'dart:core'. YpotentiallyNull yPotentiallyNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t199 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:320:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:320:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Object' is from 'dart:core'. yPotentiallyNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t200 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:321:25: Error: A value of type 'num' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:321:25: Error: A value of type 'num' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t201 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:322:25: Error: A value of type 'num?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:322:25: Error: A value of type 'num?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t202 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:323:25: Error: A value of type 'int' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:323:25: Error: A value of type 'int' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t203 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:324:25: Error: A value of type 'int?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:324:25: Error: A value of type 'int?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t204 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:325:25: Error: A value of type 'double' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:325:25: Error: A value of type 'double' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t205 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:326:25: Error: A value of type 'double?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:326:25: Error: A value of type 'double?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t206 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:327:25: Error: A value of type 'Function' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:327:25: Error: A value of type 'Function' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Function' is from 'dart:core'. yPotentiallyNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t207 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:328:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:328:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Function' is from 'dart:core'. yPotentiallyNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t208 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:329:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:329:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t209 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:330:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:330:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t210 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:331:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:331:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yPotentiallyNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t211 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:332:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:332:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yPotentiallyNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t212 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:333:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:333:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t213 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:334:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:334:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t214 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:335:25: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:335:25: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t215 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:336:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:336:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t216 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:337:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:337:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t217 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:338:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:338:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t218 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't. yPotentiallyNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; } diff --git a/pkg/front_end/testcases/nnbd/assignability.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/assignability.dart.weak.transformed.expect index 906e01c11a8..565f0f3ce66 100644 --- a/pkg/front_end/testcases/nnbd/assignability.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/assignability.dart.weak.transformed.expect @@ -1032,758 +1032,758 @@ static method ok(core::Object objectArg, core::Object? objectNullableArg, core::num numArg, core::num? numNullableArg, core::int intArg, core::int? intNullableArg, core::double doubleArg, core::double? doubleNullableArg, core::Function functionArg, core::Function? functionNullableArg, () → void toVoidArg, () →? void toVoidNullableArg, self::Tearoffable tearoffableArg, self::Tearoffable? tearoffableNullableArg, self::error::XnonNull xNonNullArg, self::error::XnonNull? xNonNullNullableArg, self::error::XpotentiallyNull% xPotentiallyNullArg, self::error::XpotentiallyNull? xPotentiallyNullNullableArg, self::error::YnonNull yNonNullArg, self::error::YnonNull? yNonNullNullableArg, self::error::YpotentiallyNull% yPotentiallyNullArg, self::error::YpotentiallyNull? yPotentiallyNullNullableArg) → dynamic { - core::Object objectVar = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't. + core::Object objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:114:22: Error: A value of type 'Object?' can't be assigned to a variable of type 'Object' because 'Object?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. Object objectVar = objectNullableArg; ^" in objectNullableArg; - objectVar = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:115:15: Error: A value of type 'num?' can't be assigned to a variable of type 'Object' because 'num?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = numNullableArg; ^" in numNullableArg; - objectVar = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:116:15: Error: A value of type 'int?' can't be assigned to a variable of type 'Object' because 'int?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = intNullableArg; ^" in intNullableArg; - objectVar = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:117:15: Error: A value of type 'double?' can't be assigned to a variable of type 'Object' because 'double?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = doubleNullableArg; ^" in doubleNullableArg; - objectVar = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:118:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'Object' because 'Function?' is nullable and 'Object' isn't. - 'Function' is from 'dart:core'. - 'Object' is from 'dart:core'. objectVar = functionNullableArg; ^" in functionNullableArg; - objectVar = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:119:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Object' because 'void Function()?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = toVoidNullableArg; ^" in toVoidNullableArg; - objectVar = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:120:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Object' because 'Tearoffable?' is nullable and 'Object' isn't. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. - 'Object' is from 'dart:core'. objectVar = tearoffableNullableArg; ^" in tearoffableNullableArg; - objectVar = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:121:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Object' because 'XnonNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = xNonNullNullableArg; ^" in xNonNullNullableArg; - objectVar = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:122:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg; - objectVar = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:123:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'XpotentiallyNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg; - objectVar = let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:124:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Object' because 'YnonNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = yNonNullNullableArg; ^" in yNonNullNullableArg; - objectVar = let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:125:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg; - objectVar = let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't. + objectVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:126:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Object' because 'YpotentiallyNull?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. objectVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg; - core::num numVar = let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:128:16: Error: A value of type 'Object' can't be assigned to a variable of type 'num'. + core::num numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:128:16: Error: A value of type 'Object' can't be assigned to a variable of type 'num'. - 'Object' is from 'dart:core'. num numVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:129:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:129:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'num'. - 'Object' is from 'dart:core'. numVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:130:12: Error: A value of type 'num?' can't be assigned to a variable of type 'num' because 'num?' is nullable and 'num' isn't. numVar = numNullableArg; ^" in numNullableArg; - numVar = let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:131:12: Error: A value of type 'int?' can't be assigned to a variable of type 'num' because 'int?' is nullable and 'num' isn't. numVar = intNullableArg; ^" in intNullableArg; - numVar = let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:132:12: Error: A value of type 'double?' can't be assigned to a variable of type 'num' because 'double?' is nullable and 'num' isn't. numVar = doubleNullableArg; ^" in doubleNullableArg; - numVar = let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:133:12: Error: A value of type 'Function' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:133:12: Error: A value of type 'Function' can't be assigned to a variable of type 'num'. - 'Function' is from 'dart:core'. numVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:134:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:134:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'num'. - 'Function' is from 'dart:core'. numVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:135:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:135:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'num'. numVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:136:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:136:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'num'. numVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:137:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:137:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'num'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. numVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:138:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:138:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'num'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. numVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:139:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:139:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'num'. numVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:140:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:140:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'num'. numVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t29 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:141:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:141:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'num'. numVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:142:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:142:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'num'. numVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:143:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:143:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'num'. numVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:144:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:144:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'num'. numVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:145:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:145:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'num'. numVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::num; - numVar = let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:146:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'num'. + numVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:146:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'num'. numVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::num; - core::int intVar = let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:148:16: Error: A value of type 'Object' can't be assigned to a variable of type 'int'. + core::int intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:148:16: Error: A value of type 'Object' can't be assigned to a variable of type 'int'. - 'Object' is from 'dart:core'. int intVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:149:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:149:12: Error: A value of type 'Object?' can't be assigned to a variable of type 'int'. - 'Object' is from 'dart:core'. intVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t37 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:150:12: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:150:12: Error: A value of type 'num' can't be assigned to a variable of type 'int'. intVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t38 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:151:12: Error: A value of type 'num?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:151:12: Error: A value of type 'num?' can't be assigned to a variable of type 'int'. intVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:152:12: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. intVar = intNullableArg; ^" in intNullableArg; - intVar = let final Never #t40 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:153:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:153:12: Error: A value of type 'double' can't be assigned to a variable of type 'int'. intVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t41 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:154:12: Error: A value of type 'double?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:154:12: Error: A value of type 'double?' can't be assigned to a variable of type 'int'. intVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t42 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:155:12: Error: A value of type 'Function' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:155:12: Error: A value of type 'Function' can't be assigned to a variable of type 'int'. - 'Function' is from 'dart:core'. intVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:156:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:156:12: Error: A value of type 'Function?' can't be assigned to a variable of type 'int'. - 'Function' is from 'dart:core'. intVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t44 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:157:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:157:12: Error: A value of type 'void Function()' can't be assigned to a variable of type 'int'. intVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:158:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:158:12: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'int'. intVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:159:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:159:12: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'int'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. intVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t47 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:160:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:160:12: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'int'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. intVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t48 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:161:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:161:12: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'int'. intVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t49 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:162:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:162:12: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'int'. intVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t50 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:163:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:163:12: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'int'. intVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t51 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:164:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:164:12: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'int'. intVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t52 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:165:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:165:12: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'int'. intVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t53 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:166:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:166:12: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'int'. intVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t54 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:167:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:167:12: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'int'. intVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::int; - intVar = let final Never #t55 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:168:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'int'. + intVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:168:12: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'int'. intVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::int; - core::double doubleVar = let final Never #t56 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:170:22: Error: A value of type 'Object' can't be assigned to a variable of type 'double'. + core::double doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:170:22: Error: A value of type 'Object' can't be assigned to a variable of type 'double'. - 'Object' is from 'dart:core'. double doubleVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t57 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:171:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:171:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'double'. - 'Object' is from 'dart:core'. doubleVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t58 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:172:15: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:172:15: Error: A value of type 'num' can't be assigned to a variable of type 'double'. doubleVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t59 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:173:15: Error: A value of type 'num?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:173:15: Error: A value of type 'num?' can't be assigned to a variable of type 'double'. doubleVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t60 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:174:15: Error: A value of type 'int' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:174:15: Error: A value of type 'int' can't be assigned to a variable of type 'double'. doubleVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t61 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:175:15: Error: A value of type 'int?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:175:15: Error: A value of type 'int?' can't be assigned to a variable of type 'double'. doubleVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t62 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:176:15: Error: A value of type 'double?' can't be assigned to a variable of type 'double' because 'double?' is nullable and 'double' isn't. doubleVar = doubleNullableArg; ^" in doubleNullableArg; - doubleVar = let final Never #t63 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:177:15: Error: A value of type 'Function' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:177:15: Error: A value of type 'Function' can't be assigned to a variable of type 'double'. - 'Function' is from 'dart:core'. doubleVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t64 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:178:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:178:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'double'. - 'Function' is from 'dart:core'. doubleVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t65 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:179:15: Error: A value of type 'void Function()' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:179:15: Error: A value of type 'void Function()' can't be assigned to a variable of type 'double'. doubleVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t66 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:180:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:180:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'double'. doubleVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t67 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:181:15: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:181:15: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'double'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. doubleVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t68 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:182:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:182:15: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'double'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. doubleVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t69 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:183:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:183:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'double'. doubleVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t70 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:184:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:184:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'double'. doubleVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t71 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:185:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:185:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'double'. doubleVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t72 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:186:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:186:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'double'. doubleVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t73 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:187:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:187:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'double'. doubleVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t74 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:188:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:188:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'double'. doubleVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t75 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:189:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:189:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'double'. doubleVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::double; - doubleVar = let final Never #t76 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:190:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'double'. + doubleVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:190:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'double'. doubleVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::double; - core::Function functionVar = let final Never #t77 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:192:26: Error: A value of type 'Object' can't be assigned to a variable of type 'Function'. + core::Function functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:192:26: Error: A value of type 'Object' can't be assigned to a variable of type 'Function'. - 'Object' is from 'dart:core'. - 'Function' is from 'dart:core'. Function functionVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t78 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:193:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:193:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'Function'. - 'Object' is from 'dart:core'. - 'Function' is from 'dart:core'. functionVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t79 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:194:17: Error: A value of type 'num' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:194:17: Error: A value of type 'num' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t80 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:195:17: Error: A value of type 'num?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:195:17: Error: A value of type 'num?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t81 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:196:17: Error: A value of type 'int' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:196:17: Error: A value of type 'int' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t82 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:197:17: Error: A value of type 'int?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:197:17: Error: A value of type 'int?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t83 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:198:17: Error: A value of type 'double' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:198:17: Error: A value of type 'double' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t84 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:199:17: Error: A value of type 'double?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:199:17: Error: A value of type 'double?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t85 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:200:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'Function' because 'Function?' is nullable and 'Function' isn't. - 'Function' is from 'dart:core'. functionVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t86 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:201:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Function' because 'void Function()?' is nullable and 'Function' isn't. - 'Function' is from 'dart:core'. functionVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t87 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:202:17: Error: Can't tear off method 'call' from a potentially null value. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:202:17: Error: Can't tear off method 'call' from a potentially null value. functionVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError} core::Function; - functionVar = let final Never #t88 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:203:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:203:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t89 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:204:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:204:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t90 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:205:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:205:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t91 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:206:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:206:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t92 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:207:17: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:207:17: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t93 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:208:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:208:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t94 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:209:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:209:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} core::Function; - functionVar = let final Never #t95 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:210:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Function'. + functionVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:210:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Function'. - 'Function' is from 'dart:core'. functionVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} core::Function; - () → void toVoidVar = let final Never #t96 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:212:31: Error: A value of type 'Object' can't be assigned to a variable of type 'void Function()'. + () → void toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:212:31: Error: A value of type 'Object' can't be assigned to a variable of type 'void Function()'. - 'Object' is from 'dart:core'. void Function() toVoidVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t97 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:213:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:213:15: Error: A value of type 'Object?' can't be assigned to a variable of type 'void Function()'. - 'Object' is from 'dart:core'. toVoidVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t98 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:214:15: Error: A value of type 'num' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:214:15: Error: A value of type 'num' can't be assigned to a variable of type 'void Function()'. toVoidVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t99 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:215:15: Error: A value of type 'num?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:215:15: Error: A value of type 'num?' can't be assigned to a variable of type 'void Function()'. toVoidVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t100 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:216:15: Error: A value of type 'int' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:216:15: Error: A value of type 'int' can't be assigned to a variable of type 'void Function()'. toVoidVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t101 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:217:15: Error: A value of type 'int?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:217:15: Error: A value of type 'int?' can't be assigned to a variable of type 'void Function()'. toVoidVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t102 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:218:15: Error: A value of type 'double' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:218:15: Error: A value of type 'double' can't be assigned to a variable of type 'void Function()'. toVoidVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t103 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:219:15: Error: A value of type 'double?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:219:15: Error: A value of type 'double?' can't be assigned to a variable of type 'void Function()'. toVoidVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t104 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:220:15: Error: A value of type 'Function' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:220:15: Error: A value of type 'Function' can't be assigned to a variable of type 'void Function()'. - 'Function' is from 'dart:core'. toVoidVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t105 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:221:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:221:15: Error: A value of type 'Function?' can't be assigned to a variable of type 'void Function()'. - 'Function' is from 'dart:core'. toVoidVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t106 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:222:15: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'void Function()' because 'void Function()?' is nullable and 'void Function()' isn't. toVoidVar = toVoidNullableArg; ^" in toVoidNullableArg; - toVoidVar = let final Never #t107 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:223:15: Error: Can't tear off method 'call' from a potentially null value. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:223:15: Error: Can't tear off method 'call' from a potentially null value. toVoidVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError} () → void; - toVoidVar = let final Never #t108 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:224:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:224:15: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t109 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:225:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:225:15: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t110 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:226:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:226:15: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t111 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:227:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:227:15: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t112 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:228:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:228:15: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t113 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:229:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:229:15: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t114 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:230:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:230:15: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'void Function()'. toVoidVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} () → void; - toVoidVar = let final Never #t115 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:231:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. + toVoidVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:231:15: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'void Function()'. toVoidVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} () → void; - self::Tearoffable tearoffableVar = let final Never #t116 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:233:32: Error: A value of type 'Object' can't be assigned to a variable of type 'Tearoffable'. + self::Tearoffable tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:233:32: Error: A value of type 'Object' can't be assigned to a variable of type 'Tearoffable'. - 'Object' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. Tearoffable tearoffableVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t117 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:234:20: Error: A value of type 'Object?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:234:20: Error: A value of type 'Object?' can't be assigned to a variable of type 'Tearoffable'. - 'Object' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t118 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:235:20: Error: A value of type 'num' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:235:20: Error: A value of type 'num' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t119 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:236:20: Error: A value of type 'num?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:236:20: Error: A value of type 'num?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t120 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:237:20: Error: A value of type 'int' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:237:20: Error: A value of type 'int' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t121 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:238:20: Error: A value of type 'int?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:238:20: Error: A value of type 'int?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t122 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:239:20: Error: A value of type 'double' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:239:20: Error: A value of type 'double' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t123 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:240:20: Error: A value of type 'double?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:240:20: Error: A value of type 'double?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t124 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:241:20: Error: A value of type 'Function' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:241:20: Error: A value of type 'Function' can't be assigned to a variable of type 'Tearoffable'. - 'Function' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t125 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:242:20: Error: A value of type 'Function?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:242:20: Error: A value of type 'Function?' can't be assigned to a variable of type 'Tearoffable'. - 'Function' is from 'dart:core'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t126 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:243:20: Error: A value of type 'void Function()' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:243:20: Error: A value of type 'void Function()' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t127 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:244:20: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:244:20: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t128 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:245:20: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'Tearoffable' because 'Tearoffable?' is nullable and 'Tearoffable' isn't. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = tearoffableNullableArg; ^" in tearoffableNullableArg; - tearoffableVar = let final Never #t129 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:246:20: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:246:20: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t130 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:247:20: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:247:20: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t131 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:248:20: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:248:20: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t132 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:249:20: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:249:20: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t133 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:250:20: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:250:20: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t134 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:251:20: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:251:20: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t135 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:252:20: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:252:20: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - tearoffableVar = let final Never #t136 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:253:20: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. + tearoffableVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:253:20: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'Tearoffable'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. tearoffableVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} self::Tearoffable; - self::error::XnonNull xNonNullVar = let final Never #t137 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:255:26: Error: A value of type 'Object' can't be assigned to a variable of type 'XnonNull'. + self::error::XnonNull xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:255:26: Error: A value of type 'Object' can't be assigned to a variable of type 'XnonNull'. - 'Object' is from 'dart:core'. XnonNull xNonNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t138 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:256:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:256:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'XnonNull'. - 'Object' is from 'dart:core'. xNonNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t139 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:257:17: Error: A value of type 'num' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:257:17: Error: A value of type 'num' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t140 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:258:17: Error: A value of type 'num?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:258:17: Error: A value of type 'num?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t141 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:259:17: Error: A value of type 'int' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:259:17: Error: A value of type 'int' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t142 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:260:17: Error: A value of type 'int?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:260:17: Error: A value of type 'int?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t143 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:261:17: Error: A value of type 'double' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:261:17: Error: A value of type 'double' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t144 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:262:17: Error: A value of type 'double?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:262:17: Error: A value of type 'double?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t145 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:263:17: Error: A value of type 'Function' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:263:17: Error: A value of type 'Function' can't be assigned to a variable of type 'XnonNull'. - 'Function' is from 'dart:core'. xNonNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t146 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:264:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:264:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'XnonNull'. - 'Function' is from 'dart:core'. xNonNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t147 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:265:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:265:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t148 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:266:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:266:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t149 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:267:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:267:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xNonNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t150 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:268:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:268:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xNonNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t151 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:269:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XnonNull' because 'XnonNull?' is nullable and 'XnonNull' isn't. xNonNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t152 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:270:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:270:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t153 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:271:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:271:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t154 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:272:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XnonNull' because 'YnonNull?' is nullable and 'XnonNull' isn't. xNonNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t155 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:273:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:273:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - xNonNullVar = let final Never #t156 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:274:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. + xNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:274:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XnonNull'. xNonNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - self::error::XpotentiallyNull% xPotentiallyNullVar = let final Never #t157 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:276:42: Error: A value of type 'Object' can't be assigned to a variable of type 'XpotentiallyNull'. + self::error::XpotentiallyNull% xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:276:42: Error: A value of type 'Object' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Object' is from 'dart:core'. XpotentiallyNull xPotentiallyNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t158 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:277:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:277:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Object' is from 'dart:core'. xPotentiallyNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t159 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:278:25: Error: A value of type 'num' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:278:25: Error: A value of type 'num' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t160 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:279:25: Error: A value of type 'num?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:279:25: Error: A value of type 'num?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t161 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:280:25: Error: A value of type 'int' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:280:25: Error: A value of type 'int' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t162 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:281:25: Error: A value of type 'int?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:281:25: Error: A value of type 'int?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t163 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:282:25: Error: A value of type 'double' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:282:25: Error: A value of type 'double' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t164 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:283:25: Error: A value of type 'double?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:283:25: Error: A value of type 'double?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t165 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:284:25: Error: A value of type 'Function' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:284:25: Error: A value of type 'Function' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Function' is from 'dart:core'. xPotentiallyNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t166 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:285:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:285:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Function' is from 'dart:core'. xPotentiallyNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t167 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:286:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:286:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t168 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:287:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:287:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t169 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:288:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:288:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xPotentiallyNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t170 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:289:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:289:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'XpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. xPotentiallyNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t171 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:290:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:290:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t172 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:291:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:291:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t173 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:292:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'XpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. xPotentiallyNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t174 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:293:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:293:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t175 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:294:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:294:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'XpotentiallyNull'. xPotentiallyNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - xPotentiallyNullVar = let final Never #t176 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. + xPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:295:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'XpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'XpotentiallyNull' isn't. xPotentiallyNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - self::error::YnonNull yNonNullVar = let final Never #t177 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:297:26: Error: A value of type 'Object' can't be assigned to a variable of type 'YnonNull'. + self::error::YnonNull yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:297:26: Error: A value of type 'Object' can't be assigned to a variable of type 'YnonNull'. - 'Object' is from 'dart:core'. YnonNull yNonNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t178 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:298:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:298:17: Error: A value of type 'Object?' can't be assigned to a variable of type 'YnonNull'. - 'Object' is from 'dart:core'. yNonNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t179 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:299:17: Error: A value of type 'num' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:299:17: Error: A value of type 'num' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t180 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:300:17: Error: A value of type 'num?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:300:17: Error: A value of type 'num?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t181 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:301:17: Error: A value of type 'int' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:301:17: Error: A value of type 'int' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t182 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:302:17: Error: A value of type 'int?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:302:17: Error: A value of type 'int?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t183 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:303:17: Error: A value of type 'double' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:303:17: Error: A value of type 'double' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t184 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:304:17: Error: A value of type 'double?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:304:17: Error: A value of type 'double?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t185 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:305:17: Error: A value of type 'Function' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:305:17: Error: A value of type 'Function' can't be assigned to a variable of type 'YnonNull'. - 'Function' is from 'dart:core'. yNonNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t186 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:306:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:306:17: Error: A value of type 'Function?' can't be assigned to a variable of type 'YnonNull'. - 'Function' is from 'dart:core'. yNonNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t187 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:307:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:307:17: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t188 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:308:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:308:17: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t189 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:309:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:309:17: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yNonNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t190 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:310:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:310:17: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YnonNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yNonNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t191 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:311:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:311:17: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t192 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:312:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:312:17: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t193 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:313:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:313:17: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t194 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:314:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:314:17: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t195 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:315:17: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YnonNull' because 'YnonNull?' is nullable and 'YnonNull' isn't. yNonNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t196 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:316:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:316:17: Error: A value of type 'YpotentiallyNull' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = yPotentiallyNullArg; ^" in yPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - yNonNullVar = let final Never #t197 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:317:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. + yNonNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:317:17: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YnonNull'. yNonNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - self::error::YpotentiallyNull% yPotentiallyNullVar = let final Never #t198 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:319:42: Error: A value of type 'Object' can't be assigned to a variable of type 'YpotentiallyNull'. + self::error::YpotentiallyNull% yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:319:42: Error: A value of type 'Object' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Object' is from 'dart:core'. YpotentiallyNull yPotentiallyNullVar = objectArg; ^" in objectArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t199 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:320:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:320:25: Error: A value of type 'Object?' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Object' is from 'dart:core'. yPotentiallyNullVar = objectNullableArg; ^" in objectNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t200 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:321:25: Error: A value of type 'num' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:321:25: Error: A value of type 'num' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = numArg; ^" in numArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t201 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:322:25: Error: A value of type 'num?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:322:25: Error: A value of type 'num?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = numNullableArg; ^" in numNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t202 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:323:25: Error: A value of type 'int' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:323:25: Error: A value of type 'int' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = intArg; ^" in intArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t203 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:324:25: Error: A value of type 'int?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:324:25: Error: A value of type 'int?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = intNullableArg; ^" in intNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t204 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:325:25: Error: A value of type 'double' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:325:25: Error: A value of type 'double' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = doubleArg; ^" in doubleArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t205 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:326:25: Error: A value of type 'double?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:326:25: Error: A value of type 'double?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = doubleNullableArg; ^" in doubleNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t206 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:327:25: Error: A value of type 'Function' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:327:25: Error: A value of type 'Function' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Function' is from 'dart:core'. yPotentiallyNullVar = functionArg; ^" in functionArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t207 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:328:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:328:25: Error: A value of type 'Function?' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Function' is from 'dart:core'. yPotentiallyNullVar = functionNullableArg; ^" in functionNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t208 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:329:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:329:25: Error: A value of type 'void Function()' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = toVoidArg; ^" in toVoidArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t209 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:330:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:330:25: Error: A value of type 'void Function()?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = toVoidNullableArg; ^" in toVoidNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t210 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:331:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:331:25: Error: A value of type 'Tearoffable' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yPotentiallyNullVar = tearoffableArg; ^" in tearoffableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t211 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:332:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:332:25: Error: A value of type 'Tearoffable?' can't be assigned to a variable of type 'YpotentiallyNull'. - 'Tearoffable' is from 'pkg/front_end/testcases/nnbd/assignability.dart'. yPotentiallyNullVar = tearoffableNullableArg; ^" in tearoffableNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t212 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:333:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:333:25: Error: A value of type 'XnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xNonNullArg; ^" in xNonNullArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t213 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:334:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:334:25: Error: A value of type 'XnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xNonNullNullableArg; ^" in xNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t214 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:335:25: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:335:25: Error: A value of type 'XpotentiallyNull' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xPotentiallyNullArg; ^" in xPotentiallyNullArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t215 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:336:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:336:25: Error: A value of type 'XpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = xPotentiallyNullNullableArg; ^" in xPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t216 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:337:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:337:25: Error: A value of type 'YnonNull' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = yNonNullArg; ^" in yNonNullArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t217 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:338:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:338:25: Error: A value of type 'YnonNull?' can't be assigned to a variable of type 'YpotentiallyNull'. yPotentiallyNullVar = yNonNullNullableArg; ^" in yNonNullNullableArg as{TypeError,ForNonNullableByDefault} Never; - yPotentiallyNullVar = let final Never #t218 = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't. + yPotentiallyNullVar = invalid-expression "pkg/front_end/testcases/nnbd/assignability.dart:339:25: Error: A value of type 'YpotentiallyNull?' can't be assigned to a variable of type 'YpotentiallyNull' because 'YpotentiallyNull?' is nullable and 'YpotentiallyNull' isn't. yPotentiallyNullVar = yPotentiallyNullNullableArg; ^" in yPotentiallyNullNullableArg as{TypeError,ForNonNullableByDefault} Never; } diff --git a/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.strong.expect b/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.strong.expect index b5c4d0260f2..1f4c1bb89f4 100644 --- a/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.strong.expect @@ -203,12 +203,12 @@ static method fooContext(self::A x) → void {} static method barContext(core::List x) → void {} static method bazContext(() → core::num f) → void {} static method foo(self::B? x, core::List l, core::Map m, core::List? l2, core::Map? m2) → self::A { - self::fooContext(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:27:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't. + self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:27:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. fooContext(x); // Error. ^" in x as{TypeError,ForNonNullableByDefault} self::A); - self::A a = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:28:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. + self::A a = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:28:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. A a = x; // Error. @@ -233,15 +233,15 @@ static method foo(self::B? x, core::List l, core::Map{invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:32:13: Error: An expression whose value can be 'null' must be null-checked before it can be dereferenced. {...m2}; // Error. ^": null}; - for (final self::B? #t3 in l) { - self::A y = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:33:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. + for (final self::B? #t1 in l) { + self::A y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:33:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. Try changing the type of the variable. for (A y in l) {} // Error. - ^" in #t3 as{TypeError,ForNonNullableByDefault} self::A; + ^" in #t1 as{TypeError,ForNonNullableByDefault} self::A; } - for (self::A y in let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:34:15: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. + for (self::A y in invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:34:15: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'Iterable' is from 'dart:core'. @@ -263,14 +263,14 @@ Try changing the type of the variable. } function local() → FutureOr async { if(true) { - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:43:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr' because 'B?' is nullable and 'FutureOr' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:43:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr' because 'B?' is nullable and 'FutureOr' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return x; // Error. ^" in x as{TypeError,ForNonNullableByDefault} self::A; } else { - return let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. - 'Future' is from 'dart:async'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. @@ -278,20 +278,20 @@ Try changing the type of the variable. ^" in asy::Future::value(x) as{TypeError,ForNonNullableByDefault} self::A; } } - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:49:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:49:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return x; // Error. ^" in x as{TypeError,ForNonNullableByDefault} self::A; } static method bar(core::List x, core::List> l, core::Map, core::List> m) → core::List { - self::barContext(let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:53:14: Error: The argument type 'List' can't be assigned to the parameter type 'List' because 'B?' is nullable and 'A' isn't. + self::barContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:53:14: Error: The argument type 'List' can't be assigned to the parameter type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. barContext(x); // Error. ^" in x as{TypeError,ForNonNullableByDefault} core::List); - core::List y = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:54:15: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. + core::List y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:54:15: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. @@ -314,16 +314,16 @@ static method bar(core::List x, core::List> l, co - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. , List>{...m}; // Error. ^"}; - for (final core::List #t11 in l) { - core::List y = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:57:16: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. + for (final core::List #t2 in l) { + core::List y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:57:16: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. Try changing the type of the variable. for (List y in l) {} // Error. - ^" in #t11 as{TypeError,ForNonNullableByDefault} core::List; + ^" in #t2 as{TypeError,ForNonNullableByDefault} core::List; } - return let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:58:10: Error: A value of type 'List' can't be returned from a function with return type 'List' because 'B?' is nullable and 'A' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:58:10: Error: A value of type 'List' can't be returned from a function with return type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. @@ -331,48 +331,48 @@ Try changing the type of the variable. ^" in x as{TypeError,ForNonNullableByDefault} core::List; } static method baz(self::C c) → void { - self::bazContext(let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:62:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't. + self::bazContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:62:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't. bazContext(c); - ^" in (let final self::C #t15 = c in #t15 == null ?{() → core::num?} null : #t15.{self::C::call}{() → core::num?}) as{TypeError,ForNonNullableByDefault} () → core::num); + ^" in (let final self::C #t3 = c in #t3 == null ?{() → core::num?} null : #t3.{self::C::call}{() → core::num?}) as{TypeError,ForNonNullableByDefault} () → core::num); } static method boz(Null x) → self::A { - self::fooContext(let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:66:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable. + self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:66:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. fooContext(x); // Error. ^" in x as{TypeError,ForNonNullableByDefault} self::A); - self::fooContext(let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:67:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable. + self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:67:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. fooContext(null); // Error. ^" in null as{TypeError,ForNonNullableByDefault} self::A); - self::A a1 = let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable. + self::A a1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. A a1 = x; // Error. ^" in x as{TypeError,ForNonNullableByDefault} self::A; - self::A a2 = let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable. + self::A a2 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. A a2 = null; // Error. ^" in null as{TypeError,ForNonNullableByDefault} self::A; if(true) { - return let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return x; // Error. ^" in x as{TypeError,ForNonNullableByDefault} self::A; } else { - return let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return null; // Error. ^" in null as{TypeError,ForNonNullableByDefault} self::A; } function local() → FutureOr async { if(true) { - return let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:77:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr' because 'FutureOr' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:77:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr' because 'FutureOr' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return null; // Error. ^" in null as{TypeError,ForNonNullableByDefault} self::A; } else { - return let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. - 'Future' is from 'dart:async'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return new Future.value(null); // Error. diff --git a/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.strong.transformed.expect index 74f4fa892ac..663f7f77040 100644 --- a/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.strong.transformed.expect @@ -203,16 +203,16 @@ static method fooContext(self::A x) → void {} static method barContext(core::List x) → void {} static method bazContext(() → core::num f) → void {} static method foo(self::B? x, core::List l, core::Map m, core::List? l2, core::Map? m2) → self::A { - self::fooContext(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:27:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't. + self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:27:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. fooContext(x); // Error. - ^" in let self::B? #t2 = x in #t2 == null ?{self::A} #t2 as{TypeError,ForNonNullableByDefault} self::A : #t2{self::A}); - self::A a = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:28:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. + ^" in let self::B? #t1 = x in #t1 == null ?{self::A} #t1 as{TypeError,ForNonNullableByDefault} self::A : #t1{self::A}); + self::A a = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:28:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. A a = x; // Error. - ^" in let self::B? #t4 = x in #t4 == null ?{self::A} #t4 as{TypeError,ForNonNullableByDefault} self::A : #t4{self::A}; + ^" in let self::B? #t2 = x in #t2 == null ?{self::A} #t2 as{TypeError,ForNonNullableByDefault} self::A : #t2{self::A}; core::_GrowableList::_literal1(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:29:10: Error: Can't assign spread elements of type 'B?' to collection elements of type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. @@ -236,26 +236,26 @@ static method foo(self::B? x, core::List l, core::Map :sync-for-iterator = l.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final self::B? #t5 = :sync-for-iterator.{core::Iterator::current}{self::B?}; + final self::B? #t3 = :sync-for-iterator.{core::Iterator::current}{self::B?}; { - self::A y = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:33:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. + self::A y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:33:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. Try changing the type of the variable. for (A y in l) {} // Error. - ^" in let self::B? #t7 = #t5 in #t7 == null ?{self::A} #t7 as{TypeError,ForNonNullableByDefault} self::A : #t7{self::A}; + ^" in let self::B? #t4 = #t3 in #t4 == null ?{self::A} #t4 as{TypeError,ForNonNullableByDefault} self::A : #t4{self::A}; } } } { - core::Iterator :sync-for-iterator = (let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:34:15: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:34:15: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'Iterable' is from 'dart:core'. for (A y in l2) {} // Error. - ^" in let core::List? #t9 = l2 in #t9 == null ?{core::Iterable} #t9 as{TypeError,ForNonNullableByDefault} core::Iterable : #t9{core::Iterable}).{core::Iterable::iterator}{core::Iterator}; + ^" in let core::List? #t5 = l2 in #t5 == null ?{core::Iterable} #t5 as{TypeError,ForNonNullableByDefault} core::Iterable : #t5{core::Iterable}.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - self::A y = :sync-for-iterator.{core::Iterator::current}{dynamic}; + self::A y = :sync-for-iterator.{core::Iterator::current}{Never}; {} } } @@ -285,15 +285,15 @@ Try changing the type of the variable. #L4: { if(true) { - :return_value = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:43:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr' because 'B?' is nullable and 'FutureOr' isn't. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:43:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr' because 'B?' is nullable and 'FutureOr' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return x; // Error. - ^" in let self::B? #t11 = x in #t11 == null ?{self::A} #t11 as{TypeError,ForNonNullableByDefault} self::A : #t11{self::A}; + ^" in let self::B? #t6 = x in #t6 == null ?{self::A} #t6 as{TypeError,ForNonNullableByDefault} self::A : #t6{self::A}; break #L4; } else { - :return_value = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. - 'Future' is from 'dart:async'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. @@ -314,20 +314,20 @@ Try changing the type of the variable. :is_sync = true; return :async_future; } - return let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:49:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:49:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return x; // Error. - ^" in let self::B? #t14 = x in #t14 == null ?{self::A} #t14 as{TypeError,ForNonNullableByDefault} self::A : #t14{self::A}; + ^" in let self::B? #t7 = x in #t7 == null ?{self::A} #t7 as{TypeError,ForNonNullableByDefault} self::A : #t7{self::A}; } static method bar(core::List x, core::List> l, core::Map, core::List> m) → core::List { - self::barContext(let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:53:14: Error: The argument type 'List' can't be assigned to the parameter type 'List' because 'B?' is nullable and 'A' isn't. + self::barContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:53:14: Error: The argument type 'List' can't be assigned to the parameter type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. barContext(x); // Error. ^" in x as{TypeError,ForNonNullableByDefault} core::List); - core::List y = let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:54:15: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. + core::List y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:54:15: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. @@ -353,19 +353,19 @@ static method bar(core::List x, core::List> l, co { core::Iterator> :sync-for-iterator = l.{core::Iterable::iterator}{core::Iterator>}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::List #t17 = :sync-for-iterator.{core::Iterator::current}{core::List}; + final core::List #t8 = :sync-for-iterator.{core::Iterator::current}{core::List}; { - core::List y = let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:57:16: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. + core::List y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:57:16: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. Try changing the type of the variable. for (List y in l) {} // Error. - ^" in #t17 as{TypeError,ForNonNullableByDefault} core::List; + ^" in #t8 as{TypeError,ForNonNullableByDefault} core::List; } } } - return let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:58:10: Error: A value of type 'List' can't be returned from a function with return type 'List' because 'B?' is nullable and 'A' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:58:10: Error: A value of type 'List' can't be returned from a function with return type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. @@ -373,38 +373,38 @@ Try changing the type of the variable. ^" in x as{TypeError,ForNonNullableByDefault} core::List; } static method baz(self::C c) → void { - self::bazContext(let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:62:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't. + self::bazContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:62:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't. bazContext(c); - ^" in (let final self::C #t21 = c in #t21 == null ?{() → core::num?} null : #t21.{self::C::call}{() → core::num?}) as{TypeError,ForNonNullableByDefault} () → core::num); + ^" in (let final self::C #t9 = c in #t9 == null ?{() → core::num?} null : #t9.{self::C::call}{() → core::num?}) as{TypeError,ForNonNullableByDefault} () → core::num); } static method boz(Null x) → self::A { - self::fooContext(let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:66:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable. + self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:66:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. fooContext(x); // Error. - ^" in let Null #t23 = x in #t23 == null ?{self::A} #t23 as{TypeError,ForNonNullableByDefault} self::A : #t23{self::A}); - self::fooContext(let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:67:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable. + ^" in let Null #t10 = x in #t10 == null ?{self::A} #t10 as{TypeError,ForNonNullableByDefault} self::A : #t10{self::A}); + self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:67:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. fooContext(null); // Error. - ^" in let Null #t25 = null in #t25 == null ?{self::A} #t25 as{TypeError,ForNonNullableByDefault} self::A : #t25{self::A}); - self::A a1 = let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable. + ^" in let Null #t11 = null in #t11 == null ?{self::A} #t11 as{TypeError,ForNonNullableByDefault} self::A : #t11{self::A}); + self::A a1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. A a1 = x; // Error. - ^" in let Null #t27 = x in #t27 == null ?{self::A} #t27 as{TypeError,ForNonNullableByDefault} self::A : #t27{self::A}; - self::A a2 = let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable. + ^" in let Null #t12 = x in #t12 == null ?{self::A} #t12 as{TypeError,ForNonNullableByDefault} self::A : #t12{self::A}; + self::A a2 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. A a2 = null; // Error. - ^" in let Null #t29 = null in #t29 == null ?{self::A} #t29 as{TypeError,ForNonNullableByDefault} self::A : #t29{self::A}; + ^" in let Null #t13 = null in #t13 == null ?{self::A} #t13 as{TypeError,ForNonNullableByDefault} self::A : #t13{self::A}; if(true) { - return let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return x; // Error. - ^" in let Null #t31 = x in #t31 == null ?{self::A} #t31 as{TypeError,ForNonNullableByDefault} self::A : #t31{self::A}; + ^" in let Null #t14 = x in #t14 == null ?{self::A} #t14 as{TypeError,ForNonNullableByDefault} self::A : #t14{self::A}; } else { - return let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return null; // Error. - ^" in let Null #t33 = null in #t33 == null ?{self::A} #t33 as{TypeError,ForNonNullableByDefault} self::A : #t33{self::A}; + ^" in let Null #t15 = null in #t15 == null ?{self::A} #t15 as{TypeError,ForNonNullableByDefault} self::A : #t15{self::A}; } function local() → FutureOr /* originally async */ { final asy::_Future :async_future = new asy::_Future::•(); @@ -419,14 +419,14 @@ static method boz(Null x) → self::A { #L5: { if(true) { - :return_value = let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:77:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr' because 'FutureOr' is not nullable. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:77:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr' because 'FutureOr' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return null; // Error. - ^" in let Null #t35 = null in #t35 == null ?{self::A} #t35 as{TypeError,ForNonNullableByDefault} self::A : #t35{self::A}; + ^" in let Null #t16 = null in #t16 == null ?{self::A} #t16 as{TypeError,ForNonNullableByDefault} self::A : #t16{self::A}; break #L5; } else { - :return_value = let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. - 'Future' is from 'dart:async'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return new Future.value(null); // Error. @@ -453,21 +453,6 @@ constants { #C1 = self::A {} } -Extra constant evaluation status: -Evaluated: EqualsNull @ org-dartlang-testcase:///assignability_error_messages.dart:67:14 -> BoolConstant(true) -Evaluated: VariableGet @ org-dartlang-testcase:///assignability_error_messages.dart:67:14 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///assignability_error_messages.dart:67:14 -> NullConstant(null) -Evaluated: EqualsNull @ org-dartlang-testcase:///assignability_error_messages.dart:69:10 -> BoolConstant(true) -Evaluated: VariableGet @ org-dartlang-testcase:///assignability_error_messages.dart:69:10 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///assignability_error_messages.dart:69:10 -> NullConstant(null) -Evaluated: EqualsNull @ org-dartlang-testcase:///assignability_error_messages.dart:73:12 -> BoolConstant(true) -Evaluated: VariableGet @ org-dartlang-testcase:///assignability_error_messages.dart:73:12 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///assignability_error_messages.dart:73:12 -> NullConstant(null) -Evaluated: EqualsNull @ org-dartlang-testcase:///assignability_error_messages.dart:77:14 -> BoolConstant(true) -Evaluated: VariableGet @ org-dartlang-testcase:///assignability_error_messages.dart:77:14 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///assignability_error_messages.dart:77:14 -> NullConstant(null) -Extra constant evaluation: evaluated: 208, effectively constant: 12 - Constructor coverage from constants: org-dartlang-testcase:///assignability_error_messages.dart: diff --git a/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.weak.expect b/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.weak.expect index b5c4d0260f2..1f4c1bb89f4 100644 --- a/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.weak.expect @@ -203,12 +203,12 @@ static method fooContext(self::A x) → void {} static method barContext(core::List x) → void {} static method bazContext(() → core::num f) → void {} static method foo(self::B? x, core::List l, core::Map m, core::List? l2, core::Map? m2) → self::A { - self::fooContext(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:27:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't. + self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:27:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. fooContext(x); // Error. ^" in x as{TypeError,ForNonNullableByDefault} self::A); - self::A a = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:28:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. + self::A a = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:28:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. A a = x; // Error. @@ -233,15 +233,15 @@ static method foo(self::B? x, core::List l, core::Map{invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:32:13: Error: An expression whose value can be 'null' must be null-checked before it can be dereferenced. {...m2}; // Error. ^": null}; - for (final self::B? #t3 in l) { - self::A y = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:33:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. + for (final self::B? #t1 in l) { + self::A y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:33:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. Try changing the type of the variable. for (A y in l) {} // Error. - ^" in #t3 as{TypeError,ForNonNullableByDefault} self::A; + ^" in #t1 as{TypeError,ForNonNullableByDefault} self::A; } - for (self::A y in let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:34:15: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. + for (self::A y in invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:34:15: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'Iterable' is from 'dart:core'. @@ -263,14 +263,14 @@ Try changing the type of the variable. } function local() → FutureOr async { if(true) { - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:43:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr' because 'B?' is nullable and 'FutureOr' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:43:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr' because 'B?' is nullable and 'FutureOr' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return x; // Error. ^" in x as{TypeError,ForNonNullableByDefault} self::A; } else { - return let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. - 'Future' is from 'dart:async'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. @@ -278,20 +278,20 @@ Try changing the type of the variable. ^" in asy::Future::value(x) as{TypeError,ForNonNullableByDefault} self::A; } } - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:49:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:49:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return x; // Error. ^" in x as{TypeError,ForNonNullableByDefault} self::A; } static method bar(core::List x, core::List> l, core::Map, core::List> m) → core::List { - self::barContext(let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:53:14: Error: The argument type 'List' can't be assigned to the parameter type 'List' because 'B?' is nullable and 'A' isn't. + self::barContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:53:14: Error: The argument type 'List' can't be assigned to the parameter type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. barContext(x); // Error. ^" in x as{TypeError,ForNonNullableByDefault} core::List); - core::List y = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:54:15: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. + core::List y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:54:15: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. @@ -314,16 +314,16 @@ static method bar(core::List x, core::List> l, co - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. , List>{...m}; // Error. ^"}; - for (final core::List #t11 in l) { - core::List y = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:57:16: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. + for (final core::List #t2 in l) { + core::List y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:57:16: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. Try changing the type of the variable. for (List y in l) {} // Error. - ^" in #t11 as{TypeError,ForNonNullableByDefault} core::List; + ^" in #t2 as{TypeError,ForNonNullableByDefault} core::List; } - return let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:58:10: Error: A value of type 'List' can't be returned from a function with return type 'List' because 'B?' is nullable and 'A' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:58:10: Error: A value of type 'List' can't be returned from a function with return type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. @@ -331,48 +331,48 @@ Try changing the type of the variable. ^" in x as{TypeError,ForNonNullableByDefault} core::List; } static method baz(self::C c) → void { - self::bazContext(let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:62:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't. + self::bazContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:62:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't. bazContext(c); - ^" in (let final self::C #t15 = c in #t15 == null ?{() → core::num?} null : #t15.{self::C::call}{() → core::num?}) as{TypeError,ForNonNullableByDefault} () → core::num); + ^" in (let final self::C #t3 = c in #t3 == null ?{() → core::num?} null : #t3.{self::C::call}{() → core::num?}) as{TypeError,ForNonNullableByDefault} () → core::num); } static method boz(Null x) → self::A { - self::fooContext(let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:66:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable. + self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:66:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. fooContext(x); // Error. ^" in x as{TypeError,ForNonNullableByDefault} self::A); - self::fooContext(let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:67:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable. + self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:67:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. fooContext(null); // Error. ^" in null as{TypeError,ForNonNullableByDefault} self::A); - self::A a1 = let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable. + self::A a1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. A a1 = x; // Error. ^" in x as{TypeError,ForNonNullableByDefault} self::A; - self::A a2 = let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable. + self::A a2 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. A a2 = null; // Error. ^" in null as{TypeError,ForNonNullableByDefault} self::A; if(true) { - return let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return x; // Error. ^" in x as{TypeError,ForNonNullableByDefault} self::A; } else { - return let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return null; // Error. ^" in null as{TypeError,ForNonNullableByDefault} self::A; } function local() → FutureOr async { if(true) { - return let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:77:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr' because 'FutureOr' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:77:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr' because 'FutureOr' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return null; // Error. ^" in null as{TypeError,ForNonNullableByDefault} self::A; } else { - return let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. - 'Future' is from 'dart:async'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return new Future.value(null); // Error. diff --git a/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.weak.transformed.expect index 454dea387f7..374fc97750f 100644 --- a/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/assignability_error_messages.dart.weak.transformed.expect @@ -203,12 +203,12 @@ static method fooContext(self::A x) → void {} static method barContext(core::List x) → void {} static method bazContext(() → core::num f) → void {} static method foo(self::B? x, core::List l, core::Map m, core::List? l2, core::Map? m2) → self::A { - self::fooContext(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:27:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't. + self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:27:14: Error: The argument type 'B?' can't be assigned to the parameter type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. fooContext(x); // Error. ^" in x); - self::A a = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:28:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. + self::A a = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:28:9: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. A a = x; // Error. @@ -236,26 +236,26 @@ static method foo(self::B? x, core::List l, core::Map :sync-for-iterator = l.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final self::B? #t3 = :sync-for-iterator.{core::Iterator::current}{self::B?}; + final self::B? #t1 = :sync-for-iterator.{core::Iterator::current}{self::B?}; { - self::A y = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:33:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. + self::A y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:33:10: Error: A value of type 'B?' can't be assigned to a variable of type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. Try changing the type of the variable. for (A y in l) {} // Error. - ^" in #t3; + ^" in #t1; } } } { - core::Iterator :sync-for-iterator = (let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:34:15: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:34:15: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'Iterable' is from 'dart:core'. for (A y in l2) {} // Error. - ^" in l2).{core::Iterable::iterator}{core::Iterator}; + ^" in l2.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - self::A y = :sync-for-iterator.{core::Iterator::current}{dynamic}; + self::A y = :sync-for-iterator.{core::Iterator::current}{Never}; {} } } @@ -285,7 +285,7 @@ Try changing the type of the variable. #L4: { if(true) { - :return_value = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:43:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr' because 'B?' is nullable and 'FutureOr' isn't. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:43:14: Error: A value of type 'B?' can't be returned from an async function with return type 'FutureOr' because 'B?' is nullable and 'FutureOr' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return x; // Error. @@ -293,7 +293,7 @@ Try changing the type of the variable. break #L4; } else { - :return_value = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:45:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. - 'Future' is from 'dart:async'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. @@ -314,20 +314,20 @@ Try changing the type of the variable. :is_sync = true; return :async_future; } - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:49:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:49:10: Error: A value of type 'B?' can't be returned from a function with return type 'A' because 'B?' is nullable and 'A' isn't. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return x; // Error. ^" in x; } static method bar(core::List x, core::List> l, core::Map, core::List> m) → core::List { - self::barContext(let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:53:14: Error: The argument type 'List' can't be assigned to the parameter type 'List' because 'B?' is nullable and 'A' isn't. + self::barContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:53:14: Error: The argument type 'List' can't be assigned to the parameter type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. barContext(x); // Error. ^" in x); - core::List y = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:54:15: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. + core::List y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:54:15: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. @@ -353,19 +353,19 @@ static method bar(core::List x, core::List> l, co { core::Iterator> :sync-for-iterator = l.{core::Iterable::iterator}{core::Iterator>}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final core::List #t11 = :sync-for-iterator.{core::Iterator::current}{core::List}; + final core::List #t2 = :sync-for-iterator.{core::Iterator::current}{core::List}; { - core::List y = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:57:16: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. + core::List y = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:57:16: Error: A value of type 'List' can't be assigned to a variable of type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. Try changing the type of the variable. for (List y in l) {} // Error. - ^" in #t11; + ^" in #t2; } } } - return let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:58:10: Error: A value of type 'List' can't be returned from a function with return type 'List' because 'B?' is nullable and 'A' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:58:10: Error: A value of type 'List' can't be returned from a function with return type 'List' because 'B?' is nullable and 'A' isn't. - 'List' is from 'dart:core'. - 'B' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. @@ -373,35 +373,35 @@ Try changing the type of the variable. ^" in x; } static method baz(self::C c) → void { - self::bazContext(let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:62:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't. + self::bazContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:62:14: Error: The argument type 'num? Function()' can't be assigned to the parameter type 'num Function()' because 'num?' is nullable and 'num' isn't. bazContext(c); - ^" in let final self::C #t15 = c in #t15 == null ?{() → core::num?} null : #t15.{self::C::call}{() → core::num?}); + ^" in let final self::C #t3 = c in #t3 == null ?{() → core::num?} null : #t3.{self::C::call}{() → core::num?}); } static method boz(Null x) → self::A { - self::fooContext(let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:66:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable. + self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:66:14: Error: The argument type 'Null' can't be assigned to the parameter type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. fooContext(x); // Error. ^" in x); - self::fooContext(let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:67:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable. + self::fooContext(invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:67:14: Error: The value 'null' can't be assigned to the parameter type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. fooContext(null); // Error. ^" in null); - self::A a1 = let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable. + self::A a1 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:68:10: Error: A value of type 'Null' can't be assigned to a variable of type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. A a1 = x; // Error. ^" in x; - self::A a2 = let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable. + self::A a2 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:69:10: Error: The value 'null' can't be assigned to a variable of type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. A a2 = null; // Error. ^" in null; if(true) { - return let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:71:12: Error: A value of type 'Null' can't be returned from a function with return type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return x; // Error. ^" in x; } else { - return let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:73:12: Error: The value 'null' can't be returned from a function with return type 'A' because 'A' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return null; // Error. ^" in null; @@ -419,14 +419,14 @@ static method boz(Null x) → self::A { #L5: { if(true) { - :return_value = let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:77:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr' because 'FutureOr' is not nullable. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:77:14: Error: The value 'null' can't be returned from an async function with return type 'FutureOr' because 'FutureOr' is not nullable. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return null; // Error. ^" in null; break #L5; } else { - :return_value = let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/assignability_error_messages.dart:79:18: Error: A value of type 'Future' can't be returned from an async function with return type 'FutureOr'. - 'Future' is from 'dart:async'. - 'A' is from 'pkg/front_end/testcases/nnbd/assignability_error_messages.dart'. return new Future.value(null); // Error. diff --git a/pkg/front_end/testcases/nnbd/call.dart.strong.expect b/pkg/front_end/testcases/nnbd/call.dart.strong.expect index 29844278c7e..e93db551951 100644 --- a/pkg/front_end/testcases/nnbd/call.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/call.dart.strong.expect @@ -35,20 +35,20 @@ class Class extends core::Object { } static method error() → dynamic { () →? void f; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:12:4: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:12:4: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. f(); ^" in f{}.(){() →? void}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:13:5: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:13:5: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. Try calling using ?. instead. f.call(); ^^^^" in f{}.(){() →? void}; self::Class c = new self::Class::•(); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:15:10: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:15:10: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. c.field(); ^" in c.{self::Class::field}{() →? void}{}.(){() →? void}; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:16:11: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:16:11: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. c.getter(); ^" in c.{self::Class::getter}{() →? void}{}.(){() →? void}; diff --git a/pkg/front_end/testcases/nnbd/call.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/call.dart.strong.transformed.expect index 29844278c7e..e93db551951 100644 --- a/pkg/front_end/testcases/nnbd/call.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/call.dart.strong.transformed.expect @@ -35,20 +35,20 @@ class Class extends core::Object { } static method error() → dynamic { () →? void f; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:12:4: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:12:4: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. f(); ^" in f{}.(){() →? void}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:13:5: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:13:5: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. Try calling using ?. instead. f.call(); ^^^^" in f{}.(){() →? void}; self::Class c = new self::Class::•(); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:15:10: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:15:10: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. c.field(); ^" in c.{self::Class::field}{() →? void}{}.(){() →? void}; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:16:11: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:16:11: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. c.getter(); ^" in c.{self::Class::getter}{() →? void}{}.(){() →? void}; diff --git a/pkg/front_end/testcases/nnbd/call.dart.weak.expect b/pkg/front_end/testcases/nnbd/call.dart.weak.expect index 29844278c7e..e93db551951 100644 --- a/pkg/front_end/testcases/nnbd/call.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/call.dart.weak.expect @@ -35,20 +35,20 @@ class Class extends core::Object { } static method error() → dynamic { () →? void f; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:12:4: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:12:4: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. f(); ^" in f{}.(){() →? void}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:13:5: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:13:5: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. Try calling using ?. instead. f.call(); ^^^^" in f{}.(){() →? void}; self::Class c = new self::Class::•(); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:15:10: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:15:10: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. c.field(); ^" in c.{self::Class::field}{() →? void}{}.(){() →? void}; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:16:11: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:16:11: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. c.getter(); ^" in c.{self::Class::getter}{() →? void}{}.(){() →? void}; diff --git a/pkg/front_end/testcases/nnbd/call.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/call.dart.weak.transformed.expect index 29844278c7e..e93db551951 100644 --- a/pkg/front_end/testcases/nnbd/call.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/call.dart.weak.transformed.expect @@ -35,20 +35,20 @@ class Class extends core::Object { } static method error() → dynamic { () →? void f; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:12:4: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:12:4: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. f(); ^" in f{}.(){() →? void}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:13:5: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:13:5: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. Try calling using ?. instead. f.call(); ^^^^" in f{}.(){() →? void}; self::Class c = new self::Class::•(); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:15:10: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:15:10: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. c.field(); ^" in c.{self::Class::field}{() →? void}{}.(){() →? void}; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/call.dart:16:11: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/call.dart:16:11: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. c.getter(); ^" in c.{self::Class::getter}{() →? void}{}.(){() →? void}; diff --git a/pkg/front_end/testcases/nnbd/covariant_equals.dart.strong.expect b/pkg/front_end/testcases/nnbd/covariant_equals.dart.strong.expect index ddfe4c9347c..23b6d19752b 100644 --- a/pkg/front_end/testcases/nnbd/covariant_equals.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/covariant_equals.dart.strong.expect @@ -299,248 +299,248 @@ static method main() → dynamic {} static method testNonNullable(self::A a, self::B b, self::C c_dynamic, self::C c_int, self::C c_string, self::D d) → dynamic { a =={self::A::==}{(self::A) → core::bool} a; a =={self::A::==}{(self::A) → core::bool} b; - a =={self::A::==}{(self::A) → core::bool} (let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:24:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:24:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:25:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:25:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_int; // error - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:26:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:26:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:27:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:27:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == d; // error - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; b =={self::B::==}{(self::A) → core::bool} a; b =={self::B::==}{(self::A) → core::bool} b; - b =={self::B::==}{(self::A) → core::bool} (let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:31:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:31:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:32:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:32:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_int; // error - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:33:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:33:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:34:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:34:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == d; // error - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:36:16: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:36:16: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:37:16: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:37:16: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; c_dynamic =={self::C::==}{(self::C) → core::bool} c_dynamic; c_dynamic =={self::C::==}{(self::C) → core::bool} c_int; c_dynamic =={self::C::==}{(self::C) → core::bool} c_string; c_dynamic =={self::C::==}{(self::C) → core::bool} d; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:43:12: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:43:12: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:44:12: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:44:12: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:45:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:45:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} c_int; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:47:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:47:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} d; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:50:15: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:50:15: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:51:15: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:51:15: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:52:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:52:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:53:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:53:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_int; // error - ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?; c_string =={self::C::==}{(self::C) → core::bool} c_string; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:55:15: Error: The argument type 'D' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:55:15: Error: The argument type 'D' can't be assigned to the parameter type 'C?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == d; // error - ^" in d as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:57:8: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:57:8: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:58:8: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:58:8: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:59:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:59:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} c_int; - d =={self::C::==}{(self::C) → core::bool} (let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:61:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:61:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} d; } static method testNullable(self::A? a, self::B? b, self::C? c_dynamic, self::C? c_int, self::C? c_string, self::D? d) → dynamic { a =={self::A::==}{(self::A) → core::bool} a; a =={self::A::==}{(self::A) → core::bool} b; - a =={self::A::==}{(self::A) → core::bool} (let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:75:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:75:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:76:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:76:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_int; // ok or error ? - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:77:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:77:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:78:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:78:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == d; // ok or error ? - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; b =={self::B::==}{(self::A) → core::bool} a; b =={self::B::==}{(self::A) → core::bool} b; - b =={self::B::==}{(self::A) → core::bool} (let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:82:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:82:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t29 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:83:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:83:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_int; // ok or error ? - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:84:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:84:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:85:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:85:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == d; // ok or error ? - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:87:16: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:87:16: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:88:16: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:88:16: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; c_dynamic =={self::C::==}{(self::C) → core::bool} c_dynamic; c_dynamic =={self::C::==}{(self::C) → core::bool} c_int; c_dynamic =={self::C::==}{(self::C) → core::bool} c_string; c_dynamic =={self::C::==}{(self::C) → core::bool} d; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:94:12: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:94:12: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:95:12: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:95:12: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:96:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:96:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} c_int; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t37 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:98:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:98:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} d; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t38 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:101:15: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:101:15: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:102:15: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:102:15: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t40 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:103:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:103:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t41 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:104:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:104:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_int; // ok or error ? - ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?; c_string =={self::C::==}{(self::C) → core::bool} c_string; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t42 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:106:15: Error: The argument type 'D?' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:106:15: Error: The argument type 'D?' can't be assigned to the parameter type 'C?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == d; // ok or error ? - ^" in d as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:108:8: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:108:8: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t44 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:109:8: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:109:8: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:110:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:110:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} c_int; - d =={self::C::==}{(self::C) → core::bool} (let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:112:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:112:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} d; } diff --git a/pkg/front_end/testcases/nnbd/covariant_equals.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/covariant_equals.dart.strong.transformed.expect index ddfe4c9347c..23b6d19752b 100644 --- a/pkg/front_end/testcases/nnbd/covariant_equals.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/covariant_equals.dart.strong.transformed.expect @@ -299,248 +299,248 @@ static method main() → dynamic {} static method testNonNullable(self::A a, self::B b, self::C c_dynamic, self::C c_int, self::C c_string, self::D d) → dynamic { a =={self::A::==}{(self::A) → core::bool} a; a =={self::A::==}{(self::A) → core::bool} b; - a =={self::A::==}{(self::A) → core::bool} (let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:24:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:24:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:25:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:25:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_int; // error - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:26:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:26:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:27:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:27:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == d; // error - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; b =={self::B::==}{(self::A) → core::bool} a; b =={self::B::==}{(self::A) → core::bool} b; - b =={self::B::==}{(self::A) → core::bool} (let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:31:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:31:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:32:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:32:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_int; // error - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:33:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:33:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:34:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:34:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == d; // error - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:36:16: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:36:16: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:37:16: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:37:16: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; c_dynamic =={self::C::==}{(self::C) → core::bool} c_dynamic; c_dynamic =={self::C::==}{(self::C) → core::bool} c_int; c_dynamic =={self::C::==}{(self::C) → core::bool} c_string; c_dynamic =={self::C::==}{(self::C) → core::bool} d; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:43:12: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:43:12: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:44:12: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:44:12: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:45:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:45:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} c_int; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:47:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:47:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} d; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:50:15: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:50:15: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:51:15: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:51:15: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:52:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:52:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:53:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:53:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_int; // error - ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?; c_string =={self::C::==}{(self::C) → core::bool} c_string; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:55:15: Error: The argument type 'D' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:55:15: Error: The argument type 'D' can't be assigned to the parameter type 'C?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == d; // error - ^" in d as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:57:8: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:57:8: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:58:8: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:58:8: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:59:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:59:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} c_int; - d =={self::C::==}{(self::C) → core::bool} (let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:61:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:61:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} d; } static method testNullable(self::A? a, self::B? b, self::C? c_dynamic, self::C? c_int, self::C? c_string, self::D? d) → dynamic { a =={self::A::==}{(self::A) → core::bool} a; a =={self::A::==}{(self::A) → core::bool} b; - a =={self::A::==}{(self::A) → core::bool} (let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:75:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:75:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:76:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:76:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_int; // ok or error ? - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:77:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:77:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:78:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:78:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == d; // ok or error ? - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; b =={self::B::==}{(self::A) → core::bool} a; b =={self::B::==}{(self::A) → core::bool} b; - b =={self::B::==}{(self::A) → core::bool} (let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:82:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:82:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t29 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:83:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:83:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_int; // ok or error ? - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:84:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:84:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:85:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:85:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == d; // ok or error ? - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:87:16: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:87:16: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:88:16: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:88:16: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; c_dynamic =={self::C::==}{(self::C) → core::bool} c_dynamic; c_dynamic =={self::C::==}{(self::C) → core::bool} c_int; c_dynamic =={self::C::==}{(self::C) → core::bool} c_string; c_dynamic =={self::C::==}{(self::C) → core::bool} d; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:94:12: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:94:12: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:95:12: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:95:12: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:96:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:96:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} c_int; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t37 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:98:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:98:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} d; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t38 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:101:15: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:101:15: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:102:15: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:102:15: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t40 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:103:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:103:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t41 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:104:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:104:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_int; // ok or error ? - ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?; c_string =={self::C::==}{(self::C) → core::bool} c_string; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t42 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:106:15: Error: The argument type 'D?' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:106:15: Error: The argument type 'D?' can't be assigned to the parameter type 'C?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == d; // ok or error ? - ^" in d as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:108:8: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:108:8: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t44 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:109:8: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:109:8: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:110:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:110:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} c_int; - d =={self::C::==}{(self::C) → core::bool} (let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:112:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:112:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} d; } diff --git a/pkg/front_end/testcases/nnbd/covariant_equals.dart.weak.expect b/pkg/front_end/testcases/nnbd/covariant_equals.dart.weak.expect index ddfe4c9347c..23b6d19752b 100644 --- a/pkg/front_end/testcases/nnbd/covariant_equals.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/covariant_equals.dart.weak.expect @@ -299,248 +299,248 @@ static method main() → dynamic {} static method testNonNullable(self::A a, self::B b, self::C c_dynamic, self::C c_int, self::C c_string, self::D d) → dynamic { a =={self::A::==}{(self::A) → core::bool} a; a =={self::A::==}{(self::A) → core::bool} b; - a =={self::A::==}{(self::A) → core::bool} (let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:24:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:24:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:25:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:25:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_int; // error - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:26:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:26:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:27:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:27:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == d; // error - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; b =={self::B::==}{(self::A) → core::bool} a; b =={self::B::==}{(self::A) → core::bool} b; - b =={self::B::==}{(self::A) → core::bool} (let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:31:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:31:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:32:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:32:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_int; // error - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:33:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:33:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:34:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:34:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == d; // error - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:36:16: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:36:16: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:37:16: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:37:16: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; c_dynamic =={self::C::==}{(self::C) → core::bool} c_dynamic; c_dynamic =={self::C::==}{(self::C) → core::bool} c_int; c_dynamic =={self::C::==}{(self::C) → core::bool} c_string; c_dynamic =={self::C::==}{(self::C) → core::bool} d; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:43:12: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:43:12: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:44:12: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:44:12: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:45:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:45:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} c_int; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:47:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:47:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} d; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:50:15: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:50:15: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:51:15: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:51:15: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:52:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:52:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:53:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:53:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_int; // error - ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?; c_string =={self::C::==}{(self::C) → core::bool} c_string; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:55:15: Error: The argument type 'D' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:55:15: Error: The argument type 'D' can't be assigned to the parameter type 'C?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == d; // error - ^" in d as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:57:8: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:57:8: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:58:8: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:58:8: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:59:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:59:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} c_int; - d =={self::C::==}{(self::C) → core::bool} (let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:61:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:61:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} d; } static method testNullable(self::A? a, self::B? b, self::C? c_dynamic, self::C? c_int, self::C? c_string, self::D? d) → dynamic { a =={self::A::==}{(self::A) → core::bool} a; a =={self::A::==}{(self::A) → core::bool} b; - a =={self::A::==}{(self::A) → core::bool} (let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:75:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:75:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:76:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:76:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_int; // ok or error ? - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:77:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:77:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:78:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:78:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == d; // ok or error ? - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; b =={self::B::==}{(self::A) → core::bool} a; b =={self::B::==}{(self::A) → core::bool} b; - b =={self::B::==}{(self::A) → core::bool} (let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:82:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:82:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t29 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:83:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:83:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_int; // ok or error ? - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:84:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:84:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:85:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:85:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == d; // ok or error ? - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:87:16: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:87:16: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:88:16: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:88:16: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; c_dynamic =={self::C::==}{(self::C) → core::bool} c_dynamic; c_dynamic =={self::C::==}{(self::C) → core::bool} c_int; c_dynamic =={self::C::==}{(self::C) → core::bool} c_string; c_dynamic =={self::C::==}{(self::C) → core::bool} d; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:94:12: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:94:12: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:95:12: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:95:12: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:96:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:96:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} c_int; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t37 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:98:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:98:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} d; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t38 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:101:15: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:101:15: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:102:15: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:102:15: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t40 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:103:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:103:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t41 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:104:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:104:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_int; // ok or error ? - ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?; c_string =={self::C::==}{(self::C) → core::bool} c_string; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t42 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:106:15: Error: The argument type 'D?' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:106:15: Error: The argument type 'D?' can't be assigned to the parameter type 'C?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == d; // ok or error ? - ^" in d as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:108:8: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:108:8: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t44 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:109:8: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:109:8: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:110:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:110:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} c_int; - d =={self::C::==}{(self::C) → core::bool} (let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:112:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:112:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} d; } diff --git a/pkg/front_end/testcases/nnbd/covariant_equals.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/covariant_equals.dart.weak.transformed.expect index ddfe4c9347c..23b6d19752b 100644 --- a/pkg/front_end/testcases/nnbd/covariant_equals.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/covariant_equals.dart.weak.transformed.expect @@ -299,248 +299,248 @@ static method main() → dynamic {} static method testNonNullable(self::A a, self::B b, self::C c_dynamic, self::C c_int, self::C c_string, self::D d) → dynamic { a =={self::A::==}{(self::A) → core::bool} a; a =={self::A::==}{(self::A) → core::bool} b; - a =={self::A::==}{(self::A) → core::bool} (let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:24:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:24:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:25:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:25:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_int; // error - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:26:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:26:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:27:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:27:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == d; // error - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; b =={self::B::==}{(self::A) → core::bool} a; b =={self::B::==}{(self::A) → core::bool} b; - b =={self::B::==}{(self::A) → core::bool} (let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:31:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:31:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:32:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:32:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_int; // error - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:33:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:33:8: Error: The argument type 'C' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:34:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:34:8: Error: The argument type 'D' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == d; // error - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:36:16: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:36:16: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:37:16: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:37:16: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; c_dynamic =={self::C::==}{(self::C) → core::bool} c_dynamic; c_dynamic =={self::C::==}{(self::C) → core::bool} c_int; c_dynamic =={self::C::==}{(self::C) → core::bool} c_string; c_dynamic =={self::C::==}{(self::C) → core::bool} d; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:43:12: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:43:12: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:44:12: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:44:12: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:45:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:45:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} c_int; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:47:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:47:12: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} d; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:50:15: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:50:15: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:51:15: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:51:15: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:52:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:52:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:53:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:53:15: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_int; // error - ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?; c_string =={self::C::==}{(self::C) → core::bool} c_string; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:55:15: Error: The argument type 'D' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:55:15: Error: The argument type 'D' can't be assigned to the parameter type 'C?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == d; // error - ^" in d as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:57:8: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:57:8: Error: The argument type 'A' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == a; // error - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:58:8: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:58:8: Error: The argument type 'B' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == b; // error - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:59:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:59:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_dynamic; // error - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} c_int; - d =={self::C::==}{(self::C) → core::bool} (let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:61:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:61:8: Error: The argument type 'C' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_string; // error - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} d; } static method testNullable(self::A? a, self::B? b, self::C? c_dynamic, self::C? c_int, self::C? c_string, self::D? d) → dynamic { a =={self::A::==}{(self::A) → core::bool} a; a =={self::A::==}{(self::A) → core::bool} b; - a =={self::A::==}{(self::A) → core::bool} (let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:75:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:75:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:76:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:76:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_int; // ok or error ? - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:77:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:77:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - a =={self::A::==}{(self::A) → core::bool} (let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:78:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + a =={self::A::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:78:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. a == d; // ok or error ? - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; b =={self::B::==}{(self::A) → core::bool} a; b =={self::B::==}{(self::A) → core::bool} b; - b =={self::B::==}{(self::A) → core::bool} (let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:82:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:82:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t29 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:83:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:83:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_int; // ok or error ? - ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:84:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. + ^" in c_int as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:84:8: Error: The argument type 'C?' can't be assigned to the parameter type 'A?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?); - b =={self::B::==}{(self::A) → core::bool} (let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:85:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. + ^" in c_string as{TypeError,ForNonNullableByDefault} self::A?; + b =={self::B::==}{(self::A) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:85:8: Error: The argument type 'D?' can't be assigned to the parameter type 'A?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. b == d; // ok or error ? - ^" in d as{TypeError,ForNonNullableByDefault} self::A?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:87:16: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::A?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:87:16: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_dynamic =={self::C::==}{(self::C) → core::bool} (let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:88:16: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_dynamic =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:88:16: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_dynamic == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; c_dynamic =={self::C::==}{(self::C) → core::bool} c_dynamic; c_dynamic =={self::C::==}{(self::C) → core::bool} c_int; c_dynamic =={self::C::==}{(self::C) → core::bool} c_string; c_dynamic =={self::C::==}{(self::C) → core::bool} d; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:94:12: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:94:12: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:95:12: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:95:12: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:96:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:96:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} c_int; - c_int =={self::C::==}{(self::C) → core::bool} (let final Never #t37 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:98:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + c_int =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:98:12: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_int == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; c_int =={self::C::==}{(self::C) → core::bool} d; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t38 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:101:15: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:101:15: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:102:15: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:102:15: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t40 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:103:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:103:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t41 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:104:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:104:15: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == c_int; // ok or error ? - ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_int as{TypeError,ForNonNullableByDefault} self::C?; c_string =={self::C::==}{(self::C) → core::bool} c_string; - c_string =={self::C::==}{(self::C) → core::bool} (let final Never #t42 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:106:15: Error: The argument type 'D?' can't be assigned to the parameter type 'C?'. + c_string =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:106:15: Error: The argument type 'D?' can't be assigned to the parameter type 'C?'. - 'D' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. c_string == d; // ok or error ? - ^" in d as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:108:8: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. + ^" in d as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:108:8: Error: The argument type 'A?' can't be assigned to the parameter type 'C?'. - 'A' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == a; // ok or error ? - ^" in a as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t44 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:109:8: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. + ^" in a as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:109:8: Error: The argument type 'B?' can't be assigned to the parameter type 'C?'. - 'B' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == b; // ok or error ? - ^" in b as{TypeError,ForNonNullableByDefault} self::C?); - d =={self::C::==}{(self::C) → core::bool} (let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:110:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + ^" in b as{TypeError,ForNonNullableByDefault} self::C?; + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:110:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_dynamic; // ok or error ? - ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_dynamic as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} c_int; - d =={self::C::==}{(self::C) → core::bool} (let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:112:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. + d =={self::C::==}{(self::C) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/covariant_equals.dart:112:8: Error: The argument type 'C?' can't be assigned to the parameter type 'C?'. - 'C' is from 'pkg/front_end/testcases/nnbd/covariant_equals.dart'. d == c_string; // ok or error ? - ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?); + ^" in c_string as{TypeError,ForNonNullableByDefault} self::C?; d =={self::C::==}{(self::C) → core::bool} d; } diff --git a/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.strong.expect b/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.strong.expect index ae2d66bee91..aae820cf153 100644 --- a/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.strong.expect @@ -20,7 +20,7 @@ class Class extends core::Object /*hasConstConstructor*/ { ; method foo() → core::int { core::int x; - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:28:12: Error: Non-nullable variable 'x' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:28:12: Error: Non-nullable variable 'x' must be assigned before it can be used. return x; ^" in x; } @@ -34,7 +34,7 @@ class Class extends core::Object /*hasConstConstructor*/ { } static method foo() → core::int { core::int x; - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:10:10: Error: Non-nullable variable 'x' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:10:10: Error: Non-nullable variable 'x' must be assigned before it can be used. return x; ^" in x; } diff --git a/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.strong.transformed.expect index ae2d66bee91..aae820cf153 100644 --- a/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.strong.transformed.expect @@ -20,7 +20,7 @@ class Class extends core::Object /*hasConstConstructor*/ { ; method foo() → core::int { core::int x; - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:28:12: Error: Non-nullable variable 'x' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:28:12: Error: Non-nullable variable 'x' must be assigned before it can be used. return x; ^" in x; } @@ -34,7 +34,7 @@ class Class extends core::Object /*hasConstConstructor*/ { } static method foo() → core::int { core::int x; - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:10:10: Error: Non-nullable variable 'x' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:10:10: Error: Non-nullable variable 'x' must be assigned before it can be used. return x; ^" in x; } diff --git a/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.weak.expect b/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.weak.expect index ae2d66bee91..aae820cf153 100644 --- a/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.weak.expect @@ -20,7 +20,7 @@ class Class extends core::Object /*hasConstConstructor*/ { ; method foo() → core::int { core::int x; - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:28:12: Error: Non-nullable variable 'x' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:28:12: Error: Non-nullable variable 'x' must be assigned before it can be used. return x; ^" in x; } @@ -34,7 +34,7 @@ class Class extends core::Object /*hasConstConstructor*/ { } static method foo() → core::int { core::int x; - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:10:10: Error: Non-nullable variable 'x' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:10:10: Error: Non-nullable variable 'x' must be assigned before it can be used. return x; ^" in x; } diff --git a/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.weak.transformed.expect index ae2d66bee91..aae820cf153 100644 --- a/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart.weak.transformed.expect @@ -20,7 +20,7 @@ class Class extends core::Object /*hasConstConstructor*/ { ; method foo() → core::int { core::int x; - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:28:12: Error: Non-nullable variable 'x' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:28:12: Error: Non-nullable variable 'x' must be assigned before it can be used. return x; ^" in x; } @@ -34,7 +34,7 @@ class Class extends core::Object /*hasConstConstructor*/ { } static method foo() → core::int { core::int x; - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:10:10: Error: Non-nullable variable 'x' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/definite_assignment_and_completion.dart:10:10: Error: Non-nullable variable 'x' must be assigned before it can be used. return x; ^" in x; } diff --git a/pkg/front_end/testcases/nnbd/definitely_assigned.dart.strong.expect b/pkg/front_end/testcases/nnbd/definitely_assigned.dart.strong.expect index b478d6b831f..8a0aaba1bc6 100644 --- a/pkg/front_end/testcases/nnbd/definitely_assigned.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/definitely_assigned.dart.strong.expect @@ -70,13 +70,13 @@ static field (T%) → Null fieldDirect = (core::bool, T%) → Null fieldC local2 = value; local4 = 0; local6 = 0; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:70:3: Error: Late final variable 'local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:70:3: Error: Late final variable 'local2' definitely assigned. local2 = value; // error ^^^^^^" in local2 = value; - let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:71:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:71:3: Error: Late final variable 'local4' definitely assigned. local4 = 0; // error ^^^^^^" in local4 = 0; - let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:72:3: Error: Late final variable 'local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:72:3: Error: Late final variable 'local6' definitely assigned. local6 = 0; // error ^^^^^^" in local6 = 0; }; static field () → Null fieldCompound = () → Null { late final core::int local4; local4 = 0; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:88:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:88:3: Error: Late final variable 'local4' definitely assigned. local4 += 0; // error ^^^^^^" in local4 = local4.{core::num::+}(0){(core::num) → core::int}; }; @@ -116,13 +116,13 @@ static method methodDirect(self::methodDirect local2 = value; local4 = 0; local6 = 0; - let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:16:3: Error: Late final variable 'local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:16:3: Error: Late final variable 'local2' definitely assigned. local2 = value; // error ^^^^^^" in local2 = value; - let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:17:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:17:3: Error: Late final variable 'local4' definitely assigned. local4 = 0; // error ^^^^^^" in local4 = 0; - let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:18:3: Error: Late final variable 'local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:18:3: Error: Late final variable 'local6' definitely assigned. local6 = 0; // error ^^^^^^" in local6 = 0; } @@ -138,20 +138,20 @@ static method methodConditional(core::bool b, local2 = value; local4 = 0; local6 = 0; - let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:50:3: Error: Late final variable 'local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:50:3: Error: Late final variable 'local2' definitely assigned. local2 = value; // error ^^^^^^" in local2 = value; - let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:51:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:51:3: Error: Late final variable 'local4' definitely assigned. local4 = 0; // error ^^^^^^" in local4 = 0; - let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:52:3: Error: Late final variable 'local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:52:3: Error: Late final variable 'local6' definitely assigned. local6 = 0; // error ^^^^^^" in local6 = 0; } static method methodCompound() → dynamic { late final core::int local4; local4 = 0; - let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:80:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:80:3: Error: Late final variable 'local4' definitely assigned. local4 += 0; // error ^^^^^^" in local4 = local4.{core::num::+}(0){(core::num) → core::int}; } diff --git a/pkg/front_end/testcases/nnbd/definitely_assigned.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/definitely_assigned.dart.strong.transformed.expect index b478d6b831f..8a0aaba1bc6 100644 --- a/pkg/front_end/testcases/nnbd/definitely_assigned.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/definitely_assigned.dart.strong.transformed.expect @@ -70,13 +70,13 @@ static field (T%) → Null fieldDirect = (core::bool, T%) → Null fieldC local2 = value; local4 = 0; local6 = 0; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:70:3: Error: Late final variable 'local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:70:3: Error: Late final variable 'local2' definitely assigned. local2 = value; // error ^^^^^^" in local2 = value; - let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:71:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:71:3: Error: Late final variable 'local4' definitely assigned. local4 = 0; // error ^^^^^^" in local4 = 0; - let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:72:3: Error: Late final variable 'local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:72:3: Error: Late final variable 'local6' definitely assigned. local6 = 0; // error ^^^^^^" in local6 = 0; }; static field () → Null fieldCompound = () → Null { late final core::int local4; local4 = 0; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:88:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:88:3: Error: Late final variable 'local4' definitely assigned. local4 += 0; // error ^^^^^^" in local4 = local4.{core::num::+}(0){(core::num) → core::int}; }; @@ -116,13 +116,13 @@ static method methodDirect(self::methodDirect local2 = value; local4 = 0; local6 = 0; - let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:16:3: Error: Late final variable 'local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:16:3: Error: Late final variable 'local2' definitely assigned. local2 = value; // error ^^^^^^" in local2 = value; - let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:17:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:17:3: Error: Late final variable 'local4' definitely assigned. local4 = 0; // error ^^^^^^" in local4 = 0; - let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:18:3: Error: Late final variable 'local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:18:3: Error: Late final variable 'local6' definitely assigned. local6 = 0; // error ^^^^^^" in local6 = 0; } @@ -138,20 +138,20 @@ static method methodConditional(core::bool b, local2 = value; local4 = 0; local6 = 0; - let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:50:3: Error: Late final variable 'local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:50:3: Error: Late final variable 'local2' definitely assigned. local2 = value; // error ^^^^^^" in local2 = value; - let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:51:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:51:3: Error: Late final variable 'local4' definitely assigned. local4 = 0; // error ^^^^^^" in local4 = 0; - let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:52:3: Error: Late final variable 'local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:52:3: Error: Late final variable 'local6' definitely assigned. local6 = 0; // error ^^^^^^" in local6 = 0; } static method methodCompound() → dynamic { late final core::int local4; local4 = 0; - let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:80:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:80:3: Error: Late final variable 'local4' definitely assigned. local4 += 0; // error ^^^^^^" in local4 = local4.{core::num::+}(0){(core::num) → core::int}; } diff --git a/pkg/front_end/testcases/nnbd/definitely_assigned.dart.weak.expect b/pkg/front_end/testcases/nnbd/definitely_assigned.dart.weak.expect index b478d6b831f..8a0aaba1bc6 100644 --- a/pkg/front_end/testcases/nnbd/definitely_assigned.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/definitely_assigned.dart.weak.expect @@ -70,13 +70,13 @@ static field (T%) → Null fieldDirect = (core::bool, T%) → Null fieldC local2 = value; local4 = 0; local6 = 0; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:70:3: Error: Late final variable 'local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:70:3: Error: Late final variable 'local2' definitely assigned. local2 = value; // error ^^^^^^" in local2 = value; - let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:71:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:71:3: Error: Late final variable 'local4' definitely assigned. local4 = 0; // error ^^^^^^" in local4 = 0; - let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:72:3: Error: Late final variable 'local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:72:3: Error: Late final variable 'local6' definitely assigned. local6 = 0; // error ^^^^^^" in local6 = 0; }; static field () → Null fieldCompound = () → Null { late final core::int local4; local4 = 0; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:88:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:88:3: Error: Late final variable 'local4' definitely assigned. local4 += 0; // error ^^^^^^" in local4 = local4.{core::num::+}(0){(core::num) → core::int}; }; @@ -116,13 +116,13 @@ static method methodDirect(self::methodDirect local2 = value; local4 = 0; local6 = 0; - let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:16:3: Error: Late final variable 'local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:16:3: Error: Late final variable 'local2' definitely assigned. local2 = value; // error ^^^^^^" in local2 = value; - let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:17:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:17:3: Error: Late final variable 'local4' definitely assigned. local4 = 0; // error ^^^^^^" in local4 = 0; - let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:18:3: Error: Late final variable 'local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:18:3: Error: Late final variable 'local6' definitely assigned. local6 = 0; // error ^^^^^^" in local6 = 0; } @@ -138,20 +138,20 @@ static method methodConditional(core::bool b, local2 = value; local4 = 0; local6 = 0; - let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:50:3: Error: Late final variable 'local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:50:3: Error: Late final variable 'local2' definitely assigned. local2 = value; // error ^^^^^^" in local2 = value; - let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:51:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:51:3: Error: Late final variable 'local4' definitely assigned. local4 = 0; // error ^^^^^^" in local4 = 0; - let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:52:3: Error: Late final variable 'local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:52:3: Error: Late final variable 'local6' definitely assigned. local6 = 0; // error ^^^^^^" in local6 = 0; } static method methodCompound() → dynamic { late final core::int local4; local4 = 0; - let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:80:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:80:3: Error: Late final variable 'local4' definitely assigned. local4 += 0; // error ^^^^^^" in local4 = local4.{core::num::+}(0){(core::num) → core::int}; } diff --git a/pkg/front_end/testcases/nnbd/definitely_assigned.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/definitely_assigned.dart.weak.transformed.expect index b478d6b831f..8a0aaba1bc6 100644 --- a/pkg/front_end/testcases/nnbd/definitely_assigned.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/definitely_assigned.dart.weak.transformed.expect @@ -70,13 +70,13 @@ static field (T%) → Null fieldDirect = (core::bool, T%) → Null fieldC local2 = value; local4 = 0; local6 = 0; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:70:3: Error: Late final variable 'local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:70:3: Error: Late final variable 'local2' definitely assigned. local2 = value; // error ^^^^^^" in local2 = value; - let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:71:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:71:3: Error: Late final variable 'local4' definitely assigned. local4 = 0; // error ^^^^^^" in local4 = 0; - let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:72:3: Error: Late final variable 'local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:72:3: Error: Late final variable 'local6' definitely assigned. local6 = 0; // error ^^^^^^" in local6 = 0; }; static field () → Null fieldCompound = () → Null { late final core::int local4; local4 = 0; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:88:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:88:3: Error: Late final variable 'local4' definitely assigned. local4 += 0; // error ^^^^^^" in local4 = local4.{core::num::+}(0){(core::num) → core::int}; }; @@ -116,13 +116,13 @@ static method methodDirect(self::methodDirect local2 = value; local4 = 0; local6 = 0; - let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:16:3: Error: Late final variable 'local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:16:3: Error: Late final variable 'local2' definitely assigned. local2 = value; // error ^^^^^^" in local2 = value; - let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:17:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:17:3: Error: Late final variable 'local4' definitely assigned. local4 = 0; // error ^^^^^^" in local4 = 0; - let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:18:3: Error: Late final variable 'local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:18:3: Error: Late final variable 'local6' definitely assigned. local6 = 0; // error ^^^^^^" in local6 = 0; } @@ -138,20 +138,20 @@ static method methodConditional(core::bool b, local2 = value; local4 = 0; local6 = 0; - let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:50:3: Error: Late final variable 'local2' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:50:3: Error: Late final variable 'local2' definitely assigned. local2 = value; // error ^^^^^^" in local2 = value; - let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:51:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:51:3: Error: Late final variable 'local4' definitely assigned. local4 = 0; // error ^^^^^^" in local4 = 0; - let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:52:3: Error: Late final variable 'local6' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:52:3: Error: Late final variable 'local6' definitely assigned. local6 = 0; // error ^^^^^^" in local6 = 0; } static method methodCompound() → dynamic { late final core::int local4; local4 = 0; - let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:80:3: Error: Late final variable 'local4' definitely assigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_assigned.dart:80:3: Error: Late final variable 'local4' definitely assigned. local4 += 0; // error ^^^^^^" in local4 = local4.{core::num::+}(0){(core::num) → core::int}; } diff --git a/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.strong.expect b/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.strong.expect index 50bf941288e..58f85358ac1 100644 --- a/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.strong.expect @@ -103,22 +103,22 @@ static field (T%) → Null fieldDirect = local5; late FutureOrlocal6; late T% local7 = value; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:34:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:34:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:35:3: Error: Late variable 'local2' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:35:3: Error: Late variable 'local2' without initializer is definitely unassigned. local2; // error ^^^^^^" in local2; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:36:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:36:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:37:3: Error: Late variable 'local4' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:37:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4; // error ^^^^^^" in local4; - let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:38:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:38:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; - let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:39:3: Error: Late variable 'local6' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:39:3: Error: Late variable 'local6' without initializer is definitely unassigned. local6; // error ^^^^^^" in local6; local7; @@ -140,15 +140,15 @@ static field (core::bool, T%) → Null fieldC local6 = 0; local7; } - let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; local2; - let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; local4; - let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; local6; @@ -157,12 +157,12 @@ static field (core::bool, T%) → Null fieldC static field () → Null fieldCompound = () → Null { core::int local3; late core::int local4; - local3 = (let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + local3 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - local4 = (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + local4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in local4).{core::num::+}(0){(core::num) → core::int}; + ^^^^^^" in local4.{core::num::+}(0){(core::num) → core::int}; }; static method methodDirect(self::methodDirect::T% value) → dynamic { self::methodDirect::T% local1; @@ -172,22 +172,22 @@ static method methodDirect(self::methodDirect FutureOrlocal5; late FutureOrlocal6; late self::methodDirect::T% local7 = value; - let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; - let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. local2; // error ^^^^^^" in local2; - let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; - let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4; // error ^^^^^^" in local4; - let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; - let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. local6; // error ^^^^^^" in local6; local7; @@ -209,15 +209,15 @@ static method methodConditional(core::bool b, local6 = 0; local7 = value; } - let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; local2; - let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; local4; - let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; local6; @@ -226,11 +226,11 @@ static method methodConditional(core::bool b, static method methodCompound() → dynamic { core::int local3; late core::int local4; - local3 = (let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + local3 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - local4 = (let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + local4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in local4).{core::num::+}(0){(core::num) → core::int}; + ^^^^^^" in local4.{core::num::+}(0){(core::num) → core::int}; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.strong.transformed.expect index b110df58b02..e3f741f06d0 100644 --- a/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.strong.transformed.expect @@ -105,22 +105,22 @@ static field (T%) → Null fieldDirect = (core::bool, T%) → Null fieldC local6 = 0; local7; } - let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; local2; - let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; local4; - let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; local6; @@ -161,12 +161,12 @@ static field (core::bool, T%) → Null fieldC static field () → Null fieldCompound = () → Null { core::int local3; late core::int local4; - local3 = (let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + local3 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - local4 = (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + local4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in local4).{core::num::+}(0){(core::num) → core::int}; + ^^^^^^" in local4.{core::num::+}(0){(core::num) → core::int}; }; static method methodDirect(self::methodDirect::T% value) → dynamic { self::methodDirect::T% local1; @@ -178,22 +178,22 @@ static method methodDirect(self::methodDirect function #local7#initializer() → self::methodDirect::T% return value; late self::methodDirect::T% local7 = #local7#initializer(){() → self::methodDirect::T%}; - let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; - let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. local2; // error ^^^^^^" in local2; - let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; - let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4; // error ^^^^^^" in local4; - let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; - let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. local6; // error ^^^^^^" in local6; local7; @@ -217,15 +217,15 @@ static method methodConditional(core::bool b, local6 = 0; local7 = value; } - let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; local2; - let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; local4; - let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; local6; @@ -234,11 +234,11 @@ static method methodConditional(core::bool b, static method methodCompound() → dynamic { core::int local3; late core::int local4; - local3 = (let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + local3 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - local4 = (let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + local4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in local4).{core::num::+}(0){(core::num) → core::int}; + ^^^^^^" in local4.{core::num::+}(0){(core::num) → core::int}; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.weak.expect b/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.weak.expect index 50bf941288e..58f85358ac1 100644 --- a/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.weak.expect @@ -103,22 +103,22 @@ static field (T%) → Null fieldDirect = local5; late FutureOrlocal6; late T% local7 = value; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:34:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:34:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:35:3: Error: Late variable 'local2' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:35:3: Error: Late variable 'local2' without initializer is definitely unassigned. local2; // error ^^^^^^" in local2; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:36:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:36:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:37:3: Error: Late variable 'local4' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:37:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4; // error ^^^^^^" in local4; - let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:38:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:38:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; - let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:39:3: Error: Late variable 'local6' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:39:3: Error: Late variable 'local6' without initializer is definitely unassigned. local6; // error ^^^^^^" in local6; local7; @@ -140,15 +140,15 @@ static field (core::bool, T%) → Null fieldC local6 = 0; local7; } - let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; local2; - let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; local4; - let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; local6; @@ -157,12 +157,12 @@ static field (core::bool, T%) → Null fieldC static field () → Null fieldCompound = () → Null { core::int local3; late core::int local4; - local3 = (let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + local3 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - local4 = (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + local4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in local4).{core::num::+}(0){(core::num) → core::int}; + ^^^^^^" in local4.{core::num::+}(0){(core::num) → core::int}; }; static method methodDirect(self::methodDirect::T% value) → dynamic { self::methodDirect::T% local1; @@ -172,22 +172,22 @@ static method methodDirect(self::methodDirect FutureOrlocal5; late FutureOrlocal6; late self::methodDirect::T% local7 = value; - let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; - let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. local2; // error ^^^^^^" in local2; - let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; - let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4; // error ^^^^^^" in local4; - let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; - let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. local6; // error ^^^^^^" in local6; local7; @@ -209,15 +209,15 @@ static method methodConditional(core::bool b, local6 = 0; local7 = value; } - let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; local2; - let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; local4; - let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; local6; @@ -226,11 +226,11 @@ static method methodConditional(core::bool b, static method methodCompound() → dynamic { core::int local3; late core::int local4; - local3 = (let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + local3 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - local4 = (let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + local4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in local4).{core::num::+}(0){(core::num) → core::int}; + ^^^^^^" in local4.{core::num::+}(0){(core::num) → core::int}; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.weak.transformed.expect index b110df58b02..e3f741f06d0 100644 --- a/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/definitely_unassigned.dart.weak.transformed.expect @@ -105,22 +105,22 @@ static field (T%) → Null fieldDirect = (core::bool, T%) → Null fieldC local6 = 0; local7; } - let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:90:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; local2; - let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:92:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; local4; - let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:94:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; local6; @@ -161,12 +161,12 @@ static field (core::bool, T%) → Null fieldC static field () → Null fieldCompound = () → Null { core::int local3; late core::int local4; - local3 = (let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + local3 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:111:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - local4 = (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + local4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:112:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in local4).{core::num::+}(0){(core::num) → core::int}; + ^^^^^^" in local4.{core::num::+}(0){(core::num) → core::int}; }; static method methodDirect(self::methodDirect::T% value) → dynamic { self::methodDirect::T% local1; @@ -178,22 +178,22 @@ static method methodDirect(self::methodDirect function #local7#initializer() → self::methodDirect::T% return value; late self::methodDirect::T% local7 = #local7#initializer(){() → self::methodDirect::T%}; - let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:16:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; - let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:17:3: Error: Late variable 'local2' without initializer is definitely unassigned. local2; // error ^^^^^^" in local2; - let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:18:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; - let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:19:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4; // error ^^^^^^" in local4; - let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:20:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; - let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:21:3: Error: Late variable 'local6' without initializer is definitely unassigned. local6; // error ^^^^^^" in local6; local7; @@ -217,15 +217,15 @@ static method methodConditional(core::bool b, local6 = 0; local7 = value; } - let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:62:3: Error: Non-nullable variable 'local1' must be assigned before it can be used. local1; // error ^^^^^^" in local1; local2; - let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:64:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3; // error ^^^^^^" in local3; local4; - let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:66:3: Error: Non-nullable variable 'local5' must be assigned before it can be used. local5; // error ^^^^^^" in local5; local6; @@ -234,11 +234,11 @@ static method methodConditional(core::bool b, static method methodCompound() → dynamic { core::int local3; late core::int local4; - local3 = (let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. + local3 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:103:3: Error: Non-nullable variable 'local3' must be assigned before it can be used. local3 += 0; // error - ^^^^^^" in local3).{core::num::+}(0){(core::num) → core::int}; - local4 = (let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. + ^^^^^^" in local3.{core::num::+}(0){(core::num) → core::int}; + local4 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned.dart:104:3: Error: Late variable 'local4' without initializer is definitely unassigned. local4 += 0; // error - ^^^^^^" in local4).{core::num::+}(0){(core::num) → core::int}; + ^^^^^^" in local4.{core::num::+}(0){(core::num) → core::int}; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.strong.expect b/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.strong.expect index f47ac7feff1..db466d1e78e 100644 --- a/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.strong.expect @@ -22,10 +22,10 @@ abstract class A extends core::Object { method foo() → dynamic { late self::A::T% value; late core::int intValue; - this.{self::A::bar}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:15:9: Error: Late variable 'value' without initializer is definitely unassigned. + this.{self::A::bar}(invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:15:9: Error: Late variable 'value' without initializer is definitely unassigned. bar(value); // Error. ^^^^^" in value){(self::A::T%) → dynamic}; - this.{self::A::barInt}(let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:16:12: Error: Late variable 'intValue' without initializer is definitely unassigned. + this.{self::A::barInt}(invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:16:12: Error: Late variable 'intValue' without initializer is definitely unassigned. barInt(intValue); // Error. ^^^^^^^^" in intValue){(core::int) → dynamic}; } diff --git a/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.strong.transformed.expect index f47ac7feff1..db466d1e78e 100644 --- a/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.strong.transformed.expect @@ -22,10 +22,10 @@ abstract class A extends core::Object { method foo() → dynamic { late self::A::T% value; late core::int intValue; - this.{self::A::bar}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:15:9: Error: Late variable 'value' without initializer is definitely unassigned. + this.{self::A::bar}(invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:15:9: Error: Late variable 'value' without initializer is definitely unassigned. bar(value); // Error. ^^^^^" in value){(self::A::T%) → dynamic}; - this.{self::A::barInt}(let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:16:12: Error: Late variable 'intValue' without initializer is definitely unassigned. + this.{self::A::barInt}(invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:16:12: Error: Late variable 'intValue' without initializer is definitely unassigned. barInt(intValue); // Error. ^^^^^^^^" in intValue){(core::int) → dynamic}; } diff --git a/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.weak.expect b/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.weak.expect index f47ac7feff1..db466d1e78e 100644 --- a/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.weak.expect @@ -22,10 +22,10 @@ abstract class A extends core::Object { method foo() → dynamic { late self::A::T% value; late core::int intValue; - this.{self::A::bar}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:15:9: Error: Late variable 'value' without initializer is definitely unassigned. + this.{self::A::bar}(invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:15:9: Error: Late variable 'value' without initializer is definitely unassigned. bar(value); // Error. ^^^^^" in value){(self::A::T%) → dynamic}; - this.{self::A::barInt}(let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:16:12: Error: Late variable 'intValue' without initializer is definitely unassigned. + this.{self::A::barInt}(invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:16:12: Error: Late variable 'intValue' without initializer is definitely unassigned. barInt(intValue); // Error. ^^^^^^^^" in intValue){(core::int) → dynamic}; } diff --git a/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.weak.transformed.expect index f47ac7feff1..db466d1e78e 100644 --- a/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart.weak.transformed.expect @@ -22,10 +22,10 @@ abstract class A extends core::Object { method foo() → dynamic { late self::A::T% value; late core::int intValue; - this.{self::A::bar}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:15:9: Error: Late variable 'value' without initializer is definitely unassigned. + this.{self::A::bar}(invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:15:9: Error: Late variable 'value' without initializer is definitely unassigned. bar(value); // Error. ^^^^^" in value){(self::A::T%) → dynamic}; - this.{self::A::barInt}(let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:16:12: Error: Late variable 'intValue' without initializer is definitely unassigned. + this.{self::A::barInt}(invalid-expression "pkg/front_end/testcases/nnbd/definitely_unassigned_late_local_variables.dart:16:12: Error: Late variable 'intValue' without initializer is definitely unassigned. barInt(intValue); // Error. ^^^^^^^^" in intValue){(core::int) → dynamic}; } diff --git a/pkg/front_end/testcases/nnbd/demote_closure_types.dart.strong.expect b/pkg/front_end/testcases/nnbd/demote_closure_types.dart.strong.expect index f003f8cf6f9..d3ad413cacc 100644 --- a/pkg/front_end/testcases/nnbd/demote_closure_types.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/demote_closure_types.dart.strong.expect @@ -12,7 +12,7 @@ import "dart:core" as core; static method method(self::method::T% a, self::method::T% b) → dynamic { if(a is{ForNonNullableByDefault} core::String) { () → self::method::T% f = () → self::method::T% => a{self::method::T% & core::String /* '%' & '!' = '!' */}; - core::String s = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/demote_closure_types.dart:8:17: Error: A value of type 'T' can't be assigned to a variable of type 'String'. + core::String s = invalid-expression "pkg/front_end/testcases/nnbd/demote_closure_types.dart:8:17: Error: A value of type 'T' can't be assigned to a variable of type 'String'. String s = f(); ^" in f(){() → self::method::T%} as{TypeError,ForNonNullableByDefault} core::String; } diff --git a/pkg/front_end/testcases/nnbd/demote_closure_types.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/demote_closure_types.dart.strong.transformed.expect index f003f8cf6f9..d3ad413cacc 100644 --- a/pkg/front_end/testcases/nnbd/demote_closure_types.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/demote_closure_types.dart.strong.transformed.expect @@ -12,7 +12,7 @@ import "dart:core" as core; static method method(self::method::T% a, self::method::T% b) → dynamic { if(a is{ForNonNullableByDefault} core::String) { () → self::method::T% f = () → self::method::T% => a{self::method::T% & core::String /* '%' & '!' = '!' */}; - core::String s = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/demote_closure_types.dart:8:17: Error: A value of type 'T' can't be assigned to a variable of type 'String'. + core::String s = invalid-expression "pkg/front_end/testcases/nnbd/demote_closure_types.dart:8:17: Error: A value of type 'T' can't be assigned to a variable of type 'String'. String s = f(); ^" in f(){() → self::method::T%} as{TypeError,ForNonNullableByDefault} core::String; } diff --git a/pkg/front_end/testcases/nnbd/demote_closure_types.dart.weak.expect b/pkg/front_end/testcases/nnbd/demote_closure_types.dart.weak.expect index f003f8cf6f9..d3ad413cacc 100644 --- a/pkg/front_end/testcases/nnbd/demote_closure_types.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/demote_closure_types.dart.weak.expect @@ -12,7 +12,7 @@ import "dart:core" as core; static method method(self::method::T% a, self::method::T% b) → dynamic { if(a is{ForNonNullableByDefault} core::String) { () → self::method::T% f = () → self::method::T% => a{self::method::T% & core::String /* '%' & '!' = '!' */}; - core::String s = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/demote_closure_types.dart:8:17: Error: A value of type 'T' can't be assigned to a variable of type 'String'. + core::String s = invalid-expression "pkg/front_end/testcases/nnbd/demote_closure_types.dart:8:17: Error: A value of type 'T' can't be assigned to a variable of type 'String'. String s = f(); ^" in f(){() → self::method::T%} as{TypeError,ForNonNullableByDefault} core::String; } diff --git a/pkg/front_end/testcases/nnbd/demote_closure_types.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/demote_closure_types.dart.weak.transformed.expect index f003f8cf6f9..d3ad413cacc 100644 --- a/pkg/front_end/testcases/nnbd/demote_closure_types.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/demote_closure_types.dart.weak.transformed.expect @@ -12,7 +12,7 @@ import "dart:core" as core; static method method(self::method::T% a, self::method::T% b) → dynamic { if(a is{ForNonNullableByDefault} core::String) { () → self::method::T% f = () → self::method::T% => a{self::method::T% & core::String /* '%' & '!' = '!' */}; - core::String s = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/demote_closure_types.dart:8:17: Error: A value of type 'T' can't be assigned to a variable of type 'String'. + core::String s = invalid-expression "pkg/front_end/testcases/nnbd/demote_closure_types.dart:8:17: Error: A value of type 'T' can't be assigned to a variable of type 'String'. String s = f(); ^" in f(){() → self::method::T%} as{TypeError,ForNonNullableByDefault} core::String; } diff --git a/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.strong.expect b/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.strong.expect index db3493181de..984ea599116 100644 --- a/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.strong.expect @@ -35,7 +35,7 @@ static method test() → dynamic { dynamic v5 = invalid-expression "pkg/front_end/testcases/nnbd/dynamic_object_call.dart:21:22: Error: 'hashCode' isn't a function or method and can't be invoked. var v5 = c.hashCode(); ^^^^..."; - dynamic v6 = c.{core::Object::noSuchMethod}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/dynamic_object_call.dart:23:27: Error: The argument type 'String' can't be assigned to the parameter type 'Invocation'. + dynamic v6 = c.{core::Object::noSuchMethod}(invalid-expression "pkg/front_end/testcases/nnbd/dynamic_object_call.dart:23:27: Error: The argument type 'String' can't be assigned to the parameter type 'Invocation'. - 'Invocation' is from 'dart:core'. var v6 = c.noSuchMethod(\"foo\"); ^" in "foo" as{TypeError,ForNonNullableByDefault} core::Invocation){(core::Invocation) → dynamic}; diff --git a/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.strong.transformed.expect index db3493181de..984ea599116 100644 --- a/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.strong.transformed.expect @@ -35,7 +35,7 @@ static method test() → dynamic { dynamic v5 = invalid-expression "pkg/front_end/testcases/nnbd/dynamic_object_call.dart:21:22: Error: 'hashCode' isn't a function or method and can't be invoked. var v5 = c.hashCode(); ^^^^..."; - dynamic v6 = c.{core::Object::noSuchMethod}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/dynamic_object_call.dart:23:27: Error: The argument type 'String' can't be assigned to the parameter type 'Invocation'. + dynamic v6 = c.{core::Object::noSuchMethod}(invalid-expression "pkg/front_end/testcases/nnbd/dynamic_object_call.dart:23:27: Error: The argument type 'String' can't be assigned to the parameter type 'Invocation'. - 'Invocation' is from 'dart:core'. var v6 = c.noSuchMethod(\"foo\"); ^" in "foo" as{TypeError,ForNonNullableByDefault} core::Invocation){(core::Invocation) → dynamic}; diff --git a/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.weak.expect b/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.weak.expect index db3493181de..984ea599116 100644 --- a/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.weak.expect @@ -35,7 +35,7 @@ static method test() → dynamic { dynamic v5 = invalid-expression "pkg/front_end/testcases/nnbd/dynamic_object_call.dart:21:22: Error: 'hashCode' isn't a function or method and can't be invoked. var v5 = c.hashCode(); ^^^^..."; - dynamic v6 = c.{core::Object::noSuchMethod}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/dynamic_object_call.dart:23:27: Error: The argument type 'String' can't be assigned to the parameter type 'Invocation'. + dynamic v6 = c.{core::Object::noSuchMethod}(invalid-expression "pkg/front_end/testcases/nnbd/dynamic_object_call.dart:23:27: Error: The argument type 'String' can't be assigned to the parameter type 'Invocation'. - 'Invocation' is from 'dart:core'. var v6 = c.noSuchMethod(\"foo\"); ^" in "foo" as{TypeError,ForNonNullableByDefault} core::Invocation){(core::Invocation) → dynamic}; diff --git a/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.weak.transformed.expect index db3493181de..984ea599116 100644 --- a/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/dynamic_object_call.dart.weak.transformed.expect @@ -35,7 +35,7 @@ static method test() → dynamic { dynamic v5 = invalid-expression "pkg/front_end/testcases/nnbd/dynamic_object_call.dart:21:22: Error: 'hashCode' isn't a function or method and can't be invoked. var v5 = c.hashCode(); ^^^^..."; - dynamic v6 = c.{core::Object::noSuchMethod}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/dynamic_object_call.dart:23:27: Error: The argument type 'String' can't be assigned to the parameter type 'Invocation'. + dynamic v6 = c.{core::Object::noSuchMethod}(invalid-expression "pkg/front_end/testcases/nnbd/dynamic_object_call.dart:23:27: Error: The argument type 'String' can't be assigned to the parameter type 'Invocation'. - 'Invocation' is from 'dart:core'. var v6 = c.noSuchMethod(\"foo\"); ^" in "foo" as{TypeError,ForNonNullableByDefault} core::Invocation){(core::Invocation) → dynamic}; diff --git a/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.strong.expect b/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.strong.expect index 53901514709..984c6b13916 100644 --- a/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.strong.expect @@ -49,7 +49,7 @@ static method BoundExtension|get#method2(lowered final se return () → self::BoundExtension|get#method2::T => self::BoundExtension|method2(#this); static method test1(self::test1::T% t1) → self::Class { if(t1 is{ForNonNullableByDefault} self::SubClass) { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:19:15: Error: A value of type 'T' can't be returned from a function with return type 'Class'. + return invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:19:15: Error: A value of type 'T' can't be returned from a function with return type 'Class'. - 'Class' is from 'pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart'. return t1.method1(); ^" in self::Extension|method1(t1{self::test1::T% & self::SubClass /* '%' & '!' = '!' */}) as{TypeError,ForNonNullableByDefault} self::Class; @@ -58,7 +58,7 @@ static method test1(self::test1::T% t1) → s } static method test2(self::test2::T t2) → dynamic { if(self::test2::T =={core::Type::==}{(core::Object) → core::bool} (#C1)) { - self::SubClass subClass = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:26:28: Error: A value of type 'T' can't be assigned to a variable of type 'SubClass'. + self::SubClass subClass = invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:26:28: Error: A value of type 'T' can't be assigned to a variable of type 'SubClass'. - 'SubClass' is from 'pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart'. SubClass subClass = t2.method2(); ^" in self::BoundExtension|method2(t2) as{TypeError,ForNonNullableByDefault} self::SubClass; diff --git a/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.strong.transformed.expect index 06d884dfbf8..6595634a5e2 100644 --- a/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.strong.transformed.expect @@ -49,7 +49,7 @@ static method BoundExtension|get#method2(lowered final se return () → self::BoundExtension|get#method2::T => self::BoundExtension|method2(#this); static method test1(self::test1::T% t1) → self::Class { if(t1 is{ForNonNullableByDefault} self::SubClass) { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:19:15: Error: A value of type 'T' can't be returned from a function with return type 'Class'. + return invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:19:15: Error: A value of type 'T' can't be returned from a function with return type 'Class'. - 'Class' is from 'pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart'. return t1.method1(); ^" in self::Extension|method1(t1{self::test1::T% & self::SubClass /* '%' & '!' = '!' */}) as{TypeError,ForNonNullableByDefault} self::Class; @@ -58,7 +58,7 @@ static method test1(self::test1::T% t1) → s } static method test2(self::test2::T t2) → dynamic { if(self::test2::T =={core::Type::==}{(core::Object) → core::bool} (#C1)) { - self::SubClass subClass = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:26:28: Error: A value of type 'T' can't be assigned to a variable of type 'SubClass'. + self::SubClass subClass = invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:26:28: Error: A value of type 'T' can't be assigned to a variable of type 'SubClass'. - 'SubClass' is from 'pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart'. SubClass subClass = t2.method2(); ^" in self::BoundExtension|method2(t2) as{TypeError,ForNonNullableByDefault} self::SubClass; diff --git a/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.weak.expect b/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.weak.expect index 566b27a144f..983d22feea7 100644 --- a/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.weak.expect @@ -49,7 +49,7 @@ static method BoundExtension|get#method2(lowered final se return () → self::BoundExtension|get#method2::T => self::BoundExtension|method2(#this); static method test1(self::test1::T% t1) → self::Class { if(t1 is{ForNonNullableByDefault} self::SubClass) { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:19:15: Error: A value of type 'T' can't be returned from a function with return type 'Class'. + return invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:19:15: Error: A value of type 'T' can't be returned from a function with return type 'Class'. - 'Class' is from 'pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart'. return t1.method1(); ^" in self::Extension|method1(t1{self::test1::T% & self::SubClass /* '%' & '!' = '!' */}) as{TypeError,ForNonNullableByDefault} self::Class; @@ -58,7 +58,7 @@ static method test1(self::test1::T% t1) → s } static method test2(self::test2::T t2) → dynamic { if(self::test2::T =={core::Type::==}{(core::Object) → core::bool} (#C1)) { - self::SubClass subClass = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:26:28: Error: A value of type 'T' can't be assigned to a variable of type 'SubClass'. + self::SubClass subClass = invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:26:28: Error: A value of type 'T' can't be assigned to a variable of type 'SubClass'. - 'SubClass' is from 'pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart'. SubClass subClass = t2.method2(); ^" in self::BoundExtension|method2(t2) as{TypeError,ForNonNullableByDefault} self::SubClass; diff --git a/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.weak.transformed.expect index 60b5e6c40b7..a9acd5de06e 100644 --- a/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart.weak.transformed.expect @@ -49,7 +49,7 @@ static method BoundExtension|get#method2(lowered final se return () → self::BoundExtension|get#method2::T => self::BoundExtension|method2(#this); static method test1(self::test1::T% t1) → self::Class { if(t1 is{ForNonNullableByDefault} self::SubClass) { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:19:15: Error: A value of type 'T' can't be returned from a function with return type 'Class'. + return invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:19:15: Error: A value of type 'T' can't be returned from a function with return type 'Class'. - 'Class' is from 'pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart'. return t1.method1(); ^" in self::Extension|method1(t1{self::test1::T% & self::SubClass /* '%' & '!' = '!' */}) as{TypeError,ForNonNullableByDefault} self::Class; @@ -58,7 +58,7 @@ static method test1(self::test1::T% t1) → s } static method test2(self::test2::T t2) → dynamic { if(self::test2::T =={core::Type::==}{(core::Object) → core::bool} (#C1)) { - self::SubClass subClass = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:26:28: Error: A value of type 'T' can't be assigned to a variable of type 'SubClass'. + self::SubClass subClass = invalid-expression "pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart:26:28: Error: A value of type 'T' can't be assigned to a variable of type 'SubClass'. - 'SubClass' is from 'pkg/front_end/testcases/nnbd/extension_type_variable_bound.dart'. SubClass subClass = t2.method2(); ^" in self::BoundExtension|method2(t2) as{TypeError,ForNonNullableByDefault} self::SubClass; diff --git a/pkg/front_end/testcases/nnbd/forin.dart.strong.expect b/pkg/front_end/testcases/nnbd/forin.dart.strong.expect index 8b357735eea..875fe7a573a 100644 --- a/pkg/front_end/testcases/nnbd/forin.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/forin.dart.strong.expect @@ -52,98 +52,98 @@ import self as self; import "dart:core" as core; static method error(core::Iterable? i2, core::List? l2, core::Object o1, core::Object? o2) → dynamic { - for (core::int x in let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. + for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. - 'Iterable' is from 'dart:core'. for (int x in i2) x; ^" in i2 as{TypeError,ForNonNullableByDefault} core::Iterable) x; block { - final core::List #t2 = []; - for (core::int x in let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. + final core::List #t1 = []; + for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. - 'Iterable' is from 'dart:core'. [for (int x in i2) x]; ^" in i2 as{TypeError,ForNonNullableByDefault} core::Iterable) - #t2.{core::List::add}{Invariant}(x){(core::int) → void}; - } =>#t2; - for (core::int x in let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. + #t1.{core::List::add}{Invariant}(x){(core::int) → void}; + } =>#t1; + for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. - 'List' is from 'dart:core'. - 'Iterable' is from 'dart:core'. for (int x in l2) x; ^" in l2 as{TypeError,ForNonNullableByDefault} core::Iterable) x; block { - final core::List #t5 = []; - for (core::int x in let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. + final core::List #t2 = []; + for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. - 'List' is from 'dart:core'. - 'Iterable' is from 'dart:core'. [for (int x in l2) x]; ^" in l2 as{TypeError,ForNonNullableByDefault} core::Iterable) - #t5.{core::List::add}{Invariant}(x){(core::int) → void}; - } =>#t5; - for (final dynamic #t7 in let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:15:17: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. + #t2.{core::List::add}{Invariant}(x){(core::int) → void}; + } =>#t2; + for (final dynamic #t3 in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:15:17: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. for (int x in o1) x; ^" in o1 as{TypeError,ForNonNullableByDefault} core::Iterable) { - core::int x = #t7 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + core::int x = #t3 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; x; } block { - final core::List #t9 = []; - for (final dynamic #t10 in let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:16:18: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. + final core::List #t4 = []; + for (final dynamic #t5 in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:16:18: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. [for (int x in o1) x]; ^" in o1 as{TypeError,ForNonNullableByDefault} core::Iterable) { - core::int x = #t10 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - #t9.{core::List::add}{Invariant}(x){(core::int) → void}; + core::int x = #t5 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t4.{core::List::add}{Invariant}(x){(core::int) → void}; } - } =>#t9; - for (final dynamic #t12 in let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:18:17: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. + } =>#t4; + for (final dynamic #t6 in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:18:17: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. for (int x in o2) x; ^" in o2 as{TypeError,ForNonNullableByDefault} core::Iterable) { - core::int x = #t12 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + core::int x = #t6 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; x; } block { - final core::List #t14 = []; - for (final dynamic #t15 in let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:19:18: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. + final core::List #t7 = []; + for (final dynamic #t8 in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:19:18: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. [for (int x in o2) x]; ^" in o2 as{TypeError,ForNonNullableByDefault} core::Iterable) { - core::int x = #t15 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - #t14.{core::List::add}{Invariant}(x){(core::int) → void}; + core::int x = #t8 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t7.{core::List::add}{Invariant}(x){(core::int) → void}; } - } =>#t14; + } =>#t7; } static method ok(core::Iterable i1, core::List l1, dynamic d) → dynamic { for (core::int x in i1) x; block { - final core::List #t17 = []; + final core::List #t9 = []; for (core::int x in i1) - #t17.{core::List::add}{Invariant}(x){(core::int) → void}; - } =>#t17; + #t9.{core::List::add}{Invariant}(x){(core::int) → void}; + } =>#t9; for (core::int x in l1) x; block { - final core::List #t18 = []; + final core::List #t10 = []; for (core::int x in l1) - #t18.{core::List::add}{Invariant}(x){(core::int) → void}; - } =>#t18; - for (final dynamic #t19 in d as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable) { - core::int x = #t19 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t10.{core::List::add}{Invariant}(x){(core::int) → void}; + } =>#t10; + for (final dynamic #t11 in d as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable) { + core::int x = #t11 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; x; } block { - final core::List #t20 = []; - for (final dynamic #t21 in d as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable) { - core::int x = #t21 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - #t20.{core::List::add}{Invariant}(x){(core::int) → void}; + final core::List #t12 = []; + for (final dynamic #t13 in d as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable) { + core::int x = #t13 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t12.{core::List::add}{Invariant}(x){(core::int) → void}; } - } =>#t20; + } =>#t12; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/forin.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/forin.dart.strong.transformed.expect index 89a64934745..021170d4b47 100644 --- a/pkg/front_end/testcases/nnbd/forin.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/forin.dart.strong.transformed.expect @@ -53,115 +53,115 @@ import "dart:core" as core; static method error(core::Iterable? i2, core::List? l2, core::Object o1, core::Object? o2) → dynamic { { - core::Iterator :sync-for-iterator = (let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. - 'Iterable' is from 'dart:core'. for (int x in i2) x; - ^" in let core::Iterable? #t2 = i2 in #t2 == null ?{core::Iterable} #t2 as{TypeError,ForNonNullableByDefault} core::Iterable : #t2{core::Iterable}).{core::Iterable::iterator}{core::Iterator}; + ^" in let core::Iterable? #t1 = i2 in #t1 == null ?{core::Iterable} #t1 as{TypeError,ForNonNullableByDefault} core::Iterable : #t1{core::Iterable}.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - core::int x = :sync-for-iterator.{core::Iterator::current}{dynamic}; + core::int x = :sync-for-iterator.{core::Iterator::current}{Never}; x; } } block { - final core::List #t3 = core::_GrowableList::•(0); + final core::List #t2 = core::_GrowableList::•(0); { - core::Iterator :sync-for-iterator = (let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. - 'Iterable' is from 'dart:core'. [for (int x in i2) x]; - ^" in let core::Iterable? #t5 = i2 in #t5 == null ?{core::Iterable} #t5 as{TypeError,ForNonNullableByDefault} core::Iterable : #t5{core::Iterable}).{core::Iterable::iterator}{core::Iterator}; + ^" in let core::Iterable? #t3 = i2 in #t3 == null ?{core::Iterable} #t3 as{TypeError,ForNonNullableByDefault} core::Iterable : #t3{core::Iterable}.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - core::int x = :sync-for-iterator.{core::Iterator::current}{dynamic}; - #t3.{core::List::add}{Invariant}(x){(core::int) → void}; + core::int x = :sync-for-iterator.{core::Iterator::current}{Never}; + #t2.{core::List::add}{Invariant}(x){(core::int) → void}; } } - } =>#t3; + } =>#t2; { - core::Iterator :sync-for-iterator = (let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. - 'List' is from 'dart:core'. - 'Iterable' is from 'dart:core'. for (int x in l2) x; - ^" in let core::List? #t7 = l2 in #t7 == null ?{core::Iterable} #t7 as{TypeError,ForNonNullableByDefault} core::Iterable : #t7{core::Iterable}).{core::Iterable::iterator}{core::Iterator}; + ^" in let core::List? #t4 = l2 in #t4 == null ?{core::Iterable} #t4 as{TypeError,ForNonNullableByDefault} core::Iterable : #t4{core::Iterable}.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - core::int x = :sync-for-iterator.{core::Iterator::current}{dynamic}; + core::int x = :sync-for-iterator.{core::Iterator::current}{Never}; x; } } + block { + final core::List #t5 = core::_GrowableList::•(0); + { + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. + - 'List' is from 'dart:core'. + - 'Iterable' is from 'dart:core'. + [for (int x in l2) x]; + ^" in let core::List? #t6 = l2 in #t6 == null ?{core::Iterable} #t6 as{TypeError,ForNonNullableByDefault} core::Iterable : #t6{core::Iterable}.{core::Iterable::iterator}{core::Iterator}; + for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { + core::int x = :sync-for-iterator.{core::Iterator::current}{Never}; + #t5.{core::List::add}{Invariant}(x){(core::int) → void}; + } + } + } =>#t5; + { + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:15:17: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. + - 'Object' is from 'dart:core'. + - 'Iterable' is from 'dart:core'. + for (int x in o1) x; + ^" in o1 as{TypeError,ForNonNullableByDefault} core::Iterable.{core::Iterable::iterator}{core::Iterator}; + for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { + final dynamic #t7 = :sync-for-iterator.{core::Iterator::current}{Never}; + { + core::int x = #t7 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + x; + } + } + } block { final core::List #t8 = core::_GrowableList::•(0); { - core::Iterator :sync-for-iterator = (let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. - - 'List' is from 'dart:core'. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:16:18: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. + - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. - [for (int x in l2) x]; - ^" in let core::List? #t10 = l2 in #t10 == null ?{core::Iterable} #t10 as{TypeError,ForNonNullableByDefault} core::Iterable : #t10{core::Iterable}).{core::Iterable::iterator}{core::Iterator}; + [for (int x in o1) x]; + ^" in o1 as{TypeError,ForNonNullableByDefault} core::Iterable.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - core::int x = :sync-for-iterator.{core::Iterator::current}{dynamic}; - #t8.{core::List::add}{Invariant}(x){(core::int) → void}; + final dynamic #t9 = :sync-for-iterator.{core::Iterator::current}{Never}; + { + core::int x = #t9 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t8.{core::List::add}{Invariant}(x){(core::int) → void}; + } } } } =>#t8; { - core::Iterator :sync-for-iterator = (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:15:17: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. - - 'Object' is from 'dart:core'. - - 'Iterable' is from 'dart:core'. - for (int x in o1) x; - ^" in o1 as{TypeError,ForNonNullableByDefault} core::Iterable).{core::Iterable::iterator}{core::Iterator}; - for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t12 = :sync-for-iterator.{core::Iterator::current}{dynamic}; - { - core::int x = #t12 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - x; - } - } - } - block { - final core::List #t13 = core::_GrowableList::•(0); - { - core::Iterator :sync-for-iterator = (let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:16:18: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. - - 'Object' is from 'dart:core'. - - 'Iterable' is from 'dart:core'. - [for (int x in o1) x]; - ^" in o1 as{TypeError,ForNonNullableByDefault} core::Iterable).{core::Iterable::iterator}{core::Iterator}; - for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t15 = :sync-for-iterator.{core::Iterator::current}{dynamic}; - { - core::int x = #t15 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - #t13.{core::List::add}{Invariant}(x){(core::int) → void}; - } - } - } - } =>#t13; - { - core::Iterator :sync-for-iterator = (let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:18:17: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:18:17: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. for (int x in o2) x; - ^" in o2 as{TypeError,ForNonNullableByDefault} core::Iterable).{core::Iterable::iterator}{core::Iterator}; + ^" in o2 as{TypeError,ForNonNullableByDefault} core::Iterable.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t17 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t10 = :sync-for-iterator.{core::Iterator::current}{Never}; { - core::int x = #t17 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + core::int x = #t10 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; x; } } } block { - final core::List #t18 = core::_GrowableList::•(0); + final core::List #t11 = core::_GrowableList::•(0); { - core::Iterator :sync-for-iterator = (let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:19:18: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:19:18: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. [for (int x in o2) x]; - ^" in o2 as{TypeError,ForNonNullableByDefault} core::Iterable).{core::Iterable::iterator}{core::Iterator}; + ^" in o2 as{TypeError,ForNonNullableByDefault} core::Iterable.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t20 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t12 = :sync-for-iterator.{core::Iterator::current}{Never}; { - core::int x = #t20 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - #t18.{core::List::add}{Invariant}(x){(core::int) → void}; + core::int x = #t12 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t11.{core::List::add}{Invariant}(x){(core::int) → void}; } } } - } =>#t18; + } =>#t11; } static method ok(core::Iterable i1, core::List l1, dynamic d) → dynamic { { @@ -172,15 +172,15 @@ static method ok(core::Iterable i1, core::List l1, dynamic } } block { - final core::List #t21 = core::_GrowableList::•(0); + final core::List #t13 = core::_GrowableList::•(0); { core::Iterator :sync-for-iterator = i1.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { core::int x = :sync-for-iterator.{core::Iterator::current}{core::int}; - #t21.{core::List::add}{Invariant}(x){(core::int) → void}; + #t13.{core::List::add}{Invariant}(x){(core::int) → void}; } } - } =>#t21; + } =>#t13; { core::Iterator :sync-for-iterator = l1.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { @@ -189,37 +189,37 @@ static method ok(core::Iterable i1, core::List l1, dynamic } } block { - final core::List #t22 = core::_GrowableList::•(0); + final core::List #t14 = core::_GrowableList::•(0); { core::Iterator :sync-for-iterator = l1.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { core::int x = :sync-for-iterator.{core::Iterator::current}{core::int}; - #t22.{core::List::add}{Invariant}(x){(core::int) → void}; + #t14.{core::List::add}{Invariant}(x){(core::int) → void}; } } - } =>#t22; + } =>#t14; { core::Iterator :sync-for-iterator = (d as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable).{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t23 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t15 = :sync-for-iterator.{core::Iterator::current}{dynamic}; { - core::int x = #t23 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + core::int x = #t15 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; x; } } } block { - final core::List #t24 = core::_GrowableList::•(0); + final core::List #t16 = core::_GrowableList::•(0); { core::Iterator :sync-for-iterator = (d as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable).{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t25 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t17 = :sync-for-iterator.{core::Iterator::current}{dynamic}; { - core::int x = #t25 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - #t24.{core::List::add}{Invariant}(x){(core::int) → void}; + core::int x = #t17 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t16.{core::List::add}{Invariant}(x){(core::int) → void}; } } } - } =>#t24; + } =>#t16; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/forin.dart.weak.expect b/pkg/front_end/testcases/nnbd/forin.dart.weak.expect index 8b357735eea..875fe7a573a 100644 --- a/pkg/front_end/testcases/nnbd/forin.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/forin.dart.weak.expect @@ -52,98 +52,98 @@ import self as self; import "dart:core" as core; static method error(core::Iterable? i2, core::List? l2, core::Object o1, core::Object? o2) → dynamic { - for (core::int x in let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. + for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. - 'Iterable' is from 'dart:core'. for (int x in i2) x; ^" in i2 as{TypeError,ForNonNullableByDefault} core::Iterable) x; block { - final core::List #t2 = []; - for (core::int x in let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. + final core::List #t1 = []; + for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. - 'Iterable' is from 'dart:core'. [for (int x in i2) x]; ^" in i2 as{TypeError,ForNonNullableByDefault} core::Iterable) - #t2.{core::List::add}{Invariant}(x){(core::int) → void}; - } =>#t2; - for (core::int x in let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. + #t1.{core::List::add}{Invariant}(x){(core::int) → void}; + } =>#t1; + for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. - 'List' is from 'dart:core'. - 'Iterable' is from 'dart:core'. for (int x in l2) x; ^" in l2 as{TypeError,ForNonNullableByDefault} core::Iterable) x; block { - final core::List #t5 = []; - for (core::int x in let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. + final core::List #t2 = []; + for (core::int x in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. - 'List' is from 'dart:core'. - 'Iterable' is from 'dart:core'. [for (int x in l2) x]; ^" in l2 as{TypeError,ForNonNullableByDefault} core::Iterable) - #t5.{core::List::add}{Invariant}(x){(core::int) → void}; - } =>#t5; - for (final dynamic #t7 in let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:15:17: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. + #t2.{core::List::add}{Invariant}(x){(core::int) → void}; + } =>#t2; + for (final dynamic #t3 in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:15:17: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. for (int x in o1) x; ^" in o1 as{TypeError,ForNonNullableByDefault} core::Iterable) { - core::int x = #t7 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + core::int x = #t3 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; x; } block { - final core::List #t9 = []; - for (final dynamic #t10 in let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:16:18: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. + final core::List #t4 = []; + for (final dynamic #t5 in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:16:18: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. [for (int x in o1) x]; ^" in o1 as{TypeError,ForNonNullableByDefault} core::Iterable) { - core::int x = #t10 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - #t9.{core::List::add}{Invariant}(x){(core::int) → void}; + core::int x = #t5 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t4.{core::List::add}{Invariant}(x){(core::int) → void}; } - } =>#t9; - for (final dynamic #t12 in let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:18:17: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. + } =>#t4; + for (final dynamic #t6 in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:18:17: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. for (int x in o2) x; ^" in o2 as{TypeError,ForNonNullableByDefault} core::Iterable) { - core::int x = #t12 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + core::int x = #t6 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; x; } block { - final core::List #t14 = []; - for (final dynamic #t15 in let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:19:18: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. + final core::List #t7 = []; + for (final dynamic #t8 in invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:19:18: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. [for (int x in o2) x]; ^" in o2 as{TypeError,ForNonNullableByDefault} core::Iterable) { - core::int x = #t15 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - #t14.{core::List::add}{Invariant}(x){(core::int) → void}; + core::int x = #t8 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t7.{core::List::add}{Invariant}(x){(core::int) → void}; } - } =>#t14; + } =>#t7; } static method ok(core::Iterable i1, core::List l1, dynamic d) → dynamic { for (core::int x in i1) x; block { - final core::List #t17 = []; + final core::List #t9 = []; for (core::int x in i1) - #t17.{core::List::add}{Invariant}(x){(core::int) → void}; - } =>#t17; + #t9.{core::List::add}{Invariant}(x){(core::int) → void}; + } =>#t9; for (core::int x in l1) x; block { - final core::List #t18 = []; + final core::List #t10 = []; for (core::int x in l1) - #t18.{core::List::add}{Invariant}(x){(core::int) → void}; - } =>#t18; - for (final dynamic #t19 in d as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable) { - core::int x = #t19 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t10.{core::List::add}{Invariant}(x){(core::int) → void}; + } =>#t10; + for (final dynamic #t11 in d as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable) { + core::int x = #t11 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; x; } block { - final core::List #t20 = []; - for (final dynamic #t21 in d as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable) { - core::int x = #t21 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - #t20.{core::List::add}{Invariant}(x){(core::int) → void}; + final core::List #t12 = []; + for (final dynamic #t13 in d as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable) { + core::int x = #t13 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t12.{core::List::add}{Invariant}(x){(core::int) → void}; } - } =>#t20; + } =>#t12; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/forin.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/forin.dart.weak.transformed.expect index b242ebbb2c8..5adda707c8a 100644 --- a/pkg/front_end/testcases/nnbd/forin.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/forin.dart.weak.transformed.expect @@ -53,115 +53,115 @@ import "dart:core" as core; static method error(core::Iterable? i2, core::List? l2, core::Object o1, core::Object? o2) → dynamic { { - core::Iterator :sync-for-iterator = (let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:9:17: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. - 'Iterable' is from 'dart:core'. for (int x in i2) x; - ^" in i2).{core::Iterable::iterator}{core::Iterator}; + ^" in i2.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - core::int x = :sync-for-iterator.{core::Iterator::current}{dynamic}; + core::int x = :sync-for-iterator.{core::Iterator::current}{Never}; + x; + } + } + block { + final core::List #t1 = core::_GrowableList::•(0); + { + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. + - 'Iterable' is from 'dart:core'. + [for (int x in i2) x]; + ^" in i2.{core::Iterable::iterator}{core::Iterator}; + for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { + core::int x = :sync-for-iterator.{core::Iterator::current}{Never}; + #t1.{core::List::add}{Invariant}(x){(core::int) → void}; + } + } + } =>#t1; + { + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. + - 'List' is from 'dart:core'. + - 'Iterable' is from 'dart:core'. + for (int x in l2) x; + ^" in l2.{core::Iterable::iterator}{core::Iterator}; + for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { + core::int x = :sync-for-iterator.{core::Iterator::current}{Never}; x; } } block { final core::List #t2 = core::_GrowableList::•(0); { - core::Iterator :sync-for-iterator = (let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:10:18: Error: The type 'Iterable?' used in the 'for' loop must implement 'Iterable' because 'Iterable?' is nullable and 'Iterable' isn't. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. + - 'List' is from 'dart:core'. - 'Iterable' is from 'dart:core'. - [for (int x in i2) x]; - ^" in i2).{core::Iterable::iterator}{core::Iterator}; + [for (int x in l2) x]; + ^" in l2.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - core::int x = :sync-for-iterator.{core::Iterator::current}{dynamic}; + core::int x = :sync-for-iterator.{core::Iterator::current}{Never}; #t2.{core::List::add}{Invariant}(x){(core::int) → void}; } } } =>#t2; { - core::Iterator :sync-for-iterator = (let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:12:17: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. - - 'List' is from 'dart:core'. - - 'Iterable' is from 'dart:core'. - for (int x in l2) x; - ^" in l2).{core::Iterable::iterator}{core::Iterator}; - for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - core::int x = :sync-for-iterator.{core::Iterator::current}{dynamic}; - x; - } - } - block { - final core::List #t5 = core::_GrowableList::•(0); - { - core::Iterator :sync-for-iterator = (let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:13:18: Error: The type 'List?' used in the 'for' loop must implement 'Iterable' because 'List?' is nullable and 'Iterable' isn't. - - 'List' is from 'dart:core'. - - 'Iterable' is from 'dart:core'. - [for (int x in l2) x]; - ^" in l2).{core::Iterable::iterator}{core::Iterator}; - for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - core::int x = :sync-for-iterator.{core::Iterator::current}{dynamic}; - #t5.{core::List::add}{Invariant}(x){(core::int) → void}; - } - } - } =>#t5; - { - core::Iterator :sync-for-iterator = (let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:15:17: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:15:17: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. for (int x in o1) x; - ^" in o1 as{TypeError,ForNonNullableByDefault} core::Iterable).{core::Iterable::iterator}{core::Iterator}; + ^" in o1 as{TypeError,ForNonNullableByDefault} core::Iterable.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t8 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t3 = :sync-for-iterator.{core::Iterator::current}{Never}; { - core::int x = #t8 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + core::int x = #t3 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; x; } } } block { - final core::List #t9 = core::_GrowableList::•(0); + final core::List #t4 = core::_GrowableList::•(0); { - core::Iterator :sync-for-iterator = (let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:16:18: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:16:18: Error: The type 'Object' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. [for (int x in o1) x]; - ^" in o1 as{TypeError,ForNonNullableByDefault} core::Iterable).{core::Iterable::iterator}{core::Iterator}; + ^" in o1 as{TypeError,ForNonNullableByDefault} core::Iterable.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t11 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t5 = :sync-for-iterator.{core::Iterator::current}{Never}; { - core::int x = #t11 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - #t9.{core::List::add}{Invariant}(x){(core::int) → void}; + core::int x = #t5 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t4.{core::List::add}{Invariant}(x){(core::int) → void}; } } } - } =>#t9; + } =>#t4; { - core::Iterator :sync-for-iterator = (let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:18:17: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:18:17: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. for (int x in o2) x; - ^" in o2 as{TypeError,ForNonNullableByDefault} core::Iterable).{core::Iterable::iterator}{core::Iterator}; + ^" in o2 as{TypeError,ForNonNullableByDefault} core::Iterable.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t13 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t6 = :sync-for-iterator.{core::Iterator::current}{Never}; { - core::int x = #t13 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + core::int x = #t6 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; x; } } } block { - final core::List #t14 = core::_GrowableList::•(0); + final core::List #t7 = core::_GrowableList::•(0); { - core::Iterator :sync-for-iterator = (let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:19:18: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. + core::Iterator :sync-for-iterator = invalid-expression "pkg/front_end/testcases/nnbd/forin.dart:19:18: Error: The type 'Object?' used in the 'for' loop must implement 'Iterable'. - 'Object' is from 'dart:core'. - 'Iterable' is from 'dart:core'. [for (int x in o2) x]; - ^" in o2 as{TypeError,ForNonNullableByDefault} core::Iterable).{core::Iterable::iterator}{core::Iterator}; + ^" in o2 as{TypeError,ForNonNullableByDefault} core::Iterable.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t16 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t8 = :sync-for-iterator.{core::Iterator::current}{Never}; { - core::int x = #t16 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - #t14.{core::List::add}{Invariant}(x){(core::int) → void}; + core::int x = #t8 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t7.{core::List::add}{Invariant}(x){(core::int) → void}; } } } - } =>#t14; + } =>#t7; } static method ok(core::Iterable i1, core::List l1, dynamic d) → dynamic { { @@ -172,15 +172,15 @@ static method ok(core::Iterable i1, core::List l1, dynamic } } block { - final core::List #t17 = core::_GrowableList::•(0); + final core::List #t9 = core::_GrowableList::•(0); { core::Iterator :sync-for-iterator = i1.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { core::int x = :sync-for-iterator.{core::Iterator::current}{core::int}; - #t17.{core::List::add}{Invariant}(x){(core::int) → void}; + #t9.{core::List::add}{Invariant}(x){(core::int) → void}; } } - } =>#t17; + } =>#t9; { core::Iterator :sync-for-iterator = l1.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { @@ -189,37 +189,37 @@ static method ok(core::Iterable i1, core::List l1, dynamic } } block { - final core::List #t18 = core::_GrowableList::•(0); + final core::List #t10 = core::_GrowableList::•(0); { core::Iterator :sync-for-iterator = l1.{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { core::int x = :sync-for-iterator.{core::Iterator::current}{core::int}; - #t18.{core::List::add}{Invariant}(x){(core::int) → void}; + #t10.{core::List::add}{Invariant}(x){(core::int) → void}; } } - } =>#t18; + } =>#t10; { core::Iterator :sync-for-iterator = (d as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable).{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t19 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t11 = :sync-for-iterator.{core::Iterator::current}{dynamic}; { - core::int x = #t19 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + core::int x = #t11 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; x; } } } block { - final core::List #t20 = core::_GrowableList::•(0); + final core::List #t12 = core::_GrowableList::•(0); { core::Iterator :sync-for-iterator = (d as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable).{core::Iterable::iterator}{core::Iterator}; for (; :sync-for-iterator.{core::Iterator::moveNext}(){() → core::bool}; ) { - final dynamic #t21 = :sync-for-iterator.{core::Iterator::current}{dynamic}; + final dynamic #t13 = :sync-for-iterator.{core::Iterator::current}{dynamic}; { - core::int x = #t21 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; - #t20.{core::List::add}{Invariant}(x){(core::int) → void}; + core::int x = #t13 as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + #t12.{core::List::add}{Invariant}(x){(core::int) → void}; } } } - } =>#t20; + } =>#t12; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.expect index 862ef63b945..7a49cf6e3df 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.expect @@ -247,17 +247,17 @@ static method Extension|get#property3(lowered final core::int #this, core::int i) → void {} static method Extension|get#property4(lowered final core::int #this) → self::Extension|get#property4::S% - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:130:22: Error: A value of type 'int' can't be returned from a function with return type 'S'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:130:22: Error: A value of type 'int' can't be returned from a function with return type 'S'. S get property4 => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property4(lowered final core::int #this, self::Extension|set#property4::S% i) → void {} static method Extension|get#property5(lowered final core::int #this) → self::Extension|get#property5::S% - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:133:22: Error: A value of type 'int' can't be returned from a function with return type 'S'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:133:22: Error: A value of type 'int' can't be returned from a function with return type 'S'. S get property5 => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property5(lowered final core::int #this, self::Extension|set#property5::T% i) → void {} static method Extension|get#property6(lowered final core::int #this) → self::Extension|get#property6::T% - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:136:22: Error: A value of type 'int' can't be returned from a function with return type 'T'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:136:22: Error: A value of type 'int' can't be returned from a function with return type 'T'. T get property6 => 0; // error ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property6(lowered final core::int #this, self::Extension|set#property6::S% i) → void {} diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.weak.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.weak.expect index 862ef63b945..7a49cf6e3df 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.weak.expect @@ -247,17 +247,17 @@ static method Extension|get#property3(lowered final core::int #this, core::int i) → void {} static method Extension|get#property4(lowered final core::int #this) → self::Extension|get#property4::S% - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:130:22: Error: A value of type 'int' can't be returned from a function with return type 'S'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:130:22: Error: A value of type 'int' can't be returned from a function with return type 'S'. S get property4 => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property4(lowered final core::int #this, self::Extension|set#property4::S% i) → void {} static method Extension|get#property5(lowered final core::int #this) → self::Extension|get#property5::S% - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:133:22: Error: A value of type 'int' can't be returned from a function with return type 'S'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:133:22: Error: A value of type 'int' can't be returned from a function with return type 'S'. S get property5 => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property5(lowered final core::int #this, self::Extension|set#property5::T% i) → void {} static method Extension|get#property6(lowered final core::int #this) → self::Extension|get#property6::T% - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:136:22: Error: A value of type 'int' can't be returned from a function with return type 'T'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:136:22: Error: A value of type 'int' can't be returned from a function with return type 'T'. T get property6 => 0; // error ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property6(lowered final core::int #this, self::Extension|set#property6::S% i) → void {} diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.expect index 37f68ac0750..1f876abb0f3 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.expect @@ -253,22 +253,22 @@ static method Extension|get#property3(lowered final core::i return 0; static method Extension|set#property3(lowered final core::int #this, core::int i) → void {} static method Extension|get#property4a(lowered final core::int #this) → self::Extension|get#property4a::T - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:134:23: Error: A value of type 'int' can't be returned from a function with return type 'T'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:134:23: Error: A value of type 'int' can't be returned from a function with return type 'T'. T get property4a => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property4a(lowered final core::int #this, self::Extension|set#property4a::T i) → void {} static method Extension|get#property4b(lowered final core::int #this) → self::Extension|get#property4b::T? - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:137:24: Error: A value of type 'int' can't be returned from a function with return type 'T?'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:137:24: Error: A value of type 'int' can't be returned from a function with return type 'T?'. T? get property4b => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property4b(lowered final core::int #this, self::Extension|set#property4b::T? i) → void {} static method Extension|get#property5(lowered final core::int #this) → self::Extension|get#property5::T - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:140:22: Error: A value of type 'int' can't be returned from a function with return type 'T'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:140:22: Error: A value of type 'int' can't be returned from a function with return type 'T'. T get property5 => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property5(lowered final core::int #this, self::Extension|set#property5::T? i) → void {} static method Extension|get#property6(lowered final core::int #this) → self::Extension|get#property6::T? - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:143:23: Error: A value of type 'int' can't be returned from a function with return type 'T?'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:143:23: Error: A value of type 'int' can't be returned from a function with return type 'T?'. T? get property6 => 0; // error ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property6(lowered final core::int #this, self::Extension|set#property6::T i) → void {} diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.transformed.expect index 37f68ac0750..1f876abb0f3 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.transformed.expect @@ -253,22 +253,22 @@ static method Extension|get#property3(lowered final core::i return 0; static method Extension|set#property3(lowered final core::int #this, core::int i) → void {} static method Extension|get#property4a(lowered final core::int #this) → self::Extension|get#property4a::T - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:134:23: Error: A value of type 'int' can't be returned from a function with return type 'T'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:134:23: Error: A value of type 'int' can't be returned from a function with return type 'T'. T get property4a => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property4a(lowered final core::int #this, self::Extension|set#property4a::T i) → void {} static method Extension|get#property4b(lowered final core::int #this) → self::Extension|get#property4b::T? - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:137:24: Error: A value of type 'int' can't be returned from a function with return type 'T?'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:137:24: Error: A value of type 'int' can't be returned from a function with return type 'T?'. T? get property4b => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property4b(lowered final core::int #this, self::Extension|set#property4b::T? i) → void {} static method Extension|get#property5(lowered final core::int #this) → self::Extension|get#property5::T - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:140:22: Error: A value of type 'int' can't be returned from a function with return type 'T'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:140:22: Error: A value of type 'int' can't be returned from a function with return type 'T'. T get property5 => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property5(lowered final core::int #this, self::Extension|set#property5::T? i) → void {} static method Extension|get#property6(lowered final core::int #this) → self::Extension|get#property6::T? - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:143:23: Error: A value of type 'int' can't be returned from a function with return type 'T?'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:143:23: Error: A value of type 'int' can't be returned from a function with return type 'T?'. T? get property6 => 0; // error ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property6(lowered final core::int #this, self::Extension|set#property6::T i) → void {} diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.weak.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.weak.expect index 37f68ac0750..1f876abb0f3 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.weak.expect @@ -253,22 +253,22 @@ static method Extension|get#property3(lowered final core::i return 0; static method Extension|set#property3(lowered final core::int #this, core::int i) → void {} static method Extension|get#property4a(lowered final core::int #this) → self::Extension|get#property4a::T - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:134:23: Error: A value of type 'int' can't be returned from a function with return type 'T'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:134:23: Error: A value of type 'int' can't be returned from a function with return type 'T'. T get property4a => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property4a(lowered final core::int #this, self::Extension|set#property4a::T i) → void {} static method Extension|get#property4b(lowered final core::int #this) → self::Extension|get#property4b::T? - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:137:24: Error: A value of type 'int' can't be returned from a function with return type 'T?'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:137:24: Error: A value of type 'int' can't be returned from a function with return type 'T?'. T? get property4b => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property4b(lowered final core::int #this, self::Extension|set#property4b::T? i) → void {} static method Extension|get#property5(lowered final core::int #this) → self::Extension|get#property5::T - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:140:22: Error: A value of type 'int' can't be returned from a function with return type 'T'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:140:22: Error: A value of type 'int' can't be returned from a function with return type 'T'. T get property5 => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property5(lowered final core::int #this, self::Extension|set#property5::T? i) → void {} static method Extension|get#property6(lowered final core::int #this) → self::Extension|get#property6::T? - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:143:23: Error: A value of type 'int' can't be returned from a function with return type 'T?'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:143:23: Error: A value of type 'int' can't be returned from a function with return type 'T?'. T? get property6 => 0; // error ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property6(lowered final core::int #this, self::Extension|set#property6::T i) → void {} diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.weak.transformed.expect index 37f68ac0750..1f876abb0f3 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.weak.transformed.expect @@ -253,22 +253,22 @@ static method Extension|get#property3(lowered final core::i return 0; static method Extension|set#property3(lowered final core::int #this, core::int i) → void {} static method Extension|get#property4a(lowered final core::int #this) → self::Extension|get#property4a::T - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:134:23: Error: A value of type 'int' can't be returned from a function with return type 'T'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:134:23: Error: A value of type 'int' can't be returned from a function with return type 'T'. T get property4a => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property4a(lowered final core::int #this, self::Extension|set#property4a::T i) → void {} static method Extension|get#property4b(lowered final core::int #this) → self::Extension|get#property4b::T? - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:137:24: Error: A value of type 'int' can't be returned from a function with return type 'T?'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:137:24: Error: A value of type 'int' can't be returned from a function with return type 'T?'. T? get property4b => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property4b(lowered final core::int #this, self::Extension|set#property4b::T? i) → void {} static method Extension|get#property5(lowered final core::int #this) → self::Extension|get#property5::T - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:140:22: Error: A value of type 'int' can't be returned from a function with return type 'T'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:140:22: Error: A value of type 'int' can't be returned from a function with return type 'T'. T get property5 => 0; // ok ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property5(lowered final core::int #this, self::Extension|set#property5::T? i) → void {} static method Extension|get#property6(lowered final core::int #this) → self::Extension|get#property6::T? - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:143:23: Error: A value of type 'int' can't be returned from a function with return type 'T?'. + return invalid-expression "pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:143:23: Error: A value of type 'int' can't be returned from a function with return type 'T?'. T? get property6 => 0; // error ^" in 0 as{TypeError,ForNonNullableByDefault} Never; static method Extension|set#property6(lowered final core::int #this, self::Extension|set#property6::T i) → void {} diff --git a/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.strong.expect b/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.strong.expect index eae7c9702e8..2e2a614864c 100644 --- a/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.strong.expect @@ -18,7 +18,7 @@ static method test1() → dynamic { static method test2() → dynamic { dynamic d = (core::int a, core::int b) → core::int => a; d as{ForNonNullableByDefault} (core::int, core::int) → core::int; - d = (core::int a, core::int b) → core::int => let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/infer_from_promoted.dart:16:21: Error: A value of type 'String' can't be returned from a function with return type 'int'. + d = (core::int a, core::int b) → core::int => invalid-expression "pkg/front_end/testcases/nnbd/infer_from_promoted.dart:16:21: Error: A value of type 'String' can't be returned from a function with return type 'int'. d = (a, b) => '\$a'; ^" in "${a}" as{TypeError,ForNonNullableByDefault} core::int; } diff --git a/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.strong.transformed.expect index eae7c9702e8..2e2a614864c 100644 --- a/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.strong.transformed.expect @@ -18,7 +18,7 @@ static method test1() → dynamic { static method test2() → dynamic { dynamic d = (core::int a, core::int b) → core::int => a; d as{ForNonNullableByDefault} (core::int, core::int) → core::int; - d = (core::int a, core::int b) → core::int => let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/infer_from_promoted.dart:16:21: Error: A value of type 'String' can't be returned from a function with return type 'int'. + d = (core::int a, core::int b) → core::int => invalid-expression "pkg/front_end/testcases/nnbd/infer_from_promoted.dart:16:21: Error: A value of type 'String' can't be returned from a function with return type 'int'. d = (a, b) => '\$a'; ^" in "${a}" as{TypeError,ForNonNullableByDefault} core::int; } diff --git a/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.weak.expect b/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.weak.expect index eae7c9702e8..2e2a614864c 100644 --- a/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.weak.expect @@ -18,7 +18,7 @@ static method test1() → dynamic { static method test2() → dynamic { dynamic d = (core::int a, core::int b) → core::int => a; d as{ForNonNullableByDefault} (core::int, core::int) → core::int; - d = (core::int a, core::int b) → core::int => let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/infer_from_promoted.dart:16:21: Error: A value of type 'String' can't be returned from a function with return type 'int'. + d = (core::int a, core::int b) → core::int => invalid-expression "pkg/front_end/testcases/nnbd/infer_from_promoted.dart:16:21: Error: A value of type 'String' can't be returned from a function with return type 'int'. d = (a, b) => '\$a'; ^" in "${a}" as{TypeError,ForNonNullableByDefault} core::int; } diff --git a/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.weak.transformed.expect index eae7c9702e8..2e2a614864c 100644 --- a/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/infer_from_promoted.dart.weak.transformed.expect @@ -18,7 +18,7 @@ static method test1() → dynamic { static method test2() → dynamic { dynamic d = (core::int a, core::int b) → core::int => a; d as{ForNonNullableByDefault} (core::int, core::int) → core::int; - d = (core::int a, core::int b) → core::int => let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/infer_from_promoted.dart:16:21: Error: A value of type 'String' can't be returned from a function with return type 'int'. + d = (core::int a, core::int b) → core::int => invalid-expression "pkg/front_end/testcases/nnbd/infer_from_promoted.dart:16:21: Error: A value of type 'String' can't be returned from a function with return type 'int'. d = (a, b) => '\$a'; ^" in "${a}" as{TypeError,ForNonNullableByDefault} core::int; } diff --git a/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.strong.expect b/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.strong.expect index e98b1ac1a5d..4c6feac0baf 100644 --- a/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.strong.expect @@ -27,7 +27,7 @@ static method foo(dynamic d, void v, core::Object? onull, core::Object o, core:: self::f(snull); self::f(s); self::g(d); - self::g(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:20:5: Error: This expression has type 'void' and can't be used. + self::g(invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:20:5: Error: This expression has type 'void' and can't be used. g(v); ^" in v); self::g(onull); @@ -35,7 +35,7 @@ static method foo(dynamic d, void v, core::Object? onull, core::Object o, core:: self::g(snull); self::g(s); self::h(d); - self::h(let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:27:5: Error: This expression has type 'void' and can't be used. + self::h(invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:27:5: Error: This expression has type 'void' and can't be used. h(v); ^" in v); self::h(onull); diff --git a/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.strong.transformed.expect index e98b1ac1a5d..4c6feac0baf 100644 --- a/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.strong.transformed.expect @@ -27,7 +27,7 @@ static method foo(dynamic d, void v, core::Object? onull, core::Object o, core:: self::f(snull); self::f(s); self::g(d); - self::g(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:20:5: Error: This expression has type 'void' and can't be used. + self::g(invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:20:5: Error: This expression has type 'void' and can't be used. g(v); ^" in v); self::g(onull); @@ -35,7 +35,7 @@ static method foo(dynamic d, void v, core::Object? onull, core::Object o, core:: self::g(snull); self::g(s); self::h(d); - self::h(let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:27:5: Error: This expression has type 'void' and can't be used. + self::h(invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:27:5: Error: This expression has type 'void' and can't be used. h(v); ^" in v); self::h(onull); diff --git a/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.weak.expect b/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.weak.expect index e98b1ac1a5d..4c6feac0baf 100644 --- a/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.weak.expect @@ -27,7 +27,7 @@ static method foo(dynamic d, void v, core::Object? onull, core::Object o, core:: self::f(snull); self::f(s); self::g(d); - self::g(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:20:5: Error: This expression has type 'void' and can't be used. + self::g(invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:20:5: Error: This expression has type 'void' and can't be used. g(v); ^" in v); self::g(onull); @@ -35,7 +35,7 @@ static method foo(dynamic d, void v, core::Object? onull, core::Object o, core:: self::g(snull); self::g(s); self::h(d); - self::h(let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:27:5: Error: This expression has type 'void' and can't be used. + self::h(invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:27:5: Error: This expression has type 'void' and can't be used. h(v); ^" in v); self::h(onull); diff --git a/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.weak.transformed.expect index e98b1ac1a5d..4c6feac0baf 100644 --- a/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart.weak.transformed.expect @@ -27,7 +27,7 @@ static method foo(dynamic d, void v, core::Object? onull, core::Object o, core:: self::f(snull); self::f(s); self::g(d); - self::g(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:20:5: Error: This expression has type 'void' and can't be used. + self::g(invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:20:5: Error: This expression has type 'void' and can't be used. g(v); ^" in v); self::g(onull); @@ -35,7 +35,7 @@ static method foo(dynamic d, void v, core::Object? onull, core::Object o, core:: self::g(snull); self::g(s); self::h(d); - self::h(let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:27:5: Error: This expression has type 'void' and can't be used. + self::h(invalid-expression "pkg/front_end/testcases/nnbd/infer_object_from_dynamic.dart:27:5: Error: This expression has type 'void' and can't be used. h(v); ^" in v); self::h(onull); diff --git a/pkg/front_end/testcases/nnbd/instance_duplicates.dart.strong.expect b/pkg/front_end/testcases/nnbd/instance_duplicates.dart.strong.expect index 9920c38466b..773432ab140 100644 --- a/pkg/front_end/testcases/nnbd/instance_duplicates.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/instance_duplicates.dart.strong.expect @@ -598,7 +598,7 @@ Try correcting the name to the name of an existing getter, or defining a getter Try correcting the name to the name of an existing getter, or defining a getter or field named 'methodAndFinalFieldAndSetter4'. c.methodAndFinalFieldAndSetter4 = c.methodAndFinalFieldAndSetter4; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::int?; - c.{self::Class::methodAndSetter1} = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/instance_duplicates.dart:92:26: Error: A value of type 'int? Function()' can't be assigned to a variable of type 'int?'. + c.{self::Class::methodAndSetter1} = invalid-expression "pkg/front_end/testcases/nnbd/instance_duplicates.dart:92:26: Error: A value of type 'int? Function()' can't be assigned to a variable of type 'int?'. c.methodAndSetter1 = c.methodAndSetter1; ^" in c.{self::Class::methodAndSetter1}{() → core::int?} as{TypeError,ForNonNullableByDefault} core::int?; c.{self::Class::methodAndSetter2} = c.{self::Class::methodAndSetter2}{(core::int?) → void}; diff --git a/pkg/front_end/testcases/nnbd/instance_duplicates.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/instance_duplicates.dart.strong.transformed.expect index 68ff7488126..182c5149769 100644 --- a/pkg/front_end/testcases/nnbd/instance_duplicates.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/instance_duplicates.dart.strong.transformed.expect @@ -598,7 +598,7 @@ Try correcting the name to the name of an existing getter, or defining a getter Try correcting the name to the name of an existing getter, or defining a getter or field named 'methodAndFinalFieldAndSetter4'. c.methodAndFinalFieldAndSetter4 = c.methodAndFinalFieldAndSetter4; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"; - c.{self::Class::methodAndSetter1} = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/instance_duplicates.dart:92:26: Error: A value of type 'int? Function()' can't be assigned to a variable of type 'int?'. + c.{self::Class::methodAndSetter1} = invalid-expression "pkg/front_end/testcases/nnbd/instance_duplicates.dart:92:26: Error: A value of type 'int? Function()' can't be assigned to a variable of type 'int?'. c.methodAndSetter1 = c.methodAndSetter1; ^" in c.{self::Class::methodAndSetter1}{() → core::int?} as{TypeError,ForNonNullableByDefault} core::int?; c.{self::Class::methodAndSetter2} = c.{self::Class::methodAndSetter2}{(core::int?) → void}; diff --git a/pkg/front_end/testcases/nnbd/instance_duplicates.dart.weak.expect b/pkg/front_end/testcases/nnbd/instance_duplicates.dart.weak.expect index 9920c38466b..773432ab140 100644 --- a/pkg/front_end/testcases/nnbd/instance_duplicates.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/instance_duplicates.dart.weak.expect @@ -598,7 +598,7 @@ Try correcting the name to the name of an existing getter, or defining a getter Try correcting the name to the name of an existing getter, or defining a getter or field named 'methodAndFinalFieldAndSetter4'. c.methodAndFinalFieldAndSetter4 = c.methodAndFinalFieldAndSetter4; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::int?; - c.{self::Class::methodAndSetter1} = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/instance_duplicates.dart:92:26: Error: A value of type 'int? Function()' can't be assigned to a variable of type 'int?'. + c.{self::Class::methodAndSetter1} = invalid-expression "pkg/front_end/testcases/nnbd/instance_duplicates.dart:92:26: Error: A value of type 'int? Function()' can't be assigned to a variable of type 'int?'. c.methodAndSetter1 = c.methodAndSetter1; ^" in c.{self::Class::methodAndSetter1}{() → core::int?} as{TypeError,ForNonNullableByDefault} core::int?; c.{self::Class::methodAndSetter2} = c.{self::Class::methodAndSetter2}{(core::int?) → void}; diff --git a/pkg/front_end/testcases/nnbd/instance_duplicates.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/instance_duplicates.dart.weak.transformed.expect index 68ff7488126..182c5149769 100644 --- a/pkg/front_end/testcases/nnbd/instance_duplicates.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/instance_duplicates.dart.weak.transformed.expect @@ -598,7 +598,7 @@ Try correcting the name to the name of an existing getter, or defining a getter Try correcting the name to the name of an existing getter, or defining a getter or field named 'methodAndFinalFieldAndSetter4'. c.methodAndFinalFieldAndSetter4 = c.methodAndFinalFieldAndSetter4; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"; - c.{self::Class::methodAndSetter1} = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/instance_duplicates.dart:92:26: Error: A value of type 'int? Function()' can't be assigned to a variable of type 'int?'. + c.{self::Class::methodAndSetter1} = invalid-expression "pkg/front_end/testcases/nnbd/instance_duplicates.dart:92:26: Error: A value of type 'int? Function()' can't be assigned to a variable of type 'int?'. c.methodAndSetter1 = c.methodAndSetter1; ^" in c.{self::Class::methodAndSetter1}{() → core::int?} as{TypeError,ForNonNullableByDefault} core::int?; c.{self::Class::methodAndSetter2} = c.{self::Class::methodAndSetter2}{(core::int?) → void}; diff --git a/pkg/front_end/testcases/nnbd/issue41102.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue41102.dart.strong.expect index 76d99bf5bc3..e9cdc2d392e 100644 --- a/pkg/front_end/testcases/nnbd/issue41102.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue41102.dart.strong.expect @@ -70,7 +70,7 @@ import "dart:async"; static final field asy::StreamTransformer t = new asy::_StreamHandlerTransformer::•(handleData: (core::Object? data, asy::EventSink sink) → void => asy::Future::microtask(() → void => sink.{asy::EventSink::add}(data){(core::Object?) → void}), handleDone: (asy::EventSink sink) → void => asy::Future::microtask(() → void => sink.{asy::EventSink::close}(){() → void})); static final field core::List s1 = []; static final field core::int? s2 = let final core::List #t1 = self::s1 in #t1 == null ?{core::int?} null : #t1.{core::List::length}{core::int}; -static final field core::List s3 = core::List::filled(2, let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:17:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. +static final field core::List s3 = core::List::filled(2, invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:17:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. final s3 = new List.filled(2, null); ^" in null as{TypeError,ForNonNullableByDefault} core::int); static final field dynamic s4 = (() → Null { @@ -88,33 +88,33 @@ static final field dynamic s4 = (() → Null { } })(){() → Null}; static field core::int? s5; -static final field core::num s6 = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:31:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. +static final field core::num s6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:31:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. final s6 = s5 + 0; ^" in self::s5.{core::num::+}(0){(core::num) → core::num}; static field core::List? s7; -static final field dynamic s8 = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:35:14: Error: Operator '[]' cannot be called on 'List?' because it is potentially null. +static final field dynamic s8 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:35:14: Error: Operator '[]' cannot be called on 'List?' because it is potentially null. - 'List' is from 'dart:core'. final s8 = s7[0]; ^" in self::s7.{core::List::[]}{}.(0){(core::int) → dynamic}; -static final field core::int s9 = let final core::List? #t5 = self::s7 in let final core::int #t6 = 0 in let final core::int #t7 = 0 in let final void #t8 = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:37:14: Error: Operator '[]=' cannot be called on 'List?' because it is potentially null. +static final field core::int s9 = let final core::List? #t2 = self::s7 in let final core::int #t3 = 0 in let final core::int #t4 = 0 in let final void #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:37:14: Error: Operator '[]=' cannot be called on 'List?' because it is potentially null. - 'List' is from 'dart:core'. final s9 = s7[0] = 0; - ^" in #t5.{core::List::[]=}{}.(#t6, #t7){(core::int, dynamic) → void} in #t7; -static final field core::int s10 = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:39:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. + ^" in #t2.{core::List::[]=}{}.(#t3, #t4){(core::int, dynamic) → void} in #t4; +static final field core::int s10 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:39:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. - 'List' is from 'dart:core'. Try accessing using ?. instead. final s10 = s7.length; ^^^^^^" in self::s7.{core::List::length}{}.{core::int}; -static final field core::int s11 = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:41:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. +static final field core::int s11 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:41:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. - 'List' is from 'dart:core'. Try accessing using ?. instead. final s11 = s7.length = 0; ^^^^^^" in self::s7.{core::List::length}{}. = 0; -static final field core::int s12 = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:43:13: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. +static final field core::int s12 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:43:13: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. final s12 = -s5; ^" in self::s5.{core::int::unary-}(){() → core::int}; static field () →? core::int s13; -static final field core::int s14 = let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:47:18: Error: Can't use an expression of type 'int Function()?' as a function because it's potentially null. +static final field core::int s14 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:47:18: Error: Can't use an expression of type 'int Function()?' as a function because it's potentially null. Try calling using ?.call instead. final s14 = (s13)(); ^" in self::s13{}.(){() →? core::int}; diff --git a/pkg/front_end/testcases/nnbd/issue41102.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue41102.dart.strong.transformed.expect index 3d7775d1c72..1552eabf384 100644 --- a/pkg/front_end/testcases/nnbd/issue41102.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41102.dart.strong.transformed.expect @@ -70,9 +70,9 @@ import "dart:async"; static final field asy::StreamTransformer t = new asy::_StreamHandlerTransformer::•(handleData: (core::Object? data, asy::EventSink sink) → void => asy::Future::microtask(() → void => sink.{asy::EventSink::add}(data){(core::Object?) → void}), handleDone: (asy::EventSink sink) → void => asy::Future::microtask(() → void => sink.{asy::EventSink::close}(){() → void})); static final field core::List s1 = core::_GrowableList::•(0); static final field core::int? s2 = let final core::List #t1 = self::s1 in #t1 == null ?{core::int?} null : #t1.{core::List::length}{core::int}; -static final field core::List s3 = core::_List::filled(2, let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:17:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. +static final field core::List s3 = core::_List::filled(2, invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:17:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. final s3 = new List.filled(2, null); - ^" in let Null #t3 = null in #t3 == null ?{core::int} #t3 as{TypeError,ForNonNullableByDefault} core::int : #t3{core::int}); + ^" in let Null #t2 = null in #t2 == null ?{core::int} #t2 as{TypeError,ForNonNullableByDefault} core::int : #t2{core::int}); static final field dynamic s4 = (() → Null { core::int e = 0; switch(e) { @@ -88,33 +88,33 @@ static final field dynamic s4 = (() → Null { } })(){() → Null}; static field core::int? s5; -static final field core::num s6 = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:31:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. +static final field core::num s6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:31:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. final s6 = s5 + 0; ^" in self::s5.{core::num::+}(0){(core::num) → core::num}; static field core::List? s7; -static final field dynamic s8 = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:35:14: Error: Operator '[]' cannot be called on 'List?' because it is potentially null. +static final field dynamic s8 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:35:14: Error: Operator '[]' cannot be called on 'List?' because it is potentially null. - 'List' is from 'dart:core'. final s8 = s7[0]; ^" in self::s7.{core::List::[]}{}.(0){(core::int) → dynamic}; -static final field core::int s9 = let final core::List? #t6 = self::s7 in let final core::int #t7 = 0 in let final core::int #t8 = 0 in let final void #t9 = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:37:14: Error: Operator '[]=' cannot be called on 'List?' because it is potentially null. +static final field core::int s9 = let final core::List? #t3 = self::s7 in let final core::int #t4 = 0 in let final core::int #t5 = 0 in let final void #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:37:14: Error: Operator '[]=' cannot be called on 'List?' because it is potentially null. - 'List' is from 'dart:core'. final s9 = s7[0] = 0; - ^" in #t6.{core::List::[]=}{}.(#t7, #t8){(core::int, dynamic) → void} in #t8; -static final field core::int s10 = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:39:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. + ^" in #t3.{core::List::[]=}{}.(#t4, #t5){(core::int, dynamic) → void} in #t5; +static final field core::int s10 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:39:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. - 'List' is from 'dart:core'. Try accessing using ?. instead. final s10 = s7.length; ^^^^^^" in self::s7.{core::List::length}{}.{core::int}; -static final field core::int s11 = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:41:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. +static final field core::int s11 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:41:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. - 'List' is from 'dart:core'. Try accessing using ?. instead. final s11 = s7.length = 0; ^^^^^^" in self::s7.{core::List::length}{}. = 0; -static final field core::int s12 = let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:43:13: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. +static final field core::int s12 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:43:13: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. final s12 = -s5; ^" in self::s5.{core::int::unary-}(){() → core::int}; static field () →? core::int s13; -static final field core::int s14 = let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:47:18: Error: Can't use an expression of type 'int Function()?' as a function because it's potentially null. +static final field core::int s14 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:47:18: Error: Can't use an expression of type 'int Function()?' as a function because it's potentially null. Try calling using ?.call instead. final s14 = (s13)(); ^" in self::s13{}.(){() →? core::int}; @@ -130,10 +130,5 @@ constants { } Extra constant evaluation status: -Evaluated: EqualsNull @ org-dartlang-testcase:///issue41102.dart:17:36 -> BoolConstant(true) -Evaluated: VariableGet @ org-dartlang-testcase:///issue41102.dart:17:36 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///issue41102.dart:17:36 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///issue41102.dart:37:15 -> IntConstant(0) Evaluated: VariableGet @ org-dartlang-testcase:///issue41102.dart:37:20 -> IntConstant(0) -Evaluated: VariableGet @ org-dartlang-testcase:///issue41102.dart:37:20 -> IntConstant(0) -Extra constant evaluation: evaluated: 61, effectively constant: 6 +Extra constant evaluation: evaluated: 31, effectively constant: 1 diff --git a/pkg/front_end/testcases/nnbd/issue41102.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue41102.dart.weak.expect index 76d99bf5bc3..e9cdc2d392e 100644 --- a/pkg/front_end/testcases/nnbd/issue41102.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue41102.dart.weak.expect @@ -70,7 +70,7 @@ import "dart:async"; static final field asy::StreamTransformer t = new asy::_StreamHandlerTransformer::•(handleData: (core::Object? data, asy::EventSink sink) → void => asy::Future::microtask(() → void => sink.{asy::EventSink::add}(data){(core::Object?) → void}), handleDone: (asy::EventSink sink) → void => asy::Future::microtask(() → void => sink.{asy::EventSink::close}(){() → void})); static final field core::List s1 = []; static final field core::int? s2 = let final core::List #t1 = self::s1 in #t1 == null ?{core::int?} null : #t1.{core::List::length}{core::int}; -static final field core::List s3 = core::List::filled(2, let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:17:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. +static final field core::List s3 = core::List::filled(2, invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:17:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. final s3 = new List.filled(2, null); ^" in null as{TypeError,ForNonNullableByDefault} core::int); static final field dynamic s4 = (() → Null { @@ -88,33 +88,33 @@ static final field dynamic s4 = (() → Null { } })(){() → Null}; static field core::int? s5; -static final field core::num s6 = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:31:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. +static final field core::num s6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:31:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. final s6 = s5 + 0; ^" in self::s5.{core::num::+}(0){(core::num) → core::num}; static field core::List? s7; -static final field dynamic s8 = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:35:14: Error: Operator '[]' cannot be called on 'List?' because it is potentially null. +static final field dynamic s8 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:35:14: Error: Operator '[]' cannot be called on 'List?' because it is potentially null. - 'List' is from 'dart:core'. final s8 = s7[0]; ^" in self::s7.{core::List::[]}{}.(0){(core::int) → dynamic}; -static final field core::int s9 = let final core::List? #t5 = self::s7 in let final core::int #t6 = 0 in let final core::int #t7 = 0 in let final void #t8 = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:37:14: Error: Operator '[]=' cannot be called on 'List?' because it is potentially null. +static final field core::int s9 = let final core::List? #t2 = self::s7 in let final core::int #t3 = 0 in let final core::int #t4 = 0 in let final void #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:37:14: Error: Operator '[]=' cannot be called on 'List?' because it is potentially null. - 'List' is from 'dart:core'. final s9 = s7[0] = 0; - ^" in #t5.{core::List::[]=}{}.(#t6, #t7){(core::int, dynamic) → void} in #t7; -static final field core::int s10 = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:39:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. + ^" in #t2.{core::List::[]=}{}.(#t3, #t4){(core::int, dynamic) → void} in #t4; +static final field core::int s10 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:39:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. - 'List' is from 'dart:core'. Try accessing using ?. instead. final s10 = s7.length; ^^^^^^" in self::s7.{core::List::length}{}.{core::int}; -static final field core::int s11 = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:41:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. +static final field core::int s11 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:41:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. - 'List' is from 'dart:core'. Try accessing using ?. instead. final s11 = s7.length = 0; ^^^^^^" in self::s7.{core::List::length}{}. = 0; -static final field core::int s12 = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:43:13: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. +static final field core::int s12 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:43:13: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. final s12 = -s5; ^" in self::s5.{core::int::unary-}(){() → core::int}; static field () →? core::int s13; -static final field core::int s14 = let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:47:18: Error: Can't use an expression of type 'int Function()?' as a function because it's potentially null. +static final field core::int s14 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:47:18: Error: Can't use an expression of type 'int Function()?' as a function because it's potentially null. Try calling using ?.call instead. final s14 = (s13)(); ^" in self::s13{}.(){() →? core::int}; diff --git a/pkg/front_end/testcases/nnbd/issue41102.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue41102.dart.weak.transformed.expect index 9cdfa65783c..1b4a26854d9 100644 --- a/pkg/front_end/testcases/nnbd/issue41102.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41102.dart.weak.transformed.expect @@ -70,7 +70,7 @@ import "dart:async"; static final field asy::StreamTransformer t = new asy::_StreamHandlerTransformer::•(handleData: (core::Object? data, asy::EventSink sink) → void => asy::Future::microtask(() → void => sink.{asy::EventSink::add}(data){(core::Object?) → void}), handleDone: (asy::EventSink sink) → void => asy::Future::microtask(() → void => sink.{asy::EventSink::close}(){() → void})); static final field core::List s1 = core::_GrowableList::•(0); static final field core::int? s2 = let final core::List #t1 = self::s1 in #t1 == null ?{core::int?} null : #t1.{core::List::length}{core::int}; -static final field core::List s3 = core::_List::filled(2, let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:17:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. +static final field core::List s3 = core::_List::filled(2, invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:17:36: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. final s3 = new List.filled(2, null); ^" in null); static final field dynamic s4 = (() → Null { @@ -88,33 +88,33 @@ static final field dynamic s4 = (() → Null { } })(){() → Null}; static field core::int? s5; -static final field core::num s6 = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:31:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. +static final field core::num s6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:31:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. final s6 = s5 + 0; ^" in self::s5.{core::num::+}(0){(core::num) → core::num}; static field core::List? s7; -static final field dynamic s8 = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:35:14: Error: Operator '[]' cannot be called on 'List?' because it is potentially null. +static final field dynamic s8 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:35:14: Error: Operator '[]' cannot be called on 'List?' because it is potentially null. - 'List' is from 'dart:core'. final s8 = s7[0]; ^" in self::s7.{core::List::[]}{}.(0){(core::int) → dynamic}; -static final field core::int s9 = let final core::List? #t5 = self::s7 in let final core::int #t6 = 0 in let final core::int #t7 = 0 in let final void #t8 = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:37:14: Error: Operator '[]=' cannot be called on 'List?' because it is potentially null. +static final field core::int s9 = let final core::List? #t2 = self::s7 in let final core::int #t3 = 0 in let final core::int #t4 = 0 in let final void #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:37:14: Error: Operator '[]=' cannot be called on 'List?' because it is potentially null. - 'List' is from 'dart:core'. final s9 = s7[0] = 0; - ^" in #t5.{core::List::[]=}{}.(#t6, #t7){(core::int, dynamic) → void} in #t7; -static final field core::int s10 = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:39:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. + ^" in #t2.{core::List::[]=}{}.(#t3, #t4){(core::int, dynamic) → void} in #t4; +static final field core::int s10 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:39:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. - 'List' is from 'dart:core'. Try accessing using ?. instead. final s10 = s7.length; ^^^^^^" in self::s7.{core::List::length}{}.{core::int}; -static final field core::int s11 = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:41:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. +static final field core::int s11 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:41:16: Error: Property 'length' cannot be accessed on 'List?' because it is potentially null. - 'List' is from 'dart:core'. Try accessing using ?. instead. final s11 = s7.length = 0; ^^^^^^" in self::s7.{core::List::length}{}. = 0; -static final field core::int s12 = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:43:13: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. +static final field core::int s12 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:43:13: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. final s12 = -s5; ^" in self::s5.{core::int::unary-}(){() → core::int}; static field () →? core::int s13; -static final field core::int s14 = let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:47:18: Error: Can't use an expression of type 'int Function()?' as a function because it's potentially null. +static final field core::int s14 = invalid-expression "pkg/front_end/testcases/nnbd/issue41102.dart:47:18: Error: Can't use an expression of type 'int Function()?' as a function because it's potentially null. Try calling using ?.call instead. final s14 = (s13)(); ^" in self::s13{}.(){() →? core::int}; @@ -130,7 +130,5 @@ constants { } Extra constant evaluation status: -Evaluated: VariableGet @ org-dartlang-testcase:///issue41102.dart:37:15 -> IntConstant(0) Evaluated: VariableGet @ org-dartlang-testcase:///issue41102.dart:37:20 -> IntConstant(0) -Evaluated: VariableGet @ org-dartlang-testcase:///issue41102.dart:37:20 -> IntConstant(0) -Extra constant evaluation: evaluated: 55, effectively constant: 3 +Extra constant evaluation: evaluated: 31, effectively constant: 1 diff --git a/pkg/front_end/testcases/nnbd/issue41108.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue41108.dart.strong.expect index 18097c399c1..3874c5a67d3 100644 --- a/pkg/front_end/testcases/nnbd/issue41108.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue41108.dart.strong.expect @@ -12,7 +12,7 @@ import "dart:core" as core; import "dart:async" as asy; static method test() → dynamic async { - core::List y = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List?' can't be assigned to a variable of type 'List' because 'List?' is nullable and 'List' isn't. + core::List y = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List?' can't be assigned to a variable of type 'List' because 'List?' is nullable and 'List' isn't. - 'List' is from 'dart:core'. List y = await l(); // should be a List? ^" in await self::l() as{TypeError,ForNonNullableByDefault} core::List; diff --git a/pkg/front_end/testcases/nnbd/issue41108.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue41108.dart.strong.transformed.expect index 023355fd8cf..3864109d612 100644 --- a/pkg/front_end/testcases/nnbd/issue41108.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41108.dart.strong.transformed.expect @@ -25,12 +25,11 @@ static method test() → dynamic /* originally async */ { try { #L1: { - final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List?' can't be assigned to a variable of type 'List' because 'List?' is nullable and 'List' isn't. + [yield] let dynamic #t1 = asy::_awaitHelper(self::l(), :async_op_then, :async_op_error, :async_op) in null; + core::List y = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List?' can't be assigned to a variable of type 'List' because 'List?' is nullable and 'List' isn't. - 'List' is from 'dart:core'. List y = await l(); // should be a List? - ^"; - [yield] let dynamic #t2 = asy::_awaitHelper(self::l(), :async_op_then, :async_op_error, :async_op) in null; - core::List y = let core::List? #t3 = _in::unsafeCast?>(:result) in #t3 == null ?{core::List} #t3 as{TypeError,ForNonNullableByDefault} core::List : #t3{core::List}; + ^" in let core::List? #t2 = _in::unsafeCast?>(:result) in #t2 == null ?{core::List} #t2 as{TypeError,ForNonNullableByDefault} core::List : #t2{core::List}; } asy::_completeOnAsyncReturn(:async_future, :return_value, :is_sync); return; diff --git a/pkg/front_end/testcases/nnbd/issue41108.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue41108.dart.weak.expect index 18097c399c1..3874c5a67d3 100644 --- a/pkg/front_end/testcases/nnbd/issue41108.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue41108.dart.weak.expect @@ -12,7 +12,7 @@ import "dart:core" as core; import "dart:async" as asy; static method test() → dynamic async { - core::List y = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List?' can't be assigned to a variable of type 'List' because 'List?' is nullable and 'List' isn't. + core::List y = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List?' can't be assigned to a variable of type 'List' because 'List?' is nullable and 'List' isn't. - 'List' is from 'dart:core'. List y = await l(); // should be a List? ^" in await self::l() as{TypeError,ForNonNullableByDefault} core::List; diff --git a/pkg/front_end/testcases/nnbd/issue41108.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue41108.dart.weak.transformed.expect index 0ba3732ba96..18ac50da787 100644 --- a/pkg/front_end/testcases/nnbd/issue41108.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41108.dart.weak.transformed.expect @@ -25,12 +25,11 @@ static method test() → dynamic /* originally async */ { try { #L1: { - final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List?' can't be assigned to a variable of type 'List' because 'List?' is nullable and 'List' isn't. + [yield] let dynamic #t1 = asy::_awaitHelper(self::l(), :async_op_then, :async_op_error, :async_op) in null; + core::List y = invalid-expression "pkg/front_end/testcases/nnbd/issue41108.dart:6:12: Error: A value of type 'List?' can't be assigned to a variable of type 'List' because 'List?' is nullable and 'List' isn't. - 'List' is from 'dart:core'. List y = await l(); // should be a List? - ^"; - [yield] let dynamic #t2 = asy::_awaitHelper(self::l(), :async_op_then, :async_op_error, :async_op) in null; - core::List y = _in::unsafeCast?>(:result); + ^" in _in::unsafeCast?>(:result); } asy::_completeOnAsyncReturn(:async_future, :return_value, :is_sync); return; diff --git a/pkg/front_end/testcases/nnbd/issue41156.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue41156.dart.strong.expect index 78aa0d3e56f..5fca931577d 100644 --- a/pkg/front_end/testcases/nnbd/issue41156.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue41156.dart.strong.expect @@ -77,7 +77,7 @@ static method errors() → void async { } on core::Object catch(final core::Object _) { } - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:39:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:39:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x2 = (int v) /* error */ { ^" in null; }; @@ -87,7 +87,7 @@ static method errors() → void async { } on core::Object catch(final core::Object _) { } - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:44:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:44:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x3 = (int v) /* error */ { ^" in null; }; @@ -97,7 +97,7 @@ static method errors() → void async { } on core::Object catch(final core::Object _) { } - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:49:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:49:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x5 = (int v) /* error */ { ^" in null; }; @@ -107,7 +107,7 @@ static method errors() → void async { } on core::Object catch(final core::Object _) { } - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:54:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:54:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x6 = (int v) /* error */ { ^" in null; }; @@ -117,7 +117,7 @@ static method errors() → void async { } on core::Object catch(final core::Object _) { } - return let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:59:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:59:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y2 = (int v) async /* error */ { ^" in null; }; @@ -127,7 +127,7 @@ static method errors() → void async { } on core::Object catch(final core::Object _) { } - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:64:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:64:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y3 = (int v) async /* error */ { ^" in null; }; @@ -137,7 +137,7 @@ static method errors() → void async { } on core::Object catch(final core::Object _) { } - return let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:69:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:69:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y5 = (int v) async /* error */ { ^" in null; }; @@ -147,7 +147,7 @@ static method errors() → void async { } on core::Object catch(final core::Object _) { } - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:74:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:74:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y6 = (int v) async /* error */ { ^" in null; }; diff --git a/pkg/front_end/testcases/nnbd/issue41156.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue41156.dart.strong.transformed.expect index 4f6a3bae528..e3bb14886ce 100644 --- a/pkg/front_end/testcases/nnbd/issue41156.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41156.dart.strong.transformed.expect @@ -234,7 +234,7 @@ static method errors() → void /* originally async */ { } on core::Object catch(final core::Object _) { } - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:39:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:39:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x2 = (int v) /* error */ { ^" in null; }; @@ -244,7 +244,7 @@ static method errors() → void /* originally async */ { } on core::Object catch(final core::Object _) { } - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:44:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:44:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x3 = (int v) /* error */ { ^" in null; }; @@ -254,7 +254,7 @@ static method errors() → void /* originally async */ { } on core::Object catch(final core::Object _) { } - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:49:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:49:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x5 = (int v) /* error */ { ^" in null; }; @@ -264,7 +264,7 @@ static method errors() → void /* originally async */ { } on core::Object catch(final core::Object _) { } - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:54:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:54:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x6 = (int v) /* error */ { ^" in null; }; @@ -285,7 +285,7 @@ static method errors() → void /* originally async */ { } on core::Object catch(final core::Object _) { } - :return_value = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:59:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:59:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y2 = (int v) async /* error */ { ^" in null; break #L8; @@ -320,7 +320,7 @@ static method errors() → void /* originally async */ { } on core::Object catch(final core::Object _) { } - :return_value = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:64:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:64:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y3 = (int v) async /* error */ { ^" in null; break #L9; @@ -354,7 +354,7 @@ static method errors() → void /* originally async */ { } on core::Object catch(final core::Object _) { } - :return_value = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:69:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:69:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y5 = (int v) async /* error */ { ^" in null; break #L10; @@ -389,7 +389,7 @@ static method errors() → void /* originally async */ { } on core::Object catch(final core::Object _) { } - :return_value = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:74:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:74:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y6 = (int v) async /* error */ { ^" in null; break #L11; diff --git a/pkg/front_end/testcases/nnbd/issue41156.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue41156.dart.weak.expect index a73797eca90..9940f1b3dfb 100644 --- a/pkg/front_end/testcases/nnbd/issue41156.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue41156.dart.weak.expect @@ -78,7 +78,7 @@ static method errors() → void async { } on core::Object catch(final core::Object _) { } - return let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:39:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:39:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x2 = (int v) /* error */ { ^" in null; }; @@ -88,27 +88,27 @@ static method errors() → void async { } on core::Object catch(final core::Object _) { } - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:44:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:44:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x3 = (int v) /* error */ { ^" in null; }; (core::int) → core::String x5 = (core::int v) → core::String { try { - let final Never #t9 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t7 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); } on core::Object catch(final core::Object _) { } - return let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:49:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:49:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x5 = (int v) /* error */ { ^" in null; }; (core::int) → core::String x6 = (core::int v) → core::String { try { - return let final Never #t11 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + return let final Never #t8 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); } on core::Object catch(final core::Object _) { } - return let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:54:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:54:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x6 = (int v) /* error */ { ^" in null; }; @@ -118,7 +118,7 @@ static method errors() → void async { } on core::Object catch(final core::Object _) { } - return let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:59:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:59:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y2 = (int v) async /* error */ { ^" in null; }; @@ -128,27 +128,27 @@ static method errors() → void async { } on core::Object catch(final core::Object _) { } - return let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:64:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:64:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y3 = (int v) async /* error */ { ^" in null; }; (core::int) → asy::Future y5 = (core::int v) → asy::Future async { try { - let final Never #t15 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t9 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); } on core::Object catch(final core::Object _) { } - return let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:69:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:69:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y5 = (int v) async /* error */ { ^" in null; }; (core::int) → asy::Future y6 = (core::int v) → asy::Future async { try { - return let final Never #t17 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + return let final Never #t10 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); } on core::Object catch(final core::Object _) { } - return let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:74:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:74:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y6 = (int v) async /* error */ { ^" in null; }; diff --git a/pkg/front_end/testcases/nnbd/issue41156.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue41156.dart.weak.transformed.expect index 6e6ee4d0913..dbb0ff61c2d 100644 --- a/pkg/front_end/testcases/nnbd/issue41156.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41156.dart.weak.transformed.expect @@ -235,7 +235,7 @@ static method errors() → void /* originally async */ { } on core::Object catch(final core::Object _) { } - return let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:39:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:39:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x2 = (int v) /* error */ { ^" in null; }; @@ -245,27 +245,27 @@ static method errors() → void /* originally async */ { } on core::Object catch(final core::Object _) { } - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:44:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:44:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x3 = (int v) /* error */ { ^" in null; }; (core::int) → core::String x5 = (core::int v) → core::String { try { - let final Never #t9 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t7 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); } on core::Object catch(final core::Object _) { } - return let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:49:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:49:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x5 = (int v) /* error */ { ^" in null; }; (core::int) → core::String x6 = (core::int v) → core::String { try { - return let final Never #t11 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + return let final Never #t8 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); } on core::Object catch(final core::Object _) { } - return let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:54:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:54:29: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String Function(int) x6 = (int v) /* error */ { ^" in null; }; @@ -286,7 +286,7 @@ static method errors() → void /* originally async */ { } on core::Object catch(final core::Object _) { } - :return_value = let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:59:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:59:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y2 = (int v) async /* error */ { ^" in null; break #L8; @@ -321,7 +321,7 @@ static method errors() → void /* originally async */ { } on core::Object catch(final core::Object _) { } - :return_value = let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:64:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:64:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y3 = (int v) async /* error */ { ^" in null; break #L9; @@ -351,11 +351,11 @@ static method errors() → void /* originally async */ { #L10: { try { - let final Never #t15 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t9 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); } on core::Object catch(final core::Object _) { } - :return_value = let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:69:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:69:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y5 = (int v) async /* error */ { ^" in null; break #L10; @@ -385,12 +385,12 @@ static method errors() → void /* originally async */ { #L11: { try { - :return_value = let final Never #t17 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + :return_value = let final Never #t10 = self::throwing() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); break #L11; } on core::Object catch(final core::Object _) { } - :return_value = let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:74:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/issue41156.dart:74:37: Error: A non-null value must be returned since the return type 'String' doesn't allow null. Future Function(int) y6 = (int v) async /* error */ { ^" in null; break #L11; diff --git a/pkg/front_end/testcases/nnbd/issue41437a.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue41437a.dart.strong.expect index f683f0e7aa9..6b827044341 100644 --- a/pkg/front_end/testcases/nnbd/issue41437a.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue41437a.dart.strong.expect @@ -48,7 +48,7 @@ static method test3() → core::bool static method test4() → asy::Future async return await self::getFutureNull() as{TypeError,ForDynamic,ForNonNullableByDefault} FutureOr; static method test5() → asy::Future - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:18:25: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:18:25: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. - 'Future' is from 'dart:async'. Future test5() => getFutureNull(); // error ^" in self::getFutureNull() as{TypeError,ForNonNullableByDefault} asy::Future; @@ -66,7 +66,7 @@ static method test() → dynamic async { function test4() → asy::Future async return await self::getFutureNull() as{TypeError,ForDynamic,ForNonNullableByDefault} FutureOr; function test5() → asy::Future - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:27:27: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:27:27: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. - 'Future' is from 'dart:async'. Future test5() => getFutureNull(); // error ^" in self::getFutureNull() as{TypeError,ForNonNullableByDefault} asy::Future; @@ -74,17 +74,17 @@ static method test() → dynamic async { return self::getFutureBool(); function test7() → asy::Future async return self::getFutureBool(); - asy::Future var1 = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:31:52: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future var1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:31:52: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future var1 = (() async => await getNull())(); // error ^" in (() → asy::Future async => await self::getNull())(){() → asy::Future} as{TypeError,ForNonNullableByDefault} asy::Future; asy::Future var2 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; core::bool var3 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - asy::Future var4 = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:34:58: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future var4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:34:58: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future var4 = (() async => await getFutureNull())(); // error ^" in (() → asy::Future async => await self::getFutureNull())(){() → asy::Future} as{TypeError,ForNonNullableByDefault} asy::Future; - asy::Future var5 = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:35:46: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future var5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:35:46: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future var5 = (() => getFutureNull())(); // error ^" in (() → asy::Future => self::getFutureNull())(){() → asy::Future} as{TypeError,ForNonNullableByDefault} asy::Future; diff --git a/pkg/front_end/testcases/nnbd/issue41437a.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue41437a.dart.strong.transformed.expect index 72d6a6a4a87..a53d4d3b68b 100644 --- a/pkg/front_end/testcases/nnbd/issue41437a.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41437a.dart.strong.transformed.expect @@ -150,7 +150,7 @@ static method test4() → asy::Future /* originally async */ { return :async_future; } static method test5() → asy::Future - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:18:25: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:18:25: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. - 'Future' is from 'dart:async'. Future test5() => getFutureNull(); // error ^" in self::getFutureNull() as{TypeError,ForNonNullableByDefault} asy::Future; @@ -208,7 +208,7 @@ static method test() → dynamic /* originally async */ { try { #L7: { - [yield] let dynamic #t4 = asy::_awaitHelper(self::getNull(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t3 = asy::_awaitHelper(self::getNull(), :async_op_then, :async_op_error, :async_op) in null; :return_value = :result as{TypeError,ForDynamic,ForNonNullableByDefault} FutureOr; break #L7; } @@ -241,7 +241,7 @@ static method test() → dynamic /* originally async */ { try { #L8: { - [yield] let dynamic #t5 = asy::_awaitHelper(self::getFutureNull(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t4 = asy::_awaitHelper(self::getFutureNull(), :async_op_then, :async_op_error, :async_op) in null; :return_value = :result as{TypeError,ForDynamic,ForNonNullableByDefault} FutureOr; break #L8; } @@ -258,7 +258,7 @@ static method test() → dynamic /* originally async */ { return :async_future; } function test5() → asy::Future - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:27:27: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:27:27: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. - 'Future' is from 'dart:async'. Future test5() => getFutureNull(); // error ^" in self::getFutureNull() as{TypeError,ForNonNullableByDefault} asy::Future; @@ -291,7 +291,7 @@ static method test() → dynamic /* originally async */ { :is_sync = true; return :async_future; } - asy::Future var1 = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:31:52: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future var1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:31:52: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future var1 = (() async => await getNull())(); // error ^" in (() → asy::Future /* originally async */ { @@ -307,7 +307,7 @@ static method test() → dynamic /* originally async */ { try { #L10: { - [yield] let dynamic #t8 = asy::_awaitHelper(self::getNull(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t5 = asy::_awaitHelper(self::getNull(), :async_op_then, :async_op_error, :async_op) in null; :return_value = :result; break #L10; } @@ -325,7 +325,7 @@ static method test() → dynamic /* originally async */ { })(){() → asy::Future} as{TypeError,ForNonNullableByDefault} asy::Future; asy::Future var2 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; core::bool var3 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - asy::Future var4 = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:34:58: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future var4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:34:58: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future var4 = (() async => await getFutureNull())(); // error ^" in (() → asy::Future /* originally async */ { @@ -341,7 +341,7 @@ static method test() → dynamic /* originally async */ { try { #L11: { - [yield] let dynamic #t10 = asy::_awaitHelper(self::getFutureNull(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t6 = asy::_awaitHelper(self::getFutureNull(), :async_op_then, :async_op_error, :async_op) in null; :return_value = :result; break #L11; } @@ -357,7 +357,7 @@ static method test() → dynamic /* originally async */ { :is_sync = true; return :async_future; })(){() → asy::Future} as{TypeError,ForNonNullableByDefault} asy::Future; - asy::Future var5 = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:35:46: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future var5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:35:46: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future var5 = (() => getFutureNull())(); // error ^" in (() → asy::Future => self::getFutureNull())(){() → asy::Future} as{TypeError,ForNonNullableByDefault} asy::Future; diff --git a/pkg/front_end/testcases/nnbd/issue41437a.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue41437a.dart.weak.expect index f683f0e7aa9..6b827044341 100644 --- a/pkg/front_end/testcases/nnbd/issue41437a.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue41437a.dart.weak.expect @@ -48,7 +48,7 @@ static method test3() → core::bool static method test4() → asy::Future async return await self::getFutureNull() as{TypeError,ForDynamic,ForNonNullableByDefault} FutureOr; static method test5() → asy::Future - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:18:25: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:18:25: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. - 'Future' is from 'dart:async'. Future test5() => getFutureNull(); // error ^" in self::getFutureNull() as{TypeError,ForNonNullableByDefault} asy::Future; @@ -66,7 +66,7 @@ static method test() → dynamic async { function test4() → asy::Future async return await self::getFutureNull() as{TypeError,ForDynamic,ForNonNullableByDefault} FutureOr; function test5() → asy::Future - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:27:27: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:27:27: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. - 'Future' is from 'dart:async'. Future test5() => getFutureNull(); // error ^" in self::getFutureNull() as{TypeError,ForNonNullableByDefault} asy::Future; @@ -74,17 +74,17 @@ static method test() → dynamic async { return self::getFutureBool(); function test7() → asy::Future async return self::getFutureBool(); - asy::Future var1 = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:31:52: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future var1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:31:52: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future var1 = (() async => await getNull())(); // error ^" in (() → asy::Future async => await self::getNull())(){() → asy::Future} as{TypeError,ForNonNullableByDefault} asy::Future; asy::Future var2 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; core::bool var3 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - asy::Future var4 = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:34:58: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future var4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:34:58: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future var4 = (() async => await getFutureNull())(); // error ^" in (() → asy::Future async => await self::getFutureNull())(){() → asy::Future} as{TypeError,ForNonNullableByDefault} asy::Future; - asy::Future var5 = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:35:46: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future var5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:35:46: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future var5 = (() => getFutureNull())(); // error ^" in (() → asy::Future => self::getFutureNull())(){() → asy::Future} as{TypeError,ForNonNullableByDefault} asy::Future; diff --git a/pkg/front_end/testcases/nnbd/issue41437a.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue41437a.dart.weak.transformed.expect index 72d6a6a4a87..a53d4d3b68b 100644 --- a/pkg/front_end/testcases/nnbd/issue41437a.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41437a.dart.weak.transformed.expect @@ -150,7 +150,7 @@ static method test4() → asy::Future /* originally async */ { return :async_future; } static method test5() → asy::Future - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:18:25: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:18:25: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. - 'Future' is from 'dart:async'. Future test5() => getFutureNull(); // error ^" in self::getFutureNull() as{TypeError,ForNonNullableByDefault} asy::Future; @@ -208,7 +208,7 @@ static method test() → dynamic /* originally async */ { try { #L7: { - [yield] let dynamic #t4 = asy::_awaitHelper(self::getNull(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t3 = asy::_awaitHelper(self::getNull(), :async_op_then, :async_op_error, :async_op) in null; :return_value = :result as{TypeError,ForDynamic,ForNonNullableByDefault} FutureOr; break #L7; } @@ -241,7 +241,7 @@ static method test() → dynamic /* originally async */ { try { #L8: { - [yield] let dynamic #t5 = asy::_awaitHelper(self::getFutureNull(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t4 = asy::_awaitHelper(self::getFutureNull(), :async_op_then, :async_op_error, :async_op) in null; :return_value = :result as{TypeError,ForDynamic,ForNonNullableByDefault} FutureOr; break #L8; } @@ -258,7 +258,7 @@ static method test() → dynamic /* originally async */ { return :async_future; } function test5() → asy::Future - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:27:27: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:27:27: Error: A value of type 'Future' can't be returned from a function with return type 'Future'. - 'Future' is from 'dart:async'. Future test5() => getFutureNull(); // error ^" in self::getFutureNull() as{TypeError,ForNonNullableByDefault} asy::Future; @@ -291,7 +291,7 @@ static method test() → dynamic /* originally async */ { :is_sync = true; return :async_future; } - asy::Future var1 = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:31:52: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future var1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:31:52: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future var1 = (() async => await getNull())(); // error ^" in (() → asy::Future /* originally async */ { @@ -307,7 +307,7 @@ static method test() → dynamic /* originally async */ { try { #L10: { - [yield] let dynamic #t8 = asy::_awaitHelper(self::getNull(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t5 = asy::_awaitHelper(self::getNull(), :async_op_then, :async_op_error, :async_op) in null; :return_value = :result; break #L10; } @@ -325,7 +325,7 @@ static method test() → dynamic /* originally async */ { })(){() → asy::Future} as{TypeError,ForNonNullableByDefault} asy::Future; asy::Future var2 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; core::bool var3 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - asy::Future var4 = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:34:58: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future var4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:34:58: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future var4 = (() async => await getFutureNull())(); // error ^" in (() → asy::Future /* originally async */ { @@ -341,7 +341,7 @@ static method test() → dynamic /* originally async */ { try { #L11: { - [yield] let dynamic #t10 = asy::_awaitHelper(self::getFutureNull(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t6 = asy::_awaitHelper(self::getFutureNull(), :async_op_then, :async_op_error, :async_op) in null; :return_value = :result; break #L11; } @@ -357,7 +357,7 @@ static method test() → dynamic /* originally async */ { :is_sync = true; return :async_future; })(){() → asy::Future} as{TypeError,ForNonNullableByDefault} asy::Future; - asy::Future var5 = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:35:46: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. + asy::Future var5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437a.dart:35:46: Error: A value of type 'Future' can't be assigned to a variable of type 'Future'. - 'Future' is from 'dart:async'. Future var5 = (() => getFutureNull())(); // error ^" in (() → asy::Future => self::getFutureNull())(){() → asy::Future} as{TypeError,ForNonNullableByDefault} asy::Future; diff --git a/pkg/front_end/testcases/nnbd/issue41437b.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue41437b.dart.strong.expect index 7231fd2a3ad..89bdcade61b 100644 --- a/pkg/front_end/testcases/nnbd/issue41437b.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue41437b.dart.strong.expect @@ -56,13 +56,13 @@ static method test2() → core::Iterable static method test3() → core::bool return self::getNull() as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; static method test4() → core::Iterable sync* { - yield* let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:21:10: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + yield* invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:21:10: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. yield* getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; } static method test5() → core::Iterable - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:24:27: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:24:27: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. - 'Iterable' is from 'dart:core'. Iterable test5() => getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; @@ -80,13 +80,13 @@ static method test() → dynamic async { function test3() → core::bool return self::getNull() as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; function test4() → core::Iterable sync* { - yield* let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:38:12: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + yield* invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:38:12: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. yield* getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; } function test5() → core::Iterable - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:41:29: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:41:29: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. - 'Iterable' is from 'dart:core'. Iterable test5() => getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; @@ -95,7 +95,7 @@ static method test() → dynamic async { function test7() → core::Iterable sync* { yield* self::getIterableBool(); } - core::Iterable var1 = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:49:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + core::Iterable var1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:49:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. })(); // error ^" in (() → core::Iterable sync* { @@ -103,13 +103,13 @@ static method test() → dynamic async { })(){() → core::Iterable} as{TypeError,ForNonNullableByDefault} core::Iterable; core::Iterable var2 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable; core::bool var3 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - core::Iterable var4 = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:54:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + core::Iterable var4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:54:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. })(); // error ^" in (() → core::Iterable sync* { yield* self::getIterableNull(); })(){() → core::Iterable} as{TypeError,ForNonNullableByDefault} core::Iterable; - core::Iterable var5 = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:55:50: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + core::Iterable var5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:55:50: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. Iterable var5 = (() => getIterableNull())(); // error ^" in (() → core::Iterable => self::getIterableNull())(){() → core::Iterable} as{TypeError,ForNonNullableByDefault} core::Iterable; diff --git a/pkg/front_end/testcases/nnbd/issue41437b.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue41437b.dart.strong.transformed.expect index 70fbbebd947..f1dad025186 100644 --- a/pkg/front_end/testcases/nnbd/issue41437b.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41437b.dart.strong.transformed.expect @@ -105,7 +105,7 @@ static method test4() → core::Iterable /* originally sync* */ { function :sync_op(core::_SyncIterator? :iterator, dynamic :exception, dynamic :stack_trace) → core::bool* yielding { { { - :iterator.{core::_SyncIterator::_yieldEachIterable} = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:21:10: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + :iterator.{core::_SyncIterator::_yieldEachIterable} = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:21:10: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. yield* getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; @@ -119,7 +119,7 @@ static method test4() → core::Iterable /* originally sync* */ { return new core::_SyncIterable::•(:sync_op_gen); } static method test5() → core::Iterable - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:24:27: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:24:27: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. - 'Iterable' is from 'dart:core'. Iterable test5() => getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; @@ -182,7 +182,7 @@ static method test() → dynamic /* originally async */ { function :sync_op(core::_SyncIterator? :iterator, dynamic :exception, dynamic :stack_trace) → core::bool* yielding { { { - :iterator.{core::_SyncIterator::_yieldEachIterable} = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:38:12: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + :iterator.{core::_SyncIterator::_yieldEachIterable} = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:38:12: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. yield* getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; @@ -196,7 +196,7 @@ static method test() → dynamic /* originally async */ { return new core::_SyncIterable::•(:sync_op_gen); } function test5() → core::Iterable - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:41:29: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:41:29: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. - 'Iterable' is from 'dart:core'. Iterable test5() => getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; @@ -219,7 +219,7 @@ static method test() → dynamic /* originally async */ { } return new core::_SyncIterable::•(:sync_op_gen); } - core::Iterable var1 = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:49:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + core::Iterable var1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:49:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. })(); // error ^" in (() → core::Iterable /* originally sync* */ { @@ -241,7 +241,7 @@ static method test() → dynamic /* originally async */ { })(){() → core::Iterable} as{TypeError,ForNonNullableByDefault} core::Iterable; core::Iterable var2 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable; core::bool var3 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - core::Iterable var4 = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:54:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + core::Iterable var4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:54:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. })(); // error ^" in (() → core::Iterable /* originally sync* */ { @@ -261,7 +261,7 @@ static method test() → dynamic /* originally async */ { } return new core::_SyncIterable::•(:sync_op_gen); })(){() → core::Iterable} as{TypeError,ForNonNullableByDefault} core::Iterable; - core::Iterable var5 = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:55:50: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + core::Iterable var5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:55:50: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. Iterable var5 = (() => getIterableNull())(); // error ^" in (() → core::Iterable => self::getIterableNull())(){() → core::Iterable} as{TypeError,ForNonNullableByDefault} core::Iterable; diff --git a/pkg/front_end/testcases/nnbd/issue41437b.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue41437b.dart.weak.expect index 7231fd2a3ad..89bdcade61b 100644 --- a/pkg/front_end/testcases/nnbd/issue41437b.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue41437b.dart.weak.expect @@ -56,13 +56,13 @@ static method test2() → core::Iterable static method test3() → core::bool return self::getNull() as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; static method test4() → core::Iterable sync* { - yield* let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:21:10: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + yield* invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:21:10: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. yield* getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; } static method test5() → core::Iterable - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:24:27: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:24:27: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. - 'Iterable' is from 'dart:core'. Iterable test5() => getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; @@ -80,13 +80,13 @@ static method test() → dynamic async { function test3() → core::bool return self::getNull() as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; function test4() → core::Iterable sync* { - yield* let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:38:12: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + yield* invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:38:12: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. yield* getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; } function test5() → core::Iterable - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:41:29: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:41:29: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. - 'Iterable' is from 'dart:core'. Iterable test5() => getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; @@ -95,7 +95,7 @@ static method test() → dynamic async { function test7() → core::Iterable sync* { yield* self::getIterableBool(); } - core::Iterable var1 = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:49:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + core::Iterable var1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:49:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. })(); // error ^" in (() → core::Iterable sync* { @@ -103,13 +103,13 @@ static method test() → dynamic async { })(){() → core::Iterable} as{TypeError,ForNonNullableByDefault} core::Iterable; core::Iterable var2 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable; core::bool var3 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - core::Iterable var4 = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:54:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + core::Iterable var4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:54:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. })(); // error ^" in (() → core::Iterable sync* { yield* self::getIterableNull(); })(){() → core::Iterable} as{TypeError,ForNonNullableByDefault} core::Iterable; - core::Iterable var5 = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:55:50: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + core::Iterable var5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:55:50: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. Iterable var5 = (() => getIterableNull())(); // error ^" in (() → core::Iterable => self::getIterableNull())(){() → core::Iterable} as{TypeError,ForNonNullableByDefault} core::Iterable; diff --git a/pkg/front_end/testcases/nnbd/issue41437b.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue41437b.dart.weak.transformed.expect index 70fbbebd947..f1dad025186 100644 --- a/pkg/front_end/testcases/nnbd/issue41437b.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41437b.dart.weak.transformed.expect @@ -105,7 +105,7 @@ static method test4() → core::Iterable /* originally sync* */ { function :sync_op(core::_SyncIterator? :iterator, dynamic :exception, dynamic :stack_trace) → core::bool* yielding { { { - :iterator.{core::_SyncIterator::_yieldEachIterable} = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:21:10: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + :iterator.{core::_SyncIterator::_yieldEachIterable} = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:21:10: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. yield* getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; @@ -119,7 +119,7 @@ static method test4() → core::Iterable /* originally sync* */ { return new core::_SyncIterable::•(:sync_op_gen); } static method test5() → core::Iterable - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:24:27: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:24:27: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. - 'Iterable' is from 'dart:core'. Iterable test5() => getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; @@ -182,7 +182,7 @@ static method test() → dynamic /* originally async */ { function :sync_op(core::_SyncIterator? :iterator, dynamic :exception, dynamic :stack_trace) → core::bool* yielding { { { - :iterator.{core::_SyncIterator::_yieldEachIterable} = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:38:12: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + :iterator.{core::_SyncIterator::_yieldEachIterable} = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:38:12: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. yield* getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; @@ -196,7 +196,7 @@ static method test() → dynamic /* originally async */ { return new core::_SyncIterable::•(:sync_op_gen); } function test5() → core::Iterable - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:41:29: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:41:29: Error: A value of type 'Iterable' can't be returned from a function with return type 'Iterable'. - 'Iterable' is from 'dart:core'. Iterable test5() => getIterableNull(); // error ^" in self::getIterableNull() as{TypeError,ForNonNullableByDefault} core::Iterable; @@ -219,7 +219,7 @@ static method test() → dynamic /* originally async */ { } return new core::_SyncIterable::•(:sync_op_gen); } - core::Iterable var1 = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:49:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + core::Iterable var1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:49:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. })(); // error ^" in (() → core::Iterable /* originally sync* */ { @@ -241,7 +241,7 @@ static method test() → dynamic /* originally async */ { })(){() → core::Iterable} as{TypeError,ForNonNullableByDefault} core::Iterable; core::Iterable var2 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::Iterable; core::bool var3 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - core::Iterable var4 = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:54:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + core::Iterable var4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:54:5: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. })(); // error ^" in (() → core::Iterable /* originally sync* */ { @@ -261,7 +261,7 @@ static method test() → dynamic /* originally async */ { } return new core::_SyncIterable::•(:sync_op_gen); })(){() → core::Iterable} as{TypeError,ForNonNullableByDefault} core::Iterable; - core::Iterable var5 = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:55:50: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. + core::Iterable var5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437b.dart:55:50: Error: A value of type 'Iterable' can't be assigned to a variable of type 'Iterable'. - 'Iterable' is from 'dart:core'. Iterable var5 = (() => getIterableNull())(); // error ^" in (() → core::Iterable => self::getIterableNull())(){() → core::Iterable} as{TypeError,ForNonNullableByDefault} core::Iterable; diff --git a/pkg/front_end/testcases/nnbd/issue41437c.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue41437c.dart.strong.expect index 71acc8c2d8d..54bbc9348c5 100644 --- a/pkg/front_end/testcases/nnbd/issue41437c.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue41437c.dart.strong.expect @@ -57,13 +57,13 @@ static method test2() → asy::Stream static method test3() → core::bool return self::getNull() as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; static method test4() → asy::Stream async* { - yield* let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:21:10: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + yield* invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:21:10: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. yield* getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream; } static method test5() → asy::Stream - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:24:25: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:24:25: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. - 'Stream' is from 'dart:async'. Stream test5() => getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream; @@ -81,13 +81,13 @@ static method test() → dynamic async { function test3() → core::bool return self::getNull() as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; function test4() → asy::Stream async* { - yield* let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:38:12: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + yield* invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:38:12: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. yield* getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream; } function test5() → asy::Stream - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:41:27: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:41:27: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. - 'Stream' is from 'dart:async'. Stream test5() => getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream; @@ -96,7 +96,7 @@ static method test() → dynamic async { function test7() → asy::Stream async* { yield* self::getStreamBool(); } - asy::Stream var1 = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:49:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + asy::Stream var1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:49:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. })(); // error ^" in (() → asy::Stream async* { @@ -104,13 +104,13 @@ static method test() → dynamic async { })(){() → asy::Stream} as{TypeError,ForNonNullableByDefault} asy::Stream; asy::Stream var2 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; core::bool var3 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - asy::Stream var4 = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:54:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + asy::Stream var4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:54:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. })(); // error ^" in (() → asy::Stream async* { yield* self::getStreamNull(); })(){() → asy::Stream} as{TypeError,ForNonNullableByDefault} asy::Stream; - asy::Stream var5 = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:55:46: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + asy::Stream var5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:55:46: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. Stream var5 = (() => getStreamNull())(); // error ^" in (() → asy::Stream => self::getStreamNull())(){() → asy::Stream} as{TypeError,ForNonNullableByDefault} asy::Stream; diff --git a/pkg/front_end/testcases/nnbd/issue41437c.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue41437c.dart.strong.transformed.expect index 943f14489bc..afdc2693a22 100644 --- a/pkg/front_end/testcases/nnbd/issue41437c.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41437c.dart.strong.transformed.expect @@ -160,7 +160,7 @@ static method test4() → asy::Stream /* originally async* */ { try { #L4: { - if(:controller.{asy::_AsyncStarStreamController::addStream}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:21:10: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + if(:controller.{asy::_AsyncStarStreamController::addStream}(invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:21:10: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. yield* getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream){(asy::Stream) → core::bool}) @@ -183,7 +183,7 @@ static method test4() → asy::Stream /* originally async* */ { return :controller_stream; } static method test5() → asy::Stream - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:24:25: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:24:25: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. - 'Stream' is from 'dart:async'. Stream test5() => getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream; @@ -285,7 +285,7 @@ static method test() → dynamic /* originally async */ { try { #L8: { - if(:controller.{asy::_AsyncStarStreamController::addStream}(let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:38:12: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + if(:controller.{asy::_AsyncStarStreamController::addStream}(invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:38:12: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. yield* getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream){(asy::Stream) → core::bool}) @@ -308,7 +308,7 @@ static method test() → dynamic /* originally async */ { return :controller_stream; } function test5() → asy::Stream - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:41:27: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:41:27: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. - 'Stream' is from 'dart:async'. Stream test5() => getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream; @@ -347,7 +347,7 @@ static method test() → dynamic /* originally async */ { :controller_stream = :controller.{asy::_AsyncStarStreamController::stream}{asy::Stream}; return :controller_stream; } - asy::Stream var1 = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:49:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + asy::Stream var1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:49:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. })(); // error ^" in (() → asy::Stream /* originally async* */ { @@ -385,7 +385,7 @@ static method test() → dynamic /* originally async */ { })(){() → asy::Stream} as{TypeError,ForNonNullableByDefault} asy::Stream; asy::Stream var2 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; core::bool var3 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - asy::Stream var4 = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:54:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + asy::Stream var4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:54:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. })(); // error ^" in (() → asy::Stream /* originally async* */ { @@ -421,7 +421,7 @@ static method test() → dynamic /* originally async */ { :controller_stream = :controller.{asy::_AsyncStarStreamController::stream}{asy::Stream}; return :controller_stream; })(){() → asy::Stream} as{TypeError,ForNonNullableByDefault} asy::Stream; - asy::Stream var5 = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:55:46: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + asy::Stream var5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:55:46: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. Stream var5 = (() => getStreamNull())(); // error ^" in (() → asy::Stream => self::getStreamNull())(){() → asy::Stream} as{TypeError,ForNonNullableByDefault} asy::Stream; diff --git a/pkg/front_end/testcases/nnbd/issue41437c.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue41437c.dart.weak.expect index 71acc8c2d8d..54bbc9348c5 100644 --- a/pkg/front_end/testcases/nnbd/issue41437c.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue41437c.dart.weak.expect @@ -57,13 +57,13 @@ static method test2() → asy::Stream static method test3() → core::bool return self::getNull() as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; static method test4() → asy::Stream async* { - yield* let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:21:10: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + yield* invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:21:10: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. yield* getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream; } static method test5() → asy::Stream - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:24:25: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:24:25: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. - 'Stream' is from 'dart:async'. Stream test5() => getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream; @@ -81,13 +81,13 @@ static method test() → dynamic async { function test3() → core::bool return self::getNull() as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; function test4() → asy::Stream async* { - yield* let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:38:12: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + yield* invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:38:12: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. yield* getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream; } function test5() → asy::Stream - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:41:27: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:41:27: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. - 'Stream' is from 'dart:async'. Stream test5() => getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream; @@ -96,7 +96,7 @@ static method test() → dynamic async { function test7() → asy::Stream async* { yield* self::getStreamBool(); } - asy::Stream var1 = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:49:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + asy::Stream var1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:49:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. })(); // error ^" in (() → asy::Stream async* { @@ -104,13 +104,13 @@ static method test() → dynamic async { })(){() → asy::Stream} as{TypeError,ForNonNullableByDefault} asy::Stream; asy::Stream var2 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; core::bool var3 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - asy::Stream var4 = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:54:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + asy::Stream var4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:54:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. })(); // error ^" in (() → asy::Stream async* { yield* self::getStreamNull(); })(){() → asy::Stream} as{TypeError,ForNonNullableByDefault} asy::Stream; - asy::Stream var5 = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:55:46: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + asy::Stream var5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:55:46: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. Stream var5 = (() => getStreamNull())(); // error ^" in (() → asy::Stream => self::getStreamNull())(){() → asy::Stream} as{TypeError,ForNonNullableByDefault} asy::Stream; diff --git a/pkg/front_end/testcases/nnbd/issue41437c.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue41437c.dart.weak.transformed.expect index 943f14489bc..afdc2693a22 100644 --- a/pkg/front_end/testcases/nnbd/issue41437c.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41437c.dart.weak.transformed.expect @@ -160,7 +160,7 @@ static method test4() → asy::Stream /* originally async* */ { try { #L4: { - if(:controller.{asy::_AsyncStarStreamController::addStream}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:21:10: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + if(:controller.{asy::_AsyncStarStreamController::addStream}(invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:21:10: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. yield* getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream){(asy::Stream) → core::bool}) @@ -183,7 +183,7 @@ static method test4() → asy::Stream /* originally async* */ { return :controller_stream; } static method test5() → asy::Stream - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:24:25: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:24:25: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. - 'Stream' is from 'dart:async'. Stream test5() => getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream; @@ -285,7 +285,7 @@ static method test() → dynamic /* originally async */ { try { #L8: { - if(:controller.{asy::_AsyncStarStreamController::addStream}(let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:38:12: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + if(:controller.{asy::_AsyncStarStreamController::addStream}(invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:38:12: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. yield* getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream){(asy::Stream) → core::bool}) @@ -308,7 +308,7 @@ static method test() → dynamic /* originally async */ { return :controller_stream; } function test5() → asy::Stream - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:41:27: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:41:27: Error: A value of type 'Stream' can't be returned from a function with return type 'Stream'. - 'Stream' is from 'dart:async'. Stream test5() => getStreamNull(); // error ^" in self::getStreamNull() as{TypeError,ForNonNullableByDefault} asy::Stream; @@ -347,7 +347,7 @@ static method test() → dynamic /* originally async */ { :controller_stream = :controller.{asy::_AsyncStarStreamController::stream}{asy::Stream}; return :controller_stream; } - asy::Stream var1 = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:49:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + asy::Stream var1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:49:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. })(); // error ^" in (() → asy::Stream /* originally async* */ { @@ -385,7 +385,7 @@ static method test() → dynamic /* originally async */ { })(){() → asy::Stream} as{TypeError,ForNonNullableByDefault} asy::Stream; asy::Stream var2 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream; core::bool var3 = (() → dynamic => self::getNull())(){() → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool; - asy::Stream var4 = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:54:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + asy::Stream var4 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:54:5: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. })(); // error ^" in (() → asy::Stream /* originally async* */ { @@ -421,7 +421,7 @@ static method test() → dynamic /* originally async */ { :controller_stream = :controller.{asy::_AsyncStarStreamController::stream}{asy::Stream}; return :controller_stream; })(){() → asy::Stream} as{TypeError,ForNonNullableByDefault} asy::Stream; - asy::Stream var5 = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:55:46: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. + asy::Stream var5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41437c.dart:55:46: Error: A value of type 'Stream' can't be assigned to a variable of type 'Stream'. - 'Stream' is from 'dart:async'. Stream var5 = (() => getStreamNull())(); // error ^" in (() → asy::Stream => self::getStreamNull())(){() → asy::Stream} as{TypeError,ForNonNullableByDefault} asy::Stream; diff --git a/pkg/front_end/testcases/nnbd/issue41495.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue41495.dart.strong.expect index 03414329acc..f5982c71ac3 100644 --- a/pkg/front_end/testcases/nnbd/issue41495.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue41495.dart.strong.expect @@ -28,12 +28,12 @@ class A extends core::Object { static method main() → dynamic {} static method errors() → dynamic { self::A? a1 = new self::A::•() as{ForNonNullableByDefault} self::A?; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:14:6: Error: Property 'c1' cannot be accessed on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:14:6: Error: Property 'c1' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue41495.dart'. Try accessing using ?. instead. a1.c1; ^^" in a1.{self::A::c1}{}.{core::int}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:15:6: Error: Property 'test' cannot be accessed on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:15:6: Error: Property 'test' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue41495.dart'. Try accessing using ?. instead. a1.test; diff --git a/pkg/front_end/testcases/nnbd/issue41495.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue41495.dart.strong.transformed.expect index 0ed12689427..b4e53f7b9f6 100644 --- a/pkg/front_end/testcases/nnbd/issue41495.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41495.dart.strong.transformed.expect @@ -28,12 +28,12 @@ class A extends core::Object { static method main() → dynamic {} static method errors() → dynamic { self::A? a1 = new self::A::•(); - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:14:6: Error: Property 'c1' cannot be accessed on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:14:6: Error: Property 'c1' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue41495.dart'. Try accessing using ?. instead. a1.c1; ^^" in a1.{self::A::c1}{}.{core::int}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:15:6: Error: Property 'test' cannot be accessed on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:15:6: Error: Property 'test' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue41495.dart'. Try accessing using ?. instead. a1.test; diff --git a/pkg/front_end/testcases/nnbd/issue41495.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue41495.dart.weak.expect index 03414329acc..f5982c71ac3 100644 --- a/pkg/front_end/testcases/nnbd/issue41495.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue41495.dart.weak.expect @@ -28,12 +28,12 @@ class A extends core::Object { static method main() → dynamic {} static method errors() → dynamic { self::A? a1 = new self::A::•() as{ForNonNullableByDefault} self::A?; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:14:6: Error: Property 'c1' cannot be accessed on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:14:6: Error: Property 'c1' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue41495.dart'. Try accessing using ?. instead. a1.c1; ^^" in a1.{self::A::c1}{}.{core::int}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:15:6: Error: Property 'test' cannot be accessed on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:15:6: Error: Property 'test' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue41495.dart'. Try accessing using ?. instead. a1.test; diff --git a/pkg/front_end/testcases/nnbd/issue41495.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue41495.dart.weak.transformed.expect index 0ed12689427..b4e53f7b9f6 100644 --- a/pkg/front_end/testcases/nnbd/issue41495.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41495.dart.weak.transformed.expect @@ -28,12 +28,12 @@ class A extends core::Object { static method main() → dynamic {} static method errors() → dynamic { self::A? a1 = new self::A::•(); - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:14:6: Error: Property 'c1' cannot be accessed on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:14:6: Error: Property 'c1' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue41495.dart'. Try accessing using ?. instead. a1.c1; ^^" in a1.{self::A::c1}{}.{core::int}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:15:6: Error: Property 'test' cannot be accessed on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/issue41495.dart:15:6: Error: Property 'test' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue41495.dart'. Try accessing using ?. instead. a1.test; diff --git a/pkg/front_end/testcases/nnbd/issue41697.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue41697.dart.strong.expect index c36ec727bee..2f21afde45b 100644 --- a/pkg/front_end/testcases/nnbd/issue41697.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue41697.dart.strong.expect @@ -39,18 +39,18 @@ static method test1(self::C c) → dynamic { } static method test2(self::C c) → dynamic { (S%) → core::num f1 = c.{self::C::field1} = (S% s) → core::num { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:33:14: Error: Operator '+' cannot be called on 'S' because it is potentially null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:33:14: Error: Operator '+' cannot be called on 'S' because it is potentially null. return s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; }; >(S%, FutureOr) → asy::Future f2 = c.{self::C::field2} = >(S% s, FutureOrt) → asy::Future async { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:36:22: Error: Operator '+' cannot be called on 'num?' because it is potentially null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:36:22: Error: Operator '+' cannot be called on 'num?' because it is potentially null. return (await t) + 1; // error ^" in (await t).{core::num::+}(1){(core::num) → core::num}; }; } static method test3(self::test3::S% s) → dynamic - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:40:33: Error: Operator '+' cannot be called on 'S' because it is potentially null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:40:33: Error: Operator '+' cannot be called on 'S' because it is potentially null. test3(S s) => s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/issue41697.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue41697.dart.strong.transformed.expect index 8b732be57ea..6a230ed03e3 100644 --- a/pkg/front_end/testcases/nnbd/issue41697.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41697.dart.strong.transformed.expect @@ -66,7 +66,7 @@ static method test1(self::C c) → dynamic { } static method test2(self::C c) → dynamic { (S%) → core::num f1 = c.{self::C::field1} = (S% s) → core::num { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:33:14: Error: Operator '+' cannot be called on 'S' because it is potentially null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:33:14: Error: Operator '+' cannot be called on 'S' because it is potentially null. return s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; }; @@ -83,11 +83,10 @@ static method test2(self::C c) → dynamic { try { #L2: { - final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:36:22: Error: Operator '+' cannot be called on 'num?' because it is potentially null. + [yield] let dynamic #t2 = asy::_awaitHelper(t, :async_op_then, :async_op_error, :async_op) in null; + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:36:22: Error: Operator '+' cannot be called on 'num?' because it is potentially null. return (await t) + 1; // error - ^"; - [yield] let dynamic #t4 = asy::_awaitHelper(t, :async_op_then, :async_op_error, :async_op) in null; - :return_value = _in::unsafeCast(:result).{core::num::+}(1){(core::num) → core::num}; + ^" in _in::unsafeCast(:result).{core::num::+}(1){(core::num) → core::num}; break #L2; } asy::_completeOnAsyncReturn(:async_future, :return_value, :is_sync); @@ -104,7 +103,7 @@ static method test2(self::C c) → dynamic { }; } static method test3(self::test3::S% s) → dynamic - return let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:40:33: Error: Operator '+' cannot be called on 'S' because it is potentially null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:40:33: Error: Operator '+' cannot be called on 'S' because it is potentially null. test3(S s) => s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/issue41697.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue41697.dart.weak.expect index c36ec727bee..2f21afde45b 100644 --- a/pkg/front_end/testcases/nnbd/issue41697.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue41697.dart.weak.expect @@ -39,18 +39,18 @@ static method test1(self::C c) → dynamic { } static method test2(self::C c) → dynamic { (S%) → core::num f1 = c.{self::C::field1} = (S% s) → core::num { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:33:14: Error: Operator '+' cannot be called on 'S' because it is potentially null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:33:14: Error: Operator '+' cannot be called on 'S' because it is potentially null. return s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; }; >(S%, FutureOr) → asy::Future f2 = c.{self::C::field2} = >(S% s, FutureOrt) → asy::Future async { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:36:22: Error: Operator '+' cannot be called on 'num?' because it is potentially null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:36:22: Error: Operator '+' cannot be called on 'num?' because it is potentially null. return (await t) + 1; // error ^" in (await t).{core::num::+}(1){(core::num) → core::num}; }; } static method test3(self::test3::S% s) → dynamic - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:40:33: Error: Operator '+' cannot be called on 'S' because it is potentially null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:40:33: Error: Operator '+' cannot be called on 'S' because it is potentially null. test3(S s) => s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/issue41697.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue41697.dart.weak.transformed.expect index 8b732be57ea..6a230ed03e3 100644 --- a/pkg/front_end/testcases/nnbd/issue41697.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41697.dart.weak.transformed.expect @@ -66,7 +66,7 @@ static method test1(self::C c) → dynamic { } static method test2(self::C c) → dynamic { (S%) → core::num f1 = c.{self::C::field1} = (S% s) → core::num { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:33:14: Error: Operator '+' cannot be called on 'S' because it is potentially null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:33:14: Error: Operator '+' cannot be called on 'S' because it is potentially null. return s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; }; @@ -83,11 +83,10 @@ static method test2(self::C c) → dynamic { try { #L2: { - final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:36:22: Error: Operator '+' cannot be called on 'num?' because it is potentially null. + [yield] let dynamic #t2 = asy::_awaitHelper(t, :async_op_then, :async_op_error, :async_op) in null; + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:36:22: Error: Operator '+' cannot be called on 'num?' because it is potentially null. return (await t) + 1; // error - ^"; - [yield] let dynamic #t4 = asy::_awaitHelper(t, :async_op_then, :async_op_error, :async_op) in null; - :return_value = _in::unsafeCast(:result).{core::num::+}(1){(core::num) → core::num}; + ^" in _in::unsafeCast(:result).{core::num::+}(1){(core::num) → core::num}; break #L2; } asy::_completeOnAsyncReturn(:async_future, :return_value, :is_sync); @@ -104,7 +103,7 @@ static method test2(self::C c) → dynamic { }; } static method test3(self::test3::S% s) → dynamic - return let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:40:33: Error: Operator '+' cannot be called on 'S' because it is potentially null. + return invalid-expression "pkg/front_end/testcases/nnbd/issue41697.dart:40:33: Error: Operator '+' cannot be called on 'S' because it is potentially null. test3(S s) => s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/issue41697b.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue41697b.dart.strong.expect index 62b372d3ae1..e45354af0e4 100644 --- a/pkg/front_end/testcases/nnbd/issue41697b.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue41697b.dart.strong.expect @@ -17,7 +17,7 @@ static method test1(self::test1::S s) → dynamic { core::num t = s.{core::num::+}(1){(core::num) → core::num}; } static method test2(self::test2::S% s) → dynamic { - core::num t = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:10:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. + core::num t = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:10:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. var t = s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; } @@ -25,7 +25,7 @@ static method test3(self::test3::S s) → dynamic { core::int t = s.{core::num::+}(1){(core::num) → core::int}; } static method test4(self::test4::S% s) → dynamic { - core::num t = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:18:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. + core::num t = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:18:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. var t = s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; } diff --git a/pkg/front_end/testcases/nnbd/issue41697b.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue41697b.dart.strong.transformed.expect index 62b372d3ae1..e45354af0e4 100644 --- a/pkg/front_end/testcases/nnbd/issue41697b.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41697b.dart.strong.transformed.expect @@ -17,7 +17,7 @@ static method test1(self::test1::S s) → dynamic { core::num t = s.{core::num::+}(1){(core::num) → core::num}; } static method test2(self::test2::S% s) → dynamic { - core::num t = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:10:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. + core::num t = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:10:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. var t = s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; } @@ -25,7 +25,7 @@ static method test3(self::test3::S s) → dynamic { core::int t = s.{core::num::+}(1){(core::num) → core::int}; } static method test4(self::test4::S% s) → dynamic { - core::num t = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:18:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. + core::num t = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:18:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. var t = s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; } diff --git a/pkg/front_end/testcases/nnbd/issue41697b.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue41697b.dart.weak.expect index 62b372d3ae1..e45354af0e4 100644 --- a/pkg/front_end/testcases/nnbd/issue41697b.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue41697b.dart.weak.expect @@ -17,7 +17,7 @@ static method test1(self::test1::S s) → dynamic { core::num t = s.{core::num::+}(1){(core::num) → core::num}; } static method test2(self::test2::S% s) → dynamic { - core::num t = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:10:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. + core::num t = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:10:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. var t = s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; } @@ -25,7 +25,7 @@ static method test3(self::test3::S s) → dynamic { core::int t = s.{core::num::+}(1){(core::num) → core::int}; } static method test4(self::test4::S% s) → dynamic { - core::num t = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:18:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. + core::num t = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:18:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. var t = s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; } diff --git a/pkg/front_end/testcases/nnbd/issue41697b.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue41697b.dart.weak.transformed.expect index 62b372d3ae1..e45354af0e4 100644 --- a/pkg/front_end/testcases/nnbd/issue41697b.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41697b.dart.weak.transformed.expect @@ -17,7 +17,7 @@ static method test1(self::test1::S s) → dynamic { core::num t = s.{core::num::+}(1){(core::num) → core::num}; } static method test2(self::test2::S% s) → dynamic { - core::num t = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:10:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. + core::num t = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:10:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. var t = s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; } @@ -25,7 +25,7 @@ static method test3(self::test3::S s) → dynamic { core::int t = s.{core::num::+}(1){(core::num) → core::int}; } static method test4(self::test4::S% s) → dynamic { - core::num t = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:18:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. + core::num t = invalid-expression "pkg/front_end/testcases/nnbd/issue41697b.dart:18:13: Error: Operator '+' cannot be called on 'S' because it is potentially null. var t = s + 1; // error ^" in s.{core::num::+}(1){(core::num) → core::num}; } diff --git a/pkg/front_end/testcases/nnbd/issue41700b.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue41700b.dart.strong.expect index e24bca3a4eb..4ca67c08f83 100644 --- a/pkg/front_end/testcases/nnbd/issue41700b.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue41700b.dart.strong.expect @@ -28,7 +28,7 @@ class Null extends core::Object { ; } static method test() → dynamic { - self::Null x = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable. + self::Null x = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable. - 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'. Null x = null; ^" in null as{TypeError,ForNonNullableByDefault} self::Null; diff --git a/pkg/front_end/testcases/nnbd/issue41700b.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue41700b.dart.strong.transformed.expect index ebee0fcf878..2ef3439df97 100644 --- a/pkg/front_end/testcases/nnbd/issue41700b.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41700b.dart.strong.transformed.expect @@ -28,10 +28,10 @@ class Null extends core::Object { ; } static method test() → dynamic { - self::Null x = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable. + self::Null x = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable. - 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'. Null x = null; - ^" in let Null #t2 = null in #t2 == null ?{self::Null} #t2 as{TypeError,ForNonNullableByDefault} self::Null : #t2{self::Null}; + ^" in let Null #t1 = null in #t1 == null ?{self::Null} #t1 as{TypeError,ForNonNullableByDefault} self::Null : #t1{self::Null}; invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:9:5: Error: The method 'foo' isn't defined for the class 'Null'. - 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'. Try correcting the name to the name of an existing method, or defining a method named 'foo'. @@ -45,10 +45,3 @@ Try correcting the name to the name of an existing method, or defining a method ^^^"; } static method main() → dynamic {} - - -Extra constant evaluation status: -Evaluated: EqualsNull @ org-dartlang-testcase:///issue41700b.dart:8:12 -> BoolConstant(true) -Evaluated: VariableGet @ org-dartlang-testcase:///issue41700b.dart:8:12 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///issue41700b.dart:8:12 -> NullConstant(null) -Extra constant evaluation: evaluated: 7, effectively constant: 3 diff --git a/pkg/front_end/testcases/nnbd/issue41700b.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue41700b.dart.weak.expect index e24bca3a4eb..4ca67c08f83 100644 --- a/pkg/front_end/testcases/nnbd/issue41700b.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue41700b.dart.weak.expect @@ -28,7 +28,7 @@ class Null extends core::Object { ; } static method test() → dynamic { - self::Null x = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable. + self::Null x = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable. - 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'. Null x = null; ^" in null as{TypeError,ForNonNullableByDefault} self::Null; diff --git a/pkg/front_end/testcases/nnbd/issue41700b.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue41700b.dart.weak.transformed.expect index 068a09a86aa..0f1f529a93b 100644 --- a/pkg/front_end/testcases/nnbd/issue41700b.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue41700b.dart.weak.transformed.expect @@ -28,7 +28,7 @@ class Null extends core::Object { ; } static method test() → dynamic { - self::Null x = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable. + self::Null x = invalid-expression "pkg/front_end/testcases/nnbd/issue41700b.dart:8:12: Error: The value 'null' can't be assigned to a variable of type 'Null' because 'Null' is not nullable. - 'Null' is from 'pkg/front_end/testcases/nnbd/issue41700b.dart'. Null x = null; ^" in null; diff --git a/pkg/front_end/testcases/nnbd/issue42089.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue42089.dart.strong.expect index 2c96e713575..1c0141129cf 100644 --- a/pkg/front_end/testcases/nnbd/issue42089.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue42089.dart.strong.expect @@ -17,11 +17,11 @@ import "dart:core" as core; static method test(self::test::X? x) → dynamic { if(x is{ForNonNullableByDefault} core::String?) { - core::Object o = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. + core::Object o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. Object o = x; ^" in x{self::test::X? & core::String? /* '?' & '?' = '?' */} as{TypeError,ForNonNullableByDefault} core::Object; - o = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. + o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. o = x; ^" in x{self::test::X? & core::String? /* '?' & '?' = '?' */} as{TypeError,ForNonNullableByDefault} core::Object; diff --git a/pkg/front_end/testcases/nnbd/issue42089.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue42089.dart.strong.transformed.expect index d066ef6beda..0875ea7cae1 100644 --- a/pkg/front_end/testcases/nnbd/issue42089.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue42089.dart.strong.transformed.expect @@ -17,14 +17,14 @@ import "dart:core" as core; static method test(self::test::X? x) → dynamic { if(x is{ForNonNullableByDefault} core::String?) { - core::Object o = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. + core::Object o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. Object o = x; - ^" in let self::test::X? & core::String? /* '?' & '?' = '?' */ #t2 = x{self::test::X? & core::String? /* '?' & '?' = '?' */} in #t2 == null ?{core::Object} #t2 as{TypeError,ForNonNullableByDefault} core::Object : #t2{core::Object}; - o = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. + ^" in let self::test::X? & core::String? /* '?' & '?' = '?' */ #t1 = x{self::test::X? & core::String? /* '?' & '?' = '?' */} in #t1 == null ?{core::Object} #t1 as{TypeError,ForNonNullableByDefault} core::Object : #t1{core::Object}; + o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. o = x; - ^" in let self::test::X? & core::String? /* '?' & '?' = '?' */ #t4 = x{self::test::X? & core::String? /* '?' & '?' = '?' */} in #t4 == null ?{core::Object} #t4 as{TypeError,ForNonNullableByDefault} core::Object : #t4{core::Object}; + ^" in let self::test::X? & core::String? /* '?' & '?' = '?' */ #t2 = x{self::test::X? & core::String? /* '?' & '?' = '?' */} in #t2 == null ?{core::Object} #t2 as{TypeError,ForNonNullableByDefault} core::Object : #t2{core::Object}; } } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/issue42089.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue42089.dart.weak.expect index 2c96e713575..1c0141129cf 100644 --- a/pkg/front_end/testcases/nnbd/issue42089.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue42089.dart.weak.expect @@ -17,11 +17,11 @@ import "dart:core" as core; static method test(self::test::X? x) → dynamic { if(x is{ForNonNullableByDefault} core::String?) { - core::Object o = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. + core::Object o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. Object o = x; ^" in x{self::test::X? & core::String? /* '?' & '?' = '?' */} as{TypeError,ForNonNullableByDefault} core::Object; - o = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. + o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. o = x; ^" in x{self::test::X? & core::String? /* '?' & '?' = '?' */} as{TypeError,ForNonNullableByDefault} core::Object; diff --git a/pkg/front_end/testcases/nnbd/issue42089.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue42089.dart.weak.transformed.expect index dcf8b9d08e8..981ba926d57 100644 --- a/pkg/front_end/testcases/nnbd/issue42089.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue42089.dart.weak.transformed.expect @@ -17,11 +17,11 @@ import "dart:core" as core; static method test(self::test::X? x) → dynamic { if(x is{ForNonNullableByDefault} core::String?) { - core::Object o = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. + core::Object o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:7:16: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. Object o = x; ^" in x{self::test::X? & core::String? /* '?' & '?' = '?' */}; - o = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. + o = invalid-expression "pkg/front_end/testcases/nnbd/issue42089.dart:8:9: Error: A value of type 'X?' can't be assigned to a variable of type 'Object' because 'X?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. o = x; ^" in x{self::test::X? & core::String? /* '?' & '?' = '?' */}; diff --git a/pkg/front_end/testcases/nnbd/issue42362.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue42362.dart.strong.expect index 8ac17aa3206..c6656a8ce50 100644 --- a/pkg/front_end/testcases/nnbd/issue42362.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue42362.dart.strong.expect @@ -117,12 +117,12 @@ class A extends core::Object { : self::A::i = i, super core::Object::•() ; constructor constructor5([core::int? i = #C1]) → self::A - : self::A::i = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. : this.i = i; // error ^" in i as{TypeError,ForNonNullableByDefault} core::int, super core::Object::•() ; constructor constructor6({core::int? i = #C1}) → self::A - : self::A::i = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. : this.i = i; // error ^" in i as{TypeError,ForNonNullableByDefault} core::int, super core::Object::•() ; @@ -184,12 +184,12 @@ class C extends core::Object implements self::B { : self::C::i = i, super core::Object::•() ; constructor constructor5([core::int? i = #C1]) → self::C - : self::C::i = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. C.constructor5([int? i]) : this.i = i; // error ^" in i as{TypeError,ForNonNullableByDefault} core::int, super core::Object::•() ; constructor constructor6({core::int? i = #C1}) → self::C - : self::C::i = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. C.constructor6({int? i}) : this.i = i; // error ^" in i as{TypeError,ForNonNullableByDefault} core::int, super core::Object::•() ; diff --git a/pkg/front_end/testcases/nnbd/issue42362.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue42362.dart.strong.transformed.expect index e39daa03755..f3893aaa0a0 100644 --- a/pkg/front_end/testcases/nnbd/issue42362.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue42362.dart.strong.transformed.expect @@ -117,14 +117,14 @@ class A extends core::Object { : self::A::i = i, super core::Object::•() ; constructor constructor5([core::int? i = #C1]) → self::A - : self::A::i = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. : this.i = i; // error - ^" in let core::int? #t2 = i in #t2 == null ?{core::int} #t2 as{TypeError,ForNonNullableByDefault} core::int : #t2{core::int}, super core::Object::•() + ^" in let core::int? #t1 = i in #t1 == null ?{core::int} #t1 as{TypeError,ForNonNullableByDefault} core::int : #t1{core::int}, super core::Object::•() ; constructor constructor6({core::int? i = #C1}) → self::A - : self::A::i = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. : this.i = i; // error - ^" in let core::int? #t4 = i in #t4 == null ?{core::int} #t4 as{TypeError,ForNonNullableByDefault} core::int : #t4{core::int}, super core::Object::•() + ^" in let core::int? #t2 = i in #t2 == null ?{core::int} #t2 as{TypeError,ForNonNullableByDefault} core::int : #t2{core::int}, super core::Object::•() ; constructor constructor7({required core::int i = #C1}) → self::A : self::A::i = i, super core::Object::•() @@ -184,14 +184,14 @@ class C extends core::Object implements self::B { : self::C::i = i, super core::Object::•() ; constructor constructor5([core::int? i = #C1]) → self::C - : self::C::i = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. C.constructor5([int? i]) : this.i = i; // error - ^" in let core::int? #t6 = i in #t6 == null ?{core::int} #t6 as{TypeError,ForNonNullableByDefault} core::int : #t6{core::int}, super core::Object::•() + ^" in let core::int? #t3 = i in #t3 == null ?{core::int} #t3 as{TypeError,ForNonNullableByDefault} core::int : #t3{core::int}, super core::Object::•() ; constructor constructor6({core::int? i = #C1}) → self::C - : self::C::i = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. C.constructor6({int? i}) : this.i = i; // error - ^" in let core::int? #t8 = i in #t8 == null ?{core::int} #t8 as{TypeError,ForNonNullableByDefault} core::int : #t8{core::int}, super core::Object::•() + ^" in let core::int? #t4 = i in #t4 == null ?{core::int} #t4 as{TypeError,ForNonNullableByDefault} core::int : #t4{core::int}, super core::Object::•() ; constructor constructor7({required core::int i = #C1}) → self::C : self::C::i = i, super core::Object::•() diff --git a/pkg/front_end/testcases/nnbd/issue42362.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue42362.dart.weak.expect index 8ac17aa3206..c6656a8ce50 100644 --- a/pkg/front_end/testcases/nnbd/issue42362.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue42362.dart.weak.expect @@ -117,12 +117,12 @@ class A extends core::Object { : self::A::i = i, super core::Object::•() ; constructor constructor5([core::int? i = #C1]) → self::A - : self::A::i = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. : this.i = i; // error ^" in i as{TypeError,ForNonNullableByDefault} core::int, super core::Object::•() ; constructor constructor6({core::int? i = #C1}) → self::A - : self::A::i = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. : this.i = i; // error ^" in i as{TypeError,ForNonNullableByDefault} core::int, super core::Object::•() ; @@ -184,12 +184,12 @@ class C extends core::Object implements self::B { : self::C::i = i, super core::Object::•() ; constructor constructor5([core::int? i = #C1]) → self::C - : self::C::i = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. C.constructor5([int? i]) : this.i = i; // error ^" in i as{TypeError,ForNonNullableByDefault} core::int, super core::Object::•() ; constructor constructor6({core::int? i = #C1}) → self::C - : self::C::i = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. C.constructor6({int? i}) : this.i = i; // error ^" in i as{TypeError,ForNonNullableByDefault} core::int, super core::Object::•() ; diff --git a/pkg/front_end/testcases/nnbd/issue42362.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue42362.dart.weak.transformed.expect index 621f17d9bad..a487c1a3af2 100644 --- a/pkg/front_end/testcases/nnbd/issue42362.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue42362.dart.weak.transformed.expect @@ -117,12 +117,12 @@ class A extends core::Object { : self::A::i = i, super core::Object::•() ; constructor constructor5([core::int? i = #C1]) → self::A - : self::A::i = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:19:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. : this.i = i; // error ^" in i, super core::Object::•() ; constructor constructor6({core::int? i = #C1}) → self::A - : self::A::i = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::A::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:22:18: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. : this.i = i; // error ^" in i, super core::Object::•() ; @@ -184,12 +184,12 @@ class C extends core::Object implements self::B { : self::C::i = i, super core::Object::•() ; constructor constructor5([core::int? i = #C1]) → self::C - : self::C::i = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:85:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. C.constructor5([int? i]) : this.i = i; // error ^" in i, super core::Object::•() ; constructor constructor6({core::int? i = #C1}) → self::C - : self::C::i = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. + : self::C::i = invalid-expression "pkg/front_end/testcases/nnbd/issue42362.dart:87:39: Error: A value of type 'int?' can't be assigned to a variable of type 'int' because 'int?' is nullable and 'int' isn't. C.constructor6({int? i}) : this.i = i; // error ^" in i, super core::Object::•() ; diff --git a/pkg/front_end/testcases/nnbd/issue42459.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue42459.dart.strong.expect index 79b97ebb994..fe7ca6792d1 100644 --- a/pkg/front_end/testcases/nnbd/issue42459.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue42459.dart.strong.expect @@ -15,7 +15,7 @@ static method test() → dynamic { return 1; } else { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42459.dart:10:7: Error: A value must be explicitly returned from a non-void function. + return invalid-expression "pkg/front_end/testcases/nnbd/issue42459.dart:10:7: Error: A value must be explicitly returned from a non-void function. return; ^" in null; } diff --git a/pkg/front_end/testcases/nnbd/issue42459.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue42459.dart.strong.transformed.expect index 79b97ebb994..fe7ca6792d1 100644 --- a/pkg/front_end/testcases/nnbd/issue42459.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue42459.dart.strong.transformed.expect @@ -15,7 +15,7 @@ static method test() → dynamic { return 1; } else { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42459.dart:10:7: Error: A value must be explicitly returned from a non-void function. + return invalid-expression "pkg/front_end/testcases/nnbd/issue42459.dart:10:7: Error: A value must be explicitly returned from a non-void function. return; ^" in null; } diff --git a/pkg/front_end/testcases/nnbd/issue42459.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue42459.dart.weak.expect index 79b97ebb994..fe7ca6792d1 100644 --- a/pkg/front_end/testcases/nnbd/issue42459.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue42459.dart.weak.expect @@ -15,7 +15,7 @@ static method test() → dynamic { return 1; } else { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42459.dart:10:7: Error: A value must be explicitly returned from a non-void function. + return invalid-expression "pkg/front_end/testcases/nnbd/issue42459.dart:10:7: Error: A value must be explicitly returned from a non-void function. return; ^" in null; } diff --git a/pkg/front_end/testcases/nnbd/issue42459.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue42459.dart.weak.transformed.expect index 79b97ebb994..fe7ca6792d1 100644 --- a/pkg/front_end/testcases/nnbd/issue42459.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue42459.dart.weak.transformed.expect @@ -15,7 +15,7 @@ static method test() → dynamic { return 1; } else { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42459.dart:10:7: Error: A value must be explicitly returned from a non-void function. + return invalid-expression "pkg/front_end/testcases/nnbd/issue42459.dart:10:7: Error: A value must be explicitly returned from a non-void function. return; ^" in null; } diff --git a/pkg/front_end/testcases/nnbd/issue42546.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue42546.dart.strong.expect index cb4208d3f35..8c2a32881cf 100644 --- a/pkg/front_end/testcases/nnbd/issue42546.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue42546.dart.strong.expect @@ -38,11 +38,11 @@ class Divergent extends core::Object implemen return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C12, 0, #C3, #C6, core::Map::unmodifiable(#C7))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream>>; } static method test() → dynamic async { - asy::Future>> x = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42546.dart:14:75: Error: A value of type 'Future>>>' can't be assigned to a variable of type 'Future>>'. + asy::Future>> x = invalid-expression "pkg/front_end/testcases/nnbd/issue42546.dart:14:75: Error: A value of type 'Future>>>' can't be assigned to a variable of type 'Future>>'. - 'Future' is from 'dart:async'. - 'Divergent' is from 'pkg/front_end/testcases/nnbd/issue42546.dart'. Future>> x = (() async => new Divergent())(); - ^" in (() → asy::Future>>> async => let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue42546.dart:14:58: Error: A value of type 'Divergent' can't be returned from an async function with return type 'Future>>>'. + ^" in (() → asy::Future>>> async => invalid-expression "pkg/front_end/testcases/nnbd/issue42546.dart:14:58: Error: A value of type 'Divergent' can't be returned from an async function with return type 'Future>>>'. - 'Divergent' is from 'pkg/front_end/testcases/nnbd/issue42546.dart'. - 'Future' is from 'dart:async'. Future>> x = (() async => new Divergent())(); diff --git a/pkg/front_end/testcases/nnbd/issue42546.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue42546.dart.strong.transformed.expect new file mode 100644 index 00000000000..204fd46bef8 --- /dev/null +++ b/pkg/front_end/testcases/nnbd/issue42546.dart.strong.transformed.expect @@ -0,0 +1,115 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/nnbd/issue42546.dart:14:58: Error: A value of type 'Divergent' can't be returned from an async function with return type 'Future>>>'. +// - 'Divergent' is from 'pkg/front_end/testcases/nnbd/issue42546.dart'. +// - 'Future' is from 'dart:async'. +// Future>> x = (() async => new Divergent())(); +// ^ +// +// pkg/front_end/testcases/nnbd/issue42546.dart:14:75: Error: A value of type 'Future>>>' can't be assigned to a variable of type 'Future>>'. +// - 'Future' is from 'dart:async'. +// - 'Divergent' is from 'pkg/front_end/testcases/nnbd/issue42546.dart'. +// Future>> x = (() async => new Divergent())(); +// ^ +// +import self as self; +import "dart:core" as core; +import "dart:async" as asy; + +import "dart:async"; + +class Divergent extends core::Object implements asy::Future>> { + synthetic constructor •() → self::Divergent + : super core::Object::•() + ; + method noSuchMethod(core::Invocation invocation) → dynamic + return super.{core::Object::noSuchMethod}(invocation); + no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future>> + return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; + no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future>> + return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C7))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; + no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl () →? FutureOr>>onTimeout = #C1}) → asy::Future>> + return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C9: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; + no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ then((self::Divergent>) → FutureOronValue, {core::Function? onError = #C1}) → asy::Future + return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C10, 0, core::List::unmodifiable(core::_GrowableList::_literal1(self::Divergent::then::R%)), core::List::unmodifiable(core::_GrowableList::_literal1(onValue)), core::Map::unmodifiable({#C11: onError}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; + no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream>> + return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C12, 0, #C3, #C6, core::Map::unmodifiable(#C7))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream>>; +} +static method test() → dynamic /* originally async */ { + final asy::_Future :async_future = new asy::_Future::•(); + core::bool* :is_sync = false; + FutureOr? :return_value; + (dynamic) → dynamic :async_op_then; + (core::Object, core::StackTrace) → dynamic :async_op_error; + core::int :await_jump_var = 0; + dynamic :await_ctx_var; + function :async_op([dynamic :result, dynamic :exception, dynamic :stack_trace]) → dynamic yielding + try { + #L1: + { + asy::Future>> x = invalid-expression "pkg/front_end/testcases/nnbd/issue42546.dart:14:75: Error: A value of type 'Future>>>' can't be assigned to a variable of type 'Future>>'. + - 'Future' is from 'dart:async'. + - 'Divergent' is from 'pkg/front_end/testcases/nnbd/issue42546.dart'. + Future>> x = (() async => new Divergent())(); + ^" in (() → asy::Future>>> /* originally async */ { + final asy::_Future>>> :async_future = new asy::_Future::•>>>(); + core::bool* :is_sync = false; + FutureOr>>>? :return_value; + (dynamic) → dynamic :async_op_then; + (core::Object, core::StackTrace) → dynamic :async_op_error; + core::int :await_jump_var = 0; + dynamic :await_ctx_var; + function :async_op([dynamic :result, dynamic :exception, dynamic :stack_trace]) → dynamic yielding + try { + #L2: + { + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/issue42546.dart:14:58: Error: A value of type 'Divergent' can't be returned from an async function with return type 'Future>>>'. + - 'Divergent' is from 'pkg/front_end/testcases/nnbd/issue42546.dart'. + - 'Future' is from 'dart:async'. + Future>> x = (() async => new Divergent())(); + ^" in new self::Divergent::•() as{TypeError,ForNonNullableByDefault} self::Divergent>>; + break #L2; + } + asy::_completeOnAsyncReturn(:async_future, :return_value, :is_sync); + return; + } + on dynamic catch(dynamic exception, core::StackTrace stack_trace) { + asy::_completeOnAsyncError(:async_future, exception, stack_trace, :is_sync); + } + :async_op_then = asy::_asyncThenWrapperHelper(:async_op); + :async_op_error = asy::_asyncErrorWrapperHelper(:async_op); + :async_op(){() → dynamic}; + :is_sync = true; + return :async_future; + })(){() → asy::Future>>>} as{TypeError,ForNonNullableByDefault} asy::Future>>; + } + asy::_completeOnAsyncReturn(:async_future, :return_value, :is_sync); + return; + } + on dynamic catch(dynamic exception, core::StackTrace stack_trace) { + asy::_completeOnAsyncError(:async_future, exception, stack_trace, :is_sync); + } + :async_op_then = asy::_asyncThenWrapperHelper(:async_op); + :async_op_error = asy::_asyncErrorWrapperHelper(:async_op); + :async_op(){() → dynamic}; + :is_sync = true; + return :async_future; +} +static method main() → dynamic {} + +constants { + #C1 = null + #C2 = #catchError + #C3 = [] + #C4 = #test + #C5 = #whenComplete + #C6 = [] + #C7 = core::_ImmutableMap {_kvPairs:#C6} + #C8 = #timeout + #C9 = #onTimeout + #C10 = #then + #C11 = #onError + #C12 = #asStream +} diff --git a/pkg/front_end/testcases/nnbd/issue42546.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue42546.dart.weak.expect index cb4208d3f35..8c2a32881cf 100644 --- a/pkg/front_end/testcases/nnbd/issue42546.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue42546.dart.weak.expect @@ -38,11 +38,11 @@ class Divergent extends core::Object implemen return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C12, 0, #C3, #C6, core::Map::unmodifiable(#C7))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream>>; } static method test() → dynamic async { - asy::Future>> x = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42546.dart:14:75: Error: A value of type 'Future>>>' can't be assigned to a variable of type 'Future>>'. + asy::Future>> x = invalid-expression "pkg/front_end/testcases/nnbd/issue42546.dart:14:75: Error: A value of type 'Future>>>' can't be assigned to a variable of type 'Future>>'. - 'Future' is from 'dart:async'. - 'Divergent' is from 'pkg/front_end/testcases/nnbd/issue42546.dart'. Future>> x = (() async => new Divergent())(); - ^" in (() → asy::Future>>> async => let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue42546.dart:14:58: Error: A value of type 'Divergent' can't be returned from an async function with return type 'Future>>>'. + ^" in (() → asy::Future>>> async => invalid-expression "pkg/front_end/testcases/nnbd/issue42546.dart:14:58: Error: A value of type 'Divergent' can't be returned from an async function with return type 'Future>>>'. - 'Divergent' is from 'pkg/front_end/testcases/nnbd/issue42546.dart'. - 'Future' is from 'dart:async'. Future>> x = (() async => new Divergent())(); diff --git a/pkg/front_end/testcases/nnbd/issue42546.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue42546.dart.weak.transformed.expect new file mode 100644 index 00000000000..204fd46bef8 --- /dev/null +++ b/pkg/front_end/testcases/nnbd/issue42546.dart.weak.transformed.expect @@ -0,0 +1,115 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/nnbd/issue42546.dart:14:58: Error: A value of type 'Divergent' can't be returned from an async function with return type 'Future>>>'. +// - 'Divergent' is from 'pkg/front_end/testcases/nnbd/issue42546.dart'. +// - 'Future' is from 'dart:async'. +// Future>> x = (() async => new Divergent())(); +// ^ +// +// pkg/front_end/testcases/nnbd/issue42546.dart:14:75: Error: A value of type 'Future>>>' can't be assigned to a variable of type 'Future>>'. +// - 'Future' is from 'dart:async'. +// - 'Divergent' is from 'pkg/front_end/testcases/nnbd/issue42546.dart'. +// Future>> x = (() async => new Divergent())(); +// ^ +// +import self as self; +import "dart:core" as core; +import "dart:async" as asy; + +import "dart:async"; + +class Divergent extends core::Object implements asy::Future>> { + synthetic constructor •() → self::Divergent + : super core::Object::•() + ; + method noSuchMethod(core::Invocation invocation) → dynamic + return super.{core::Object::noSuchMethod}(invocation); + no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ catchError(core::Function onError, {(core::Object) →? core::bool test = #C1}) → asy::Future>> + return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(onError)), core::Map::unmodifiable({#C4: test}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; + no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ whenComplete(() → FutureOraction) → asy::Future>> + return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C5, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(action)), core::Map::unmodifiable(#C7))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; + no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ timeout(core::Duration timeLimit, {generic-covariant-impl () →? FutureOr>>onTimeout = #C1}) → asy::Future>> + return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 0, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(timeLimit)), core::Map::unmodifiable({#C9: onTimeout}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future>>; + no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ then((self::Divergent>) → FutureOronValue, {core::Function? onError = #C1}) → asy::Future + return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C10, 0, core::List::unmodifiable(core::_GrowableList::_literal1(self::Divergent::then::R%)), core::List::unmodifiable(core::_GrowableList::_literal1(onValue)), core::Map::unmodifiable({#C11: onError}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Future; + no-such-method-forwarder method /* from org-dartlang-sdk:///sdk/lib/async/future.dart */ asStream() → asy::Stream>> + return this.{self::Divergent::noSuchMethod}(new core::_InvocationMirror::_withType(#C12, 0, #C3, #C6, core::Map::unmodifiable(#C7))){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} asy::Stream>>; +} +static method test() → dynamic /* originally async */ { + final asy::_Future :async_future = new asy::_Future::•(); + core::bool* :is_sync = false; + FutureOr? :return_value; + (dynamic) → dynamic :async_op_then; + (core::Object, core::StackTrace) → dynamic :async_op_error; + core::int :await_jump_var = 0; + dynamic :await_ctx_var; + function :async_op([dynamic :result, dynamic :exception, dynamic :stack_trace]) → dynamic yielding + try { + #L1: + { + asy::Future>> x = invalid-expression "pkg/front_end/testcases/nnbd/issue42546.dart:14:75: Error: A value of type 'Future>>>' can't be assigned to a variable of type 'Future>>'. + - 'Future' is from 'dart:async'. + - 'Divergent' is from 'pkg/front_end/testcases/nnbd/issue42546.dart'. + Future>> x = (() async => new Divergent())(); + ^" in (() → asy::Future>>> /* originally async */ { + final asy::_Future>>> :async_future = new asy::_Future::•>>>(); + core::bool* :is_sync = false; + FutureOr>>>? :return_value; + (dynamic) → dynamic :async_op_then; + (core::Object, core::StackTrace) → dynamic :async_op_error; + core::int :await_jump_var = 0; + dynamic :await_ctx_var; + function :async_op([dynamic :result, dynamic :exception, dynamic :stack_trace]) → dynamic yielding + try { + #L2: + { + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/issue42546.dart:14:58: Error: A value of type 'Divergent' can't be returned from an async function with return type 'Future>>>'. + - 'Divergent' is from 'pkg/front_end/testcases/nnbd/issue42546.dart'. + - 'Future' is from 'dart:async'. + Future>> x = (() async => new Divergent())(); + ^" in new self::Divergent::•() as{TypeError,ForNonNullableByDefault} self::Divergent>>; + break #L2; + } + asy::_completeOnAsyncReturn(:async_future, :return_value, :is_sync); + return; + } + on dynamic catch(dynamic exception, core::StackTrace stack_trace) { + asy::_completeOnAsyncError(:async_future, exception, stack_trace, :is_sync); + } + :async_op_then = asy::_asyncThenWrapperHelper(:async_op); + :async_op_error = asy::_asyncErrorWrapperHelper(:async_op); + :async_op(){() → dynamic}; + :is_sync = true; + return :async_future; + })(){() → asy::Future>>>} as{TypeError,ForNonNullableByDefault} asy::Future>>; + } + asy::_completeOnAsyncReturn(:async_future, :return_value, :is_sync); + return; + } + on dynamic catch(dynamic exception, core::StackTrace stack_trace) { + asy::_completeOnAsyncError(:async_future, exception, stack_trace, :is_sync); + } + :async_op_then = asy::_asyncThenWrapperHelper(:async_op); + :async_op_error = asy::_asyncErrorWrapperHelper(:async_op); + :async_op(){() → dynamic}; + :is_sync = true; + return :async_future; +} +static method main() → dynamic {} + +constants { + #C1 = null + #C2 = #catchError + #C3 = [] + #C4 = #test + #C5 = #whenComplete + #C6 = [] + #C7 = core::_ImmutableMap {_kvPairs:#C6} + #C8 = #timeout + #C9 = #onTimeout + #C10 = #then + #C11 = #onError + #C12 = #asStream +} diff --git a/pkg/front_end/testcases/nnbd/issue42603.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue42603.dart.strong.expect index 06403e26461..b7191c82d06 100644 --- a/pkg/front_end/testcases/nnbd/issue42603.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue42603.dart.strong.expect @@ -58,7 +58,7 @@ class F extends self::E { : super self::E::•() ; operator ==(core::Object? other) → core::bool - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42603.dart:22:44: Error: Too many positional arguments: 0 allowed, but 1 found. + return invalid-expression "pkg/front_end/testcases/nnbd/issue42603.dart:22:44: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. bool operator ==(Object? other) => super == other; ^" in super.{self::E::==}(other); diff --git a/pkg/front_end/testcases/nnbd/issue42603.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue42603.dart.weak.expect index 06403e26461..b7191c82d06 100644 --- a/pkg/front_end/testcases/nnbd/issue42603.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue42603.dart.weak.expect @@ -58,7 +58,7 @@ class F extends self::E { : super self::E::•() ; operator ==(core::Object? other) → core::bool - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue42603.dart:22:44: Error: Too many positional arguments: 0 allowed, but 1 found. + return invalid-expression "pkg/front_end/testcases/nnbd/issue42603.dart:22:44: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. bool operator ==(Object? other) => super == other; ^" in super.{self::E::==}(other); diff --git a/pkg/front_end/testcases/nnbd/issue43174.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue43174.dart.strong.expect index 1954bc8b853..2bc396cae1a 100644 --- a/pkg/front_end/testcases/nnbd/issue43174.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue43174.dart.strong.expect @@ -19,7 +19,7 @@ static method method2(() → FutureOrf) → dynamic { } static method test() → dynamic { self::method(() → void { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43174.dart:17:12: Error: Can't return a value from a void function. + return invalid-expression "pkg/front_end/testcases/nnbd/issue43174.dart:17:12: Error: Can't return a value from a void function. return 42; // error ^" in 42; }); diff --git a/pkg/front_end/testcases/nnbd/issue43174.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue43174.dart.strong.transformed.expect index 1954bc8b853..2bc396cae1a 100644 --- a/pkg/front_end/testcases/nnbd/issue43174.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue43174.dart.strong.transformed.expect @@ -19,7 +19,7 @@ static method method2(() → FutureOrf) → dynamic { } static method test() → dynamic { self::method(() → void { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43174.dart:17:12: Error: Can't return a value from a void function. + return invalid-expression "pkg/front_end/testcases/nnbd/issue43174.dart:17:12: Error: Can't return a value from a void function. return 42; // error ^" in 42; }); diff --git a/pkg/front_end/testcases/nnbd/issue43174.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue43174.dart.weak.expect index 1954bc8b853..2bc396cae1a 100644 --- a/pkg/front_end/testcases/nnbd/issue43174.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue43174.dart.weak.expect @@ -19,7 +19,7 @@ static method method2(() → FutureOrf) → dynamic { } static method test() → dynamic { self::method(() → void { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43174.dart:17:12: Error: Can't return a value from a void function. + return invalid-expression "pkg/front_end/testcases/nnbd/issue43174.dart:17:12: Error: Can't return a value from a void function. return 42; // error ^" in 42; }); diff --git a/pkg/front_end/testcases/nnbd/issue43174.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue43174.dart.weak.transformed.expect index 1954bc8b853..2bc396cae1a 100644 --- a/pkg/front_end/testcases/nnbd/issue43174.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue43174.dart.weak.transformed.expect @@ -19,7 +19,7 @@ static method method2(() → FutureOrf) → dynamic { } static method test() → dynamic { self::method(() → void { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43174.dart:17:12: Error: Can't return a value from a void function. + return invalid-expression "pkg/front_end/testcases/nnbd/issue43174.dart:17:12: Error: Can't return a value from a void function. return 42; // error ^" in 42; }); diff --git a/pkg/front_end/testcases/nnbd/issue43278.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue43278.dart.strong.expect index 3de5c65a8e1..c69ecec3c2c 100644 --- a/pkg/front_end/testcases/nnbd/issue43278.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue43278.dart.strong.expect @@ -45,24 +45,24 @@ extension Extension on self::B { set fooExtension = self::Extension|set#fooExtension; } static method test(self::A? a, self::test::T% t, dynamic d, core::int x) → dynamic { - let final self::A? #t1 = a in (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. + let final self::A? #t1 = a in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. a.foo ??= x; // Error. - ^^^" in #t1.{self::A::foo}{}.{core::int?}) == null ?{core::int} let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. + ^^^" in #t1.{self::A::foo}{}.{core::int?} == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. a.foo ??= x; // Error. ^^^" in #t1.{self::A::foo}{}. = x : null; - let final self::test::T% #t4 = t in (let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. + let final self::test::T% #t2 = t in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.foo ??= x; // Error. - ^^^" in #t4.{self::A::foo}{}.{core::int?}) == null ?{core::int} let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. + ^^^" in #t2.{self::A::foo}{}.{core::int?} == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.foo ??= x; // Error. - ^^^" in #t4.{self::A::foo}{}. = x : null; - let final dynamic #t7 = d in #t7{dynamic}.foo == null ?{dynamic} #t7{dynamic}.foo = x : null; - let final self::A? #t8 = a in #t8 == null ?{core::int?} null : let final self::A #t9 = #t8{self::A}.{self::A::bar}{self::A} in #t9.{self::A::foo}{core::int?} == null ?{core::int} #t9.{self::A::foo} = x : null; + ^^^" in #t2.{self::A::foo}{}. = x : null; + let final dynamic #t3 = d in #t3{dynamic}.foo == null ?{dynamic} #t3{dynamic}.foo = x : null; + let final self::A? #t4 = a in #t4 == null ?{core::int?} null : let final self::A #t5 = #t4{self::A}.{self::A::bar}{self::A} in #t5.{self::A::foo}{core::int?} == null ?{core::int} #t5.{self::A::foo} = x : null; } static method Extension|get#fooExtension(lowered final self::B #this) → core::int? return null; @@ -70,22 +70,22 @@ static method Extension|set#fooExtension(lowered final self::B #this, core::int? static method Extension|get#barExtension(lowered final self::B #this) → self::B return new self::B::•(); static method testExtension(self::B? b, self::testExtension::T% t, core::int x) → dynamic { - let final self::B? #t10 = b in (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. + let final self::B? #t6 = b in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. - 'B' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. b.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t10)) == null ?{core::int} let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. + ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t6) == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. - 'B' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. b.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t10, x) : null; - let final self::testExtension::T% #t13 = t in (let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. + ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t6, x) : null; + let final self::testExtension::T% #t7 = t in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t13)) == null ?{core::int} let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. + ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t7) == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t13, x) : null; - let final self::B? #t16 = b in #t16 == null ?{core::int?} null : let final self::B #t17 = self::Extension|get#barExtension(#t16{self::B}) in self::Extension|get#fooExtension(#t17) == null ?{core::int} self::Extension|set#fooExtension(#t17, x) : null; + ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t7, x) : null; + let final self::B? #t8 = b in #t8 == null ?{core::int?} null : let final self::B #t9 = self::Extension|get#barExtension(#t8{self::B}) in self::Extension|get#fooExtension(#t9) == null ?{core::int} self::Extension|set#fooExtension(#t9, x) : null; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/issue43278.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue43278.dart.strong.transformed.expect index 3de5c65a8e1..c69ecec3c2c 100644 --- a/pkg/front_end/testcases/nnbd/issue43278.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue43278.dart.strong.transformed.expect @@ -45,24 +45,24 @@ extension Extension on self::B { set fooExtension = self::Extension|set#fooExtension; } static method test(self::A? a, self::test::T% t, dynamic d, core::int x) → dynamic { - let final self::A? #t1 = a in (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. + let final self::A? #t1 = a in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. a.foo ??= x; // Error. - ^^^" in #t1.{self::A::foo}{}.{core::int?}) == null ?{core::int} let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. + ^^^" in #t1.{self::A::foo}{}.{core::int?} == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. a.foo ??= x; // Error. ^^^" in #t1.{self::A::foo}{}. = x : null; - let final self::test::T% #t4 = t in (let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. + let final self::test::T% #t2 = t in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.foo ??= x; // Error. - ^^^" in #t4.{self::A::foo}{}.{core::int?}) == null ?{core::int} let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. + ^^^" in #t2.{self::A::foo}{}.{core::int?} == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.foo ??= x; // Error. - ^^^" in #t4.{self::A::foo}{}. = x : null; - let final dynamic #t7 = d in #t7{dynamic}.foo == null ?{dynamic} #t7{dynamic}.foo = x : null; - let final self::A? #t8 = a in #t8 == null ?{core::int?} null : let final self::A #t9 = #t8{self::A}.{self::A::bar}{self::A} in #t9.{self::A::foo}{core::int?} == null ?{core::int} #t9.{self::A::foo} = x : null; + ^^^" in #t2.{self::A::foo}{}. = x : null; + let final dynamic #t3 = d in #t3{dynamic}.foo == null ?{dynamic} #t3{dynamic}.foo = x : null; + let final self::A? #t4 = a in #t4 == null ?{core::int?} null : let final self::A #t5 = #t4{self::A}.{self::A::bar}{self::A} in #t5.{self::A::foo}{core::int?} == null ?{core::int} #t5.{self::A::foo} = x : null; } static method Extension|get#fooExtension(lowered final self::B #this) → core::int? return null; @@ -70,22 +70,22 @@ static method Extension|set#fooExtension(lowered final self::B #this, core::int? static method Extension|get#barExtension(lowered final self::B #this) → self::B return new self::B::•(); static method testExtension(self::B? b, self::testExtension::T% t, core::int x) → dynamic { - let final self::B? #t10 = b in (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. + let final self::B? #t6 = b in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. - 'B' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. b.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t10)) == null ?{core::int} let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. + ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t6) == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. - 'B' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. b.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t10, x) : null; - let final self::testExtension::T% #t13 = t in (let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. + ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t6, x) : null; + let final self::testExtension::T% #t7 = t in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t13)) == null ?{core::int} let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. + ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t7) == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t13, x) : null; - let final self::B? #t16 = b in #t16 == null ?{core::int?} null : let final self::B #t17 = self::Extension|get#barExtension(#t16{self::B}) in self::Extension|get#fooExtension(#t17) == null ?{core::int} self::Extension|set#fooExtension(#t17, x) : null; + ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t7, x) : null; + let final self::B? #t8 = b in #t8 == null ?{core::int?} null : let final self::B #t9 = self::Extension|get#barExtension(#t8{self::B}) in self::Extension|get#fooExtension(#t9) == null ?{core::int} self::Extension|set#fooExtension(#t9, x) : null; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/issue43278.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue43278.dart.weak.expect index 3de5c65a8e1..c69ecec3c2c 100644 --- a/pkg/front_end/testcases/nnbd/issue43278.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue43278.dart.weak.expect @@ -45,24 +45,24 @@ extension Extension on self::B { set fooExtension = self::Extension|set#fooExtension; } static method test(self::A? a, self::test::T% t, dynamic d, core::int x) → dynamic { - let final self::A? #t1 = a in (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. + let final self::A? #t1 = a in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. a.foo ??= x; // Error. - ^^^" in #t1.{self::A::foo}{}.{core::int?}) == null ?{core::int} let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. + ^^^" in #t1.{self::A::foo}{}.{core::int?} == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. a.foo ??= x; // Error. ^^^" in #t1.{self::A::foo}{}. = x : null; - let final self::test::T% #t4 = t in (let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. + let final self::test::T% #t2 = t in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.foo ??= x; // Error. - ^^^" in #t4.{self::A::foo}{}.{core::int?}) == null ?{core::int} let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. + ^^^" in #t2.{self::A::foo}{}.{core::int?} == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.foo ??= x; // Error. - ^^^" in #t4.{self::A::foo}{}. = x : null; - let final dynamic #t7 = d in #t7{dynamic}.foo == null ?{dynamic} #t7{dynamic}.foo = x : null; - let final self::A? #t8 = a in #t8 == null ?{core::int?} null : let final self::A #t9 = #t8{self::A}.{self::A::bar}{self::A} in #t9.{self::A::foo}{core::int?} == null ?{core::int} #t9.{self::A::foo} = x : null; + ^^^" in #t2.{self::A::foo}{}. = x : null; + let final dynamic #t3 = d in #t3{dynamic}.foo == null ?{dynamic} #t3{dynamic}.foo = x : null; + let final self::A? #t4 = a in #t4 == null ?{core::int?} null : let final self::A #t5 = #t4{self::A}.{self::A::bar}{self::A} in #t5.{self::A::foo}{core::int?} == null ?{core::int} #t5.{self::A::foo} = x : null; } static method Extension|get#fooExtension(lowered final self::B #this) → core::int? return null; @@ -70,22 +70,22 @@ static method Extension|set#fooExtension(lowered final self::B #this, core::int? static method Extension|get#barExtension(lowered final self::B #this) → self::B return new self::B::•(); static method testExtension(self::B? b, self::testExtension::T% t, core::int x) → dynamic { - let final self::B? #t10 = b in (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. + let final self::B? #t6 = b in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. - 'B' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. b.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t10)) == null ?{core::int} let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. + ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t6) == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. - 'B' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. b.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t10, x) : null; - let final self::testExtension::T% #t13 = t in (let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. + ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t6, x) : null; + let final self::testExtension::T% #t7 = t in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t13)) == null ?{core::int} let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. + ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t7) == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t13, x) : null; - let final self::B? #t16 = b in #t16 == null ?{core::int?} null : let final self::B #t17 = self::Extension|get#barExtension(#t16{self::B}) in self::Extension|get#fooExtension(#t17) == null ?{core::int} self::Extension|set#fooExtension(#t17, x) : null; + ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t7, x) : null; + let final self::B? #t8 = b in #t8 == null ?{core::int?} null : let final self::B #t9 = self::Extension|get#barExtension(#t8{self::B}) in self::Extension|get#fooExtension(#t9) == null ?{core::int} self::Extension|set#fooExtension(#t9, x) : null; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/issue43278.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue43278.dart.weak.transformed.expect index 3de5c65a8e1..c69ecec3c2c 100644 --- a/pkg/front_end/testcases/nnbd/issue43278.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue43278.dart.weak.transformed.expect @@ -45,24 +45,24 @@ extension Extension on self::B { set fooExtension = self::Extension|set#fooExtension; } static method test(self::A? a, self::test::T% t, dynamic d, core::int x) → dynamic { - let final self::A? #t1 = a in (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. + let final self::A? #t1 = a in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. a.foo ??= x; // Error. - ^^^" in #t1.{self::A::foo}{}.{core::int?}) == null ?{core::int} let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. + ^^^" in #t1.{self::A::foo}{}.{core::int?} == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:13:5: Error: Property 'foo' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. a.foo ??= x; // Error. ^^^" in #t1.{self::A::foo}{}. = x : null; - let final self::test::T% #t4 = t in (let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. + let final self::test::T% #t2 = t in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.foo ??= x; // Error. - ^^^" in #t4.{self::A::foo}{}.{core::int?}) == null ?{core::int} let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. + ^^^" in #t2.{self::A::foo}{}.{core::int?} == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:14:5: Error: Property 'foo' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.foo ??= x; // Error. - ^^^" in #t4.{self::A::foo}{}. = x : null; - let final dynamic #t7 = d in #t7{dynamic}.foo == null ?{dynamic} #t7{dynamic}.foo = x : null; - let final self::A? #t8 = a in #t8 == null ?{core::int?} null : let final self::A #t9 = #t8{self::A}.{self::A::bar}{self::A} in #t9.{self::A::foo}{core::int?} == null ?{core::int} #t9.{self::A::foo} = x : null; + ^^^" in #t2.{self::A::foo}{}. = x : null; + let final dynamic #t3 = d in #t3{dynamic}.foo == null ?{dynamic} #t3{dynamic}.foo = x : null; + let final self::A? #t4 = a in #t4 == null ?{core::int?} null : let final self::A #t5 = #t4{self::A}.{self::A::bar}{self::A} in #t5.{self::A::foo}{core::int?} == null ?{core::int} #t5.{self::A::foo} = x : null; } static method Extension|get#fooExtension(lowered final self::B #this) → core::int? return null; @@ -70,22 +70,22 @@ static method Extension|set#fooExtension(lowered final self::B #this, core::int? static method Extension|get#barExtension(lowered final self::B #this) → self::B return new self::B::•(); static method testExtension(self::B? b, self::testExtension::T% t, core::int x) → dynamic { - let final self::B? #t10 = b in (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. + let final self::B? #t6 = b in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. - 'B' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. b.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t10)) == null ?{core::int} let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. + ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t6) == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:28:5: Error: Property 'fooExtension' cannot be accessed on 'B?' because it is potentially null. - 'B' is from 'pkg/front_end/testcases/nnbd/issue43278.dart'. Try accessing using ?. instead. b.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t10, x) : null; - let final self::testExtension::T% #t13 = t in (let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. + ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t6, x) : null; + let final self::testExtension::T% #t7 = t in invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t13)) == null ?{core::int} let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. + ^^^^^^^^^^^^" in self::Extension|get#fooExtension(#t7) == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/issue43278.dart:29:5: Error: Property 'fooExtension' cannot be accessed on 'T' because it is potentially null. Try accessing using ?. instead. t.fooExtension ??= x; // Error. - ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t13, x) : null; - let final self::B? #t16 = b in #t16 == null ?{core::int?} null : let final self::B #t17 = self::Extension|get#barExtension(#t16{self::B}) in self::Extension|get#fooExtension(#t17) == null ?{core::int} self::Extension|set#fooExtension(#t17, x) : null; + ^^^^^^^^^^^^" in self::Extension|set#fooExtension(#t7, x) : null; + let final self::B? #t8 = b in #t8 == null ?{core::int?} null : let final self::B #t9 = self::Extension|get#barExtension(#t8{self::B}) in self::Extension|get#fooExtension(#t9) == null ?{core::int} self::Extension|set#fooExtension(#t9, x) : null; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/issue43689.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue43689.dart.strong.expect index bee2422e556..aa327e3a8a1 100644 --- a/pkg/front_end/testcases/nnbd/issue43689.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue43689.dart.strong.expect @@ -31,10 +31,10 @@ static method test() → dynamic { late final core::int x; late final core::int? x = invalid-expression "pkg/front_end/testcases/nnbd/issue43689.dart:10:19: Error: 'x' is already declared in this scope. late final int? x; - ^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::int?; + ^"; core::int z; core::int? z = invalid-expression "pkg/front_end/testcases/nnbd/issue43689.dart:12:8: Error: 'z' is already declared in this scope. int? z; - ^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::int?; + ^"; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/issue43689.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue43689.dart.weak.expect index bee2422e556..aa327e3a8a1 100644 --- a/pkg/front_end/testcases/nnbd/issue43689.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue43689.dart.weak.expect @@ -31,10 +31,10 @@ static method test() → dynamic { late final core::int x; late final core::int? x = invalid-expression "pkg/front_end/testcases/nnbd/issue43689.dart:10:19: Error: 'x' is already declared in this scope. late final int? x; - ^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::int?; + ^"; core::int z; core::int? z = invalid-expression "pkg/front_end/testcases/nnbd/issue43689.dart:12:8: Error: 'z' is already declared in this scope. int? z; - ^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::int?; + ^"; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/issue43716a.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue43716a.dart.strong.expect index ac732631d92..afe7f3b84ef 100644 --- a/pkg/front_end/testcases/nnbd/issue43716a.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue43716a.dart.strong.expect @@ -19,7 +19,7 @@ class C? = self::C self::C? z = self::b ?{self::C?} x : y; if(z == null) throw 0; - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43716a.dart:15:14: Error: A value of type 'Object?' can't be returned from a function with return type 'Object' because 'Object?' is nullable and 'Object' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/issue43716a.dart:15:14: Error: A value of type 'Object?' can't be returned from a function with return type 'Object' because 'Object?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. return z.x; // Error. ^" in z{self::C}.{self::C::x}{core::Object?} as{TypeError,ForNonNullableByDefault} core::Object; diff --git a/pkg/front_end/testcases/nnbd/issue43716a.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue43716a.dart.strong.transformed.expect index e1b2b874a40..a5b697ad8f5 100644 --- a/pkg/front_end/testcases/nnbd/issue43716a.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue43716a.dart.strong.transformed.expect @@ -19,10 +19,10 @@ class C? = self::C self::C? z = self::b ?{self::C?} x : y; if(z == null) throw 0; - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43716a.dart:15:14: Error: A value of type 'Object?' can't be returned from a function with return type 'Object' because 'Object?' is nullable and 'Object' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/issue43716a.dart:15:14: Error: A value of type 'Object?' can't be returned from a function with return type 'Object' because 'Object?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. return z.x; // Error. - ^" in let core::Object? #t2 = z{self::C}.{self::C::x}{core::Object?} in #t2 == null ?{core::Object} #t2 as{TypeError,ForNonNullableByDefault} core::Object : #t2{core::Object}; + ^" in let core::Object? #t1 = z{self::C}.{self::C::x}{core::Object?} in #t1 == null ?{core::Object} #t1 as{TypeError,ForNonNullableByDefault} core::Object : #t1{core::Object}; } } static field core::bool b = true; diff --git a/pkg/front_end/testcases/nnbd/issue43716a.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue43716a.dart.weak.expect index ac732631d92..afe7f3b84ef 100644 --- a/pkg/front_end/testcases/nnbd/issue43716a.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue43716a.dart.weak.expect @@ -19,7 +19,7 @@ class C? = self::C self::C? z = self::b ?{self::C?} x : y; if(z == null) throw 0; - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43716a.dart:15:14: Error: A value of type 'Object?' can't be returned from a function with return type 'Object' because 'Object?' is nullable and 'Object' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/issue43716a.dart:15:14: Error: A value of type 'Object?' can't be returned from a function with return type 'Object' because 'Object?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. return z.x; // Error. ^" in z{self::C}.{self::C::x}{core::Object?} as{TypeError,ForNonNullableByDefault} core::Object; diff --git a/pkg/front_end/testcases/nnbd/issue43716a.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue43716a.dart.weak.transformed.expect index 3c0963d693f..e53c5e216b0 100644 --- a/pkg/front_end/testcases/nnbd/issue43716a.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue43716a.dart.weak.transformed.expect @@ -19,7 +19,7 @@ class C? = self::C self::C? z = self::b ?{self::C?} x : y; if(z == null) throw 0; - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43716a.dart:15:14: Error: A value of type 'Object?' can't be returned from a function with return type 'Object' because 'Object?' is nullable and 'Object' isn't. + return invalid-expression "pkg/front_end/testcases/nnbd/issue43716a.dart:15:14: Error: A value of type 'Object?' can't be returned from a function with return type 'Object' because 'Object?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. return z.x; // Error. ^" in z{self::C}.{self::C::x}{core::Object?}; diff --git a/pkg/front_end/testcases/nnbd/issue43716b.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue43716b.dart.strong.expect index 5f9dc4523ba..78b0b349fa0 100644 --- a/pkg/front_end/testcases/nnbd/issue43716b.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue43716b.dart.strong.expect @@ -18,7 +18,7 @@ class C extends core::Obj (Never) →? void z = self::b ?{(Never) →? void} this.{self::C::x}{self::C::X%} : #C1; if(z == null) return; - z{(Never) → void}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43716b.dart:17:7: Error: The argument type 'int' can't be assigned to the parameter type 'Never'. + z{(Never) → void}(invalid-expression "pkg/front_end/testcases/nnbd/issue43716b.dart:17:7: Error: The argument type 'int' can't be assigned to the parameter type 'Never'. z(42); // Error. ^" in 42 as{TypeError,ForNonNullableByDefault} Never){(Never) → void}; } diff --git a/pkg/front_end/testcases/nnbd/issue43716b.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue43716b.dart.strong.transformed.expect index 5f9dc4523ba..78b0b349fa0 100644 --- a/pkg/front_end/testcases/nnbd/issue43716b.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue43716b.dart.strong.transformed.expect @@ -18,7 +18,7 @@ class C extends core::Obj (Never) →? void z = self::b ?{(Never) →? void} this.{self::C::x}{self::C::X%} : #C1; if(z == null) return; - z{(Never) → void}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43716b.dart:17:7: Error: The argument type 'int' can't be assigned to the parameter type 'Never'. + z{(Never) → void}(invalid-expression "pkg/front_end/testcases/nnbd/issue43716b.dart:17:7: Error: The argument type 'int' can't be assigned to the parameter type 'Never'. z(42); // Error. ^" in 42 as{TypeError,ForNonNullableByDefault} Never){(Never) → void}; } diff --git a/pkg/front_end/testcases/nnbd/issue43716b.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue43716b.dart.weak.expect index 5f9dc4523ba..78b0b349fa0 100644 --- a/pkg/front_end/testcases/nnbd/issue43716b.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue43716b.dart.weak.expect @@ -18,7 +18,7 @@ class C extends core::Obj (Never) →? void z = self::b ?{(Never) →? void} this.{self::C::x}{self::C::X%} : #C1; if(z == null) return; - z{(Never) → void}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43716b.dart:17:7: Error: The argument type 'int' can't be assigned to the parameter type 'Never'. + z{(Never) → void}(invalid-expression "pkg/front_end/testcases/nnbd/issue43716b.dart:17:7: Error: The argument type 'int' can't be assigned to the parameter type 'Never'. z(42); // Error. ^" in 42 as{TypeError,ForNonNullableByDefault} Never){(Never) → void}; } diff --git a/pkg/front_end/testcases/nnbd/issue43716b.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue43716b.dart.weak.transformed.expect index 5f9dc4523ba..78b0b349fa0 100644 --- a/pkg/front_end/testcases/nnbd/issue43716b.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue43716b.dart.weak.transformed.expect @@ -18,7 +18,7 @@ class C extends core::Obj (Never) →? void z = self::b ?{(Never) →? void} this.{self::C::x}{self::C::X%} : #C1; if(z == null) return; - z{(Never) → void}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43716b.dart:17:7: Error: The argument type 'int' can't be assigned to the parameter type 'Never'. + z{(Never) → void}(invalid-expression "pkg/front_end/testcases/nnbd/issue43716b.dart:17:7: Error: The argument type 'int' can't be assigned to the parameter type 'Never'. z(42); // Error. ^" in 42 as{TypeError,ForNonNullableByDefault} Never){(Never) → void}; } diff --git a/pkg/front_end/testcases/nnbd/issue43721.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue43721.dart.strong.expect index 5a28faa9fc2..da9759d6de4 100644 --- a/pkg/front_end/testcases/nnbd/issue43721.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue43721.dart.strong.expect @@ -17,7 +17,7 @@ static method bar(core::bool condition) → dynamic { FutureOrx = null; core::num n = 1; FutureOrz = condition ?{FutureOr} x : n; - self::foo(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43721.dart:13:7: Error: The argument type 'FutureOr' can't be assigned to the parameter type 'Object' because 'num?' is nullable and 'Object' isn't. + self::foo(invalid-expression "pkg/front_end/testcases/nnbd/issue43721.dart:13:7: Error: The argument type 'FutureOr' can't be assigned to the parameter type 'Object' because 'num?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. foo(z); // Error. ^" in z as{TypeError,ForNonNullableByDefault} core::Object); diff --git a/pkg/front_end/testcases/nnbd/issue43721.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue43721.dart.strong.transformed.expect index 01f043ce26b..125399b642f 100644 --- a/pkg/front_end/testcases/nnbd/issue43721.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue43721.dart.strong.transformed.expect @@ -17,9 +17,9 @@ static method bar(core::bool condition) → dynamic { FutureOrx = null; core::num n = 1; FutureOrz = condition ?{FutureOr} x : n; - self::foo(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43721.dart:13:7: Error: The argument type 'FutureOr' can't be assigned to the parameter type 'Object' because 'num?' is nullable and 'Object' isn't. + self::foo(invalid-expression "pkg/front_end/testcases/nnbd/issue43721.dart:13:7: Error: The argument type 'FutureOr' can't be assigned to the parameter type 'Object' because 'num?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. foo(z); // Error. - ^" in let FutureOr#t2 = z in #t2 == null ?{core::Object} #t2 as{TypeError,ForNonNullableByDefault} core::Object : #t2{core::Object}); + ^" in let FutureOr#t1 = z in #t1 == null ?{core::Object} #t1 as{TypeError,ForNonNullableByDefault} core::Object : #t1{core::Object}); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nnbd/issue43721.dart.weak.expect b/pkg/front_end/testcases/nnbd/issue43721.dart.weak.expect index 5a28faa9fc2..da9759d6de4 100644 --- a/pkg/front_end/testcases/nnbd/issue43721.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/issue43721.dart.weak.expect @@ -17,7 +17,7 @@ static method bar(core::bool condition) → dynamic { FutureOrx = null; core::num n = 1; FutureOrz = condition ?{FutureOr} x : n; - self::foo(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43721.dart:13:7: Error: The argument type 'FutureOr' can't be assigned to the parameter type 'Object' because 'num?' is nullable and 'Object' isn't. + self::foo(invalid-expression "pkg/front_end/testcases/nnbd/issue43721.dart:13:7: Error: The argument type 'FutureOr' can't be assigned to the parameter type 'Object' because 'num?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. foo(z); // Error. ^" in z as{TypeError,ForNonNullableByDefault} core::Object); diff --git a/pkg/front_end/testcases/nnbd/issue43721.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/issue43721.dart.weak.transformed.expect index b4f0696a67c..e256d75373b 100644 --- a/pkg/front_end/testcases/nnbd/issue43721.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue43721.dart.weak.transformed.expect @@ -17,7 +17,7 @@ static method bar(core::bool condition) → dynamic { FutureOrx = null; core::num n = 1; FutureOrz = condition ?{FutureOr} x : n; - self::foo(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/issue43721.dart:13:7: Error: The argument type 'FutureOr' can't be assigned to the parameter type 'Object' because 'num?' is nullable and 'Object' isn't. + self::foo(invalid-expression "pkg/front_end/testcases/nnbd/issue43721.dart:13:7: Error: The argument type 'FutureOr' can't be assigned to the parameter type 'Object' because 'num?' is nullable and 'Object' isn't. - 'Object' is from 'dart:core'. foo(z); // Error. ^" in z); diff --git a/pkg/front_end/testcases/nnbd/later.dart.strong.expect b/pkg/front_end/testcases/nnbd/later.dart.strong.expect index d9880ad9622..63fc71a5229 100644 --- a/pkg/front_end/testcases/nnbd/later.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/later.dart.strong.expect @@ -125,7 +125,7 @@ static method hest() → dynamic async { static method fisk() → dynamic async { late core::String s1 = invalid-expression "pkg/front_end/testcases/nnbd/later.dart:38:20: Error: `await` expressions are not supported in late local initializers. late String s1 = await hest(); - ^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + ^^^^^"; late core::String s2 = "${#C1}${invalid-expression "pkg/front_end/testcases/nnbd/later.dart:39:30: Error: `await` expressions are not supported in late local initializers. late String s2 = '\${fisk}\${await hest()}\${fisk}'; ^^^^^"}${#C1}"; diff --git a/pkg/front_end/testcases/nnbd/later.dart.weak.expect b/pkg/front_end/testcases/nnbd/later.dart.weak.expect index d9880ad9622..63fc71a5229 100644 --- a/pkg/front_end/testcases/nnbd/later.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/later.dart.weak.expect @@ -125,7 +125,7 @@ static method hest() → dynamic async { static method fisk() → dynamic async { late core::String s1 = invalid-expression "pkg/front_end/testcases/nnbd/later.dart:38:20: Error: `await` expressions are not supported in late local initializers. late String s1 = await hest(); - ^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::String; + ^^^^^"; late core::String s2 = "${#C1}${invalid-expression "pkg/front_end/testcases/nnbd/later.dart:39:30: Error: `await` expressions are not supported in late local initializers. late String s2 = '\${fisk}\${await hest()}\${fisk}'; ^^^^^"}${#C1}"; diff --git a/pkg/front_end/testcases/nnbd/list_constructor.dart.strong.expect b/pkg/front_end/testcases/nnbd/list_constructor.dart.strong.expect index 0a42d2bc13d..6ebdc4ccb2d 100644 --- a/pkg/front_end/testcases/nnbd/list_constructor.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/list_constructor.dart.strong.expect @@ -21,15 +21,15 @@ import self as self; import "dart:core" as core; static method foo() → dynamic { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:9:7: Error: Can't use the default List constructor. + invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:9:7: Error: Can't use the default List constructor. Try using List.filled instead. new List(42); ^" in core::List::•(42); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:10:7: Error: Can't use the default List constructor. + invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:10:7: Error: Can't use the default List constructor. Try using List.filled instead. new List(42); ^" in core::List::•(42); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:11:7: Error: Can't use the default List constructor. + invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:11:7: Error: Can't use the default List constructor. Try using List.filled instead. new List(42); ^" in core::List::•(42); diff --git a/pkg/front_end/testcases/nnbd/list_constructor.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/list_constructor.dart.strong.transformed.expect index 540795f246e..0adf0737cb1 100644 --- a/pkg/front_end/testcases/nnbd/list_constructor.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/list_constructor.dart.strong.transformed.expect @@ -21,15 +21,15 @@ import self as self; import "dart:core" as core; static method foo() → dynamic { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:9:7: Error: Can't use the default List constructor. + invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:9:7: Error: Can't use the default List constructor. Try using List.filled instead. new List(42); ^" in core::_List::•(42); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:10:7: Error: Can't use the default List constructor. + invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:10:7: Error: Can't use the default List constructor. Try using List.filled instead. new List(42); ^" in core::_List::•(42); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:11:7: Error: Can't use the default List constructor. + invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:11:7: Error: Can't use the default List constructor. Try using List.filled instead. new List(42); ^" in core::_List::•(42); diff --git a/pkg/front_end/testcases/nnbd/list_constructor.dart.weak.expect b/pkg/front_end/testcases/nnbd/list_constructor.dart.weak.expect index 0a42d2bc13d..6ebdc4ccb2d 100644 --- a/pkg/front_end/testcases/nnbd/list_constructor.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/list_constructor.dart.weak.expect @@ -21,15 +21,15 @@ import self as self; import "dart:core" as core; static method foo() → dynamic { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:9:7: Error: Can't use the default List constructor. + invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:9:7: Error: Can't use the default List constructor. Try using List.filled instead. new List(42); ^" in core::List::•(42); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:10:7: Error: Can't use the default List constructor. + invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:10:7: Error: Can't use the default List constructor. Try using List.filled instead. new List(42); ^" in core::List::•(42); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:11:7: Error: Can't use the default List constructor. + invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:11:7: Error: Can't use the default List constructor. Try using List.filled instead. new List(42); ^" in core::List::•(42); diff --git a/pkg/front_end/testcases/nnbd/list_constructor.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/list_constructor.dart.weak.transformed.expect index 540795f246e..0adf0737cb1 100644 --- a/pkg/front_end/testcases/nnbd/list_constructor.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/list_constructor.dart.weak.transformed.expect @@ -21,15 +21,15 @@ import self as self; import "dart:core" as core; static method foo() → dynamic { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:9:7: Error: Can't use the default List constructor. + invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:9:7: Error: Can't use the default List constructor. Try using List.filled instead. new List(42); ^" in core::_List::•(42); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:10:7: Error: Can't use the default List constructor. + invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:10:7: Error: Can't use the default List constructor. Try using List.filled instead. new List(42); ^" in core::_List::•(42); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:11:7: Error: Can't use the default List constructor. + invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:11:7: Error: Can't use the default List constructor. Try using List.filled instead. new List(42); ^" in core::_List::•(42); diff --git a/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.strong.expect b/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.strong.expect index 03536f5a81f..a736a23e8dc 100644 --- a/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.strong.expect @@ -48,13 +48,13 @@ static method bar() → dynamic { new A(); ^"; self::A a = new self::A::•(x: 42); - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:18:8: Error: Required named parameter 'y' must be provided. + invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:18:8: Error: Required named parameter 'y' must be provided. a.foo(); ^" in a.{self::A::foo}{}.(){() → invalid-type}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:19:6: Error: Required named parameter 's' must be provided. + invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:19:6: Error: Required named parameter 's' must be provided. a.f(); ^" in a.{self::A::f}{({required s: core::String}) → void}{}.(); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:20:4: Error: Required named parameter 's' must be provided. + invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:20:4: Error: Required named parameter 's' must be provided. g(); ^" in self::g{}.(); } diff --git a/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.strong.transformed.expect index 03536f5a81f..a736a23e8dc 100644 --- a/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.strong.transformed.expect @@ -48,13 +48,13 @@ static method bar() → dynamic { new A(); ^"; self::A a = new self::A::•(x: 42); - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:18:8: Error: Required named parameter 'y' must be provided. + invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:18:8: Error: Required named parameter 'y' must be provided. a.foo(); ^" in a.{self::A::foo}{}.(){() → invalid-type}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:19:6: Error: Required named parameter 's' must be provided. + invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:19:6: Error: Required named parameter 's' must be provided. a.f(); ^" in a.{self::A::f}{({required s: core::String}) → void}{}.(); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:20:4: Error: Required named parameter 's' must be provided. + invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:20:4: Error: Required named parameter 's' must be provided. g(); ^" in self::g{}.(); } diff --git a/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.weak.expect b/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.weak.expect index 03536f5a81f..a736a23e8dc 100644 --- a/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.weak.expect @@ -48,13 +48,13 @@ static method bar() → dynamic { new A(); ^"; self::A a = new self::A::•(x: 42); - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:18:8: Error: Required named parameter 'y' must be provided. + invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:18:8: Error: Required named parameter 'y' must be provided. a.foo(); ^" in a.{self::A::foo}{}.(){() → invalid-type}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:19:6: Error: Required named parameter 's' must be provided. + invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:19:6: Error: Required named parameter 's' must be provided. a.f(); ^" in a.{self::A::f}{({required s: core::String}) → void}{}.(); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:20:4: Error: Required named parameter 's' must be provided. + invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:20:4: Error: Required named parameter 's' must be provided. g(); ^" in self::g{}.(); } diff --git a/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.weak.transformed.expect index 03536f5a81f..a736a23e8dc 100644 --- a/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart.weak.transformed.expect @@ -48,13 +48,13 @@ static method bar() → dynamic { new A(); ^"; self::A a = new self::A::•(x: 42); - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:18:8: Error: Required named parameter 'y' must be provided. + invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:18:8: Error: Required named parameter 'y' must be provided. a.foo(); ^" in a.{self::A::foo}{}.(){() → invalid-type}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:19:6: Error: Required named parameter 's' must be provided. + invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:19:6: Error: Required named parameter 's' must be provided. a.f(); ^" in a.{self::A::f}{({required s: core::String}) → void}{}.(); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:20:4: Error: Required named parameter 's' must be provided. + invalid-expression "pkg/front_end/testcases/nnbd/missing_required_named_parameter.dart:20:4: Error: Required named parameter 's' must be provided. g(); ^" in self::g{}.(); } diff --git a/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.strong.expect b/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.strong.expect index a88a56b2040..b9ee95dff9f 100644 --- a/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.strong.expect @@ -37,12 +37,12 @@ class C extends core::Object implements self::A, self::B { : super core::Object::•() ; method method1() → void { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:21:16: Error: Can't return a value from a void function. + return invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:21:16: Error: Can't return a value from a void function. return new Future.value(null); // error ^" in asy::Future::value(null); } method method2() → void { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:25:16: Error: Can't return a value from a void function. + return invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:25:16: Error: Can't return a value from a void function. return new Future.value(null); // error ^" in asy::Future::value(null); } diff --git a/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.strong.transformed.expect index a88a56b2040..b9ee95dff9f 100644 --- a/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.strong.transformed.expect @@ -37,12 +37,12 @@ class C extends core::Object implements self::A, self::B { : super core::Object::•() ; method method1() → void { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:21:16: Error: Can't return a value from a void function. + return invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:21:16: Error: Can't return a value from a void function. return new Future.value(null); // error ^" in asy::Future::value(null); } method method2() → void { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:25:16: Error: Can't return a value from a void function. + return invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:25:16: Error: Can't return a value from a void function. return new Future.value(null); // error ^" in asy::Future::value(null); } diff --git a/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.weak.expect b/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.weak.expect index a88a56b2040..b9ee95dff9f 100644 --- a/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.weak.expect @@ -37,12 +37,12 @@ class C extends core::Object implements self::A, self::B { : super core::Object::•() ; method method1() → void { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:21:16: Error: Can't return a value from a void function. + return invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:21:16: Error: Can't return a value from a void function. return new Future.value(null); // error ^" in asy::Future::value(null); } method method2() → void { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:25:16: Error: Can't return a value from a void function. + return invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:25:16: Error: Can't return a value from a void function. return new Future.value(null); // error ^" in asy::Future::value(null); } diff --git a/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.weak.transformed.expect index a88a56b2040..b9ee95dff9f 100644 --- a/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart.weak.transformed.expect @@ -37,12 +37,12 @@ class C extends core::Object implements self::A, self::B { : super core::Object::•() ; method method1() → void { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:21:16: Error: Can't return a value from a void function. + return invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:21:16: Error: Can't return a value from a void function. return new Future.value(null); // error ^" in asy::Future::value(null); } method method2() → void { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:25:16: Error: Can't return a value from a void function. + return invalid-expression "pkg/front_end/testcases/nnbd/mutual_subtype_norm.dart:25:16: Error: Can't return a value from a void function. return new Future.value(null); // error ^" in asy::Future::value(null); } diff --git a/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.strong.expect b/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.strong.expect index 6800298de23..ce4e2f2b651 100644 --- a/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.strong.expect @@ -97,13 +97,13 @@ Try inserting an identifier before '['. invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:8:11: Error: Can't assign to this. c?.[42] = 42; ^"; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:9:6: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:9:6: Error: Can't assign to this. c?.[42]++; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:9:6: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. c?.[42]++; ^"; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:10:8: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:10:8: Error: Can't assign to this. ++c?.[42]; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:10:8: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. @@ -116,13 +116,13 @@ Try inserting an identifier before '['. invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:12:16: Error: Can't assign to this. c?.[42]?.[0] ??= 42; ^^^"; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:13:12: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:13:12: Error: Can't assign to this. c?.[42]?.[0]++; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:13:12: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. c?.[42]?.[0]++; ^"; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:14:14: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:14:14: Error: Can't assign to this. ++c?.[42]?.[0]; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:14:14: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. diff --git a/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.strong.transformed.expect index 6800298de23..ce4e2f2b651 100644 --- a/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.strong.transformed.expect @@ -97,13 +97,13 @@ Try inserting an identifier before '['. invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:8:11: Error: Can't assign to this. c?.[42] = 42; ^"; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:9:6: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:9:6: Error: Can't assign to this. c?.[42]++; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:9:6: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. c?.[42]++; ^"; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:10:8: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:10:8: Error: Can't assign to this. ++c?.[42]; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:10:8: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. @@ -116,13 +116,13 @@ Try inserting an identifier before '['. invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:12:16: Error: Can't assign to this. c?.[42]?.[0] ??= 42; ^^^"; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:13:12: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:13:12: Error: Can't assign to this. c?.[42]?.[0]++; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:13:12: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. c?.[42]?.[0]++; ^"; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:14:14: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:14:14: Error: Can't assign to this. ++c?.[42]?.[0]; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:14:14: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. diff --git a/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.weak.expect b/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.weak.expect index 6800298de23..ce4e2f2b651 100644 --- a/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.weak.expect @@ -97,13 +97,13 @@ Try inserting an identifier before '['. invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:8:11: Error: Can't assign to this. c?.[42] = 42; ^"; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:9:6: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:9:6: Error: Can't assign to this. c?.[42]++; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:9:6: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. c?.[42]++; ^"; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:10:8: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:10:8: Error: Can't assign to this. ++c?.[42]; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:10:8: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. @@ -116,13 +116,13 @@ Try inserting an identifier before '['. invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:12:16: Error: Can't assign to this. c?.[42]?.[0] ??= 42; ^^^"; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:13:12: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:13:12: Error: Can't assign to this. c?.[42]?.[0]++; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:13:12: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. c?.[42]?.[0]++; ^"; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:14:14: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:14:14: Error: Can't assign to this. ++c?.[42]?.[0]; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:14:14: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. diff --git a/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.weak.transformed.expect index 6800298de23..ce4e2f2b651 100644 --- a/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart.weak.transformed.expect @@ -97,13 +97,13 @@ Try inserting an identifier before '['. invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:8:11: Error: Can't assign to this. c?.[42] = 42; ^"; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:9:6: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:9:6: Error: Can't assign to this. c?.[42]++; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:9:6: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. c?.[42]++; ^"; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:10:8: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:10:8: Error: Can't assign to this. ++c?.[42]; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:10:8: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. @@ -116,13 +116,13 @@ Try inserting an identifier before '['. invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:12:16: Error: Can't assign to this. c?.[42]?.[0] ??= 42; ^^^"; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:13:12: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:13:12: Error: Can't assign to this. c?.[42]?.[0]++; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:13:12: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. c?.[42]?.[0]++; ^"; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:14:14: Error: Can't assign to this. + invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:14:14: Error: Can't assign to this. ++c?.[42]?.[0]; ^" in invalid-expression "pkg/front_end/testcases/nnbd/no_support_for_old_null_aware_index_access_syntax.dart:14:14: Error: Expected an identifier, but got '['. Try inserting an identifier before '['. diff --git a/pkg/front_end/testcases/nnbd/null_access.dart.strong.expect b/pkg/front_end/testcases/nnbd/null_access.dart.strong.expect index bf9303ef06e..e32613c2846 100644 --- a/pkg/front_end/testcases/nnbd/null_access.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/null_access.dart.strong.expect @@ -123,82 +123,82 @@ class NullableIndexClass extends core::Object { } static method main() → dynamic {} static method errors(self::Class? nullableClass, self::Class nonNullableClass, core::int? nullableInt, core::int nonNullableInt, self::NullableIndexClass? nullableNullableIndexClass) → dynamic { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:24:3: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:24:3: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. -nullableInt; // error ^" in nullableInt.{core::int::unary-}(){() → core::int}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:25:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:25:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. nullableInt + 2; // error ^" in nullableInt.{core::num::+}(2){(core::num) → core::num}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:26:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:26:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt]; // error ^" in nullableClass.{self::Class::[]}{}.(nonNullableInt){(core::int) → core::int}; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:27:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:27:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt] = nonNullableInt; // error ^" in nullableClass.{self::Class::[]=}{}.(nonNullableInt, nonNullableInt){(core::int, core::int) → void}; - let final self::Class? #t5 = nullableClass in let final core::int #t6 = nonNullableInt in let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + let final self::Class? #t1 = nullableClass in let final core::int #t2 = nonNullableInt in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt] += nonNullableInt; // error - ^" in #t5.{self::Class::[]=}{}.(#t6, (let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + ^" in #t1.{self::Class::[]=}{}.(#t2, invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt] += nonNullableInt; // error - ^" in #t5.{self::Class::[]}{}.(#t6){(core::int) → core::int}).{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; - let final self::NullableIndexClass? #t9 = nullableNullableIndexClass in let final core::int #t10 = nonNullableInt in (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]' cannot be called on 'NullableIndexClass?' because it is potentially null. + ^" in #t1.{self::Class::[]}{}.(#t2){(core::int) → core::int}.{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; + let final self::NullableIndexClass? #t3 = nullableNullableIndexClass in let final core::int #t4 = nonNullableInt in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]' cannot be called on 'NullableIndexClass?' because it is potentially null. - 'NullableIndexClass' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableNullableIndexClass[nonNullableInt] ??= nonNullableInt; // error - ^" in #t9.{self::NullableIndexClass::[]}{}.(#t10){(core::int) → core::int?}) == null ?{core::int} let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]=' cannot be called on 'NullableIndexClass?' because it is potentially null. + ^" in #t3.{self::NullableIndexClass::[]}{}.(#t4){(core::int) → core::int?} == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]=' cannot be called on 'NullableIndexClass?' because it is potentially null. - 'NullableIndexClass' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableNullableIndexClass[nonNullableInt] ??= nonNullableInt; // error - ^" in #t9.{self::NullableIndexClass::[]=}{}.(#t10, nonNullableInt){(core::int, core::int) → void} : null; - let final self::Class? #t13 = nullableClass in #t13 == null ?{core::int?} null : #t13{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]}(nonNullableInt){(core::int) → core::int}; - let final self::Class? #t14 = nullableClass in #t14 == null ?{core::int?} null : #t14{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]=}(nonNullableInt, nonNullableInt){(core::int, core::int) → void}; - let final self::Class? #t15 = nullableClass in #t15 == null ?{core::int?} null : let final self::Class #t16 = #t15{self::Class}.{self::Class::nonNullableClass}{self::Class} in let final core::int #t17 = nonNullableInt in #t16.{self::Class::[]=}(#t17, #t16.{self::Class::[]}(#t17){(core::int) → core::int}.{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; - let final self::Class? #t18 = nullableClass in #t18 == null ?{core::int?} null : let final self::NullableIndexClass #t19 = #t18{self::Class}.{self::Class::nonNullableNullableIndexClass}{self::NullableIndexClass} in let final core::int #t20 = nonNullableInt in #t19.{self::NullableIndexClass::[]}(#t20){(core::int) → core::int?} == null ?{core::int} #t19.{self::NullableIndexClass::[]=}(#t20, nonNullableInt){(core::int, core::int) → void} : null; - let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:37:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + ^" in #t3.{self::NullableIndexClass::[]=}{}.(#t4, nonNullableInt){(core::int, core::int) → void} : null; + let final self::Class? #t5 = nullableClass in #t5 == null ?{core::int?} null : #t5{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]}(nonNullableInt){(core::int) → core::int}; + let final self::Class? #t6 = nullableClass in #t6 == null ?{core::int?} null : #t6{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]=}(nonNullableInt, nonNullableInt){(core::int, core::int) → void}; + let final self::Class? #t7 = nullableClass in #t7 == null ?{core::int?} null : let final self::Class #t8 = #t7{self::Class}.{self::Class::nonNullableClass}{self::Class} in let final core::int #t9 = nonNullableInt in #t8.{self::Class::[]=}(#t9, #t8.{self::Class::[]}(#t9){(core::int) → core::int}.{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; + let final self::Class? #t10 = nullableClass in #t10 == null ?{core::int?} null : let final self::NullableIndexClass #t11 = #t10{self::Class}.{self::Class::nonNullableNullableIndexClass}{self::NullableIndexClass} in let final core::int #t12 = nonNullableInt in #t11.{self::NullableIndexClass::[]}(#t12){(core::int) → core::int?} == null ?{core::int} #t11.{self::NullableIndexClass::[]=}(#t12, nonNullableInt){(core::int, core::int) → void} : null; + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:37:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField; // error ^^^^^^^^^^^^^^^^" in nullableClass.{self::Class::nonNullableField}{}.{core::int}; - let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:38:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:38:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField = 2; // error ^^^^^^^^^^^^^^^^" in nullableClass.{self::Class::nonNullableField}{}. = 2; - let final self::Class? #t23 = nullableClass in let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + let final self::Class? #t13 = nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField += 2; // error - ^^^^^^^^^^^^^^^^" in #t23.{self::Class::nonNullableField}{}. = (let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^" in #t13.{self::Class::nonNullableField}{}. = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField += 2; // error - ^^^^^^^^^^^^^^^^" in #t23.{self::Class::nonNullableField}{}.{core::int}).{core::num::+}(2){(core::num) → core::int}; - let final self::Class? #t26 = nullableClass in #t26 == null ?{core::int?} null : #t26{self::Class}.{self::Class::nonNullableField}{core::int}; - let final self::Class? #t27 = nullableClass in #t27 == null ?{core::int?} null : #t27{self::Class}.{self::Class::nonNullableField} = 2; - let final self::Class? #t28 = nullableClass in #t28 == null ?{core::int?} null : #t28.{self::Class::nonNullableField} = #t28.{self::Class::nonNullableField}{core::int}.{core::num::+}(2){(core::num) → core::int}; - let final self::Class? #t29 = nullableClass in #t29 == null ?{core::int?} null : #t29{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField}{core::int}; - let final self::Class? #t30 = nullableClass in #t30 == null ?{core::int?} null : #t30{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField} = 2; - let final self::Class #t31 = nonNullableClass in #t31.{self::Class::nullableField} = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. + ^^^^^^^^^^^^^^^^" in #t13.{self::Class::nonNullableField}{}.{core::int}.{core::num::+}(2){(core::num) → core::int}; + let final self::Class? #t14 = nullableClass in #t14 == null ?{core::int?} null : #t14{self::Class}.{self::Class::nonNullableField}{core::int}; + let final self::Class? #t15 = nullableClass in #t15 == null ?{core::int?} null : #t15{self::Class}.{self::Class::nonNullableField} = 2; + let final self::Class? #t16 = nullableClass in #t16 == null ?{core::int?} null : #t16.{self::Class::nonNullableField} = #t16.{self::Class::nonNullableField}{core::int}.{core::num::+}(2){(core::num) → core::int}; + let final self::Class? #t17 = nullableClass in #t17 == null ?{core::int?} null : #t17{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField}{core::int}; + let final self::Class? #t18 = nullableClass in #t18 == null ?{core::int?} null : #t18{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField} = 2; + let final self::Class #t19 = nonNullableClass in #t19.{self::Class::nullableField} = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. nonNullableClass.nullableField += 2; // error - ^" in (let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + ^" in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. nonNullableClass.nullableField += 2; // error - ^" in #t31.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num}) as{TypeError,ForNonNullableByDefault} core::int?; - let final self::Class? #t34 = nullableClass in #t34 == null ?{core::num?} null : #t34.{self::Class::nullableField} = let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. + ^" in #t19.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int?; + let final self::Class? #t20 = nullableClass in #t20 == null ?{core::num?} null : #t20.{self::Class::nullableField} = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. nullableClass?.nullableField += 2; // error - ^" in (let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + ^" in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: Operator '+' cannot be called on 'int?' because it is potentially null. nullableClass?.nullableField += 2; // error - ^" in #t34.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num}) as{TypeError,ForNonNullableByDefault} core::int?; - let final self::Class? #t37 = nullableClass in #t37 == null ?{core::int?} null : #t37.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t37.{self::Class::nonNullableField} = 0 : null; - let final self::Class? #t38 = nullableClass in #t38 == null ?{core::int?} null : #t38.{self::Class::nullableField}{core::int?} == null ?{core::int} #t38.{self::Class::nullableField} = 0 : null; - let final self::Class? #t39 = nullableClass in #t39 == null ?{core::int?} null : let final self::Class #t40 = #t39{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t40.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t40.{self::Class::nonNullableField} = 0 : null; - let final self::Class? #t41 = nullableClass in #t41 == null ?{core::int?} null : let final self::Class #t42 = #t41{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t42.{self::Class::nullableField}{core::int?} == null ?{core::int} #t42.{self::Class::nullableField} = 0 : null; - let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:57:16: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + ^" in #t20.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int?; + let final self::Class? #t21 = nullableClass in #t21 == null ?{core::int?} null : #t21.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t21.{self::Class::nonNullableField} = 0 : null; + let final self::Class? #t22 = nullableClass in #t22 == null ?{core::int?} null : #t22.{self::Class::nullableField}{core::int?} == null ?{core::int} #t22.{self::Class::nullableField} = 0 : null; + let final self::Class? #t23 = nullableClass in #t23 == null ?{core::int?} null : let final self::Class #t24 = #t23{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t24.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t24.{self::Class::nonNullableField} = 0 : null; + let final self::Class? #t25 = nullableClass in #t25 == null ?{core::int?} null : let final self::Class #t26 = #t25{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t26.{self::Class::nullableField}{core::int?} == null ?{core::int} #t26.{self::Class::nullableField} = 0 : null; + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:57:16: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try calling using ?.call instead. nullableClass(); // error ^" in nullableClass.{self::Class::call}{}.(){() → self::Class}; nonNullableClass.{self::Class::call}(){() → self::Class}; - let final self::Class #t44 = nonNullableClass in #t44 == null ?{self::Class?} null : #t44.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; - let final self::Class #t45 = nonNullableClass in #t45 == null ?{self::Class?} null : #t45.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; + let final self::Class #t27 = nonNullableClass in #t27 == null ?{self::Class?} null : #t27.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; + let final self::Class #t28 = nonNullableClass in #t28 == null ?{self::Class?} null : #t28.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; } diff --git a/pkg/front_end/testcases/nnbd/null_access.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/null_access.dart.strong.transformed.expect index bf9303ef06e..a60625caf5c 100644 --- a/pkg/front_end/testcases/nnbd/null_access.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/null_access.dart.strong.transformed.expect @@ -123,82 +123,82 @@ class NullableIndexClass extends core::Object { } static method main() → dynamic {} static method errors(self::Class? nullableClass, self::Class nonNullableClass, core::int? nullableInt, core::int nonNullableInt, self::NullableIndexClass? nullableNullableIndexClass) → dynamic { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:24:3: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:24:3: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. -nullableInt; // error ^" in nullableInt.{core::int::unary-}(){() → core::int}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:25:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:25:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. nullableInt + 2; // error ^" in nullableInt.{core::num::+}(2){(core::num) → core::num}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:26:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:26:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt]; // error ^" in nullableClass.{self::Class::[]}{}.(nonNullableInt){(core::int) → core::int}; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:27:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:27:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt] = nonNullableInt; // error ^" in nullableClass.{self::Class::[]=}{}.(nonNullableInt, nonNullableInt){(core::int, core::int) → void}; - let final self::Class? #t5 = nullableClass in let final core::int #t6 = nonNullableInt in let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + let final self::Class? #t1 = nullableClass in let final core::int #t2 = nonNullableInt in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt] += nonNullableInt; // error - ^" in #t5.{self::Class::[]=}{}.(#t6, (let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + ^" in #t1.{self::Class::[]=}{}.(#t2, invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt] += nonNullableInt; // error - ^" in #t5.{self::Class::[]}{}.(#t6){(core::int) → core::int}).{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; - let final self::NullableIndexClass? #t9 = nullableNullableIndexClass in let final core::int #t10 = nonNullableInt in (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]' cannot be called on 'NullableIndexClass?' because it is potentially null. + ^" in #t1.{self::Class::[]}{}.(#t2){(core::int) → core::int}.{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; + let final self::NullableIndexClass? #t3 = nullableNullableIndexClass in let final core::int #t4 = nonNullableInt in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]' cannot be called on 'NullableIndexClass?' because it is potentially null. - 'NullableIndexClass' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableNullableIndexClass[nonNullableInt] ??= nonNullableInt; // error - ^" in #t9.{self::NullableIndexClass::[]}{}.(#t10){(core::int) → core::int?}) == null ?{core::int} let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]=' cannot be called on 'NullableIndexClass?' because it is potentially null. + ^" in #t3.{self::NullableIndexClass::[]}{}.(#t4){(core::int) → core::int?} == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]=' cannot be called on 'NullableIndexClass?' because it is potentially null. - 'NullableIndexClass' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableNullableIndexClass[nonNullableInt] ??= nonNullableInt; // error - ^" in #t9.{self::NullableIndexClass::[]=}{}.(#t10, nonNullableInt){(core::int, core::int) → void} : null; - let final self::Class? #t13 = nullableClass in #t13 == null ?{core::int?} null : #t13{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]}(nonNullableInt){(core::int) → core::int}; - let final self::Class? #t14 = nullableClass in #t14 == null ?{core::int?} null : #t14{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]=}(nonNullableInt, nonNullableInt){(core::int, core::int) → void}; - let final self::Class? #t15 = nullableClass in #t15 == null ?{core::int?} null : let final self::Class #t16 = #t15{self::Class}.{self::Class::nonNullableClass}{self::Class} in let final core::int #t17 = nonNullableInt in #t16.{self::Class::[]=}(#t17, #t16.{self::Class::[]}(#t17){(core::int) → core::int}.{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; - let final self::Class? #t18 = nullableClass in #t18 == null ?{core::int?} null : let final self::NullableIndexClass #t19 = #t18{self::Class}.{self::Class::nonNullableNullableIndexClass}{self::NullableIndexClass} in let final core::int #t20 = nonNullableInt in #t19.{self::NullableIndexClass::[]}(#t20){(core::int) → core::int?} == null ?{core::int} #t19.{self::NullableIndexClass::[]=}(#t20, nonNullableInt){(core::int, core::int) → void} : null; - let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:37:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + ^" in #t3.{self::NullableIndexClass::[]=}{}.(#t4, nonNullableInt){(core::int, core::int) → void} : null; + let final self::Class? #t5 = nullableClass in #t5 == null ?{core::int?} null : #t5{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]}(nonNullableInt){(core::int) → core::int}; + let final self::Class? #t6 = nullableClass in #t6 == null ?{core::int?} null : #t6{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]=}(nonNullableInt, nonNullableInt){(core::int, core::int) → void}; + let final self::Class? #t7 = nullableClass in #t7 == null ?{core::int?} null : let final self::Class #t8 = #t7{self::Class}.{self::Class::nonNullableClass}{self::Class} in let final core::int #t9 = nonNullableInt in #t8.{self::Class::[]=}(#t9, #t8.{self::Class::[]}(#t9){(core::int) → core::int}.{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; + let final self::Class? #t10 = nullableClass in #t10 == null ?{core::int?} null : let final self::NullableIndexClass #t11 = #t10{self::Class}.{self::Class::nonNullableNullableIndexClass}{self::NullableIndexClass} in let final core::int #t12 = nonNullableInt in #t11.{self::NullableIndexClass::[]}(#t12){(core::int) → core::int?} == null ?{core::int} #t11.{self::NullableIndexClass::[]=}(#t12, nonNullableInt){(core::int, core::int) → void} : null; + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:37:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField; // error ^^^^^^^^^^^^^^^^" in nullableClass.{self::Class::nonNullableField}{}.{core::int}; - let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:38:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:38:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField = 2; // error ^^^^^^^^^^^^^^^^" in nullableClass.{self::Class::nonNullableField}{}. = 2; - let final self::Class? #t23 = nullableClass in let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + let final self::Class? #t13 = nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField += 2; // error - ^^^^^^^^^^^^^^^^" in #t23.{self::Class::nonNullableField}{}. = (let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^" in #t13.{self::Class::nonNullableField}{}. = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField += 2; // error - ^^^^^^^^^^^^^^^^" in #t23.{self::Class::nonNullableField}{}.{core::int}).{core::num::+}(2){(core::num) → core::int}; - let final self::Class? #t26 = nullableClass in #t26 == null ?{core::int?} null : #t26{self::Class}.{self::Class::nonNullableField}{core::int}; - let final self::Class? #t27 = nullableClass in #t27 == null ?{core::int?} null : #t27{self::Class}.{self::Class::nonNullableField} = 2; - let final self::Class? #t28 = nullableClass in #t28 == null ?{core::int?} null : #t28.{self::Class::nonNullableField} = #t28.{self::Class::nonNullableField}{core::int}.{core::num::+}(2){(core::num) → core::int}; - let final self::Class? #t29 = nullableClass in #t29 == null ?{core::int?} null : #t29{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField}{core::int}; - let final self::Class? #t30 = nullableClass in #t30 == null ?{core::int?} null : #t30{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField} = 2; - let final self::Class #t31 = nonNullableClass in #t31.{self::Class::nullableField} = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. + ^^^^^^^^^^^^^^^^" in #t13.{self::Class::nonNullableField}{}.{core::int}.{core::num::+}(2){(core::num) → core::int}; + let final self::Class? #t14 = nullableClass in #t14 == null ?{core::int?} null : #t14{self::Class}.{self::Class::nonNullableField}{core::int}; + let final self::Class? #t15 = nullableClass in #t15 == null ?{core::int?} null : #t15{self::Class}.{self::Class::nonNullableField} = 2; + let final self::Class? #t16 = nullableClass in #t16 == null ?{core::int?} null : #t16.{self::Class::nonNullableField} = #t16.{self::Class::nonNullableField}{core::int}.{core::num::+}(2){(core::num) → core::int}; + let final self::Class? #t17 = nullableClass in #t17 == null ?{core::int?} null : #t17{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField}{core::int}; + let final self::Class? #t18 = nullableClass in #t18 == null ?{core::int?} null : #t18{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField} = 2; + let final self::Class #t19 = nonNullableClass in #t19.{self::Class::nullableField} = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. nonNullableClass.nullableField += 2; // error - ^" in (let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + ^" in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. nonNullableClass.nullableField += 2; // error - ^" in #t31.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num}) as{TypeError,ForNonNullableByDefault} core::int?; - let final self::Class? #t34 = nullableClass in #t34 == null ?{core::num?} null : #t34.{self::Class::nullableField} = let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. + ^" in #t19.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num}; + let final self::Class? #t20 = nullableClass in #t20 == null ?{core::num?} null : #t20.{self::Class::nullableField} = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. nullableClass?.nullableField += 2; // error - ^" in (let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + ^" in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: Operator '+' cannot be called on 'int?' because it is potentially null. nullableClass?.nullableField += 2; // error - ^" in #t34.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num}) as{TypeError,ForNonNullableByDefault} core::int?; - let final self::Class? #t37 = nullableClass in #t37 == null ?{core::int?} null : #t37.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t37.{self::Class::nonNullableField} = 0 : null; - let final self::Class? #t38 = nullableClass in #t38 == null ?{core::int?} null : #t38.{self::Class::nullableField}{core::int?} == null ?{core::int} #t38.{self::Class::nullableField} = 0 : null; - let final self::Class? #t39 = nullableClass in #t39 == null ?{core::int?} null : let final self::Class #t40 = #t39{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t40.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t40.{self::Class::nonNullableField} = 0 : null; - let final self::Class? #t41 = nullableClass in #t41 == null ?{core::int?} null : let final self::Class #t42 = #t41{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t42.{self::Class::nullableField}{core::int?} == null ?{core::int} #t42.{self::Class::nullableField} = 0 : null; - let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:57:16: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + ^" in #t20.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num}; + let final self::Class? #t21 = nullableClass in #t21 == null ?{core::int?} null : #t21.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t21.{self::Class::nonNullableField} = 0 : null; + let final self::Class? #t22 = nullableClass in #t22 == null ?{core::int?} null : #t22.{self::Class::nullableField}{core::int?} == null ?{core::int} #t22.{self::Class::nullableField} = 0 : null; + let final self::Class? #t23 = nullableClass in #t23 == null ?{core::int?} null : let final self::Class #t24 = #t23{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t24.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t24.{self::Class::nonNullableField} = 0 : null; + let final self::Class? #t25 = nullableClass in #t25 == null ?{core::int?} null : let final self::Class #t26 = #t25{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t26.{self::Class::nullableField}{core::int?} == null ?{core::int} #t26.{self::Class::nullableField} = 0 : null; + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:57:16: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try calling using ?.call instead. nullableClass(); // error ^" in nullableClass.{self::Class::call}{}.(){() → self::Class}; nonNullableClass.{self::Class::call}(){() → self::Class}; - let final self::Class #t44 = nonNullableClass in #t44 == null ?{self::Class?} null : #t44.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; - let final self::Class #t45 = nonNullableClass in #t45 == null ?{self::Class?} null : #t45.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; + let final self::Class #t27 = nonNullableClass in #t27 == null ?{self::Class?} null : #t27.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; + let final self::Class #t28 = nonNullableClass in #t28 == null ?{self::Class?} null : #t28.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; } diff --git a/pkg/front_end/testcases/nnbd/null_access.dart.weak.expect b/pkg/front_end/testcases/nnbd/null_access.dart.weak.expect index bf9303ef06e..e32613c2846 100644 --- a/pkg/front_end/testcases/nnbd/null_access.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/null_access.dart.weak.expect @@ -123,82 +123,82 @@ class NullableIndexClass extends core::Object { } static method main() → dynamic {} static method errors(self::Class? nullableClass, self::Class nonNullableClass, core::int? nullableInt, core::int nonNullableInt, self::NullableIndexClass? nullableNullableIndexClass) → dynamic { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:24:3: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:24:3: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. -nullableInt; // error ^" in nullableInt.{core::int::unary-}(){() → core::int}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:25:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:25:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. nullableInt + 2; // error ^" in nullableInt.{core::num::+}(2){(core::num) → core::num}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:26:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:26:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt]; // error ^" in nullableClass.{self::Class::[]}{}.(nonNullableInt){(core::int) → core::int}; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:27:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:27:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt] = nonNullableInt; // error ^" in nullableClass.{self::Class::[]=}{}.(nonNullableInt, nonNullableInt){(core::int, core::int) → void}; - let final self::Class? #t5 = nullableClass in let final core::int #t6 = nonNullableInt in let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + let final self::Class? #t1 = nullableClass in let final core::int #t2 = nonNullableInt in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt] += nonNullableInt; // error - ^" in #t5.{self::Class::[]=}{}.(#t6, (let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + ^" in #t1.{self::Class::[]=}{}.(#t2, invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt] += nonNullableInt; // error - ^" in #t5.{self::Class::[]}{}.(#t6){(core::int) → core::int}).{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; - let final self::NullableIndexClass? #t9 = nullableNullableIndexClass in let final core::int #t10 = nonNullableInt in (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]' cannot be called on 'NullableIndexClass?' because it is potentially null. + ^" in #t1.{self::Class::[]}{}.(#t2){(core::int) → core::int}.{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; + let final self::NullableIndexClass? #t3 = nullableNullableIndexClass in let final core::int #t4 = nonNullableInt in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]' cannot be called on 'NullableIndexClass?' because it is potentially null. - 'NullableIndexClass' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableNullableIndexClass[nonNullableInt] ??= nonNullableInt; // error - ^" in #t9.{self::NullableIndexClass::[]}{}.(#t10){(core::int) → core::int?}) == null ?{core::int} let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]=' cannot be called on 'NullableIndexClass?' because it is potentially null. + ^" in #t3.{self::NullableIndexClass::[]}{}.(#t4){(core::int) → core::int?} == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]=' cannot be called on 'NullableIndexClass?' because it is potentially null. - 'NullableIndexClass' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableNullableIndexClass[nonNullableInt] ??= nonNullableInt; // error - ^" in #t9.{self::NullableIndexClass::[]=}{}.(#t10, nonNullableInt){(core::int, core::int) → void} : null; - let final self::Class? #t13 = nullableClass in #t13 == null ?{core::int?} null : #t13{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]}(nonNullableInt){(core::int) → core::int}; - let final self::Class? #t14 = nullableClass in #t14 == null ?{core::int?} null : #t14{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]=}(nonNullableInt, nonNullableInt){(core::int, core::int) → void}; - let final self::Class? #t15 = nullableClass in #t15 == null ?{core::int?} null : let final self::Class #t16 = #t15{self::Class}.{self::Class::nonNullableClass}{self::Class} in let final core::int #t17 = nonNullableInt in #t16.{self::Class::[]=}(#t17, #t16.{self::Class::[]}(#t17){(core::int) → core::int}.{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; - let final self::Class? #t18 = nullableClass in #t18 == null ?{core::int?} null : let final self::NullableIndexClass #t19 = #t18{self::Class}.{self::Class::nonNullableNullableIndexClass}{self::NullableIndexClass} in let final core::int #t20 = nonNullableInt in #t19.{self::NullableIndexClass::[]}(#t20){(core::int) → core::int?} == null ?{core::int} #t19.{self::NullableIndexClass::[]=}(#t20, nonNullableInt){(core::int, core::int) → void} : null; - let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:37:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + ^" in #t3.{self::NullableIndexClass::[]=}{}.(#t4, nonNullableInt){(core::int, core::int) → void} : null; + let final self::Class? #t5 = nullableClass in #t5 == null ?{core::int?} null : #t5{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]}(nonNullableInt){(core::int) → core::int}; + let final self::Class? #t6 = nullableClass in #t6 == null ?{core::int?} null : #t6{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]=}(nonNullableInt, nonNullableInt){(core::int, core::int) → void}; + let final self::Class? #t7 = nullableClass in #t7 == null ?{core::int?} null : let final self::Class #t8 = #t7{self::Class}.{self::Class::nonNullableClass}{self::Class} in let final core::int #t9 = nonNullableInt in #t8.{self::Class::[]=}(#t9, #t8.{self::Class::[]}(#t9){(core::int) → core::int}.{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; + let final self::Class? #t10 = nullableClass in #t10 == null ?{core::int?} null : let final self::NullableIndexClass #t11 = #t10{self::Class}.{self::Class::nonNullableNullableIndexClass}{self::NullableIndexClass} in let final core::int #t12 = nonNullableInt in #t11.{self::NullableIndexClass::[]}(#t12){(core::int) → core::int?} == null ?{core::int} #t11.{self::NullableIndexClass::[]=}(#t12, nonNullableInt){(core::int, core::int) → void} : null; + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:37:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField; // error ^^^^^^^^^^^^^^^^" in nullableClass.{self::Class::nonNullableField}{}.{core::int}; - let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:38:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:38:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField = 2; // error ^^^^^^^^^^^^^^^^" in nullableClass.{self::Class::nonNullableField}{}. = 2; - let final self::Class? #t23 = nullableClass in let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + let final self::Class? #t13 = nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField += 2; // error - ^^^^^^^^^^^^^^^^" in #t23.{self::Class::nonNullableField}{}. = (let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^" in #t13.{self::Class::nonNullableField}{}. = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField += 2; // error - ^^^^^^^^^^^^^^^^" in #t23.{self::Class::nonNullableField}{}.{core::int}).{core::num::+}(2){(core::num) → core::int}; - let final self::Class? #t26 = nullableClass in #t26 == null ?{core::int?} null : #t26{self::Class}.{self::Class::nonNullableField}{core::int}; - let final self::Class? #t27 = nullableClass in #t27 == null ?{core::int?} null : #t27{self::Class}.{self::Class::nonNullableField} = 2; - let final self::Class? #t28 = nullableClass in #t28 == null ?{core::int?} null : #t28.{self::Class::nonNullableField} = #t28.{self::Class::nonNullableField}{core::int}.{core::num::+}(2){(core::num) → core::int}; - let final self::Class? #t29 = nullableClass in #t29 == null ?{core::int?} null : #t29{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField}{core::int}; - let final self::Class? #t30 = nullableClass in #t30 == null ?{core::int?} null : #t30{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField} = 2; - let final self::Class #t31 = nonNullableClass in #t31.{self::Class::nullableField} = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. + ^^^^^^^^^^^^^^^^" in #t13.{self::Class::nonNullableField}{}.{core::int}.{core::num::+}(2){(core::num) → core::int}; + let final self::Class? #t14 = nullableClass in #t14 == null ?{core::int?} null : #t14{self::Class}.{self::Class::nonNullableField}{core::int}; + let final self::Class? #t15 = nullableClass in #t15 == null ?{core::int?} null : #t15{self::Class}.{self::Class::nonNullableField} = 2; + let final self::Class? #t16 = nullableClass in #t16 == null ?{core::int?} null : #t16.{self::Class::nonNullableField} = #t16.{self::Class::nonNullableField}{core::int}.{core::num::+}(2){(core::num) → core::int}; + let final self::Class? #t17 = nullableClass in #t17 == null ?{core::int?} null : #t17{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField}{core::int}; + let final self::Class? #t18 = nullableClass in #t18 == null ?{core::int?} null : #t18{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField} = 2; + let final self::Class #t19 = nonNullableClass in #t19.{self::Class::nullableField} = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. nonNullableClass.nullableField += 2; // error - ^" in (let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + ^" in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. nonNullableClass.nullableField += 2; // error - ^" in #t31.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num}) as{TypeError,ForNonNullableByDefault} core::int?; - let final self::Class? #t34 = nullableClass in #t34 == null ?{core::num?} null : #t34.{self::Class::nullableField} = let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. + ^" in #t19.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int?; + let final self::Class? #t20 = nullableClass in #t20 == null ?{core::num?} null : #t20.{self::Class::nullableField} = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. nullableClass?.nullableField += 2; // error - ^" in (let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + ^" in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: Operator '+' cannot be called on 'int?' because it is potentially null. nullableClass?.nullableField += 2; // error - ^" in #t34.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num}) as{TypeError,ForNonNullableByDefault} core::int?; - let final self::Class? #t37 = nullableClass in #t37 == null ?{core::int?} null : #t37.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t37.{self::Class::nonNullableField} = 0 : null; - let final self::Class? #t38 = nullableClass in #t38 == null ?{core::int?} null : #t38.{self::Class::nullableField}{core::int?} == null ?{core::int} #t38.{self::Class::nullableField} = 0 : null; - let final self::Class? #t39 = nullableClass in #t39 == null ?{core::int?} null : let final self::Class #t40 = #t39{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t40.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t40.{self::Class::nonNullableField} = 0 : null; - let final self::Class? #t41 = nullableClass in #t41 == null ?{core::int?} null : let final self::Class #t42 = #t41{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t42.{self::Class::nullableField}{core::int?} == null ?{core::int} #t42.{self::Class::nullableField} = 0 : null; - let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:57:16: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + ^" in #t20.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int?; + let final self::Class? #t21 = nullableClass in #t21 == null ?{core::int?} null : #t21.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t21.{self::Class::nonNullableField} = 0 : null; + let final self::Class? #t22 = nullableClass in #t22 == null ?{core::int?} null : #t22.{self::Class::nullableField}{core::int?} == null ?{core::int} #t22.{self::Class::nullableField} = 0 : null; + let final self::Class? #t23 = nullableClass in #t23 == null ?{core::int?} null : let final self::Class #t24 = #t23{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t24.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t24.{self::Class::nonNullableField} = 0 : null; + let final self::Class? #t25 = nullableClass in #t25 == null ?{core::int?} null : let final self::Class #t26 = #t25{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t26.{self::Class::nullableField}{core::int?} == null ?{core::int} #t26.{self::Class::nullableField} = 0 : null; + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:57:16: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try calling using ?.call instead. nullableClass(); // error ^" in nullableClass.{self::Class::call}{}.(){() → self::Class}; nonNullableClass.{self::Class::call}(){() → self::Class}; - let final self::Class #t44 = nonNullableClass in #t44 == null ?{self::Class?} null : #t44.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; - let final self::Class #t45 = nonNullableClass in #t45 == null ?{self::Class?} null : #t45.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; + let final self::Class #t27 = nonNullableClass in #t27 == null ?{self::Class?} null : #t27.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; + let final self::Class #t28 = nonNullableClass in #t28 == null ?{self::Class?} null : #t28.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; } diff --git a/pkg/front_end/testcases/nnbd/null_access.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/null_access.dart.weak.transformed.expect index bf9303ef06e..a60625caf5c 100644 --- a/pkg/front_end/testcases/nnbd/null_access.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/null_access.dart.weak.transformed.expect @@ -123,82 +123,82 @@ class NullableIndexClass extends core::Object { } static method main() → dynamic {} static method errors(self::Class? nullableClass, self::Class nonNullableClass, core::int? nullableInt, core::int nonNullableInt, self::NullableIndexClass? nullableNullableIndexClass) → dynamic { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:24:3: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:24:3: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. -nullableInt; // error ^" in nullableInt.{core::int::unary-}(){() → core::int}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:25:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:25:15: Error: Operator '+' cannot be called on 'int?' because it is potentially null. nullableInt + 2; // error ^" in nullableInt.{core::num::+}(2){(core::num) → core::num}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:26:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:26:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt]; // error ^" in nullableClass.{self::Class::[]}{}.(nonNullableInt){(core::int) → core::int}; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:27:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:27:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt] = nonNullableInt; // error ^" in nullableClass.{self::Class::[]=}{}.(nonNullableInt, nonNullableInt){(core::int, core::int) → void}; - let final self::Class? #t5 = nullableClass in let final core::int #t6 = nonNullableInt in let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + let final self::Class? #t1 = nullableClass in let final core::int #t2 = nonNullableInt in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt] += nonNullableInt; // error - ^" in #t5.{self::Class::[]=}{}.(#t6, (let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + ^" in #t1.{self::Class::[]=}{}.(#t2, invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:28:16: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableClass[nonNullableInt] += nonNullableInt; // error - ^" in #t5.{self::Class::[]}{}.(#t6){(core::int) → core::int}).{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; - let final self::NullableIndexClass? #t9 = nullableNullableIndexClass in let final core::int #t10 = nonNullableInt in (let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]' cannot be called on 'NullableIndexClass?' because it is potentially null. + ^" in #t1.{self::Class::[]}{}.(#t2){(core::int) → core::int}.{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; + let final self::NullableIndexClass? #t3 = nullableNullableIndexClass in let final core::int #t4 = nonNullableInt in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]' cannot be called on 'NullableIndexClass?' because it is potentially null. - 'NullableIndexClass' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableNullableIndexClass[nonNullableInt] ??= nonNullableInt; // error - ^" in #t9.{self::NullableIndexClass::[]}{}.(#t10){(core::int) → core::int?}) == null ?{core::int} let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]=' cannot be called on 'NullableIndexClass?' because it is potentially null. + ^" in #t3.{self::NullableIndexClass::[]}{}.(#t4){(core::int) → core::int?} == null ?{core::int} invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:29:29: Error: Operator '[]=' cannot be called on 'NullableIndexClass?' because it is potentially null. - 'NullableIndexClass' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. nullableNullableIndexClass[nonNullableInt] ??= nonNullableInt; // error - ^" in #t9.{self::NullableIndexClass::[]=}{}.(#t10, nonNullableInt){(core::int, core::int) → void} : null; - let final self::Class? #t13 = nullableClass in #t13 == null ?{core::int?} null : #t13{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]}(nonNullableInt){(core::int) → core::int}; - let final self::Class? #t14 = nullableClass in #t14 == null ?{core::int?} null : #t14{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]=}(nonNullableInt, nonNullableInt){(core::int, core::int) → void}; - let final self::Class? #t15 = nullableClass in #t15 == null ?{core::int?} null : let final self::Class #t16 = #t15{self::Class}.{self::Class::nonNullableClass}{self::Class} in let final core::int #t17 = nonNullableInt in #t16.{self::Class::[]=}(#t17, #t16.{self::Class::[]}(#t17){(core::int) → core::int}.{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; - let final self::Class? #t18 = nullableClass in #t18 == null ?{core::int?} null : let final self::NullableIndexClass #t19 = #t18{self::Class}.{self::Class::nonNullableNullableIndexClass}{self::NullableIndexClass} in let final core::int #t20 = nonNullableInt in #t19.{self::NullableIndexClass::[]}(#t20){(core::int) → core::int?} == null ?{core::int} #t19.{self::NullableIndexClass::[]=}(#t20, nonNullableInt){(core::int, core::int) → void} : null; - let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:37:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + ^" in #t3.{self::NullableIndexClass::[]=}{}.(#t4, nonNullableInt){(core::int, core::int) → void} : null; + let final self::Class? #t5 = nullableClass in #t5 == null ?{core::int?} null : #t5{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]}(nonNullableInt){(core::int) → core::int}; + let final self::Class? #t6 = nullableClass in #t6 == null ?{core::int?} null : #t6{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::[]=}(nonNullableInt, nonNullableInt){(core::int, core::int) → void}; + let final self::Class? #t7 = nullableClass in #t7 == null ?{core::int?} null : let final self::Class #t8 = #t7{self::Class}.{self::Class::nonNullableClass}{self::Class} in let final core::int #t9 = nonNullableInt in #t8.{self::Class::[]=}(#t9, #t8.{self::Class::[]}(#t9){(core::int) → core::int}.{core::num::+}(nonNullableInt){(core::num) → core::int}){(core::int, core::int) → void}; + let final self::Class? #t10 = nullableClass in #t10 == null ?{core::int?} null : let final self::NullableIndexClass #t11 = #t10{self::Class}.{self::Class::nonNullableNullableIndexClass}{self::NullableIndexClass} in let final core::int #t12 = nonNullableInt in #t11.{self::NullableIndexClass::[]}(#t12){(core::int) → core::int?} == null ?{core::int} #t11.{self::NullableIndexClass::[]=}(#t12, nonNullableInt){(core::int, core::int) → void} : null; + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:37:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField; // error ^^^^^^^^^^^^^^^^" in nullableClass.{self::Class::nonNullableField}{}.{core::int}; - let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:38:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:38:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField = 2; // error ^^^^^^^^^^^^^^^^" in nullableClass.{self::Class::nonNullableField}{}. = 2; - let final self::Class? #t23 = nullableClass in let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + let final self::Class? #t13 = nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField += 2; // error - ^^^^^^^^^^^^^^^^" in #t23.{self::Class::nonNullableField}{}. = (let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^" in #t13.{self::Class::nonNullableField}{}. = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:39:17: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try accessing using ?. instead. nullableClass.nonNullableField += 2; // error - ^^^^^^^^^^^^^^^^" in #t23.{self::Class::nonNullableField}{}.{core::int}).{core::num::+}(2){(core::num) → core::int}; - let final self::Class? #t26 = nullableClass in #t26 == null ?{core::int?} null : #t26{self::Class}.{self::Class::nonNullableField}{core::int}; - let final self::Class? #t27 = nullableClass in #t27 == null ?{core::int?} null : #t27{self::Class}.{self::Class::nonNullableField} = 2; - let final self::Class? #t28 = nullableClass in #t28 == null ?{core::int?} null : #t28.{self::Class::nonNullableField} = #t28.{self::Class::nonNullableField}{core::int}.{core::num::+}(2){(core::num) → core::int}; - let final self::Class? #t29 = nullableClass in #t29 == null ?{core::int?} null : #t29{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField}{core::int}; - let final self::Class? #t30 = nullableClass in #t30 == null ?{core::int?} null : #t30{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField} = 2; - let final self::Class #t31 = nonNullableClass in #t31.{self::Class::nullableField} = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. + ^^^^^^^^^^^^^^^^" in #t13.{self::Class::nonNullableField}{}.{core::int}.{core::num::+}(2){(core::num) → core::int}; + let final self::Class? #t14 = nullableClass in #t14 == null ?{core::int?} null : #t14{self::Class}.{self::Class::nonNullableField}{core::int}; + let final self::Class? #t15 = nullableClass in #t15 == null ?{core::int?} null : #t15{self::Class}.{self::Class::nonNullableField} = 2; + let final self::Class? #t16 = nullableClass in #t16 == null ?{core::int?} null : #t16.{self::Class::nonNullableField} = #t16.{self::Class::nonNullableField}{core::int}.{core::num::+}(2){(core::num) → core::int}; + let final self::Class? #t17 = nullableClass in #t17 == null ?{core::int?} null : #t17{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField}{core::int}; + let final self::Class? #t18 = nullableClass in #t18 == null ?{core::int?} null : #t18{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableField} = 2; + let final self::Class #t19 = nonNullableClass in #t19.{self::Class::nullableField} = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. nonNullableClass.nullableField += 2; // error - ^" in (let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + ^" in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:48:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. nonNullableClass.nullableField += 2; // error - ^" in #t31.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num}) as{TypeError,ForNonNullableByDefault} core::int?; - let final self::Class? #t34 = nullableClass in #t34 == null ?{core::num?} null : #t34.{self::Class::nullableField} = let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. + ^" in #t19.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num}; + let final self::Class? #t20 = nullableClass in #t20 == null ?{core::num?} null : #t20.{self::Class::nullableField} = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: A value of type 'num' can't be assigned to a variable of type 'int?'. nullableClass?.nullableField += 2; // error - ^" in (let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + ^" in invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:49:32: Error: Operator '+' cannot be called on 'int?' because it is potentially null. nullableClass?.nullableField += 2; // error - ^" in #t34.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num}) as{TypeError,ForNonNullableByDefault} core::int?; - let final self::Class? #t37 = nullableClass in #t37 == null ?{core::int?} null : #t37.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t37.{self::Class::nonNullableField} = 0 : null; - let final self::Class? #t38 = nullableClass in #t38 == null ?{core::int?} null : #t38.{self::Class::nullableField}{core::int?} == null ?{core::int} #t38.{self::Class::nullableField} = 0 : null; - let final self::Class? #t39 = nullableClass in #t39 == null ?{core::int?} null : let final self::Class #t40 = #t39{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t40.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t40.{self::Class::nonNullableField} = 0 : null; - let final self::Class? #t41 = nullableClass in #t41 == null ?{core::int?} null : let final self::Class #t42 = #t41{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t42.{self::Class::nullableField}{core::int?} == null ?{core::int} #t42.{self::Class::nullableField} = 0 : null; - let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:57:16: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + ^" in #t20.{self::Class::nullableField}{core::int?}.{core::num::+}(2){(core::num) → core::num}; + let final self::Class? #t21 = nullableClass in #t21 == null ?{core::int?} null : #t21.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t21.{self::Class::nonNullableField} = 0 : null; + let final self::Class? #t22 = nullableClass in #t22 == null ?{core::int?} null : #t22.{self::Class::nullableField}{core::int?} == null ?{core::int} #t22.{self::Class::nullableField} = 0 : null; + let final self::Class? #t23 = nullableClass in #t23 == null ?{core::int?} null : let final self::Class #t24 = #t23{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t24.{self::Class::nonNullableField}{core::int} == null ?{core::int} #t24.{self::Class::nonNullableField} = 0 : null; + let final self::Class? #t25 = nullableClass in #t25 == null ?{core::int?} null : let final self::Class #t26 = #t25{self::Class}.{self::Class::nonNullableClass}{self::Class} in #t26.{self::Class::nullableField}{core::int?} == null ?{core::int} #t26.{self::Class::nullableField} = 0 : null; + invalid-expression "pkg/front_end/testcases/nnbd/null_access.dart:57:16: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/null_access.dart'. Try calling using ?.call instead. nullableClass(); // error ^" in nullableClass.{self::Class::call}{}.(){() → self::Class}; nonNullableClass.{self::Class::call}(){() → self::Class}; - let final self::Class #t44 = nonNullableClass in #t44 == null ?{self::Class?} null : #t44.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; - let final self::Class #t45 = nonNullableClass in #t45 == null ?{self::Class?} null : #t45.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; + let final self::Class #t27 = nonNullableClass in #t27 == null ?{self::Class?} null : #t27.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; + let final self::Class #t28 = nonNullableClass in #t28 == null ?{self::Class?} null : #t28.{self::Class::nonNullableClass}{self::Class}.{self::Class::nonNullableClass}{self::Class}.{self::Class::call}(){() → self::Class}; } diff --git a/pkg/front_end/testcases/nnbd/null_shorting.dart.strong.expect b/pkg/front_end/testcases/nnbd/null_shorting.dart.strong.expect index ed3bb8dcd2c..6be85bff034 100644 --- a/pkg/front_end/testcases/nnbd/null_shorting.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/null_shorting.dart.strong.expect @@ -110,153 +110,153 @@ static method propertyAccess(self::Class1? n1) → void { let final self::Class1? #t11 = n1 in #t11 == null ?{self::Class1?} null : let final self::Class1? #t12 = #t11{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t12 == null ?{self::Class1?} null : #t12{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); let final self::Class1? #t13 = n1 in #t13 == null ?{self::Class1?} null : let final self::Class1? #t14 = #t13{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t14 == null ?{self::Class1?} null : #t14{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); let final self::Class1? #t15 = let final self::Class1? #t16 = n1 in #t16 == null ?{self::Class1?} null : #t16{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t15 == null ?{self::Class1?} null : #t15{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - self::throws(() → void => let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:87:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:87:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. Try accessing using ?. instead. throws(() => (n1?.nullable1 = new Class1()).nullable1); - ^^^^^^^^^" in (let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : #t18{self::Class1}.{self::Class1::nullable1} = new self::Class1::•()).{self::Class1::nullable1}{}.{self::Class1?}); - self::throws(() → void => let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:88:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + ^^^^^^^^^" in (let final self::Class1? #t17 = n1 in #t17 == null ?{self::Class1?} null : #t17{self::Class1}.{self::Class1::nullable1} = new self::Class1::•()).{self::Class1::nullable1}{}.{self::Class1?}); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:88:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. Try accessing using ?. instead. throws(() => (n1?.nonNullable1Method()).nullable1); - ^^^^^^^^^" in (let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : #t20{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}).{self::Class1::nullable1}{}.{self::Class1?}); - nullable1 = let final self::Class1? #t21 = n1 in #t21 == null ?{self::Class1?} null : #t21{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : let final self::Class1? #t23 = #t22{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t23 == null ?{self::Class1?} null : #t23{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : let final self::Class1? #t25 = #t24{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t25 == null ?{self::Class1?} null : #t25{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : let final self::Class1? #t27 = #t26{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t27 == null ?{self::Class1?} null : #t27{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : #t28{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t29 = n1 in #t29 == null ?{self::Class1?} null : #t29{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : #t30{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t31 = n1 in #t31 == null ?{self::Class1?} null : #t31{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : #t32{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t33 = n1 in #t33 == null ?{self::Class1?} null : #t33{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : #t34{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t35 = n1 in #t35 == null ?{self::Class1?} null : #t35{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : #t36{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : #t37{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : #t38{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t39 = n1 in #t39 == null ?{self::Class1?} null : #t39{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : let final self::Class1? #t41 = #t40{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t41 == null ?{self::Class1?} null : #t41{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : #t42{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : #t43{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t44 = n1 in #t44 == null ?{self::Class1?} null : #t44{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : #t45{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t46 = n1 in #t46 == null ?{self::Class1?} null : #t46{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t47 = n1 in #t47 == null ?{self::Class1?} null : #t47{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : #t48{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : #t49{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : #t50{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : #t51{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : #t52{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : #t53{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : #t54{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : #t55{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : #t56{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : #t57{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : #t58{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : #t59{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : #t60{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t61 = n1 in #t61 == null ?{self::Class1?} null : #t61{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : #t62{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : #t63{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : #t64{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : #t65{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : #t66{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t67 = n1 in #t67 == null ?{self::Class1?} null : #t67{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : #t68{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : #t69{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t70 = n1 in #t70 == null ?{self::Class1?} null : #t70{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : #t71{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t72 = n1 in #t72 == null ?{self::Class1?} null : #t72{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t73 = n1 in #t73 == null ?{self::Class1?} null : #t73{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : #t74{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : #t75{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : #t76{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : #t77{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : #t78{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : #t79{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : #t80{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : #t81{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : let final self::Class1? #t83 = #t82{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1} in #t83 == null ?{self::Class1?} null : #t83{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + ^^^^^^^^^" in (let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : #t18{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}).{self::Class1::nullable1}{}.{self::Class1?}); + nullable1 = let final self::Class1? #t19 = n1 in #t19 == null ?{self::Class1?} null : #t19{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : let final self::Class1? #t21 = #t20{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t21 == null ?{self::Class1?} null : #t21{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : let final self::Class1? #t23 = #t22{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t23 == null ?{self::Class1?} null : #t23{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : let final self::Class1? #t25 = #t24{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t25 == null ?{self::Class1?} null : #t25{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : #t26{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t27 = n1 in #t27 == null ?{self::Class1?} null : #t27{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : #t28{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t29 = n1 in #t29 == null ?{self::Class1?} null : #t29{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : #t30{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t31 = n1 in #t31 == null ?{self::Class1?} null : #t31{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : #t32{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t33 = n1 in #t33 == null ?{self::Class1?} null : #t33{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : #t34{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t35 = n1 in #t35 == null ?{self::Class1?} null : #t35{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : #t36{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : #t37{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : let final self::Class1? #t39 = #t38{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t39 == null ?{self::Class1?} null : #t39{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : #t40{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t41 = n1 in #t41 == null ?{self::Class1?} null : #t41{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : #t42{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : #t43{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t44 = n1 in #t44 == null ?{self::Class1?} null : #t44{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : #t45{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t46 = n1 in #t46 == null ?{self::Class1?} null : #t46{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t47 = n1 in #t47 == null ?{self::Class1?} null : #t47{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : #t48{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : #t49{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : #t50{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : #t51{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : #t52{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : #t53{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : #t54{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : #t55{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : #t56{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : #t57{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : #t58{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : #t59{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : #t60{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t61 = n1 in #t61 == null ?{self::Class1?} null : #t61{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : #t62{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : #t63{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : #t64{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : #t65{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : #t66{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t67 = n1 in #t67 == null ?{self::Class1?} null : #t67{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : #t68{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : #t69{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t70 = n1 in #t70 == null ?{self::Class1?} null : #t70{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : #t71{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t72 = n1 in #t72 == null ?{self::Class1?} null : #t72{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t73 = n1 in #t73 == null ?{self::Class1?} null : #t73{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : #t74{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : #t75{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : #t76{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : #t77{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : #t78{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : #t79{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : let final self::Class1? #t81 = #t80{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1} in #t81 == null ?{self::Class1?} null : #t81{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; } static method indexAccess(self::Class1? n1, self::Class2? n2, self::Class3? n3) → void { self::Class1? nullable1 = n1; self::Class2? nullable2 = n2; self::Class3? nullable3 = n3; - let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : #t84{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; - let final self::Class1? #t85 = n1 in #t85 == null ?{self::Class1?} null : #t85{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; - let final self::Class1? #t86 = n1 in #t86 == null ?{self::Class1?} null : let final self::Class1? #t87 = #t86{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t87 == null ?{self::Class1?} null : #t87{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : #t88{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; - let final self::Class1? #t89 = n1 in #t89 == null ?{self::Class1?} null : #t89{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; - nullable1 = let final self::Class1? #t90 = n1 in #t90 == null ?{self::Class1?} null : let final self::Class1 #t91 = #t90{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t92 = nullable1 in let final self::Class1 #t93 = new self::Class1::•() in let final void #t94 = #t91.{self::Class1::[]=}(#t92, #t93){(self::Class1?, self::Class1?) → void} in #t93; - let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class1?} null : let final self::Class1? #t96 = #t95{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t96 == null ?{self::Class1?} null : #t96{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t97 = n1 in #t97 == null ?{self::Class2?} null : let final self::Class2 #t98 = #t97{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t99 = nullable2 in #t98.{self::Class2::[]=}(#t99, #t98.{self::Class2::[]}(#t99){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t100 = n1 in #t100 == null ?{self::Class2?} null : let final self::Class2 #t101 = #t100{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t102 = nullable2 in let final self::Class2 #t103 = #t101.{self::Class2::[]}(#t102){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t104 = #t101.{self::Class2::[]=}(#t102, #t103){(self::Class2?, self::Class2?) → void} in #t103; - let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : let final self::Class1? #t106 = nullable1 in #t105{self::Class1}.{self::Class1::[]}(#t106){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t105{self::Class1}.{self::Class1::[]=}(#t106, nullable1){(self::Class1?, self::Class1?) → void} : null; - nullable1 = let final self::Class1? #t107 = n1 in #t107 == null ?{self::Class1?} null : let final self::Class1? #t108 = nullable1 in let final self::Class1? #t109 = #t107{self::Class1}.{self::Class1::[]}(#t108){(self::Class1?) → self::Class1?} in #t109 == null ?{self::Class1?} let final self::Class1? #t110 = nullable1 in let final void #t111 = #t107{self::Class1}.{self::Class1::[]=}(#t108, #t110){(self::Class1?, self::Class1?) → void} in #t110 : #t109{self::Class1}; - let final self::Class2? #t112 = n2 in #t112 == null ?{self::Class2?} null : let final self::Class2? #t113 = nullable2 in #t112{self::Class2}.{self::Class2::[]=}(#t113, #t112{self::Class2}.{self::Class2::[]}(#t113){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class2? #t114 = n2 in #t114 == null ?{self::Class2?} null : let final self::Class2? #t115 = nullable2 in let final self::Class2 #t116 = #t114{self::Class2}.{self::Class2::[]}(#t115){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t117 = #t114{self::Class2}.{self::Class2::[]=}(#t115, #t116){(self::Class2?, self::Class2?) → void} in #t116; - let final self::Class2? #t118 = n2 in #t118 == null ?{self::Class2?} null : let final self::Class2? #t119 = nullable2 in #t118{self::Class2}.{self::Class2::[]=}(#t119, #t118{self::Class2}.{self::Class2::[]}(#t119){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class2? #t120 = n2 in #t120 == null ?{self::Class2?} null : let final self::Class2? #t121 = nullable2 in let final self::Class2 #t122 = #t120{self::Class2}.{self::Class2::[]}(#t121){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t123 = #t120{self::Class2}.{self::Class2::[]=}(#t121, #t122){(self::Class2?, self::Class2?) → void} in #t122; - let final self::Class2? #t124 = n2 in #t124 == null ?{self::Class2?} null : let final self::Class2? #t125 = nullable2 in #t124{self::Class2}.{self::Class2::[]=}(#t125, #t124{self::Class2}.{self::Class2::[]}(#t125){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class2? #t126 = n2 in #t126 == null ?{self::Class2?} null : let final self::Class2? #t127 = nullable2 in let final self::Class2 #t128 = #t126{self::Class2}.{self::Class2::[]}(#t127){(self::Class2?) → self::Class2} in let final void #t129 = #t126{self::Class2}.{self::Class2::[]=}(#t127, #t128.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t128; - let final self::Class2? #t130 = n2 in #t130 == null ?{self::Class2?} null : let final self::Class2? #t131 = nullable2 in let final self::Class2 #t132 = #t130{self::Class2}.{self::Class2::[]}(#t131){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t133 = #t130{self::Class2}.{self::Class2::[]=}(#t131, #t132){(self::Class2?, self::Class2?) → void} in #t132; - nullable2 = let final self::Class2? #t134 = n2 in #t134 == null ?{self::Class2?} null : let final self::Class2? #t135 = nullable2 in let final self::Class2 #t136 = #t134{self::Class2}.{self::Class2::[]}(#t135){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t137 = #t134{self::Class2}.{self::Class2::[]=}(#t135, #t136){(self::Class2?, self::Class2?) → void} in #t136; - let final self::Class1? #t138 = n1 in #t138 == null ?{self::Class2?} null : let final self::Class2 #t139 = #t138{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t140 = nullable2 in #t139.{self::Class2::[]=}(#t140, #t139.{self::Class2::[]}(#t140){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t141 = n1 in #t141 == null ?{self::Class2?} null : let final self::Class2 #t142 = #t141{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t143 = nullable2 in let final self::Class2 #t144 = #t142.{self::Class2::[]}(#t143){(self::Class2?) → self::Class2} in let final void #t145 = #t142.{self::Class2::[]=}(#t143, #t144.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t144; - let final self::Class1? #t146 = n1 in #t146 == null ?{self::Class2?} null : let final self::Class2 #t147 = #t146{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t148 = nullable2 in let final self::Class2 #t149 = #t147.{self::Class2::[]}(#t148){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t150 = #t147.{self::Class2::[]=}(#t148, #t149){(self::Class2?, self::Class2?) → void} in #t149; - nullable2 = let final self::Class1? #t151 = n1 in #t151 == null ?{self::Class2?} null : let final self::Class2 #t152 = #t151{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t153 = nullable2 in let final self::Class2 #t154 = #t152.{self::Class2::[]}(#t153){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t155 = #t152.{self::Class2::[]=}(#t153, #t154){(self::Class2?, self::Class2?) → void} in #t154; - let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class2?} null : #t156{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}; - let final self::Class1? #t157 = n1 in #t157 == null ?{self::Class2?} null : #t157{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]=}(nullable2, new self::Class2::•()){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t158 = n1 in #t158 == null ?{self::Class2?} null : let final self::Class2 #t159 = #t158{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t160 = nullable2 in let final self::Class2 #t161 = new self::Class2::•() in let final void #t162 = #t159.{self::Class2::[]=}(#t160, #t161){(self::Class2?, self::Class2?) → void} in #t161; - let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class2?} null : let final self::Class2? #t164 = #t163{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in #t164 == null ?{self::Class2?} null : #t164{self::Class2}.{self::Class2::nonNullable2Method}(){() → self::Class2}; - let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class2?} null : let final self::Class2 #t166 = #t165{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t167 = nullable2 in #t166.{self::Class2::[]=}(#t167, #t166.{self::Class2::[]}(#t167){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class2?} null : let final self::Class2 #t169 = #t168{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t170 = nullable2 in let final self::Class2 #t171 = #t169.{self::Class2::[]}(#t170){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t172 = #t169.{self::Class2::[]=}(#t170, #t171){(self::Class2?, self::Class2?) → void} in #t171; - let final self::Class1? #t173 = n1 in #t173 == null ?{self::Class2?} null : let final self::Class2 #t174 = #t173{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t175 = nullable2 in #t174.{self::Class2::[]=}(#t175, #t174.{self::Class2::[]}(#t175){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t176 = n1 in #t176 == null ?{self::Class2?} null : let final self::Class2 #t177 = #t176{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t178 = nullable2 in let final self::Class2 #t179 = #t177.{self::Class2::[]}(#t178){(self::Class2?) → self::Class2} in let final void #t180 = #t177.{self::Class2::[]=}(#t178, #t179.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t179; - let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class2?} null : let final self::Class2 #t182 = #t181{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t183 = nullable2 in let final self::Class2 #t184 = #t182.{self::Class2::[]}(#t183){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t185 = #t182.{self::Class2::[]=}(#t183, #t184){(self::Class2?, self::Class2?) → void} in #t184; - nullable2 = let final self::Class1? #t186 = n1 in #t186 == null ?{self::Class2?} null : let final self::Class2 #t187 = #t186{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t188 = nullable2 in let final self::Class2 #t189 = #t187.{self::Class2::[]}(#t188){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t190 = #t187.{self::Class2::[]=}(#t188, #t189){(self::Class2?, self::Class2?) → void} in #t189; - let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = #t191{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t192 == null ?{self::Class1?} null : #t192{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; - let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = #t193{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t194 == null ?{self::Class1?} null : #t194{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; - nullable1 = let final self::Class1? #t195 = n1 in #t195 == null ?{self::Class1?} null : let final self::Class1? #t196 = #t195{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t196 == null ?{self::Class1?} null : let final self::Class1? #t197 = nullable1 in let final self::Class1 #t198 = new self::Class1::•() in let final void #t199 = #t196{self::Class1}.{self::Class1::[]=}(#t197, #t198){(self::Class1?, self::Class1?) → void} in #t198; - let final self::Class1? #t200 = n1 in #t200 == null ?{self::Class1?} null : let final self::Class1? #t201 = #t200{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t201 == null ?{self::Class1?} null : let final self::Class1? #t202 = #t201{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t202 == null ?{self::Class1?} null : #t202{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t203 = n1 in #t203 == null ?{self::Class1?} null : let final self::Class1? #t204 = #t203{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t204 == null ?{self::Class1?} null : let final self::Class1? #t205 = #t204{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t205 == null ?{self::Class1?} null : #t205{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t206 = n1 in #t206 == null ?{self::Class1?} null : let final self::Class1? #t207 = #t206{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t207 == null ?{self::Class1?} null : let final self::Class1? #t208 = nullable1 in #t207{self::Class1}.{self::Class1::[]}(#t208){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t207{self::Class1}.{self::Class1::[]=}(#t208, nullable1){(self::Class1?, self::Class1?) → void} : null; - nullable1 = let final self::Class1? #t209 = n1 in #t209 == null ?{self::Class1?} null : let final self::Class1? #t210 = #t209{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t210 == null ?{self::Class1?} null : let final self::Class1? #t211 = nullable1 in let final self::Class1? #t212 = #t210{self::Class1}.{self::Class1::[]}(#t211){(self::Class1?) → self::Class1?} in #t212 == null ?{self::Class1?} let final self::Class1? #t213 = nullable1 in let final void #t214 = #t210{self::Class1}.{self::Class1::[]=}(#t211, #t213){(self::Class1?, self::Class1?) → void} in #t213 : #t212{self::Class1}; - let final self::Class3? #t215 = n3 in #t215 == null ?{self::Class2?} null : let final self::Class2? #t216 = #t215{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = nullable2 in #t216{self::Class2}.{self::Class2::[]=}(#t217, #t216{self::Class2}.{self::Class2::[]}(#t217){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class3? #t218 = n3 in #t218 == null ?{self::Class2?} null : let final self::Class2? #t219 = #t218{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t219 == null ?{self::Class2?} null : let final self::Class2? #t220 = nullable2 in let final self::Class2 #t221 = #t219{self::Class2}.{self::Class2::[]}(#t220){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t222 = #t219{self::Class2}.{self::Class2::[]=}(#t220, #t221){(self::Class2?, self::Class2?) → void} in #t221; - let final self::Class3? #t223 = n3 in #t223 == null ?{self::Class2?} null : let final self::Class2? #t224 = #t223{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t224 == null ?{self::Class2?} null : let final self::Class2? #t225 = nullable2 in #t224{self::Class2}.{self::Class2::[]=}(#t225, #t224{self::Class2}.{self::Class2::[]}(#t225){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class3? #t226 = n3 in #t226 == null ?{self::Class2?} null : let final self::Class2? #t227 = #t226{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t227 == null ?{self::Class2?} null : let final self::Class2? #t228 = nullable2 in let final self::Class2 #t229 = #t227{self::Class2}.{self::Class2::[]}(#t228){(self::Class2?) → self::Class2} in let final void #t230 = #t227{self::Class2}.{self::Class2::[]=}(#t228, #t229.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t229; - let final self::Class3? #t231 = n3 in #t231 == null ?{self::Class2?} null : let final self::Class2? #t232 = #t231{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t232 == null ?{self::Class2?} null : let final self::Class2? #t233 = nullable2 in let final self::Class2 #t234 = #t232{self::Class2}.{self::Class2::[]}(#t233){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t235 = #t232{self::Class2}.{self::Class2::[]=}(#t233, #t234){(self::Class2?, self::Class2?) → void} in #t234; - nullable2 = let final self::Class3? #t236 = n3 in #t236 == null ?{self::Class2?} null : let final self::Class2? #t237 = #t236{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t237 == null ?{self::Class2?} null : let final self::Class2? #t238 = nullable2 in let final self::Class2 #t239 = #t237{self::Class2}.{self::Class2::[]}(#t238){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t240 = #t237{self::Class2}.{self::Class2::[]=}(#t238, #t239){(self::Class2?, self::Class2?) → void} in #t239; + let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : #t82{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; + let final self::Class1? #t83 = n1 in #t83 == null ?{self::Class1?} null : #t83{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; + let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : let final self::Class1? #t85 = #t84{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t85 == null ?{self::Class1?} null : #t85{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t86 = n1 in #t86 == null ?{self::Class1?} null : #t86{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; + let final self::Class1? #t87 = n1 in #t87 == null ?{self::Class1?} null : #t87{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; + nullable1 = let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : let final self::Class1 #t89 = #t88{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t90 = nullable1 in let final self::Class1 #t91 = new self::Class1::•() in let final void #t92 = #t89.{self::Class1::[]=}(#t90, #t91){(self::Class1?, self::Class1?) → void} in #t91; + let final self::Class1? #t93 = n1 in #t93 == null ?{self::Class1?} null : let final self::Class1? #t94 = #t93{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t94 == null ?{self::Class1?} null : #t94{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class2?} null : let final self::Class2 #t96 = #t95{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t97 = nullable2 in #t96.{self::Class2::[]=}(#t97, #t96.{self::Class2::[]}(#t97){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t98 = n1 in #t98 == null ?{self::Class2?} null : let final self::Class2 #t99 = #t98{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t100 = nullable2 in let final self::Class2 #t101 = #t99.{self::Class2::[]}(#t100){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t102 = #t99.{self::Class2::[]=}(#t100, #t101){(self::Class2?, self::Class2?) → void} in #t101; + let final self::Class1? #t103 = n1 in #t103 == null ?{self::Class1?} null : let final self::Class1? #t104 = nullable1 in #t103{self::Class1}.{self::Class1::[]}(#t104){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t103{self::Class1}.{self::Class1::[]=}(#t104, nullable1){(self::Class1?, self::Class1?) → void} : null; + nullable1 = let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : let final self::Class1? #t106 = nullable1 in let final self::Class1? #t107 = #t105{self::Class1}.{self::Class1::[]}(#t106){(self::Class1?) → self::Class1?} in #t107 == null ?{self::Class1?} let final self::Class1? #t108 = nullable1 in let final void #t109 = #t105{self::Class1}.{self::Class1::[]=}(#t106, #t108){(self::Class1?, self::Class1?) → void} in #t108 : #t107{self::Class1}; + let final self::Class2? #t110 = n2 in #t110 == null ?{self::Class2?} null : let final self::Class2? #t111 = nullable2 in #t110{self::Class2}.{self::Class2::[]=}(#t111, #t110{self::Class2}.{self::Class2::[]}(#t111){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class2? #t112 = n2 in #t112 == null ?{self::Class2?} null : let final self::Class2? #t113 = nullable2 in let final self::Class2 #t114 = #t112{self::Class2}.{self::Class2::[]}(#t113){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t115 = #t112{self::Class2}.{self::Class2::[]=}(#t113, #t114){(self::Class2?, self::Class2?) → void} in #t114; + let final self::Class2? #t116 = n2 in #t116 == null ?{self::Class2?} null : let final self::Class2? #t117 = nullable2 in #t116{self::Class2}.{self::Class2::[]=}(#t117, #t116{self::Class2}.{self::Class2::[]}(#t117){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class2? #t118 = n2 in #t118 == null ?{self::Class2?} null : let final self::Class2? #t119 = nullable2 in let final self::Class2 #t120 = #t118{self::Class2}.{self::Class2::[]}(#t119){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t121 = #t118{self::Class2}.{self::Class2::[]=}(#t119, #t120){(self::Class2?, self::Class2?) → void} in #t120; + let final self::Class2? #t122 = n2 in #t122 == null ?{self::Class2?} null : let final self::Class2? #t123 = nullable2 in #t122{self::Class2}.{self::Class2::[]=}(#t123, #t122{self::Class2}.{self::Class2::[]}(#t123){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class2? #t124 = n2 in #t124 == null ?{self::Class2?} null : let final self::Class2? #t125 = nullable2 in let final self::Class2 #t126 = #t124{self::Class2}.{self::Class2::[]}(#t125){(self::Class2?) → self::Class2} in let final void #t127 = #t124{self::Class2}.{self::Class2::[]=}(#t125, #t126.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t126; + let final self::Class2? #t128 = n2 in #t128 == null ?{self::Class2?} null : let final self::Class2? #t129 = nullable2 in let final self::Class2 #t130 = #t128{self::Class2}.{self::Class2::[]}(#t129){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t131 = #t128{self::Class2}.{self::Class2::[]=}(#t129, #t130){(self::Class2?, self::Class2?) → void} in #t130; + nullable2 = let final self::Class2? #t132 = n2 in #t132 == null ?{self::Class2?} null : let final self::Class2? #t133 = nullable2 in let final self::Class2 #t134 = #t132{self::Class2}.{self::Class2::[]}(#t133){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t135 = #t132{self::Class2}.{self::Class2::[]=}(#t133, #t134){(self::Class2?, self::Class2?) → void} in #t134; + let final self::Class1? #t136 = n1 in #t136 == null ?{self::Class2?} null : let final self::Class2 #t137 = #t136{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t138 = nullable2 in #t137.{self::Class2::[]=}(#t138, #t137.{self::Class2::[]}(#t138){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t139 = n1 in #t139 == null ?{self::Class2?} null : let final self::Class2 #t140 = #t139{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t141 = nullable2 in let final self::Class2 #t142 = #t140.{self::Class2::[]}(#t141){(self::Class2?) → self::Class2} in let final void #t143 = #t140.{self::Class2::[]=}(#t141, #t142.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t142; + let final self::Class1? #t144 = n1 in #t144 == null ?{self::Class2?} null : let final self::Class2 #t145 = #t144{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t146 = nullable2 in let final self::Class2 #t147 = #t145.{self::Class2::[]}(#t146){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t148 = #t145.{self::Class2::[]=}(#t146, #t147){(self::Class2?, self::Class2?) → void} in #t147; + nullable2 = let final self::Class1? #t149 = n1 in #t149 == null ?{self::Class2?} null : let final self::Class2 #t150 = #t149{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t151 = nullable2 in let final self::Class2 #t152 = #t150.{self::Class2::[]}(#t151){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t153 = #t150.{self::Class2::[]=}(#t151, #t152){(self::Class2?, self::Class2?) → void} in #t152; + let final self::Class1? #t154 = n1 in #t154 == null ?{self::Class2?} null : #t154{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}; + let final self::Class1? #t155 = n1 in #t155 == null ?{self::Class2?} null : #t155{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]=}(nullable2, new self::Class2::•()){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class2?} null : let final self::Class2 #t157 = #t156{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t158 = nullable2 in let final self::Class2 #t159 = new self::Class2::•() in let final void #t160 = #t157.{self::Class2::[]=}(#t158, #t159){(self::Class2?, self::Class2?) → void} in #t159; + let final self::Class1? #t161 = n1 in #t161 == null ?{self::Class2?} null : let final self::Class2? #t162 = #t161{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in #t162 == null ?{self::Class2?} null : #t162{self::Class2}.{self::Class2::nonNullable2Method}(){() → self::Class2}; + let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class2?} null : let final self::Class2 #t164 = #t163{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t165 = nullable2 in #t164.{self::Class2::[]=}(#t165, #t164.{self::Class2::[]}(#t165){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class2?} null : let final self::Class2 #t167 = #t166{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t168 = nullable2 in let final self::Class2 #t169 = #t167.{self::Class2::[]}(#t168){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t170 = #t167.{self::Class2::[]=}(#t168, #t169){(self::Class2?, self::Class2?) → void} in #t169; + let final self::Class1? #t171 = n1 in #t171 == null ?{self::Class2?} null : let final self::Class2 #t172 = #t171{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t173 = nullable2 in #t172.{self::Class2::[]=}(#t173, #t172.{self::Class2::[]}(#t173){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class2?} null : let final self::Class2 #t175 = #t174{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t176 = nullable2 in let final self::Class2 #t177 = #t175.{self::Class2::[]}(#t176){(self::Class2?) → self::Class2} in let final void #t178 = #t175.{self::Class2::[]=}(#t176, #t177.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t177; + let final self::Class1? #t179 = n1 in #t179 == null ?{self::Class2?} null : let final self::Class2 #t180 = #t179{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t181 = nullable2 in let final self::Class2 #t182 = #t180.{self::Class2::[]}(#t181){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t183 = #t180.{self::Class2::[]=}(#t181, #t182){(self::Class2?, self::Class2?) → void} in #t182; + nullable2 = let final self::Class1? #t184 = n1 in #t184 == null ?{self::Class2?} null : let final self::Class2 #t185 = #t184{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t186 = nullable2 in let final self::Class2 #t187 = #t185.{self::Class2::[]}(#t186){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t188 = #t185.{self::Class2::[]=}(#t186, #t187){(self::Class2?, self::Class2?) → void} in #t187; + let final self::Class1? #t189 = n1 in #t189 == null ?{self::Class1?} null : let final self::Class1? #t190 = #t189{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t190 == null ?{self::Class1?} null : #t190{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; + let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = #t191{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t192 == null ?{self::Class1?} null : #t192{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; + nullable1 = let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = #t193{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t194 == null ?{self::Class1?} null : let final self::Class1? #t195 = nullable1 in let final self::Class1 #t196 = new self::Class1::•() in let final void #t197 = #t194{self::Class1}.{self::Class1::[]=}(#t195, #t196){(self::Class1?, self::Class1?) → void} in #t196; + let final self::Class1? #t198 = n1 in #t198 == null ?{self::Class1?} null : let final self::Class1? #t199 = #t198{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t199 == null ?{self::Class1?} null : let final self::Class1? #t200 = #t199{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t200 == null ?{self::Class1?} null : #t200{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t201 = n1 in #t201 == null ?{self::Class1?} null : let final self::Class1? #t202 = #t201{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t202 == null ?{self::Class1?} null : let final self::Class1? #t203 = #t202{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t203 == null ?{self::Class1?} null : #t203{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t204 = n1 in #t204 == null ?{self::Class1?} null : let final self::Class1? #t205 = #t204{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t205 == null ?{self::Class1?} null : let final self::Class1? #t206 = nullable1 in #t205{self::Class1}.{self::Class1::[]}(#t206){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t205{self::Class1}.{self::Class1::[]=}(#t206, nullable1){(self::Class1?, self::Class1?) → void} : null; + nullable1 = let final self::Class1? #t207 = n1 in #t207 == null ?{self::Class1?} null : let final self::Class1? #t208 = #t207{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t208 == null ?{self::Class1?} null : let final self::Class1? #t209 = nullable1 in let final self::Class1? #t210 = #t208{self::Class1}.{self::Class1::[]}(#t209){(self::Class1?) → self::Class1?} in #t210 == null ?{self::Class1?} let final self::Class1? #t211 = nullable1 in let final void #t212 = #t208{self::Class1}.{self::Class1::[]=}(#t209, #t211){(self::Class1?, self::Class1?) → void} in #t211 : #t210{self::Class1}; + let final self::Class3? #t213 = n3 in #t213 == null ?{self::Class2?} null : let final self::Class2? #t214 = #t213{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t214 == null ?{self::Class2?} null : let final self::Class2? #t215 = nullable2 in #t214{self::Class2}.{self::Class2::[]=}(#t215, #t214{self::Class2}.{self::Class2::[]}(#t215){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class3? #t216 = n3 in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = #t216{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t217 == null ?{self::Class2?} null : let final self::Class2? #t218 = nullable2 in let final self::Class2 #t219 = #t217{self::Class2}.{self::Class2::[]}(#t218){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t220 = #t217{self::Class2}.{self::Class2::[]=}(#t218, #t219){(self::Class2?, self::Class2?) → void} in #t219; + let final self::Class3? #t221 = n3 in #t221 == null ?{self::Class2?} null : let final self::Class2? #t222 = #t221{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t222 == null ?{self::Class2?} null : let final self::Class2? #t223 = nullable2 in #t222{self::Class2}.{self::Class2::[]=}(#t223, #t222{self::Class2}.{self::Class2::[]}(#t223){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class3? #t224 = n3 in #t224 == null ?{self::Class2?} null : let final self::Class2? #t225 = #t224{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t225 == null ?{self::Class2?} null : let final self::Class2? #t226 = nullable2 in let final self::Class2 #t227 = #t225{self::Class2}.{self::Class2::[]}(#t226){(self::Class2?) → self::Class2} in let final void #t228 = #t225{self::Class2}.{self::Class2::[]=}(#t226, #t227.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t227; + let final self::Class3? #t229 = n3 in #t229 == null ?{self::Class2?} null : let final self::Class2? #t230 = #t229{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t230 == null ?{self::Class2?} null : let final self::Class2? #t231 = nullable2 in let final self::Class2 #t232 = #t230{self::Class2}.{self::Class2::[]}(#t231){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t233 = #t230{self::Class2}.{self::Class2::[]=}(#t231, #t232){(self::Class2?, self::Class2?) → void} in #t232; + nullable2 = let final self::Class3? #t234 = n3 in #t234 == null ?{self::Class2?} null : let final self::Class2? #t235 = #t234{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t235 == null ?{self::Class2?} null : let final self::Class2? #t236 = nullable2 in let final self::Class2 #t237 = #t235{self::Class2}.{self::Class2::[]}(#t236){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t238 = #t235{self::Class2}.{self::Class2::[]=}(#t236, #t237){(self::Class2?, self::Class2?) → void} in #t237; } static method operatorAccess(self::Class1? n1, self::Class2? n2) → void { self::Class2? nullable2 = n2; - self::throws(() → void => let final Never #t241 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:220:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:220:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. throws(() => n1?.nonNullable1 + 0); - ^" in (let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class1?} null : #t242{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::+}(0){(core::int) → self::Class1?}); - self::throws(() → void => let final Never #t243 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:221:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. + ^" in (let final self::Class1? #t239 = n1 in #t239 == null ?{self::Class1?} null : #t239{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::+}(0){(core::int) → self::Class1?}); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:221:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. throws(() => -n1?.nonNullable1); - ^" in (let final self::Class1? #t244 = n1 in #t244 == null ?{self::Class1?} null : #t244{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::unary-}(){() → self::Class1?}); - let final self::Class2? #t245 = n2 in #t245 == null ?{self::Class2?} null : #t245.{self::Class2::nonNullable2} = #t245.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; - nullable2 = let final self::Class2? #t246 = n2 in #t246 == null ?{self::Class2?} null : let final self::Class2 #t247 = #t246.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t248 = #t246.{self::Class2::nonNullable2} = #t247 in #t247; - let final self::Class2? #t249 = n2 in #t249 == null ?{self::Class2?} null : let final self::Class2 #t250 = #t249{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t250.{self::Class2::nonNullable2} = #t250.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; - nullable2 = let final self::Class2? #t251 = n2 in #t251 == null ?{self::Class2?} null : let final self::Class2 #t252 = #t251{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t252.{self::Class2::nonNullable2} = #t252.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; - let final self::Class2? #t253 = n2 in #t253 == null ?{self::Class2?} null : #t253.{self::Class2::nonNullable2} = #t253.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}; - nullable2 = let final self::Class2? #t254 = n2 in #t254 == null ?{self::Class2?} null : let final self::Class2 #t255 = #t254.{self::Class2::nonNullable2}{self::Class2} in let final void #t256 = #t254.{self::Class2::nonNullable2} = #t255.{self::Class2::+}(1){(core::int) → self::Class2} in #t255; - let final self::Class2? #t257 = n2 in #t257 == null ?{self::Class2?} null : let final self::Class2 #t258 = #t257.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t259 = #t257.{self::Class2::nonNullable2} = #t258 in #t258; - nullable2 = let final self::Class2? #t260 = n2 in #t260 == null ?{self::Class2?} null : let final self::Class2 #t261 = #t260.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t262 = #t260.{self::Class2::nonNullable2} = #t261 in #t261; + ^" in (let final self::Class1? #t240 = n1 in #t240 == null ?{self::Class1?} null : #t240{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::unary-}(){() → self::Class1?}); + let final self::Class2? #t241 = n2 in #t241 == null ?{self::Class2?} null : #t241.{self::Class2::nonNullable2} = #t241.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; + nullable2 = let final self::Class2? #t242 = n2 in #t242 == null ?{self::Class2?} null : let final self::Class2 #t243 = #t242.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t244 = #t242.{self::Class2::nonNullable2} = #t243 in #t243; + let final self::Class2? #t245 = n2 in #t245 == null ?{self::Class2?} null : let final self::Class2 #t246 = #t245{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t246.{self::Class2::nonNullable2} = #t246.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; + nullable2 = let final self::Class2? #t247 = n2 in #t247 == null ?{self::Class2?} null : let final self::Class2 #t248 = #t247{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t248.{self::Class2::nonNullable2} = #t248.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; + let final self::Class2? #t249 = n2 in #t249 == null ?{self::Class2?} null : #t249.{self::Class2::nonNullable2} = #t249.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}; + nullable2 = let final self::Class2? #t250 = n2 in #t250 == null ?{self::Class2?} null : let final self::Class2 #t251 = #t250.{self::Class2::nonNullable2}{self::Class2} in let final void #t252 = #t250.{self::Class2::nonNullable2} = #t251.{self::Class2::+}(1){(core::int) → self::Class2} in #t251; + let final self::Class2? #t253 = n2 in #t253 == null ?{self::Class2?} null : let final self::Class2 #t254 = #t253.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t255 = #t253.{self::Class2::nonNullable2} = #t254 in #t254; + nullable2 = let final self::Class2? #t256 = n2 in #t256 == null ?{self::Class2?} null : let final self::Class2 #t257 = #t256.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t258 = #t256.{self::Class2::nonNullable2} = #t257 in #t257; } static method ifNull(self::Class1? n1) → void { self::Class1? nullable1 = n1; - let final self::Class1? #t263 = n1 in #t263 == null ?{self::Class1?} null : #t263.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t263.{self::Class1::nullable1} = n1{self::Class1} : null; - n1 = let final self::Class1? #t264 = n1 in #t264 == null ?{self::Class1?} null : let final self::Class1? #t265 = #t264.{self::Class1::nullable1}{self::Class1?} in #t265 == null ?{self::Class1} #t264.{self::Class1::nullable1} = n1{self::Class1} : #t265{self::Class1}; - let final self::Class1? #t266 = n1 in #t266 == null ?{self::Class1?} null : let final self::Class1 #t267 = #t266{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in #t267.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t267.{self::Class1::nullable1} = n1{self::Class1} : null; - n1 = let final self::Class1? #t268 = n1 in #t268 == null ?{self::Class1?} null : let final self::Class1 #t269 = #t268{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t270 = #t269.{self::Class1::nullable1}{self::Class1?} in #t270 == null ?{self::Class1} #t269.{self::Class1::nullable1} = n1{self::Class1} : #t270{self::Class1}; - let final self::Class1? #t271 = n1 in #t271 == null ?{self::Class1?} null : let final self::Class1 #t272 = #t271{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t273 = n1{self::Class1} in #t272.{self::Class1::[]}(#t273){(self::Class1?) → self::Class1?} == null ?{self::Class1} #t272.{self::Class1::[]=}(#t273, n1{self::Class1}){(self::Class1?, self::Class1?) → void} : null; - n1 = let final self::Class1? #t274 = n1 in #t274 == null ?{self::Class1?} null : let final self::Class1 #t275 = #t274{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t276 = n1{self::Class1} in let final self::Class1? #t277 = #t275.{self::Class1::[]}(#t276){(self::Class1?) → self::Class1?} in #t277 == null ?{self::Class1} let final self::Class1 #t278 = n1{self::Class1} in let final void #t279 = #t275.{self::Class1::[]=}(#t276, #t278){(self::Class1?, self::Class1?) → void} in #t278 : #t277{self::Class1}; + let final self::Class1? #t259 = n1 in #t259 == null ?{self::Class1?} null : #t259.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t259.{self::Class1::nullable1} = n1{self::Class1} : null; + n1 = let final self::Class1? #t260 = n1 in #t260 == null ?{self::Class1?} null : let final self::Class1? #t261 = #t260.{self::Class1::nullable1}{self::Class1?} in #t261 == null ?{self::Class1} #t260.{self::Class1::nullable1} = n1{self::Class1} : #t261{self::Class1}; + let final self::Class1? #t262 = n1 in #t262 == null ?{self::Class1?} null : let final self::Class1 #t263 = #t262{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in #t263.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t263.{self::Class1::nullable1} = n1{self::Class1} : null; + n1 = let final self::Class1? #t264 = n1 in #t264 == null ?{self::Class1?} null : let final self::Class1 #t265 = #t264{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t266 = #t265.{self::Class1::nullable1}{self::Class1?} in #t266 == null ?{self::Class1} #t265.{self::Class1::nullable1} = n1{self::Class1} : #t266{self::Class1}; + let final self::Class1? #t267 = n1 in #t267 == null ?{self::Class1?} null : let final self::Class1 #t268 = #t267{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t269 = n1{self::Class1} in #t268.{self::Class1::[]}(#t269){(self::Class1?) → self::Class1?} == null ?{self::Class1} #t268.{self::Class1::[]=}(#t269, n1{self::Class1}){(self::Class1?, self::Class1?) → void} : null; + n1 = let final self::Class1? #t270 = n1 in #t270 == null ?{self::Class1?} null : let final self::Class1 #t271 = #t270{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t272 = n1{self::Class1} in let final self::Class1? #t273 = #t271.{self::Class1::[]}(#t272){(self::Class1?) → self::Class1?} in #t273 == null ?{self::Class1} let final self::Class1 #t274 = n1{self::Class1} in let final void #t275 = #t271.{self::Class1::[]=}(#t272, #t274){(self::Class1?, self::Class1?) → void} in #t274 : #t273{self::Class1}; } static method throws(() → void f) → void { try { diff --git a/pkg/front_end/testcases/nnbd/null_shorting.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/null_shorting.dart.strong.transformed.expect index ed3bb8dcd2c..6be85bff034 100644 --- a/pkg/front_end/testcases/nnbd/null_shorting.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/null_shorting.dart.strong.transformed.expect @@ -110,153 +110,153 @@ static method propertyAccess(self::Class1? n1) → void { let final self::Class1? #t11 = n1 in #t11 == null ?{self::Class1?} null : let final self::Class1? #t12 = #t11{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t12 == null ?{self::Class1?} null : #t12{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); let final self::Class1? #t13 = n1 in #t13 == null ?{self::Class1?} null : let final self::Class1? #t14 = #t13{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t14 == null ?{self::Class1?} null : #t14{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); let final self::Class1? #t15 = let final self::Class1? #t16 = n1 in #t16 == null ?{self::Class1?} null : #t16{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t15 == null ?{self::Class1?} null : #t15{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - self::throws(() → void => let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:87:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:87:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. Try accessing using ?. instead. throws(() => (n1?.nullable1 = new Class1()).nullable1); - ^^^^^^^^^" in (let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : #t18{self::Class1}.{self::Class1::nullable1} = new self::Class1::•()).{self::Class1::nullable1}{}.{self::Class1?}); - self::throws(() → void => let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:88:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + ^^^^^^^^^" in (let final self::Class1? #t17 = n1 in #t17 == null ?{self::Class1?} null : #t17{self::Class1}.{self::Class1::nullable1} = new self::Class1::•()).{self::Class1::nullable1}{}.{self::Class1?}); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:88:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. Try accessing using ?. instead. throws(() => (n1?.nonNullable1Method()).nullable1); - ^^^^^^^^^" in (let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : #t20{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}).{self::Class1::nullable1}{}.{self::Class1?}); - nullable1 = let final self::Class1? #t21 = n1 in #t21 == null ?{self::Class1?} null : #t21{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : let final self::Class1? #t23 = #t22{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t23 == null ?{self::Class1?} null : #t23{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : let final self::Class1? #t25 = #t24{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t25 == null ?{self::Class1?} null : #t25{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : let final self::Class1? #t27 = #t26{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t27 == null ?{self::Class1?} null : #t27{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : #t28{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t29 = n1 in #t29 == null ?{self::Class1?} null : #t29{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : #t30{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t31 = n1 in #t31 == null ?{self::Class1?} null : #t31{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : #t32{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t33 = n1 in #t33 == null ?{self::Class1?} null : #t33{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : #t34{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t35 = n1 in #t35 == null ?{self::Class1?} null : #t35{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : #t36{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : #t37{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : #t38{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t39 = n1 in #t39 == null ?{self::Class1?} null : #t39{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : let final self::Class1? #t41 = #t40{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t41 == null ?{self::Class1?} null : #t41{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : #t42{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : #t43{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t44 = n1 in #t44 == null ?{self::Class1?} null : #t44{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : #t45{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t46 = n1 in #t46 == null ?{self::Class1?} null : #t46{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t47 = n1 in #t47 == null ?{self::Class1?} null : #t47{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : #t48{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : #t49{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : #t50{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : #t51{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : #t52{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : #t53{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : #t54{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : #t55{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : #t56{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : #t57{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : #t58{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : #t59{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : #t60{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t61 = n1 in #t61 == null ?{self::Class1?} null : #t61{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : #t62{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : #t63{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : #t64{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : #t65{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : #t66{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t67 = n1 in #t67 == null ?{self::Class1?} null : #t67{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : #t68{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : #t69{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t70 = n1 in #t70 == null ?{self::Class1?} null : #t70{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : #t71{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t72 = n1 in #t72 == null ?{self::Class1?} null : #t72{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t73 = n1 in #t73 == null ?{self::Class1?} null : #t73{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : #t74{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : #t75{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : #t76{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : #t77{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : #t78{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : #t79{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : #t80{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : #t81{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : let final self::Class1? #t83 = #t82{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1} in #t83 == null ?{self::Class1?} null : #t83{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + ^^^^^^^^^" in (let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : #t18{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}).{self::Class1::nullable1}{}.{self::Class1?}); + nullable1 = let final self::Class1? #t19 = n1 in #t19 == null ?{self::Class1?} null : #t19{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : let final self::Class1? #t21 = #t20{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t21 == null ?{self::Class1?} null : #t21{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : let final self::Class1? #t23 = #t22{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t23 == null ?{self::Class1?} null : #t23{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : let final self::Class1? #t25 = #t24{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t25 == null ?{self::Class1?} null : #t25{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : #t26{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t27 = n1 in #t27 == null ?{self::Class1?} null : #t27{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : #t28{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t29 = n1 in #t29 == null ?{self::Class1?} null : #t29{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : #t30{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t31 = n1 in #t31 == null ?{self::Class1?} null : #t31{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : #t32{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t33 = n1 in #t33 == null ?{self::Class1?} null : #t33{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : #t34{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t35 = n1 in #t35 == null ?{self::Class1?} null : #t35{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : #t36{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : #t37{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : let final self::Class1? #t39 = #t38{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t39 == null ?{self::Class1?} null : #t39{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : #t40{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t41 = n1 in #t41 == null ?{self::Class1?} null : #t41{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : #t42{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : #t43{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t44 = n1 in #t44 == null ?{self::Class1?} null : #t44{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : #t45{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t46 = n1 in #t46 == null ?{self::Class1?} null : #t46{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t47 = n1 in #t47 == null ?{self::Class1?} null : #t47{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : #t48{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : #t49{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : #t50{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : #t51{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : #t52{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : #t53{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : #t54{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : #t55{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : #t56{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : #t57{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : #t58{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : #t59{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : #t60{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t61 = n1 in #t61 == null ?{self::Class1?} null : #t61{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : #t62{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : #t63{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : #t64{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : #t65{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : #t66{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t67 = n1 in #t67 == null ?{self::Class1?} null : #t67{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : #t68{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : #t69{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t70 = n1 in #t70 == null ?{self::Class1?} null : #t70{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : #t71{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t72 = n1 in #t72 == null ?{self::Class1?} null : #t72{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t73 = n1 in #t73 == null ?{self::Class1?} null : #t73{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : #t74{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : #t75{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : #t76{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : #t77{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : #t78{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : #t79{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : let final self::Class1? #t81 = #t80{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1} in #t81 == null ?{self::Class1?} null : #t81{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; } static method indexAccess(self::Class1? n1, self::Class2? n2, self::Class3? n3) → void { self::Class1? nullable1 = n1; self::Class2? nullable2 = n2; self::Class3? nullable3 = n3; - let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : #t84{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; - let final self::Class1? #t85 = n1 in #t85 == null ?{self::Class1?} null : #t85{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; - let final self::Class1? #t86 = n1 in #t86 == null ?{self::Class1?} null : let final self::Class1? #t87 = #t86{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t87 == null ?{self::Class1?} null : #t87{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : #t88{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; - let final self::Class1? #t89 = n1 in #t89 == null ?{self::Class1?} null : #t89{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; - nullable1 = let final self::Class1? #t90 = n1 in #t90 == null ?{self::Class1?} null : let final self::Class1 #t91 = #t90{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t92 = nullable1 in let final self::Class1 #t93 = new self::Class1::•() in let final void #t94 = #t91.{self::Class1::[]=}(#t92, #t93){(self::Class1?, self::Class1?) → void} in #t93; - let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class1?} null : let final self::Class1? #t96 = #t95{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t96 == null ?{self::Class1?} null : #t96{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t97 = n1 in #t97 == null ?{self::Class2?} null : let final self::Class2 #t98 = #t97{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t99 = nullable2 in #t98.{self::Class2::[]=}(#t99, #t98.{self::Class2::[]}(#t99){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t100 = n1 in #t100 == null ?{self::Class2?} null : let final self::Class2 #t101 = #t100{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t102 = nullable2 in let final self::Class2 #t103 = #t101.{self::Class2::[]}(#t102){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t104 = #t101.{self::Class2::[]=}(#t102, #t103){(self::Class2?, self::Class2?) → void} in #t103; - let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : let final self::Class1? #t106 = nullable1 in #t105{self::Class1}.{self::Class1::[]}(#t106){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t105{self::Class1}.{self::Class1::[]=}(#t106, nullable1){(self::Class1?, self::Class1?) → void} : null; - nullable1 = let final self::Class1? #t107 = n1 in #t107 == null ?{self::Class1?} null : let final self::Class1? #t108 = nullable1 in let final self::Class1? #t109 = #t107{self::Class1}.{self::Class1::[]}(#t108){(self::Class1?) → self::Class1?} in #t109 == null ?{self::Class1?} let final self::Class1? #t110 = nullable1 in let final void #t111 = #t107{self::Class1}.{self::Class1::[]=}(#t108, #t110){(self::Class1?, self::Class1?) → void} in #t110 : #t109{self::Class1}; - let final self::Class2? #t112 = n2 in #t112 == null ?{self::Class2?} null : let final self::Class2? #t113 = nullable2 in #t112{self::Class2}.{self::Class2::[]=}(#t113, #t112{self::Class2}.{self::Class2::[]}(#t113){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class2? #t114 = n2 in #t114 == null ?{self::Class2?} null : let final self::Class2? #t115 = nullable2 in let final self::Class2 #t116 = #t114{self::Class2}.{self::Class2::[]}(#t115){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t117 = #t114{self::Class2}.{self::Class2::[]=}(#t115, #t116){(self::Class2?, self::Class2?) → void} in #t116; - let final self::Class2? #t118 = n2 in #t118 == null ?{self::Class2?} null : let final self::Class2? #t119 = nullable2 in #t118{self::Class2}.{self::Class2::[]=}(#t119, #t118{self::Class2}.{self::Class2::[]}(#t119){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class2? #t120 = n2 in #t120 == null ?{self::Class2?} null : let final self::Class2? #t121 = nullable2 in let final self::Class2 #t122 = #t120{self::Class2}.{self::Class2::[]}(#t121){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t123 = #t120{self::Class2}.{self::Class2::[]=}(#t121, #t122){(self::Class2?, self::Class2?) → void} in #t122; - let final self::Class2? #t124 = n2 in #t124 == null ?{self::Class2?} null : let final self::Class2? #t125 = nullable2 in #t124{self::Class2}.{self::Class2::[]=}(#t125, #t124{self::Class2}.{self::Class2::[]}(#t125){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class2? #t126 = n2 in #t126 == null ?{self::Class2?} null : let final self::Class2? #t127 = nullable2 in let final self::Class2 #t128 = #t126{self::Class2}.{self::Class2::[]}(#t127){(self::Class2?) → self::Class2} in let final void #t129 = #t126{self::Class2}.{self::Class2::[]=}(#t127, #t128.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t128; - let final self::Class2? #t130 = n2 in #t130 == null ?{self::Class2?} null : let final self::Class2? #t131 = nullable2 in let final self::Class2 #t132 = #t130{self::Class2}.{self::Class2::[]}(#t131){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t133 = #t130{self::Class2}.{self::Class2::[]=}(#t131, #t132){(self::Class2?, self::Class2?) → void} in #t132; - nullable2 = let final self::Class2? #t134 = n2 in #t134 == null ?{self::Class2?} null : let final self::Class2? #t135 = nullable2 in let final self::Class2 #t136 = #t134{self::Class2}.{self::Class2::[]}(#t135){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t137 = #t134{self::Class2}.{self::Class2::[]=}(#t135, #t136){(self::Class2?, self::Class2?) → void} in #t136; - let final self::Class1? #t138 = n1 in #t138 == null ?{self::Class2?} null : let final self::Class2 #t139 = #t138{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t140 = nullable2 in #t139.{self::Class2::[]=}(#t140, #t139.{self::Class2::[]}(#t140){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t141 = n1 in #t141 == null ?{self::Class2?} null : let final self::Class2 #t142 = #t141{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t143 = nullable2 in let final self::Class2 #t144 = #t142.{self::Class2::[]}(#t143){(self::Class2?) → self::Class2} in let final void #t145 = #t142.{self::Class2::[]=}(#t143, #t144.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t144; - let final self::Class1? #t146 = n1 in #t146 == null ?{self::Class2?} null : let final self::Class2 #t147 = #t146{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t148 = nullable2 in let final self::Class2 #t149 = #t147.{self::Class2::[]}(#t148){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t150 = #t147.{self::Class2::[]=}(#t148, #t149){(self::Class2?, self::Class2?) → void} in #t149; - nullable2 = let final self::Class1? #t151 = n1 in #t151 == null ?{self::Class2?} null : let final self::Class2 #t152 = #t151{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t153 = nullable2 in let final self::Class2 #t154 = #t152.{self::Class2::[]}(#t153){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t155 = #t152.{self::Class2::[]=}(#t153, #t154){(self::Class2?, self::Class2?) → void} in #t154; - let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class2?} null : #t156{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}; - let final self::Class1? #t157 = n1 in #t157 == null ?{self::Class2?} null : #t157{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]=}(nullable2, new self::Class2::•()){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t158 = n1 in #t158 == null ?{self::Class2?} null : let final self::Class2 #t159 = #t158{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t160 = nullable2 in let final self::Class2 #t161 = new self::Class2::•() in let final void #t162 = #t159.{self::Class2::[]=}(#t160, #t161){(self::Class2?, self::Class2?) → void} in #t161; - let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class2?} null : let final self::Class2? #t164 = #t163{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in #t164 == null ?{self::Class2?} null : #t164{self::Class2}.{self::Class2::nonNullable2Method}(){() → self::Class2}; - let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class2?} null : let final self::Class2 #t166 = #t165{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t167 = nullable2 in #t166.{self::Class2::[]=}(#t167, #t166.{self::Class2::[]}(#t167){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class2?} null : let final self::Class2 #t169 = #t168{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t170 = nullable2 in let final self::Class2 #t171 = #t169.{self::Class2::[]}(#t170){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t172 = #t169.{self::Class2::[]=}(#t170, #t171){(self::Class2?, self::Class2?) → void} in #t171; - let final self::Class1? #t173 = n1 in #t173 == null ?{self::Class2?} null : let final self::Class2 #t174 = #t173{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t175 = nullable2 in #t174.{self::Class2::[]=}(#t175, #t174.{self::Class2::[]}(#t175){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t176 = n1 in #t176 == null ?{self::Class2?} null : let final self::Class2 #t177 = #t176{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t178 = nullable2 in let final self::Class2 #t179 = #t177.{self::Class2::[]}(#t178){(self::Class2?) → self::Class2} in let final void #t180 = #t177.{self::Class2::[]=}(#t178, #t179.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t179; - let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class2?} null : let final self::Class2 #t182 = #t181{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t183 = nullable2 in let final self::Class2 #t184 = #t182.{self::Class2::[]}(#t183){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t185 = #t182.{self::Class2::[]=}(#t183, #t184){(self::Class2?, self::Class2?) → void} in #t184; - nullable2 = let final self::Class1? #t186 = n1 in #t186 == null ?{self::Class2?} null : let final self::Class2 #t187 = #t186{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t188 = nullable2 in let final self::Class2 #t189 = #t187.{self::Class2::[]}(#t188){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t190 = #t187.{self::Class2::[]=}(#t188, #t189){(self::Class2?, self::Class2?) → void} in #t189; - let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = #t191{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t192 == null ?{self::Class1?} null : #t192{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; - let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = #t193{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t194 == null ?{self::Class1?} null : #t194{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; - nullable1 = let final self::Class1? #t195 = n1 in #t195 == null ?{self::Class1?} null : let final self::Class1? #t196 = #t195{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t196 == null ?{self::Class1?} null : let final self::Class1? #t197 = nullable1 in let final self::Class1 #t198 = new self::Class1::•() in let final void #t199 = #t196{self::Class1}.{self::Class1::[]=}(#t197, #t198){(self::Class1?, self::Class1?) → void} in #t198; - let final self::Class1? #t200 = n1 in #t200 == null ?{self::Class1?} null : let final self::Class1? #t201 = #t200{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t201 == null ?{self::Class1?} null : let final self::Class1? #t202 = #t201{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t202 == null ?{self::Class1?} null : #t202{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t203 = n1 in #t203 == null ?{self::Class1?} null : let final self::Class1? #t204 = #t203{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t204 == null ?{self::Class1?} null : let final self::Class1? #t205 = #t204{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t205 == null ?{self::Class1?} null : #t205{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t206 = n1 in #t206 == null ?{self::Class1?} null : let final self::Class1? #t207 = #t206{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t207 == null ?{self::Class1?} null : let final self::Class1? #t208 = nullable1 in #t207{self::Class1}.{self::Class1::[]}(#t208){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t207{self::Class1}.{self::Class1::[]=}(#t208, nullable1){(self::Class1?, self::Class1?) → void} : null; - nullable1 = let final self::Class1? #t209 = n1 in #t209 == null ?{self::Class1?} null : let final self::Class1? #t210 = #t209{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t210 == null ?{self::Class1?} null : let final self::Class1? #t211 = nullable1 in let final self::Class1? #t212 = #t210{self::Class1}.{self::Class1::[]}(#t211){(self::Class1?) → self::Class1?} in #t212 == null ?{self::Class1?} let final self::Class1? #t213 = nullable1 in let final void #t214 = #t210{self::Class1}.{self::Class1::[]=}(#t211, #t213){(self::Class1?, self::Class1?) → void} in #t213 : #t212{self::Class1}; - let final self::Class3? #t215 = n3 in #t215 == null ?{self::Class2?} null : let final self::Class2? #t216 = #t215{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = nullable2 in #t216{self::Class2}.{self::Class2::[]=}(#t217, #t216{self::Class2}.{self::Class2::[]}(#t217){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class3? #t218 = n3 in #t218 == null ?{self::Class2?} null : let final self::Class2? #t219 = #t218{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t219 == null ?{self::Class2?} null : let final self::Class2? #t220 = nullable2 in let final self::Class2 #t221 = #t219{self::Class2}.{self::Class2::[]}(#t220){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t222 = #t219{self::Class2}.{self::Class2::[]=}(#t220, #t221){(self::Class2?, self::Class2?) → void} in #t221; - let final self::Class3? #t223 = n3 in #t223 == null ?{self::Class2?} null : let final self::Class2? #t224 = #t223{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t224 == null ?{self::Class2?} null : let final self::Class2? #t225 = nullable2 in #t224{self::Class2}.{self::Class2::[]=}(#t225, #t224{self::Class2}.{self::Class2::[]}(#t225){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class3? #t226 = n3 in #t226 == null ?{self::Class2?} null : let final self::Class2? #t227 = #t226{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t227 == null ?{self::Class2?} null : let final self::Class2? #t228 = nullable2 in let final self::Class2 #t229 = #t227{self::Class2}.{self::Class2::[]}(#t228){(self::Class2?) → self::Class2} in let final void #t230 = #t227{self::Class2}.{self::Class2::[]=}(#t228, #t229.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t229; - let final self::Class3? #t231 = n3 in #t231 == null ?{self::Class2?} null : let final self::Class2? #t232 = #t231{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t232 == null ?{self::Class2?} null : let final self::Class2? #t233 = nullable2 in let final self::Class2 #t234 = #t232{self::Class2}.{self::Class2::[]}(#t233){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t235 = #t232{self::Class2}.{self::Class2::[]=}(#t233, #t234){(self::Class2?, self::Class2?) → void} in #t234; - nullable2 = let final self::Class3? #t236 = n3 in #t236 == null ?{self::Class2?} null : let final self::Class2? #t237 = #t236{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t237 == null ?{self::Class2?} null : let final self::Class2? #t238 = nullable2 in let final self::Class2 #t239 = #t237{self::Class2}.{self::Class2::[]}(#t238){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t240 = #t237{self::Class2}.{self::Class2::[]=}(#t238, #t239){(self::Class2?, self::Class2?) → void} in #t239; + let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : #t82{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; + let final self::Class1? #t83 = n1 in #t83 == null ?{self::Class1?} null : #t83{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; + let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : let final self::Class1? #t85 = #t84{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t85 == null ?{self::Class1?} null : #t85{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t86 = n1 in #t86 == null ?{self::Class1?} null : #t86{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; + let final self::Class1? #t87 = n1 in #t87 == null ?{self::Class1?} null : #t87{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; + nullable1 = let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : let final self::Class1 #t89 = #t88{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t90 = nullable1 in let final self::Class1 #t91 = new self::Class1::•() in let final void #t92 = #t89.{self::Class1::[]=}(#t90, #t91){(self::Class1?, self::Class1?) → void} in #t91; + let final self::Class1? #t93 = n1 in #t93 == null ?{self::Class1?} null : let final self::Class1? #t94 = #t93{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t94 == null ?{self::Class1?} null : #t94{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class2?} null : let final self::Class2 #t96 = #t95{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t97 = nullable2 in #t96.{self::Class2::[]=}(#t97, #t96.{self::Class2::[]}(#t97){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t98 = n1 in #t98 == null ?{self::Class2?} null : let final self::Class2 #t99 = #t98{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t100 = nullable2 in let final self::Class2 #t101 = #t99.{self::Class2::[]}(#t100){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t102 = #t99.{self::Class2::[]=}(#t100, #t101){(self::Class2?, self::Class2?) → void} in #t101; + let final self::Class1? #t103 = n1 in #t103 == null ?{self::Class1?} null : let final self::Class1? #t104 = nullable1 in #t103{self::Class1}.{self::Class1::[]}(#t104){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t103{self::Class1}.{self::Class1::[]=}(#t104, nullable1){(self::Class1?, self::Class1?) → void} : null; + nullable1 = let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : let final self::Class1? #t106 = nullable1 in let final self::Class1? #t107 = #t105{self::Class1}.{self::Class1::[]}(#t106){(self::Class1?) → self::Class1?} in #t107 == null ?{self::Class1?} let final self::Class1? #t108 = nullable1 in let final void #t109 = #t105{self::Class1}.{self::Class1::[]=}(#t106, #t108){(self::Class1?, self::Class1?) → void} in #t108 : #t107{self::Class1}; + let final self::Class2? #t110 = n2 in #t110 == null ?{self::Class2?} null : let final self::Class2? #t111 = nullable2 in #t110{self::Class2}.{self::Class2::[]=}(#t111, #t110{self::Class2}.{self::Class2::[]}(#t111){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class2? #t112 = n2 in #t112 == null ?{self::Class2?} null : let final self::Class2? #t113 = nullable2 in let final self::Class2 #t114 = #t112{self::Class2}.{self::Class2::[]}(#t113){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t115 = #t112{self::Class2}.{self::Class2::[]=}(#t113, #t114){(self::Class2?, self::Class2?) → void} in #t114; + let final self::Class2? #t116 = n2 in #t116 == null ?{self::Class2?} null : let final self::Class2? #t117 = nullable2 in #t116{self::Class2}.{self::Class2::[]=}(#t117, #t116{self::Class2}.{self::Class2::[]}(#t117){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class2? #t118 = n2 in #t118 == null ?{self::Class2?} null : let final self::Class2? #t119 = nullable2 in let final self::Class2 #t120 = #t118{self::Class2}.{self::Class2::[]}(#t119){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t121 = #t118{self::Class2}.{self::Class2::[]=}(#t119, #t120){(self::Class2?, self::Class2?) → void} in #t120; + let final self::Class2? #t122 = n2 in #t122 == null ?{self::Class2?} null : let final self::Class2? #t123 = nullable2 in #t122{self::Class2}.{self::Class2::[]=}(#t123, #t122{self::Class2}.{self::Class2::[]}(#t123){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class2? #t124 = n2 in #t124 == null ?{self::Class2?} null : let final self::Class2? #t125 = nullable2 in let final self::Class2 #t126 = #t124{self::Class2}.{self::Class2::[]}(#t125){(self::Class2?) → self::Class2} in let final void #t127 = #t124{self::Class2}.{self::Class2::[]=}(#t125, #t126.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t126; + let final self::Class2? #t128 = n2 in #t128 == null ?{self::Class2?} null : let final self::Class2? #t129 = nullable2 in let final self::Class2 #t130 = #t128{self::Class2}.{self::Class2::[]}(#t129){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t131 = #t128{self::Class2}.{self::Class2::[]=}(#t129, #t130){(self::Class2?, self::Class2?) → void} in #t130; + nullable2 = let final self::Class2? #t132 = n2 in #t132 == null ?{self::Class2?} null : let final self::Class2? #t133 = nullable2 in let final self::Class2 #t134 = #t132{self::Class2}.{self::Class2::[]}(#t133){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t135 = #t132{self::Class2}.{self::Class2::[]=}(#t133, #t134){(self::Class2?, self::Class2?) → void} in #t134; + let final self::Class1? #t136 = n1 in #t136 == null ?{self::Class2?} null : let final self::Class2 #t137 = #t136{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t138 = nullable2 in #t137.{self::Class2::[]=}(#t138, #t137.{self::Class2::[]}(#t138){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t139 = n1 in #t139 == null ?{self::Class2?} null : let final self::Class2 #t140 = #t139{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t141 = nullable2 in let final self::Class2 #t142 = #t140.{self::Class2::[]}(#t141){(self::Class2?) → self::Class2} in let final void #t143 = #t140.{self::Class2::[]=}(#t141, #t142.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t142; + let final self::Class1? #t144 = n1 in #t144 == null ?{self::Class2?} null : let final self::Class2 #t145 = #t144{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t146 = nullable2 in let final self::Class2 #t147 = #t145.{self::Class2::[]}(#t146){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t148 = #t145.{self::Class2::[]=}(#t146, #t147){(self::Class2?, self::Class2?) → void} in #t147; + nullable2 = let final self::Class1? #t149 = n1 in #t149 == null ?{self::Class2?} null : let final self::Class2 #t150 = #t149{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t151 = nullable2 in let final self::Class2 #t152 = #t150.{self::Class2::[]}(#t151){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t153 = #t150.{self::Class2::[]=}(#t151, #t152){(self::Class2?, self::Class2?) → void} in #t152; + let final self::Class1? #t154 = n1 in #t154 == null ?{self::Class2?} null : #t154{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}; + let final self::Class1? #t155 = n1 in #t155 == null ?{self::Class2?} null : #t155{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]=}(nullable2, new self::Class2::•()){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class2?} null : let final self::Class2 #t157 = #t156{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t158 = nullable2 in let final self::Class2 #t159 = new self::Class2::•() in let final void #t160 = #t157.{self::Class2::[]=}(#t158, #t159){(self::Class2?, self::Class2?) → void} in #t159; + let final self::Class1? #t161 = n1 in #t161 == null ?{self::Class2?} null : let final self::Class2? #t162 = #t161{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in #t162 == null ?{self::Class2?} null : #t162{self::Class2}.{self::Class2::nonNullable2Method}(){() → self::Class2}; + let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class2?} null : let final self::Class2 #t164 = #t163{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t165 = nullable2 in #t164.{self::Class2::[]=}(#t165, #t164.{self::Class2::[]}(#t165){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class2?} null : let final self::Class2 #t167 = #t166{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t168 = nullable2 in let final self::Class2 #t169 = #t167.{self::Class2::[]}(#t168){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t170 = #t167.{self::Class2::[]=}(#t168, #t169){(self::Class2?, self::Class2?) → void} in #t169; + let final self::Class1? #t171 = n1 in #t171 == null ?{self::Class2?} null : let final self::Class2 #t172 = #t171{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t173 = nullable2 in #t172.{self::Class2::[]=}(#t173, #t172.{self::Class2::[]}(#t173){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class2?} null : let final self::Class2 #t175 = #t174{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t176 = nullable2 in let final self::Class2 #t177 = #t175.{self::Class2::[]}(#t176){(self::Class2?) → self::Class2} in let final void #t178 = #t175.{self::Class2::[]=}(#t176, #t177.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t177; + let final self::Class1? #t179 = n1 in #t179 == null ?{self::Class2?} null : let final self::Class2 #t180 = #t179{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t181 = nullable2 in let final self::Class2 #t182 = #t180.{self::Class2::[]}(#t181){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t183 = #t180.{self::Class2::[]=}(#t181, #t182){(self::Class2?, self::Class2?) → void} in #t182; + nullable2 = let final self::Class1? #t184 = n1 in #t184 == null ?{self::Class2?} null : let final self::Class2 #t185 = #t184{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t186 = nullable2 in let final self::Class2 #t187 = #t185.{self::Class2::[]}(#t186){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t188 = #t185.{self::Class2::[]=}(#t186, #t187){(self::Class2?, self::Class2?) → void} in #t187; + let final self::Class1? #t189 = n1 in #t189 == null ?{self::Class1?} null : let final self::Class1? #t190 = #t189{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t190 == null ?{self::Class1?} null : #t190{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; + let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = #t191{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t192 == null ?{self::Class1?} null : #t192{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; + nullable1 = let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = #t193{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t194 == null ?{self::Class1?} null : let final self::Class1? #t195 = nullable1 in let final self::Class1 #t196 = new self::Class1::•() in let final void #t197 = #t194{self::Class1}.{self::Class1::[]=}(#t195, #t196){(self::Class1?, self::Class1?) → void} in #t196; + let final self::Class1? #t198 = n1 in #t198 == null ?{self::Class1?} null : let final self::Class1? #t199 = #t198{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t199 == null ?{self::Class1?} null : let final self::Class1? #t200 = #t199{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t200 == null ?{self::Class1?} null : #t200{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t201 = n1 in #t201 == null ?{self::Class1?} null : let final self::Class1? #t202 = #t201{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t202 == null ?{self::Class1?} null : let final self::Class1? #t203 = #t202{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t203 == null ?{self::Class1?} null : #t203{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t204 = n1 in #t204 == null ?{self::Class1?} null : let final self::Class1? #t205 = #t204{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t205 == null ?{self::Class1?} null : let final self::Class1? #t206 = nullable1 in #t205{self::Class1}.{self::Class1::[]}(#t206){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t205{self::Class1}.{self::Class1::[]=}(#t206, nullable1){(self::Class1?, self::Class1?) → void} : null; + nullable1 = let final self::Class1? #t207 = n1 in #t207 == null ?{self::Class1?} null : let final self::Class1? #t208 = #t207{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t208 == null ?{self::Class1?} null : let final self::Class1? #t209 = nullable1 in let final self::Class1? #t210 = #t208{self::Class1}.{self::Class1::[]}(#t209){(self::Class1?) → self::Class1?} in #t210 == null ?{self::Class1?} let final self::Class1? #t211 = nullable1 in let final void #t212 = #t208{self::Class1}.{self::Class1::[]=}(#t209, #t211){(self::Class1?, self::Class1?) → void} in #t211 : #t210{self::Class1}; + let final self::Class3? #t213 = n3 in #t213 == null ?{self::Class2?} null : let final self::Class2? #t214 = #t213{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t214 == null ?{self::Class2?} null : let final self::Class2? #t215 = nullable2 in #t214{self::Class2}.{self::Class2::[]=}(#t215, #t214{self::Class2}.{self::Class2::[]}(#t215){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class3? #t216 = n3 in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = #t216{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t217 == null ?{self::Class2?} null : let final self::Class2? #t218 = nullable2 in let final self::Class2 #t219 = #t217{self::Class2}.{self::Class2::[]}(#t218){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t220 = #t217{self::Class2}.{self::Class2::[]=}(#t218, #t219){(self::Class2?, self::Class2?) → void} in #t219; + let final self::Class3? #t221 = n3 in #t221 == null ?{self::Class2?} null : let final self::Class2? #t222 = #t221{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t222 == null ?{self::Class2?} null : let final self::Class2? #t223 = nullable2 in #t222{self::Class2}.{self::Class2::[]=}(#t223, #t222{self::Class2}.{self::Class2::[]}(#t223){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class3? #t224 = n3 in #t224 == null ?{self::Class2?} null : let final self::Class2? #t225 = #t224{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t225 == null ?{self::Class2?} null : let final self::Class2? #t226 = nullable2 in let final self::Class2 #t227 = #t225{self::Class2}.{self::Class2::[]}(#t226){(self::Class2?) → self::Class2} in let final void #t228 = #t225{self::Class2}.{self::Class2::[]=}(#t226, #t227.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t227; + let final self::Class3? #t229 = n3 in #t229 == null ?{self::Class2?} null : let final self::Class2? #t230 = #t229{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t230 == null ?{self::Class2?} null : let final self::Class2? #t231 = nullable2 in let final self::Class2 #t232 = #t230{self::Class2}.{self::Class2::[]}(#t231){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t233 = #t230{self::Class2}.{self::Class2::[]=}(#t231, #t232){(self::Class2?, self::Class2?) → void} in #t232; + nullable2 = let final self::Class3? #t234 = n3 in #t234 == null ?{self::Class2?} null : let final self::Class2? #t235 = #t234{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t235 == null ?{self::Class2?} null : let final self::Class2? #t236 = nullable2 in let final self::Class2 #t237 = #t235{self::Class2}.{self::Class2::[]}(#t236){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t238 = #t235{self::Class2}.{self::Class2::[]=}(#t236, #t237){(self::Class2?, self::Class2?) → void} in #t237; } static method operatorAccess(self::Class1? n1, self::Class2? n2) → void { self::Class2? nullable2 = n2; - self::throws(() → void => let final Never #t241 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:220:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:220:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. throws(() => n1?.nonNullable1 + 0); - ^" in (let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class1?} null : #t242{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::+}(0){(core::int) → self::Class1?}); - self::throws(() → void => let final Never #t243 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:221:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. + ^" in (let final self::Class1? #t239 = n1 in #t239 == null ?{self::Class1?} null : #t239{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::+}(0){(core::int) → self::Class1?}); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:221:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. throws(() => -n1?.nonNullable1); - ^" in (let final self::Class1? #t244 = n1 in #t244 == null ?{self::Class1?} null : #t244{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::unary-}(){() → self::Class1?}); - let final self::Class2? #t245 = n2 in #t245 == null ?{self::Class2?} null : #t245.{self::Class2::nonNullable2} = #t245.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; - nullable2 = let final self::Class2? #t246 = n2 in #t246 == null ?{self::Class2?} null : let final self::Class2 #t247 = #t246.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t248 = #t246.{self::Class2::nonNullable2} = #t247 in #t247; - let final self::Class2? #t249 = n2 in #t249 == null ?{self::Class2?} null : let final self::Class2 #t250 = #t249{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t250.{self::Class2::nonNullable2} = #t250.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; - nullable2 = let final self::Class2? #t251 = n2 in #t251 == null ?{self::Class2?} null : let final self::Class2 #t252 = #t251{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t252.{self::Class2::nonNullable2} = #t252.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; - let final self::Class2? #t253 = n2 in #t253 == null ?{self::Class2?} null : #t253.{self::Class2::nonNullable2} = #t253.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}; - nullable2 = let final self::Class2? #t254 = n2 in #t254 == null ?{self::Class2?} null : let final self::Class2 #t255 = #t254.{self::Class2::nonNullable2}{self::Class2} in let final void #t256 = #t254.{self::Class2::nonNullable2} = #t255.{self::Class2::+}(1){(core::int) → self::Class2} in #t255; - let final self::Class2? #t257 = n2 in #t257 == null ?{self::Class2?} null : let final self::Class2 #t258 = #t257.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t259 = #t257.{self::Class2::nonNullable2} = #t258 in #t258; - nullable2 = let final self::Class2? #t260 = n2 in #t260 == null ?{self::Class2?} null : let final self::Class2 #t261 = #t260.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t262 = #t260.{self::Class2::nonNullable2} = #t261 in #t261; + ^" in (let final self::Class1? #t240 = n1 in #t240 == null ?{self::Class1?} null : #t240{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::unary-}(){() → self::Class1?}); + let final self::Class2? #t241 = n2 in #t241 == null ?{self::Class2?} null : #t241.{self::Class2::nonNullable2} = #t241.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; + nullable2 = let final self::Class2? #t242 = n2 in #t242 == null ?{self::Class2?} null : let final self::Class2 #t243 = #t242.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t244 = #t242.{self::Class2::nonNullable2} = #t243 in #t243; + let final self::Class2? #t245 = n2 in #t245 == null ?{self::Class2?} null : let final self::Class2 #t246 = #t245{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t246.{self::Class2::nonNullable2} = #t246.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; + nullable2 = let final self::Class2? #t247 = n2 in #t247 == null ?{self::Class2?} null : let final self::Class2 #t248 = #t247{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t248.{self::Class2::nonNullable2} = #t248.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; + let final self::Class2? #t249 = n2 in #t249 == null ?{self::Class2?} null : #t249.{self::Class2::nonNullable2} = #t249.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}; + nullable2 = let final self::Class2? #t250 = n2 in #t250 == null ?{self::Class2?} null : let final self::Class2 #t251 = #t250.{self::Class2::nonNullable2}{self::Class2} in let final void #t252 = #t250.{self::Class2::nonNullable2} = #t251.{self::Class2::+}(1){(core::int) → self::Class2} in #t251; + let final self::Class2? #t253 = n2 in #t253 == null ?{self::Class2?} null : let final self::Class2 #t254 = #t253.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t255 = #t253.{self::Class2::nonNullable2} = #t254 in #t254; + nullable2 = let final self::Class2? #t256 = n2 in #t256 == null ?{self::Class2?} null : let final self::Class2 #t257 = #t256.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t258 = #t256.{self::Class2::nonNullable2} = #t257 in #t257; } static method ifNull(self::Class1? n1) → void { self::Class1? nullable1 = n1; - let final self::Class1? #t263 = n1 in #t263 == null ?{self::Class1?} null : #t263.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t263.{self::Class1::nullable1} = n1{self::Class1} : null; - n1 = let final self::Class1? #t264 = n1 in #t264 == null ?{self::Class1?} null : let final self::Class1? #t265 = #t264.{self::Class1::nullable1}{self::Class1?} in #t265 == null ?{self::Class1} #t264.{self::Class1::nullable1} = n1{self::Class1} : #t265{self::Class1}; - let final self::Class1? #t266 = n1 in #t266 == null ?{self::Class1?} null : let final self::Class1 #t267 = #t266{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in #t267.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t267.{self::Class1::nullable1} = n1{self::Class1} : null; - n1 = let final self::Class1? #t268 = n1 in #t268 == null ?{self::Class1?} null : let final self::Class1 #t269 = #t268{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t270 = #t269.{self::Class1::nullable1}{self::Class1?} in #t270 == null ?{self::Class1} #t269.{self::Class1::nullable1} = n1{self::Class1} : #t270{self::Class1}; - let final self::Class1? #t271 = n1 in #t271 == null ?{self::Class1?} null : let final self::Class1 #t272 = #t271{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t273 = n1{self::Class1} in #t272.{self::Class1::[]}(#t273){(self::Class1?) → self::Class1?} == null ?{self::Class1} #t272.{self::Class1::[]=}(#t273, n1{self::Class1}){(self::Class1?, self::Class1?) → void} : null; - n1 = let final self::Class1? #t274 = n1 in #t274 == null ?{self::Class1?} null : let final self::Class1 #t275 = #t274{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t276 = n1{self::Class1} in let final self::Class1? #t277 = #t275.{self::Class1::[]}(#t276){(self::Class1?) → self::Class1?} in #t277 == null ?{self::Class1} let final self::Class1 #t278 = n1{self::Class1} in let final void #t279 = #t275.{self::Class1::[]=}(#t276, #t278){(self::Class1?, self::Class1?) → void} in #t278 : #t277{self::Class1}; + let final self::Class1? #t259 = n1 in #t259 == null ?{self::Class1?} null : #t259.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t259.{self::Class1::nullable1} = n1{self::Class1} : null; + n1 = let final self::Class1? #t260 = n1 in #t260 == null ?{self::Class1?} null : let final self::Class1? #t261 = #t260.{self::Class1::nullable1}{self::Class1?} in #t261 == null ?{self::Class1} #t260.{self::Class1::nullable1} = n1{self::Class1} : #t261{self::Class1}; + let final self::Class1? #t262 = n1 in #t262 == null ?{self::Class1?} null : let final self::Class1 #t263 = #t262{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in #t263.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t263.{self::Class1::nullable1} = n1{self::Class1} : null; + n1 = let final self::Class1? #t264 = n1 in #t264 == null ?{self::Class1?} null : let final self::Class1 #t265 = #t264{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t266 = #t265.{self::Class1::nullable1}{self::Class1?} in #t266 == null ?{self::Class1} #t265.{self::Class1::nullable1} = n1{self::Class1} : #t266{self::Class1}; + let final self::Class1? #t267 = n1 in #t267 == null ?{self::Class1?} null : let final self::Class1 #t268 = #t267{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t269 = n1{self::Class1} in #t268.{self::Class1::[]}(#t269){(self::Class1?) → self::Class1?} == null ?{self::Class1} #t268.{self::Class1::[]=}(#t269, n1{self::Class1}){(self::Class1?, self::Class1?) → void} : null; + n1 = let final self::Class1? #t270 = n1 in #t270 == null ?{self::Class1?} null : let final self::Class1 #t271 = #t270{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t272 = n1{self::Class1} in let final self::Class1? #t273 = #t271.{self::Class1::[]}(#t272){(self::Class1?) → self::Class1?} in #t273 == null ?{self::Class1} let final self::Class1 #t274 = n1{self::Class1} in let final void #t275 = #t271.{self::Class1::[]=}(#t272, #t274){(self::Class1?, self::Class1?) → void} in #t274 : #t273{self::Class1}; } static method throws(() → void f) → void { try { diff --git a/pkg/front_end/testcases/nnbd/null_shorting.dart.weak.expect b/pkg/front_end/testcases/nnbd/null_shorting.dart.weak.expect index ed3bb8dcd2c..6be85bff034 100644 --- a/pkg/front_end/testcases/nnbd/null_shorting.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/null_shorting.dart.weak.expect @@ -110,153 +110,153 @@ static method propertyAccess(self::Class1? n1) → void { let final self::Class1? #t11 = n1 in #t11 == null ?{self::Class1?} null : let final self::Class1? #t12 = #t11{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t12 == null ?{self::Class1?} null : #t12{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); let final self::Class1? #t13 = n1 in #t13 == null ?{self::Class1?} null : let final self::Class1? #t14 = #t13{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t14 == null ?{self::Class1?} null : #t14{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); let final self::Class1? #t15 = let final self::Class1? #t16 = n1 in #t16 == null ?{self::Class1?} null : #t16{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t15 == null ?{self::Class1?} null : #t15{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - self::throws(() → void => let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:87:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:87:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. Try accessing using ?. instead. throws(() => (n1?.nullable1 = new Class1()).nullable1); - ^^^^^^^^^" in (let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : #t18{self::Class1}.{self::Class1::nullable1} = new self::Class1::•()).{self::Class1::nullable1}{}.{self::Class1?}); - self::throws(() → void => let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:88:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + ^^^^^^^^^" in (let final self::Class1? #t17 = n1 in #t17 == null ?{self::Class1?} null : #t17{self::Class1}.{self::Class1::nullable1} = new self::Class1::•()).{self::Class1::nullable1}{}.{self::Class1?}); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:88:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. Try accessing using ?. instead. throws(() => (n1?.nonNullable1Method()).nullable1); - ^^^^^^^^^" in (let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : #t20{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}).{self::Class1::nullable1}{}.{self::Class1?}); - nullable1 = let final self::Class1? #t21 = n1 in #t21 == null ?{self::Class1?} null : #t21{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : let final self::Class1? #t23 = #t22{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t23 == null ?{self::Class1?} null : #t23{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : let final self::Class1? #t25 = #t24{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t25 == null ?{self::Class1?} null : #t25{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : let final self::Class1? #t27 = #t26{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t27 == null ?{self::Class1?} null : #t27{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : #t28{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t29 = n1 in #t29 == null ?{self::Class1?} null : #t29{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : #t30{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t31 = n1 in #t31 == null ?{self::Class1?} null : #t31{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : #t32{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t33 = n1 in #t33 == null ?{self::Class1?} null : #t33{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : #t34{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t35 = n1 in #t35 == null ?{self::Class1?} null : #t35{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : #t36{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : #t37{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : #t38{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t39 = n1 in #t39 == null ?{self::Class1?} null : #t39{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : let final self::Class1? #t41 = #t40{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t41 == null ?{self::Class1?} null : #t41{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : #t42{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : #t43{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t44 = n1 in #t44 == null ?{self::Class1?} null : #t44{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : #t45{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t46 = n1 in #t46 == null ?{self::Class1?} null : #t46{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t47 = n1 in #t47 == null ?{self::Class1?} null : #t47{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : #t48{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : #t49{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : #t50{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : #t51{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : #t52{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : #t53{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : #t54{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : #t55{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : #t56{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : #t57{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : #t58{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : #t59{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : #t60{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t61 = n1 in #t61 == null ?{self::Class1?} null : #t61{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : #t62{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : #t63{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : #t64{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : #t65{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : #t66{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t67 = n1 in #t67 == null ?{self::Class1?} null : #t67{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : #t68{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : #t69{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t70 = n1 in #t70 == null ?{self::Class1?} null : #t70{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : #t71{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t72 = n1 in #t72 == null ?{self::Class1?} null : #t72{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t73 = n1 in #t73 == null ?{self::Class1?} null : #t73{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : #t74{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : #t75{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : #t76{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : #t77{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : #t78{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : #t79{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : #t80{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : #t81{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : let final self::Class1? #t83 = #t82{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1} in #t83 == null ?{self::Class1?} null : #t83{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + ^^^^^^^^^" in (let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : #t18{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}).{self::Class1::nullable1}{}.{self::Class1?}); + nullable1 = let final self::Class1? #t19 = n1 in #t19 == null ?{self::Class1?} null : #t19{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : let final self::Class1? #t21 = #t20{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t21 == null ?{self::Class1?} null : #t21{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : let final self::Class1? #t23 = #t22{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t23 == null ?{self::Class1?} null : #t23{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : let final self::Class1? #t25 = #t24{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t25 == null ?{self::Class1?} null : #t25{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : #t26{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t27 = n1 in #t27 == null ?{self::Class1?} null : #t27{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : #t28{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t29 = n1 in #t29 == null ?{self::Class1?} null : #t29{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : #t30{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t31 = n1 in #t31 == null ?{self::Class1?} null : #t31{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : #t32{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t33 = n1 in #t33 == null ?{self::Class1?} null : #t33{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : #t34{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t35 = n1 in #t35 == null ?{self::Class1?} null : #t35{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : #t36{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : #t37{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : let final self::Class1? #t39 = #t38{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t39 == null ?{self::Class1?} null : #t39{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : #t40{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t41 = n1 in #t41 == null ?{self::Class1?} null : #t41{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : #t42{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : #t43{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t44 = n1 in #t44 == null ?{self::Class1?} null : #t44{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : #t45{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t46 = n1 in #t46 == null ?{self::Class1?} null : #t46{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t47 = n1 in #t47 == null ?{self::Class1?} null : #t47{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : #t48{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : #t49{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : #t50{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : #t51{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : #t52{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : #t53{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : #t54{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : #t55{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : #t56{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : #t57{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : #t58{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : #t59{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : #t60{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t61 = n1 in #t61 == null ?{self::Class1?} null : #t61{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : #t62{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : #t63{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : #t64{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : #t65{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : #t66{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t67 = n1 in #t67 == null ?{self::Class1?} null : #t67{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : #t68{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : #t69{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t70 = n1 in #t70 == null ?{self::Class1?} null : #t70{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : #t71{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t72 = n1 in #t72 == null ?{self::Class1?} null : #t72{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t73 = n1 in #t73 == null ?{self::Class1?} null : #t73{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : #t74{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : #t75{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : #t76{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : #t77{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : #t78{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : #t79{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : let final self::Class1? #t81 = #t80{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1} in #t81 == null ?{self::Class1?} null : #t81{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; } static method indexAccess(self::Class1? n1, self::Class2? n2, self::Class3? n3) → void { self::Class1? nullable1 = n1; self::Class2? nullable2 = n2; self::Class3? nullable3 = n3; - let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : #t84{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; - let final self::Class1? #t85 = n1 in #t85 == null ?{self::Class1?} null : #t85{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; - let final self::Class1? #t86 = n1 in #t86 == null ?{self::Class1?} null : let final self::Class1? #t87 = #t86{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t87 == null ?{self::Class1?} null : #t87{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : #t88{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; - let final self::Class1? #t89 = n1 in #t89 == null ?{self::Class1?} null : #t89{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; - nullable1 = let final self::Class1? #t90 = n1 in #t90 == null ?{self::Class1?} null : let final self::Class1 #t91 = #t90{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t92 = nullable1 in let final self::Class1 #t93 = new self::Class1::•() in let final void #t94 = #t91.{self::Class1::[]=}(#t92, #t93){(self::Class1?, self::Class1?) → void} in #t93; - let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class1?} null : let final self::Class1? #t96 = #t95{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t96 == null ?{self::Class1?} null : #t96{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t97 = n1 in #t97 == null ?{self::Class2?} null : let final self::Class2 #t98 = #t97{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t99 = nullable2 in #t98.{self::Class2::[]=}(#t99, #t98.{self::Class2::[]}(#t99){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t100 = n1 in #t100 == null ?{self::Class2?} null : let final self::Class2 #t101 = #t100{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t102 = nullable2 in let final self::Class2 #t103 = #t101.{self::Class2::[]}(#t102){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t104 = #t101.{self::Class2::[]=}(#t102, #t103){(self::Class2?, self::Class2?) → void} in #t103; - let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : let final self::Class1? #t106 = nullable1 in #t105{self::Class1}.{self::Class1::[]}(#t106){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t105{self::Class1}.{self::Class1::[]=}(#t106, nullable1){(self::Class1?, self::Class1?) → void} : null; - nullable1 = let final self::Class1? #t107 = n1 in #t107 == null ?{self::Class1?} null : let final self::Class1? #t108 = nullable1 in let final self::Class1? #t109 = #t107{self::Class1}.{self::Class1::[]}(#t108){(self::Class1?) → self::Class1?} in #t109 == null ?{self::Class1?} let final self::Class1? #t110 = nullable1 in let final void #t111 = #t107{self::Class1}.{self::Class1::[]=}(#t108, #t110){(self::Class1?, self::Class1?) → void} in #t110 : #t109{self::Class1}; - let final self::Class2? #t112 = n2 in #t112 == null ?{self::Class2?} null : let final self::Class2? #t113 = nullable2 in #t112{self::Class2}.{self::Class2::[]=}(#t113, #t112{self::Class2}.{self::Class2::[]}(#t113){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class2? #t114 = n2 in #t114 == null ?{self::Class2?} null : let final self::Class2? #t115 = nullable2 in let final self::Class2 #t116 = #t114{self::Class2}.{self::Class2::[]}(#t115){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t117 = #t114{self::Class2}.{self::Class2::[]=}(#t115, #t116){(self::Class2?, self::Class2?) → void} in #t116; - let final self::Class2? #t118 = n2 in #t118 == null ?{self::Class2?} null : let final self::Class2? #t119 = nullable2 in #t118{self::Class2}.{self::Class2::[]=}(#t119, #t118{self::Class2}.{self::Class2::[]}(#t119){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class2? #t120 = n2 in #t120 == null ?{self::Class2?} null : let final self::Class2? #t121 = nullable2 in let final self::Class2 #t122 = #t120{self::Class2}.{self::Class2::[]}(#t121){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t123 = #t120{self::Class2}.{self::Class2::[]=}(#t121, #t122){(self::Class2?, self::Class2?) → void} in #t122; - let final self::Class2? #t124 = n2 in #t124 == null ?{self::Class2?} null : let final self::Class2? #t125 = nullable2 in #t124{self::Class2}.{self::Class2::[]=}(#t125, #t124{self::Class2}.{self::Class2::[]}(#t125){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class2? #t126 = n2 in #t126 == null ?{self::Class2?} null : let final self::Class2? #t127 = nullable2 in let final self::Class2 #t128 = #t126{self::Class2}.{self::Class2::[]}(#t127){(self::Class2?) → self::Class2} in let final void #t129 = #t126{self::Class2}.{self::Class2::[]=}(#t127, #t128.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t128; - let final self::Class2? #t130 = n2 in #t130 == null ?{self::Class2?} null : let final self::Class2? #t131 = nullable2 in let final self::Class2 #t132 = #t130{self::Class2}.{self::Class2::[]}(#t131){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t133 = #t130{self::Class2}.{self::Class2::[]=}(#t131, #t132){(self::Class2?, self::Class2?) → void} in #t132; - nullable2 = let final self::Class2? #t134 = n2 in #t134 == null ?{self::Class2?} null : let final self::Class2? #t135 = nullable2 in let final self::Class2 #t136 = #t134{self::Class2}.{self::Class2::[]}(#t135){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t137 = #t134{self::Class2}.{self::Class2::[]=}(#t135, #t136){(self::Class2?, self::Class2?) → void} in #t136; - let final self::Class1? #t138 = n1 in #t138 == null ?{self::Class2?} null : let final self::Class2 #t139 = #t138{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t140 = nullable2 in #t139.{self::Class2::[]=}(#t140, #t139.{self::Class2::[]}(#t140){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t141 = n1 in #t141 == null ?{self::Class2?} null : let final self::Class2 #t142 = #t141{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t143 = nullable2 in let final self::Class2 #t144 = #t142.{self::Class2::[]}(#t143){(self::Class2?) → self::Class2} in let final void #t145 = #t142.{self::Class2::[]=}(#t143, #t144.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t144; - let final self::Class1? #t146 = n1 in #t146 == null ?{self::Class2?} null : let final self::Class2 #t147 = #t146{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t148 = nullable2 in let final self::Class2 #t149 = #t147.{self::Class2::[]}(#t148){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t150 = #t147.{self::Class2::[]=}(#t148, #t149){(self::Class2?, self::Class2?) → void} in #t149; - nullable2 = let final self::Class1? #t151 = n1 in #t151 == null ?{self::Class2?} null : let final self::Class2 #t152 = #t151{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t153 = nullable2 in let final self::Class2 #t154 = #t152.{self::Class2::[]}(#t153){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t155 = #t152.{self::Class2::[]=}(#t153, #t154){(self::Class2?, self::Class2?) → void} in #t154; - let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class2?} null : #t156{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}; - let final self::Class1? #t157 = n1 in #t157 == null ?{self::Class2?} null : #t157{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]=}(nullable2, new self::Class2::•()){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t158 = n1 in #t158 == null ?{self::Class2?} null : let final self::Class2 #t159 = #t158{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t160 = nullable2 in let final self::Class2 #t161 = new self::Class2::•() in let final void #t162 = #t159.{self::Class2::[]=}(#t160, #t161){(self::Class2?, self::Class2?) → void} in #t161; - let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class2?} null : let final self::Class2? #t164 = #t163{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in #t164 == null ?{self::Class2?} null : #t164{self::Class2}.{self::Class2::nonNullable2Method}(){() → self::Class2}; - let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class2?} null : let final self::Class2 #t166 = #t165{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t167 = nullable2 in #t166.{self::Class2::[]=}(#t167, #t166.{self::Class2::[]}(#t167){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class2?} null : let final self::Class2 #t169 = #t168{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t170 = nullable2 in let final self::Class2 #t171 = #t169.{self::Class2::[]}(#t170){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t172 = #t169.{self::Class2::[]=}(#t170, #t171){(self::Class2?, self::Class2?) → void} in #t171; - let final self::Class1? #t173 = n1 in #t173 == null ?{self::Class2?} null : let final self::Class2 #t174 = #t173{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t175 = nullable2 in #t174.{self::Class2::[]=}(#t175, #t174.{self::Class2::[]}(#t175){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t176 = n1 in #t176 == null ?{self::Class2?} null : let final self::Class2 #t177 = #t176{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t178 = nullable2 in let final self::Class2 #t179 = #t177.{self::Class2::[]}(#t178){(self::Class2?) → self::Class2} in let final void #t180 = #t177.{self::Class2::[]=}(#t178, #t179.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t179; - let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class2?} null : let final self::Class2 #t182 = #t181{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t183 = nullable2 in let final self::Class2 #t184 = #t182.{self::Class2::[]}(#t183){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t185 = #t182.{self::Class2::[]=}(#t183, #t184){(self::Class2?, self::Class2?) → void} in #t184; - nullable2 = let final self::Class1? #t186 = n1 in #t186 == null ?{self::Class2?} null : let final self::Class2 #t187 = #t186{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t188 = nullable2 in let final self::Class2 #t189 = #t187.{self::Class2::[]}(#t188){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t190 = #t187.{self::Class2::[]=}(#t188, #t189){(self::Class2?, self::Class2?) → void} in #t189; - let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = #t191{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t192 == null ?{self::Class1?} null : #t192{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; - let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = #t193{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t194 == null ?{self::Class1?} null : #t194{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; - nullable1 = let final self::Class1? #t195 = n1 in #t195 == null ?{self::Class1?} null : let final self::Class1? #t196 = #t195{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t196 == null ?{self::Class1?} null : let final self::Class1? #t197 = nullable1 in let final self::Class1 #t198 = new self::Class1::•() in let final void #t199 = #t196{self::Class1}.{self::Class1::[]=}(#t197, #t198){(self::Class1?, self::Class1?) → void} in #t198; - let final self::Class1? #t200 = n1 in #t200 == null ?{self::Class1?} null : let final self::Class1? #t201 = #t200{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t201 == null ?{self::Class1?} null : let final self::Class1? #t202 = #t201{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t202 == null ?{self::Class1?} null : #t202{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t203 = n1 in #t203 == null ?{self::Class1?} null : let final self::Class1? #t204 = #t203{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t204 == null ?{self::Class1?} null : let final self::Class1? #t205 = #t204{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t205 == null ?{self::Class1?} null : #t205{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t206 = n1 in #t206 == null ?{self::Class1?} null : let final self::Class1? #t207 = #t206{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t207 == null ?{self::Class1?} null : let final self::Class1? #t208 = nullable1 in #t207{self::Class1}.{self::Class1::[]}(#t208){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t207{self::Class1}.{self::Class1::[]=}(#t208, nullable1){(self::Class1?, self::Class1?) → void} : null; - nullable1 = let final self::Class1? #t209 = n1 in #t209 == null ?{self::Class1?} null : let final self::Class1? #t210 = #t209{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t210 == null ?{self::Class1?} null : let final self::Class1? #t211 = nullable1 in let final self::Class1? #t212 = #t210{self::Class1}.{self::Class1::[]}(#t211){(self::Class1?) → self::Class1?} in #t212 == null ?{self::Class1?} let final self::Class1? #t213 = nullable1 in let final void #t214 = #t210{self::Class1}.{self::Class1::[]=}(#t211, #t213){(self::Class1?, self::Class1?) → void} in #t213 : #t212{self::Class1}; - let final self::Class3? #t215 = n3 in #t215 == null ?{self::Class2?} null : let final self::Class2? #t216 = #t215{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = nullable2 in #t216{self::Class2}.{self::Class2::[]=}(#t217, #t216{self::Class2}.{self::Class2::[]}(#t217){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class3? #t218 = n3 in #t218 == null ?{self::Class2?} null : let final self::Class2? #t219 = #t218{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t219 == null ?{self::Class2?} null : let final self::Class2? #t220 = nullable2 in let final self::Class2 #t221 = #t219{self::Class2}.{self::Class2::[]}(#t220){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t222 = #t219{self::Class2}.{self::Class2::[]=}(#t220, #t221){(self::Class2?, self::Class2?) → void} in #t221; - let final self::Class3? #t223 = n3 in #t223 == null ?{self::Class2?} null : let final self::Class2? #t224 = #t223{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t224 == null ?{self::Class2?} null : let final self::Class2? #t225 = nullable2 in #t224{self::Class2}.{self::Class2::[]=}(#t225, #t224{self::Class2}.{self::Class2::[]}(#t225){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class3? #t226 = n3 in #t226 == null ?{self::Class2?} null : let final self::Class2? #t227 = #t226{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t227 == null ?{self::Class2?} null : let final self::Class2? #t228 = nullable2 in let final self::Class2 #t229 = #t227{self::Class2}.{self::Class2::[]}(#t228){(self::Class2?) → self::Class2} in let final void #t230 = #t227{self::Class2}.{self::Class2::[]=}(#t228, #t229.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t229; - let final self::Class3? #t231 = n3 in #t231 == null ?{self::Class2?} null : let final self::Class2? #t232 = #t231{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t232 == null ?{self::Class2?} null : let final self::Class2? #t233 = nullable2 in let final self::Class2 #t234 = #t232{self::Class2}.{self::Class2::[]}(#t233){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t235 = #t232{self::Class2}.{self::Class2::[]=}(#t233, #t234){(self::Class2?, self::Class2?) → void} in #t234; - nullable2 = let final self::Class3? #t236 = n3 in #t236 == null ?{self::Class2?} null : let final self::Class2? #t237 = #t236{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t237 == null ?{self::Class2?} null : let final self::Class2? #t238 = nullable2 in let final self::Class2 #t239 = #t237{self::Class2}.{self::Class2::[]}(#t238){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t240 = #t237{self::Class2}.{self::Class2::[]=}(#t238, #t239){(self::Class2?, self::Class2?) → void} in #t239; + let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : #t82{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; + let final self::Class1? #t83 = n1 in #t83 == null ?{self::Class1?} null : #t83{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; + let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : let final self::Class1? #t85 = #t84{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t85 == null ?{self::Class1?} null : #t85{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t86 = n1 in #t86 == null ?{self::Class1?} null : #t86{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; + let final self::Class1? #t87 = n1 in #t87 == null ?{self::Class1?} null : #t87{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; + nullable1 = let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : let final self::Class1 #t89 = #t88{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t90 = nullable1 in let final self::Class1 #t91 = new self::Class1::•() in let final void #t92 = #t89.{self::Class1::[]=}(#t90, #t91){(self::Class1?, self::Class1?) → void} in #t91; + let final self::Class1? #t93 = n1 in #t93 == null ?{self::Class1?} null : let final self::Class1? #t94 = #t93{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t94 == null ?{self::Class1?} null : #t94{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class2?} null : let final self::Class2 #t96 = #t95{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t97 = nullable2 in #t96.{self::Class2::[]=}(#t97, #t96.{self::Class2::[]}(#t97){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t98 = n1 in #t98 == null ?{self::Class2?} null : let final self::Class2 #t99 = #t98{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t100 = nullable2 in let final self::Class2 #t101 = #t99.{self::Class2::[]}(#t100){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t102 = #t99.{self::Class2::[]=}(#t100, #t101){(self::Class2?, self::Class2?) → void} in #t101; + let final self::Class1? #t103 = n1 in #t103 == null ?{self::Class1?} null : let final self::Class1? #t104 = nullable1 in #t103{self::Class1}.{self::Class1::[]}(#t104){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t103{self::Class1}.{self::Class1::[]=}(#t104, nullable1){(self::Class1?, self::Class1?) → void} : null; + nullable1 = let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : let final self::Class1? #t106 = nullable1 in let final self::Class1? #t107 = #t105{self::Class1}.{self::Class1::[]}(#t106){(self::Class1?) → self::Class1?} in #t107 == null ?{self::Class1?} let final self::Class1? #t108 = nullable1 in let final void #t109 = #t105{self::Class1}.{self::Class1::[]=}(#t106, #t108){(self::Class1?, self::Class1?) → void} in #t108 : #t107{self::Class1}; + let final self::Class2? #t110 = n2 in #t110 == null ?{self::Class2?} null : let final self::Class2? #t111 = nullable2 in #t110{self::Class2}.{self::Class2::[]=}(#t111, #t110{self::Class2}.{self::Class2::[]}(#t111){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class2? #t112 = n2 in #t112 == null ?{self::Class2?} null : let final self::Class2? #t113 = nullable2 in let final self::Class2 #t114 = #t112{self::Class2}.{self::Class2::[]}(#t113){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t115 = #t112{self::Class2}.{self::Class2::[]=}(#t113, #t114){(self::Class2?, self::Class2?) → void} in #t114; + let final self::Class2? #t116 = n2 in #t116 == null ?{self::Class2?} null : let final self::Class2? #t117 = nullable2 in #t116{self::Class2}.{self::Class2::[]=}(#t117, #t116{self::Class2}.{self::Class2::[]}(#t117){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class2? #t118 = n2 in #t118 == null ?{self::Class2?} null : let final self::Class2? #t119 = nullable2 in let final self::Class2 #t120 = #t118{self::Class2}.{self::Class2::[]}(#t119){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t121 = #t118{self::Class2}.{self::Class2::[]=}(#t119, #t120){(self::Class2?, self::Class2?) → void} in #t120; + let final self::Class2? #t122 = n2 in #t122 == null ?{self::Class2?} null : let final self::Class2? #t123 = nullable2 in #t122{self::Class2}.{self::Class2::[]=}(#t123, #t122{self::Class2}.{self::Class2::[]}(#t123){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class2? #t124 = n2 in #t124 == null ?{self::Class2?} null : let final self::Class2? #t125 = nullable2 in let final self::Class2 #t126 = #t124{self::Class2}.{self::Class2::[]}(#t125){(self::Class2?) → self::Class2} in let final void #t127 = #t124{self::Class2}.{self::Class2::[]=}(#t125, #t126.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t126; + let final self::Class2? #t128 = n2 in #t128 == null ?{self::Class2?} null : let final self::Class2? #t129 = nullable2 in let final self::Class2 #t130 = #t128{self::Class2}.{self::Class2::[]}(#t129){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t131 = #t128{self::Class2}.{self::Class2::[]=}(#t129, #t130){(self::Class2?, self::Class2?) → void} in #t130; + nullable2 = let final self::Class2? #t132 = n2 in #t132 == null ?{self::Class2?} null : let final self::Class2? #t133 = nullable2 in let final self::Class2 #t134 = #t132{self::Class2}.{self::Class2::[]}(#t133){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t135 = #t132{self::Class2}.{self::Class2::[]=}(#t133, #t134){(self::Class2?, self::Class2?) → void} in #t134; + let final self::Class1? #t136 = n1 in #t136 == null ?{self::Class2?} null : let final self::Class2 #t137 = #t136{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t138 = nullable2 in #t137.{self::Class2::[]=}(#t138, #t137.{self::Class2::[]}(#t138){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t139 = n1 in #t139 == null ?{self::Class2?} null : let final self::Class2 #t140 = #t139{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t141 = nullable2 in let final self::Class2 #t142 = #t140.{self::Class2::[]}(#t141){(self::Class2?) → self::Class2} in let final void #t143 = #t140.{self::Class2::[]=}(#t141, #t142.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t142; + let final self::Class1? #t144 = n1 in #t144 == null ?{self::Class2?} null : let final self::Class2 #t145 = #t144{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t146 = nullable2 in let final self::Class2 #t147 = #t145.{self::Class2::[]}(#t146){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t148 = #t145.{self::Class2::[]=}(#t146, #t147){(self::Class2?, self::Class2?) → void} in #t147; + nullable2 = let final self::Class1? #t149 = n1 in #t149 == null ?{self::Class2?} null : let final self::Class2 #t150 = #t149{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t151 = nullable2 in let final self::Class2 #t152 = #t150.{self::Class2::[]}(#t151){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t153 = #t150.{self::Class2::[]=}(#t151, #t152){(self::Class2?, self::Class2?) → void} in #t152; + let final self::Class1? #t154 = n1 in #t154 == null ?{self::Class2?} null : #t154{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}; + let final self::Class1? #t155 = n1 in #t155 == null ?{self::Class2?} null : #t155{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]=}(nullable2, new self::Class2::•()){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class2?} null : let final self::Class2 #t157 = #t156{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t158 = nullable2 in let final self::Class2 #t159 = new self::Class2::•() in let final void #t160 = #t157.{self::Class2::[]=}(#t158, #t159){(self::Class2?, self::Class2?) → void} in #t159; + let final self::Class1? #t161 = n1 in #t161 == null ?{self::Class2?} null : let final self::Class2? #t162 = #t161{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in #t162 == null ?{self::Class2?} null : #t162{self::Class2}.{self::Class2::nonNullable2Method}(){() → self::Class2}; + let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class2?} null : let final self::Class2 #t164 = #t163{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t165 = nullable2 in #t164.{self::Class2::[]=}(#t165, #t164.{self::Class2::[]}(#t165){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class2?} null : let final self::Class2 #t167 = #t166{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t168 = nullable2 in let final self::Class2 #t169 = #t167.{self::Class2::[]}(#t168){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t170 = #t167.{self::Class2::[]=}(#t168, #t169){(self::Class2?, self::Class2?) → void} in #t169; + let final self::Class1? #t171 = n1 in #t171 == null ?{self::Class2?} null : let final self::Class2 #t172 = #t171{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t173 = nullable2 in #t172.{self::Class2::[]=}(#t173, #t172.{self::Class2::[]}(#t173){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class2?} null : let final self::Class2 #t175 = #t174{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t176 = nullable2 in let final self::Class2 #t177 = #t175.{self::Class2::[]}(#t176){(self::Class2?) → self::Class2} in let final void #t178 = #t175.{self::Class2::[]=}(#t176, #t177.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t177; + let final self::Class1? #t179 = n1 in #t179 == null ?{self::Class2?} null : let final self::Class2 #t180 = #t179{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t181 = nullable2 in let final self::Class2 #t182 = #t180.{self::Class2::[]}(#t181){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t183 = #t180.{self::Class2::[]=}(#t181, #t182){(self::Class2?, self::Class2?) → void} in #t182; + nullable2 = let final self::Class1? #t184 = n1 in #t184 == null ?{self::Class2?} null : let final self::Class2 #t185 = #t184{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t186 = nullable2 in let final self::Class2 #t187 = #t185.{self::Class2::[]}(#t186){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t188 = #t185.{self::Class2::[]=}(#t186, #t187){(self::Class2?, self::Class2?) → void} in #t187; + let final self::Class1? #t189 = n1 in #t189 == null ?{self::Class1?} null : let final self::Class1? #t190 = #t189{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t190 == null ?{self::Class1?} null : #t190{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; + let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = #t191{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t192 == null ?{self::Class1?} null : #t192{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; + nullable1 = let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = #t193{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t194 == null ?{self::Class1?} null : let final self::Class1? #t195 = nullable1 in let final self::Class1 #t196 = new self::Class1::•() in let final void #t197 = #t194{self::Class1}.{self::Class1::[]=}(#t195, #t196){(self::Class1?, self::Class1?) → void} in #t196; + let final self::Class1? #t198 = n1 in #t198 == null ?{self::Class1?} null : let final self::Class1? #t199 = #t198{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t199 == null ?{self::Class1?} null : let final self::Class1? #t200 = #t199{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t200 == null ?{self::Class1?} null : #t200{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t201 = n1 in #t201 == null ?{self::Class1?} null : let final self::Class1? #t202 = #t201{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t202 == null ?{self::Class1?} null : let final self::Class1? #t203 = #t202{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t203 == null ?{self::Class1?} null : #t203{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t204 = n1 in #t204 == null ?{self::Class1?} null : let final self::Class1? #t205 = #t204{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t205 == null ?{self::Class1?} null : let final self::Class1? #t206 = nullable1 in #t205{self::Class1}.{self::Class1::[]}(#t206){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t205{self::Class1}.{self::Class1::[]=}(#t206, nullable1){(self::Class1?, self::Class1?) → void} : null; + nullable1 = let final self::Class1? #t207 = n1 in #t207 == null ?{self::Class1?} null : let final self::Class1? #t208 = #t207{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t208 == null ?{self::Class1?} null : let final self::Class1? #t209 = nullable1 in let final self::Class1? #t210 = #t208{self::Class1}.{self::Class1::[]}(#t209){(self::Class1?) → self::Class1?} in #t210 == null ?{self::Class1?} let final self::Class1? #t211 = nullable1 in let final void #t212 = #t208{self::Class1}.{self::Class1::[]=}(#t209, #t211){(self::Class1?, self::Class1?) → void} in #t211 : #t210{self::Class1}; + let final self::Class3? #t213 = n3 in #t213 == null ?{self::Class2?} null : let final self::Class2? #t214 = #t213{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t214 == null ?{self::Class2?} null : let final self::Class2? #t215 = nullable2 in #t214{self::Class2}.{self::Class2::[]=}(#t215, #t214{self::Class2}.{self::Class2::[]}(#t215){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class3? #t216 = n3 in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = #t216{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t217 == null ?{self::Class2?} null : let final self::Class2? #t218 = nullable2 in let final self::Class2 #t219 = #t217{self::Class2}.{self::Class2::[]}(#t218){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t220 = #t217{self::Class2}.{self::Class2::[]=}(#t218, #t219){(self::Class2?, self::Class2?) → void} in #t219; + let final self::Class3? #t221 = n3 in #t221 == null ?{self::Class2?} null : let final self::Class2? #t222 = #t221{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t222 == null ?{self::Class2?} null : let final self::Class2? #t223 = nullable2 in #t222{self::Class2}.{self::Class2::[]=}(#t223, #t222{self::Class2}.{self::Class2::[]}(#t223){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class3? #t224 = n3 in #t224 == null ?{self::Class2?} null : let final self::Class2? #t225 = #t224{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t225 == null ?{self::Class2?} null : let final self::Class2? #t226 = nullable2 in let final self::Class2 #t227 = #t225{self::Class2}.{self::Class2::[]}(#t226){(self::Class2?) → self::Class2} in let final void #t228 = #t225{self::Class2}.{self::Class2::[]=}(#t226, #t227.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t227; + let final self::Class3? #t229 = n3 in #t229 == null ?{self::Class2?} null : let final self::Class2? #t230 = #t229{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t230 == null ?{self::Class2?} null : let final self::Class2? #t231 = nullable2 in let final self::Class2 #t232 = #t230{self::Class2}.{self::Class2::[]}(#t231){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t233 = #t230{self::Class2}.{self::Class2::[]=}(#t231, #t232){(self::Class2?, self::Class2?) → void} in #t232; + nullable2 = let final self::Class3? #t234 = n3 in #t234 == null ?{self::Class2?} null : let final self::Class2? #t235 = #t234{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t235 == null ?{self::Class2?} null : let final self::Class2? #t236 = nullable2 in let final self::Class2 #t237 = #t235{self::Class2}.{self::Class2::[]}(#t236){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t238 = #t235{self::Class2}.{self::Class2::[]=}(#t236, #t237){(self::Class2?, self::Class2?) → void} in #t237; } static method operatorAccess(self::Class1? n1, self::Class2? n2) → void { self::Class2? nullable2 = n2; - self::throws(() → void => let final Never #t241 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:220:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:220:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. throws(() => n1?.nonNullable1 + 0); - ^" in (let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class1?} null : #t242{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::+}(0){(core::int) → self::Class1?}); - self::throws(() → void => let final Never #t243 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:221:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. + ^" in (let final self::Class1? #t239 = n1 in #t239 == null ?{self::Class1?} null : #t239{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::+}(0){(core::int) → self::Class1?}); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:221:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. throws(() => -n1?.nonNullable1); - ^" in (let final self::Class1? #t244 = n1 in #t244 == null ?{self::Class1?} null : #t244{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::unary-}(){() → self::Class1?}); - let final self::Class2? #t245 = n2 in #t245 == null ?{self::Class2?} null : #t245.{self::Class2::nonNullable2} = #t245.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; - nullable2 = let final self::Class2? #t246 = n2 in #t246 == null ?{self::Class2?} null : let final self::Class2 #t247 = #t246.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t248 = #t246.{self::Class2::nonNullable2} = #t247 in #t247; - let final self::Class2? #t249 = n2 in #t249 == null ?{self::Class2?} null : let final self::Class2 #t250 = #t249{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t250.{self::Class2::nonNullable2} = #t250.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; - nullable2 = let final self::Class2? #t251 = n2 in #t251 == null ?{self::Class2?} null : let final self::Class2 #t252 = #t251{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t252.{self::Class2::nonNullable2} = #t252.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; - let final self::Class2? #t253 = n2 in #t253 == null ?{self::Class2?} null : #t253.{self::Class2::nonNullable2} = #t253.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}; - nullable2 = let final self::Class2? #t254 = n2 in #t254 == null ?{self::Class2?} null : let final self::Class2 #t255 = #t254.{self::Class2::nonNullable2}{self::Class2} in let final void #t256 = #t254.{self::Class2::nonNullable2} = #t255.{self::Class2::+}(1){(core::int) → self::Class2} in #t255; - let final self::Class2? #t257 = n2 in #t257 == null ?{self::Class2?} null : let final self::Class2 #t258 = #t257.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t259 = #t257.{self::Class2::nonNullable2} = #t258 in #t258; - nullable2 = let final self::Class2? #t260 = n2 in #t260 == null ?{self::Class2?} null : let final self::Class2 #t261 = #t260.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t262 = #t260.{self::Class2::nonNullable2} = #t261 in #t261; + ^" in (let final self::Class1? #t240 = n1 in #t240 == null ?{self::Class1?} null : #t240{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::unary-}(){() → self::Class1?}); + let final self::Class2? #t241 = n2 in #t241 == null ?{self::Class2?} null : #t241.{self::Class2::nonNullable2} = #t241.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; + nullable2 = let final self::Class2? #t242 = n2 in #t242 == null ?{self::Class2?} null : let final self::Class2 #t243 = #t242.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t244 = #t242.{self::Class2::nonNullable2} = #t243 in #t243; + let final self::Class2? #t245 = n2 in #t245 == null ?{self::Class2?} null : let final self::Class2 #t246 = #t245{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t246.{self::Class2::nonNullable2} = #t246.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; + nullable2 = let final self::Class2? #t247 = n2 in #t247 == null ?{self::Class2?} null : let final self::Class2 #t248 = #t247{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t248.{self::Class2::nonNullable2} = #t248.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; + let final self::Class2? #t249 = n2 in #t249 == null ?{self::Class2?} null : #t249.{self::Class2::nonNullable2} = #t249.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}; + nullable2 = let final self::Class2? #t250 = n2 in #t250 == null ?{self::Class2?} null : let final self::Class2 #t251 = #t250.{self::Class2::nonNullable2}{self::Class2} in let final void #t252 = #t250.{self::Class2::nonNullable2} = #t251.{self::Class2::+}(1){(core::int) → self::Class2} in #t251; + let final self::Class2? #t253 = n2 in #t253 == null ?{self::Class2?} null : let final self::Class2 #t254 = #t253.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t255 = #t253.{self::Class2::nonNullable2} = #t254 in #t254; + nullable2 = let final self::Class2? #t256 = n2 in #t256 == null ?{self::Class2?} null : let final self::Class2 #t257 = #t256.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t258 = #t256.{self::Class2::nonNullable2} = #t257 in #t257; } static method ifNull(self::Class1? n1) → void { self::Class1? nullable1 = n1; - let final self::Class1? #t263 = n1 in #t263 == null ?{self::Class1?} null : #t263.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t263.{self::Class1::nullable1} = n1{self::Class1} : null; - n1 = let final self::Class1? #t264 = n1 in #t264 == null ?{self::Class1?} null : let final self::Class1? #t265 = #t264.{self::Class1::nullable1}{self::Class1?} in #t265 == null ?{self::Class1} #t264.{self::Class1::nullable1} = n1{self::Class1} : #t265{self::Class1}; - let final self::Class1? #t266 = n1 in #t266 == null ?{self::Class1?} null : let final self::Class1 #t267 = #t266{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in #t267.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t267.{self::Class1::nullable1} = n1{self::Class1} : null; - n1 = let final self::Class1? #t268 = n1 in #t268 == null ?{self::Class1?} null : let final self::Class1 #t269 = #t268{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t270 = #t269.{self::Class1::nullable1}{self::Class1?} in #t270 == null ?{self::Class1} #t269.{self::Class1::nullable1} = n1{self::Class1} : #t270{self::Class1}; - let final self::Class1? #t271 = n1 in #t271 == null ?{self::Class1?} null : let final self::Class1 #t272 = #t271{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t273 = n1{self::Class1} in #t272.{self::Class1::[]}(#t273){(self::Class1?) → self::Class1?} == null ?{self::Class1} #t272.{self::Class1::[]=}(#t273, n1{self::Class1}){(self::Class1?, self::Class1?) → void} : null; - n1 = let final self::Class1? #t274 = n1 in #t274 == null ?{self::Class1?} null : let final self::Class1 #t275 = #t274{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t276 = n1{self::Class1} in let final self::Class1? #t277 = #t275.{self::Class1::[]}(#t276){(self::Class1?) → self::Class1?} in #t277 == null ?{self::Class1} let final self::Class1 #t278 = n1{self::Class1} in let final void #t279 = #t275.{self::Class1::[]=}(#t276, #t278){(self::Class1?, self::Class1?) → void} in #t278 : #t277{self::Class1}; + let final self::Class1? #t259 = n1 in #t259 == null ?{self::Class1?} null : #t259.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t259.{self::Class1::nullable1} = n1{self::Class1} : null; + n1 = let final self::Class1? #t260 = n1 in #t260 == null ?{self::Class1?} null : let final self::Class1? #t261 = #t260.{self::Class1::nullable1}{self::Class1?} in #t261 == null ?{self::Class1} #t260.{self::Class1::nullable1} = n1{self::Class1} : #t261{self::Class1}; + let final self::Class1? #t262 = n1 in #t262 == null ?{self::Class1?} null : let final self::Class1 #t263 = #t262{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in #t263.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t263.{self::Class1::nullable1} = n1{self::Class1} : null; + n1 = let final self::Class1? #t264 = n1 in #t264 == null ?{self::Class1?} null : let final self::Class1 #t265 = #t264{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t266 = #t265.{self::Class1::nullable1}{self::Class1?} in #t266 == null ?{self::Class1} #t265.{self::Class1::nullable1} = n1{self::Class1} : #t266{self::Class1}; + let final self::Class1? #t267 = n1 in #t267 == null ?{self::Class1?} null : let final self::Class1 #t268 = #t267{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t269 = n1{self::Class1} in #t268.{self::Class1::[]}(#t269){(self::Class1?) → self::Class1?} == null ?{self::Class1} #t268.{self::Class1::[]=}(#t269, n1{self::Class1}){(self::Class1?, self::Class1?) → void} : null; + n1 = let final self::Class1? #t270 = n1 in #t270 == null ?{self::Class1?} null : let final self::Class1 #t271 = #t270{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t272 = n1{self::Class1} in let final self::Class1? #t273 = #t271.{self::Class1::[]}(#t272){(self::Class1?) → self::Class1?} in #t273 == null ?{self::Class1} let final self::Class1 #t274 = n1{self::Class1} in let final void #t275 = #t271.{self::Class1::[]=}(#t272, #t274){(self::Class1?, self::Class1?) → void} in #t274 : #t273{self::Class1}; } static method throws(() → void f) → void { try { diff --git a/pkg/front_end/testcases/nnbd/null_shorting.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/null_shorting.dart.weak.transformed.expect index ed3bb8dcd2c..6be85bff034 100644 --- a/pkg/front_end/testcases/nnbd/null_shorting.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/null_shorting.dart.weak.transformed.expect @@ -110,153 +110,153 @@ static method propertyAccess(self::Class1? n1) → void { let final self::Class1? #t11 = n1 in #t11 == null ?{self::Class1?} null : let final self::Class1? #t12 = #t11{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t12 == null ?{self::Class1?} null : #t12{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); let final self::Class1? #t13 = n1 in #t13 == null ?{self::Class1?} null : let final self::Class1? #t14 = #t13{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t14 == null ?{self::Class1?} null : #t14{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); let final self::Class1? #t15 = let final self::Class1? #t16 = n1 in #t16 == null ?{self::Class1?} null : #t16{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t15 == null ?{self::Class1?} null : #t15{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - self::throws(() → void => let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:87:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:87:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. Try accessing using ?. instead. throws(() => (n1?.nullable1 = new Class1()).nullable1); - ^^^^^^^^^" in (let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : #t18{self::Class1}.{self::Class1::nullable1} = new self::Class1::•()).{self::Class1::nullable1}{}.{self::Class1?}); - self::throws(() → void => let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:88:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + ^^^^^^^^^" in (let final self::Class1? #t17 = n1 in #t17 == null ?{self::Class1?} null : #t17{self::Class1}.{self::Class1::nullable1} = new self::Class1::•()).{self::Class1::nullable1}{}.{self::Class1?}); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:88:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. Try accessing using ?. instead. throws(() => (n1?.nonNullable1Method()).nullable1); - ^^^^^^^^^" in (let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : #t20{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}).{self::Class1::nullable1}{}.{self::Class1?}); - nullable1 = let final self::Class1? #t21 = n1 in #t21 == null ?{self::Class1?} null : #t21{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : let final self::Class1? #t23 = #t22{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t23 == null ?{self::Class1?} null : #t23{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : let final self::Class1? #t25 = #t24{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t25 == null ?{self::Class1?} null : #t25{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : let final self::Class1? #t27 = #t26{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t27 == null ?{self::Class1?} null : #t27{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : #t28{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t29 = n1 in #t29 == null ?{self::Class1?} null : #t29{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : #t30{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t31 = n1 in #t31 == null ?{self::Class1?} null : #t31{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : #t32{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t33 = n1 in #t33 == null ?{self::Class1?} null : #t33{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : #t34{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t35 = n1 in #t35 == null ?{self::Class1?} null : #t35{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : #t36{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : #t37{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : #t38{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t39 = n1 in #t39 == null ?{self::Class1?} null : #t39{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : let final self::Class1? #t41 = #t40{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t41 == null ?{self::Class1?} null : #t41{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : #t42{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : #t43{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t44 = n1 in #t44 == null ?{self::Class1?} null : #t44{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : #t45{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t46 = n1 in #t46 == null ?{self::Class1?} null : #t46{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t47 = n1 in #t47 == null ?{self::Class1?} null : #t47{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : #t48{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : #t49{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : #t50{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : #t51{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : #t52{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : #t53{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : #t54{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : #t55{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : #t56{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : #t57{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : #t58{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : #t59{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : #t60{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t61 = n1 in #t61 == null ?{self::Class1?} null : #t61{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : #t62{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : #t63{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : #t64{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : #t65{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : #t66{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t67 = n1 in #t67 == null ?{self::Class1?} null : #t67{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : #t68{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : #t69{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t70 = n1 in #t70 == null ?{self::Class1?} null : #t70{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : #t71{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t72 = n1 in #t72 == null ?{self::Class1?} null : #t72{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t73 = n1 in #t73 == null ?{self::Class1?} null : #t73{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - nullable1 = let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : #t74{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : #t75{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - nullable1 = let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : #t76{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : #t77{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : #t78{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : #t79{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; - let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : #t80{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); - let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : #t81{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : let final self::Class1? #t83 = #t82{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1} in #t83 == null ?{self::Class1?} null : #t83{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + ^^^^^^^^^" in (let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : #t18{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}).{self::Class1::nullable1}{}.{self::Class1?}); + nullable1 = let final self::Class1? #t19 = n1 in #t19 == null ?{self::Class1?} null : #t19{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : let final self::Class1? #t21 = #t20{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t21 == null ?{self::Class1?} null : #t21{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : let final self::Class1? #t23 = #t22{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t23 == null ?{self::Class1?} null : #t23{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : let final self::Class1? #t25 = #t24{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t25 == null ?{self::Class1?} null : #t25{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : #t26{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t27 = n1 in #t27 == null ?{self::Class1?} null : #t27{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : #t28{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t29 = n1 in #t29 == null ?{self::Class1?} null : #t29{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : #t30{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t31 = n1 in #t31 == null ?{self::Class1?} null : #t31{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : #t32{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t33 = n1 in #t33 == null ?{self::Class1?} null : #t33{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : #t34{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t35 = n1 in #t35 == null ?{self::Class1?} null : #t35{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : #t36{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : #t37{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : let final self::Class1? #t39 = #t38{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?} in #t39 == null ?{self::Class1?} null : #t39{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : #t40{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t41 = n1 in #t41 == null ?{self::Class1?} null : #t41{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : #t42{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : #t43{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t44 = n1 in #t44 == null ?{self::Class1?} null : #t44{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : #t45{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t46 = n1 in #t46 == null ?{self::Class1?} null : #t46{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t47 = n1 in #t47 == null ?{self::Class1?} null : #t47{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : #t48{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : #t49{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : #t50{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : #t51{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : #t52{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : #t53{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : #t54{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : #t55{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : #t56{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : #t57{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : #t58{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : #t59{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : #t60{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t61 = n1 in #t61 == null ?{self::Class1?} null : #t61{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : #t62{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : #t63{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : #t64{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : #t65{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : #t66{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t67 = n1 in #t67 == null ?{self::Class1?} null : #t67{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : #t68{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : #t69{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t70 = n1 in #t70 == null ?{self::Class1?} null : #t70{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : #t71{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + nullable1 = let final self::Class1? #t72 = n1 in #t72 == null ?{self::Class1?} null : #t72{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t73 = n1 in #t73 == null ?{self::Class1?} null : #t73{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + nullable1 = let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : #t74{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : #t75{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : #t76{self::Class1}.{self::Class1::nullable1} = new self::Class1::•().{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : #t77{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1}{self::Class1?}; + let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : #t78{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nullable1} = new self::Class1::•(); + let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : #t79{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : let final self::Class1? #t81 = #t80{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1} in #t81 == null ?{self::Class1?} null : #t81{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; } static method indexAccess(self::Class1? n1, self::Class2? n2, self::Class3? n3) → void { self::Class1? nullable1 = n1; self::Class2? nullable2 = n2; self::Class3? nullable3 = n3; - let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : #t84{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; - let final self::Class1? #t85 = n1 in #t85 == null ?{self::Class1?} null : #t85{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; - let final self::Class1? #t86 = n1 in #t86 == null ?{self::Class1?} null : let final self::Class1? #t87 = #t86{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t87 == null ?{self::Class1?} null : #t87{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : #t88{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; - let final self::Class1? #t89 = n1 in #t89 == null ?{self::Class1?} null : #t89{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; - nullable1 = let final self::Class1? #t90 = n1 in #t90 == null ?{self::Class1?} null : let final self::Class1 #t91 = #t90{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t92 = nullable1 in let final self::Class1 #t93 = new self::Class1::•() in let final void #t94 = #t91.{self::Class1::[]=}(#t92, #t93){(self::Class1?, self::Class1?) → void} in #t93; - let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class1?} null : let final self::Class1? #t96 = #t95{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t96 == null ?{self::Class1?} null : #t96{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t97 = n1 in #t97 == null ?{self::Class2?} null : let final self::Class2 #t98 = #t97{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t99 = nullable2 in #t98.{self::Class2::[]=}(#t99, #t98.{self::Class2::[]}(#t99){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t100 = n1 in #t100 == null ?{self::Class2?} null : let final self::Class2 #t101 = #t100{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t102 = nullable2 in let final self::Class2 #t103 = #t101.{self::Class2::[]}(#t102){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t104 = #t101.{self::Class2::[]=}(#t102, #t103){(self::Class2?, self::Class2?) → void} in #t103; - let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : let final self::Class1? #t106 = nullable1 in #t105{self::Class1}.{self::Class1::[]}(#t106){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t105{self::Class1}.{self::Class1::[]=}(#t106, nullable1){(self::Class1?, self::Class1?) → void} : null; - nullable1 = let final self::Class1? #t107 = n1 in #t107 == null ?{self::Class1?} null : let final self::Class1? #t108 = nullable1 in let final self::Class1? #t109 = #t107{self::Class1}.{self::Class1::[]}(#t108){(self::Class1?) → self::Class1?} in #t109 == null ?{self::Class1?} let final self::Class1? #t110 = nullable1 in let final void #t111 = #t107{self::Class1}.{self::Class1::[]=}(#t108, #t110){(self::Class1?, self::Class1?) → void} in #t110 : #t109{self::Class1}; - let final self::Class2? #t112 = n2 in #t112 == null ?{self::Class2?} null : let final self::Class2? #t113 = nullable2 in #t112{self::Class2}.{self::Class2::[]=}(#t113, #t112{self::Class2}.{self::Class2::[]}(#t113){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class2? #t114 = n2 in #t114 == null ?{self::Class2?} null : let final self::Class2? #t115 = nullable2 in let final self::Class2 #t116 = #t114{self::Class2}.{self::Class2::[]}(#t115){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t117 = #t114{self::Class2}.{self::Class2::[]=}(#t115, #t116){(self::Class2?, self::Class2?) → void} in #t116; - let final self::Class2? #t118 = n2 in #t118 == null ?{self::Class2?} null : let final self::Class2? #t119 = nullable2 in #t118{self::Class2}.{self::Class2::[]=}(#t119, #t118{self::Class2}.{self::Class2::[]}(#t119){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class2? #t120 = n2 in #t120 == null ?{self::Class2?} null : let final self::Class2? #t121 = nullable2 in let final self::Class2 #t122 = #t120{self::Class2}.{self::Class2::[]}(#t121){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t123 = #t120{self::Class2}.{self::Class2::[]=}(#t121, #t122){(self::Class2?, self::Class2?) → void} in #t122; - let final self::Class2? #t124 = n2 in #t124 == null ?{self::Class2?} null : let final self::Class2? #t125 = nullable2 in #t124{self::Class2}.{self::Class2::[]=}(#t125, #t124{self::Class2}.{self::Class2::[]}(#t125){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class2? #t126 = n2 in #t126 == null ?{self::Class2?} null : let final self::Class2? #t127 = nullable2 in let final self::Class2 #t128 = #t126{self::Class2}.{self::Class2::[]}(#t127){(self::Class2?) → self::Class2} in let final void #t129 = #t126{self::Class2}.{self::Class2::[]=}(#t127, #t128.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t128; - let final self::Class2? #t130 = n2 in #t130 == null ?{self::Class2?} null : let final self::Class2? #t131 = nullable2 in let final self::Class2 #t132 = #t130{self::Class2}.{self::Class2::[]}(#t131){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t133 = #t130{self::Class2}.{self::Class2::[]=}(#t131, #t132){(self::Class2?, self::Class2?) → void} in #t132; - nullable2 = let final self::Class2? #t134 = n2 in #t134 == null ?{self::Class2?} null : let final self::Class2? #t135 = nullable2 in let final self::Class2 #t136 = #t134{self::Class2}.{self::Class2::[]}(#t135){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t137 = #t134{self::Class2}.{self::Class2::[]=}(#t135, #t136){(self::Class2?, self::Class2?) → void} in #t136; - let final self::Class1? #t138 = n1 in #t138 == null ?{self::Class2?} null : let final self::Class2 #t139 = #t138{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t140 = nullable2 in #t139.{self::Class2::[]=}(#t140, #t139.{self::Class2::[]}(#t140){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t141 = n1 in #t141 == null ?{self::Class2?} null : let final self::Class2 #t142 = #t141{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t143 = nullable2 in let final self::Class2 #t144 = #t142.{self::Class2::[]}(#t143){(self::Class2?) → self::Class2} in let final void #t145 = #t142.{self::Class2::[]=}(#t143, #t144.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t144; - let final self::Class1? #t146 = n1 in #t146 == null ?{self::Class2?} null : let final self::Class2 #t147 = #t146{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t148 = nullable2 in let final self::Class2 #t149 = #t147.{self::Class2::[]}(#t148){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t150 = #t147.{self::Class2::[]=}(#t148, #t149){(self::Class2?, self::Class2?) → void} in #t149; - nullable2 = let final self::Class1? #t151 = n1 in #t151 == null ?{self::Class2?} null : let final self::Class2 #t152 = #t151{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t153 = nullable2 in let final self::Class2 #t154 = #t152.{self::Class2::[]}(#t153){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t155 = #t152.{self::Class2::[]=}(#t153, #t154){(self::Class2?, self::Class2?) → void} in #t154; - let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class2?} null : #t156{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}; - let final self::Class1? #t157 = n1 in #t157 == null ?{self::Class2?} null : #t157{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]=}(nullable2, new self::Class2::•()){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t158 = n1 in #t158 == null ?{self::Class2?} null : let final self::Class2 #t159 = #t158{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t160 = nullable2 in let final self::Class2 #t161 = new self::Class2::•() in let final void #t162 = #t159.{self::Class2::[]=}(#t160, #t161){(self::Class2?, self::Class2?) → void} in #t161; - let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class2?} null : let final self::Class2? #t164 = #t163{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in #t164 == null ?{self::Class2?} null : #t164{self::Class2}.{self::Class2::nonNullable2Method}(){() → self::Class2}; - let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class2?} null : let final self::Class2 #t166 = #t165{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t167 = nullable2 in #t166.{self::Class2::[]=}(#t167, #t166.{self::Class2::[]}(#t167){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class2?} null : let final self::Class2 #t169 = #t168{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t170 = nullable2 in let final self::Class2 #t171 = #t169.{self::Class2::[]}(#t170){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t172 = #t169.{self::Class2::[]=}(#t170, #t171){(self::Class2?, self::Class2?) → void} in #t171; - let final self::Class1? #t173 = n1 in #t173 == null ?{self::Class2?} null : let final self::Class2 #t174 = #t173{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t175 = nullable2 in #t174.{self::Class2::[]=}(#t175, #t174.{self::Class2::[]}(#t175){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class1? #t176 = n1 in #t176 == null ?{self::Class2?} null : let final self::Class2 #t177 = #t176{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t178 = nullable2 in let final self::Class2 #t179 = #t177.{self::Class2::[]}(#t178){(self::Class2?) → self::Class2} in let final void #t180 = #t177.{self::Class2::[]=}(#t178, #t179.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t179; - let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class2?} null : let final self::Class2 #t182 = #t181{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t183 = nullable2 in let final self::Class2 #t184 = #t182.{self::Class2::[]}(#t183){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t185 = #t182.{self::Class2::[]=}(#t183, #t184){(self::Class2?, self::Class2?) → void} in #t184; - nullable2 = let final self::Class1? #t186 = n1 in #t186 == null ?{self::Class2?} null : let final self::Class2 #t187 = #t186{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t188 = nullable2 in let final self::Class2 #t189 = #t187.{self::Class2::[]}(#t188){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t190 = #t187.{self::Class2::[]=}(#t188, #t189){(self::Class2?, self::Class2?) → void} in #t189; - let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = #t191{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t192 == null ?{self::Class1?} null : #t192{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; - let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = #t193{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t194 == null ?{self::Class1?} null : #t194{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; - nullable1 = let final self::Class1? #t195 = n1 in #t195 == null ?{self::Class1?} null : let final self::Class1? #t196 = #t195{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t196 == null ?{self::Class1?} null : let final self::Class1? #t197 = nullable1 in let final self::Class1 #t198 = new self::Class1::•() in let final void #t199 = #t196{self::Class1}.{self::Class1::[]=}(#t197, #t198){(self::Class1?, self::Class1?) → void} in #t198; - let final self::Class1? #t200 = n1 in #t200 == null ?{self::Class1?} null : let final self::Class1? #t201 = #t200{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t201 == null ?{self::Class1?} null : let final self::Class1? #t202 = #t201{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t202 == null ?{self::Class1?} null : #t202{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - nullable1 = let final self::Class1? #t203 = n1 in #t203 == null ?{self::Class1?} null : let final self::Class1? #t204 = #t203{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t204 == null ?{self::Class1?} null : let final self::Class1? #t205 = #t204{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t205 == null ?{self::Class1?} null : #t205{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; - let final self::Class1? #t206 = n1 in #t206 == null ?{self::Class1?} null : let final self::Class1? #t207 = #t206{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t207 == null ?{self::Class1?} null : let final self::Class1? #t208 = nullable1 in #t207{self::Class1}.{self::Class1::[]}(#t208){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t207{self::Class1}.{self::Class1::[]=}(#t208, nullable1){(self::Class1?, self::Class1?) → void} : null; - nullable1 = let final self::Class1? #t209 = n1 in #t209 == null ?{self::Class1?} null : let final self::Class1? #t210 = #t209{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t210 == null ?{self::Class1?} null : let final self::Class1? #t211 = nullable1 in let final self::Class1? #t212 = #t210{self::Class1}.{self::Class1::[]}(#t211){(self::Class1?) → self::Class1?} in #t212 == null ?{self::Class1?} let final self::Class1? #t213 = nullable1 in let final void #t214 = #t210{self::Class1}.{self::Class1::[]=}(#t211, #t213){(self::Class1?, self::Class1?) → void} in #t213 : #t212{self::Class1}; - let final self::Class3? #t215 = n3 in #t215 == null ?{self::Class2?} null : let final self::Class2? #t216 = #t215{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = nullable2 in #t216{self::Class2}.{self::Class2::[]=}(#t217, #t216{self::Class2}.{self::Class2::[]}(#t217){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class3? #t218 = n3 in #t218 == null ?{self::Class2?} null : let final self::Class2? #t219 = #t218{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t219 == null ?{self::Class2?} null : let final self::Class2? #t220 = nullable2 in let final self::Class2 #t221 = #t219{self::Class2}.{self::Class2::[]}(#t220){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t222 = #t219{self::Class2}.{self::Class2::[]=}(#t220, #t221){(self::Class2?, self::Class2?) → void} in #t221; - let final self::Class3? #t223 = n3 in #t223 == null ?{self::Class2?} null : let final self::Class2? #t224 = #t223{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t224 == null ?{self::Class2?} null : let final self::Class2? #t225 = nullable2 in #t224{self::Class2}.{self::Class2::[]=}(#t225, #t224{self::Class2}.{self::Class2::[]}(#t225){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; - nullable2 = let final self::Class3? #t226 = n3 in #t226 == null ?{self::Class2?} null : let final self::Class2? #t227 = #t226{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t227 == null ?{self::Class2?} null : let final self::Class2? #t228 = nullable2 in let final self::Class2 #t229 = #t227{self::Class2}.{self::Class2::[]}(#t228){(self::Class2?) → self::Class2} in let final void #t230 = #t227{self::Class2}.{self::Class2::[]=}(#t228, #t229.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t229; - let final self::Class3? #t231 = n3 in #t231 == null ?{self::Class2?} null : let final self::Class2? #t232 = #t231{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t232 == null ?{self::Class2?} null : let final self::Class2? #t233 = nullable2 in let final self::Class2 #t234 = #t232{self::Class2}.{self::Class2::[]}(#t233){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t235 = #t232{self::Class2}.{self::Class2::[]=}(#t233, #t234){(self::Class2?, self::Class2?) → void} in #t234; - nullable2 = let final self::Class3? #t236 = n3 in #t236 == null ?{self::Class2?} null : let final self::Class2? #t237 = #t236{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t237 == null ?{self::Class2?} null : let final self::Class2? #t238 = nullable2 in let final self::Class2 #t239 = #t237{self::Class2}.{self::Class2::[]}(#t238){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t240 = #t237{self::Class2}.{self::Class2::[]=}(#t238, #t239){(self::Class2?, self::Class2?) → void} in #t239; + let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : #t82{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; + let final self::Class1? #t83 = n1 in #t83 == null ?{self::Class1?} null : #t83{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; + let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : let final self::Class1? #t85 = #t84{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t85 == null ?{self::Class1?} null : #t85{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t86 = n1 in #t86 == null ?{self::Class1?} null : #t86{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; + let final self::Class1? #t87 = n1 in #t87 == null ?{self::Class1?} null : #t87{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; + nullable1 = let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : let final self::Class1 #t89 = #t88{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t90 = nullable1 in let final self::Class1 #t91 = new self::Class1::•() in let final void #t92 = #t89.{self::Class1::[]=}(#t90, #t91){(self::Class1?, self::Class1?) → void} in #t91; + let final self::Class1? #t93 = n1 in #t93 == null ?{self::Class1?} null : let final self::Class1? #t94 = #t93{self::Class1}.{self::Class1::nonNullable1}{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t94 == null ?{self::Class1?} null : #t94{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class2?} null : let final self::Class2 #t96 = #t95{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t97 = nullable2 in #t96.{self::Class2::[]=}(#t97, #t96.{self::Class2::[]}(#t97){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t98 = n1 in #t98 == null ?{self::Class2?} null : let final self::Class2 #t99 = #t98{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t100 = nullable2 in let final self::Class2 #t101 = #t99.{self::Class2::[]}(#t100){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t102 = #t99.{self::Class2::[]=}(#t100, #t101){(self::Class2?, self::Class2?) → void} in #t101; + let final self::Class1? #t103 = n1 in #t103 == null ?{self::Class1?} null : let final self::Class1? #t104 = nullable1 in #t103{self::Class1}.{self::Class1::[]}(#t104){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t103{self::Class1}.{self::Class1::[]=}(#t104, nullable1){(self::Class1?, self::Class1?) → void} : null; + nullable1 = let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : let final self::Class1? #t106 = nullable1 in let final self::Class1? #t107 = #t105{self::Class1}.{self::Class1::[]}(#t106){(self::Class1?) → self::Class1?} in #t107 == null ?{self::Class1?} let final self::Class1? #t108 = nullable1 in let final void #t109 = #t105{self::Class1}.{self::Class1::[]=}(#t106, #t108){(self::Class1?, self::Class1?) → void} in #t108 : #t107{self::Class1}; + let final self::Class2? #t110 = n2 in #t110 == null ?{self::Class2?} null : let final self::Class2? #t111 = nullable2 in #t110{self::Class2}.{self::Class2::[]=}(#t111, #t110{self::Class2}.{self::Class2::[]}(#t111){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class2? #t112 = n2 in #t112 == null ?{self::Class2?} null : let final self::Class2? #t113 = nullable2 in let final self::Class2 #t114 = #t112{self::Class2}.{self::Class2::[]}(#t113){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t115 = #t112{self::Class2}.{self::Class2::[]=}(#t113, #t114){(self::Class2?, self::Class2?) → void} in #t114; + let final self::Class2? #t116 = n2 in #t116 == null ?{self::Class2?} null : let final self::Class2? #t117 = nullable2 in #t116{self::Class2}.{self::Class2::[]=}(#t117, #t116{self::Class2}.{self::Class2::[]}(#t117){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class2? #t118 = n2 in #t118 == null ?{self::Class2?} null : let final self::Class2? #t119 = nullable2 in let final self::Class2 #t120 = #t118{self::Class2}.{self::Class2::[]}(#t119){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t121 = #t118{self::Class2}.{self::Class2::[]=}(#t119, #t120){(self::Class2?, self::Class2?) → void} in #t120; + let final self::Class2? #t122 = n2 in #t122 == null ?{self::Class2?} null : let final self::Class2? #t123 = nullable2 in #t122{self::Class2}.{self::Class2::[]=}(#t123, #t122{self::Class2}.{self::Class2::[]}(#t123){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class2? #t124 = n2 in #t124 == null ?{self::Class2?} null : let final self::Class2? #t125 = nullable2 in let final self::Class2 #t126 = #t124{self::Class2}.{self::Class2::[]}(#t125){(self::Class2?) → self::Class2} in let final void #t127 = #t124{self::Class2}.{self::Class2::[]=}(#t125, #t126.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t126; + let final self::Class2? #t128 = n2 in #t128 == null ?{self::Class2?} null : let final self::Class2? #t129 = nullable2 in let final self::Class2 #t130 = #t128{self::Class2}.{self::Class2::[]}(#t129){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t131 = #t128{self::Class2}.{self::Class2::[]=}(#t129, #t130){(self::Class2?, self::Class2?) → void} in #t130; + nullable2 = let final self::Class2? #t132 = n2 in #t132 == null ?{self::Class2?} null : let final self::Class2? #t133 = nullable2 in let final self::Class2 #t134 = #t132{self::Class2}.{self::Class2::[]}(#t133){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t135 = #t132{self::Class2}.{self::Class2::[]=}(#t133, #t134){(self::Class2?, self::Class2?) → void} in #t134; + let final self::Class1? #t136 = n1 in #t136 == null ?{self::Class2?} null : let final self::Class2 #t137 = #t136{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t138 = nullable2 in #t137.{self::Class2::[]=}(#t138, #t137.{self::Class2::[]}(#t138){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t139 = n1 in #t139 == null ?{self::Class2?} null : let final self::Class2 #t140 = #t139{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t141 = nullable2 in let final self::Class2 #t142 = #t140.{self::Class2::[]}(#t141){(self::Class2?) → self::Class2} in let final void #t143 = #t140.{self::Class2::[]=}(#t141, #t142.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t142; + let final self::Class1? #t144 = n1 in #t144 == null ?{self::Class2?} null : let final self::Class2 #t145 = #t144{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t146 = nullable2 in let final self::Class2 #t147 = #t145.{self::Class2::[]}(#t146){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t148 = #t145.{self::Class2::[]=}(#t146, #t147){(self::Class2?, self::Class2?) → void} in #t147; + nullable2 = let final self::Class1? #t149 = n1 in #t149 == null ?{self::Class2?} null : let final self::Class2 #t150 = #t149{self::Class1}.{self::Class1::nonNullable2}{self::Class2} in let final self::Class2? #t151 = nullable2 in let final self::Class2 #t152 = #t150.{self::Class2::[]}(#t151){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t153 = #t150.{self::Class2::[]=}(#t151, #t152){(self::Class2?, self::Class2?) → void} in #t152; + let final self::Class1? #t154 = n1 in #t154 == null ?{self::Class2?} null : #t154{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}; + let final self::Class1? #t155 = n1 in #t155 == null ?{self::Class2?} null : #t155{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]=}(nullable2, new self::Class2::•()){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class2?} null : let final self::Class2 #t157 = #t156{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t158 = nullable2 in let final self::Class2 #t159 = new self::Class2::•() in let final void #t160 = #t157.{self::Class2::[]=}(#t158, #t159){(self::Class2?, self::Class2?) → void} in #t159; + let final self::Class1? #t161 = n1 in #t161 == null ?{self::Class2?} null : let final self::Class2? #t162 = #t161{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in #t162 == null ?{self::Class2?} null : #t162{self::Class2}.{self::Class2::nonNullable2Method}(){() → self::Class2}; + let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class2?} null : let final self::Class2 #t164 = #t163{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t165 = nullable2 in #t164.{self::Class2::[]=}(#t165, #t164.{self::Class2::[]}(#t165){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class2?} null : let final self::Class2 #t167 = #t166{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t168 = nullable2 in let final self::Class2 #t169 = #t167.{self::Class2::[]}(#t168){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t170 = #t167.{self::Class2::[]=}(#t168, #t169){(self::Class2?, self::Class2?) → void} in #t169; + let final self::Class1? #t171 = n1 in #t171 == null ?{self::Class2?} null : let final self::Class2 #t172 = #t171{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t173 = nullable2 in #t172.{self::Class2::[]=}(#t173, #t172.{self::Class2::[]}(#t173){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class2?} null : let final self::Class2 #t175 = #t174{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t176 = nullable2 in let final self::Class2 #t177 = #t175.{self::Class2::[]}(#t176){(self::Class2?) → self::Class2} in let final void #t178 = #t175.{self::Class2::[]=}(#t176, #t177.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t177; + let final self::Class1? #t179 = n1 in #t179 == null ?{self::Class2?} null : let final self::Class2 #t180 = #t179{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t181 = nullable2 in let final self::Class2 #t182 = #t180.{self::Class2::[]}(#t181){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t183 = #t180.{self::Class2::[]=}(#t181, #t182){(self::Class2?, self::Class2?) → void} in #t182; + nullable2 = let final self::Class1? #t184 = n1 in #t184 == null ?{self::Class2?} null : let final self::Class2 #t185 = #t184{self::Class1}.{self::Class1::nonNullable2}{self::Class2}.{self::Class2::[]}(nullable2){(self::Class2?) → self::Class2} in let final self::Class2? #t186 = nullable2 in let final self::Class2 #t187 = #t185.{self::Class2::[]}(#t186){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t188 = #t185.{self::Class2::[]=}(#t186, #t187){(self::Class2?, self::Class2?) → void} in #t187; + let final self::Class1? #t189 = n1 in #t189 == null ?{self::Class1?} null : let final self::Class1? #t190 = #t189{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t190 == null ?{self::Class1?} null : #t190{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?}; + let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = #t191{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t192 == null ?{self::Class1?} null : #t192{self::Class1}.{self::Class1::[]=}(nullable1, new self::Class1::•()){(self::Class1?, self::Class1?) → void}; + nullable1 = let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = #t193{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t194 == null ?{self::Class1?} null : let final self::Class1? #t195 = nullable1 in let final self::Class1 #t196 = new self::Class1::•() in let final void #t197 = #t194{self::Class1}.{self::Class1::[]=}(#t195, #t196){(self::Class1?, self::Class1?) → void} in #t196; + let final self::Class1? #t198 = n1 in #t198 == null ?{self::Class1?} null : let final self::Class1? #t199 = #t198{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t199 == null ?{self::Class1?} null : let final self::Class1? #t200 = #t199{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t200 == null ?{self::Class1?} null : #t200{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + nullable1 = let final self::Class1? #t201 = n1 in #t201 == null ?{self::Class1?} null : let final self::Class1? #t202 = #t201{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t202 == null ?{self::Class1?} null : let final self::Class1? #t203 = #t202{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t203 == null ?{self::Class1?} null : #t203{self::Class1}.{self::Class1::nonNullable1Method}(){() → self::Class1}; + let final self::Class1? #t204 = n1 in #t204 == null ?{self::Class1?} null : let final self::Class1? #t205 = #t204{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t205 == null ?{self::Class1?} null : let final self::Class1? #t206 = nullable1 in #t205{self::Class1}.{self::Class1::[]}(#t206){(self::Class1?) → self::Class1?} == null ?{self::Class1?} #t205{self::Class1}.{self::Class1::[]=}(#t206, nullable1){(self::Class1?, self::Class1?) → void} : null; + nullable1 = let final self::Class1? #t207 = n1 in #t207 == null ?{self::Class1?} null : let final self::Class1? #t208 = #t207{self::Class1}.{self::Class1::[]}(nullable1){(self::Class1?) → self::Class1?} in #t208 == null ?{self::Class1?} null : let final self::Class1? #t209 = nullable1 in let final self::Class1? #t210 = #t208{self::Class1}.{self::Class1::[]}(#t209){(self::Class1?) → self::Class1?} in #t210 == null ?{self::Class1?} let final self::Class1? #t211 = nullable1 in let final void #t212 = #t208{self::Class1}.{self::Class1::[]=}(#t209, #t211){(self::Class1?, self::Class1?) → void} in #t211 : #t210{self::Class1}; + let final self::Class3? #t213 = n3 in #t213 == null ?{self::Class2?} null : let final self::Class2? #t214 = #t213{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t214 == null ?{self::Class2?} null : let final self::Class2? #t215 = nullable2 in #t214{self::Class2}.{self::Class2::[]=}(#t215, #t214{self::Class2}.{self::Class2::[]}(#t215){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class3? #t216 = n3 in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = #t216{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t217 == null ?{self::Class2?} null : let final self::Class2? #t218 = nullable2 in let final self::Class2 #t219 = #t217{self::Class2}.{self::Class2::[]}(#t218){(self::Class2?) → self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t220 = #t217{self::Class2}.{self::Class2::[]=}(#t218, #t219){(self::Class2?, self::Class2?) → void} in #t219; + let final self::Class3? #t221 = n3 in #t221 == null ?{self::Class2?} null : let final self::Class2? #t222 = #t221{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t222 == null ?{self::Class2?} null : let final self::Class2? #t223 = nullable2 in #t222{self::Class2}.{self::Class2::[]=}(#t223, #t222{self::Class2}.{self::Class2::[]}(#t223){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void}; + nullable2 = let final self::Class3? #t224 = n3 in #t224 == null ?{self::Class2?} null : let final self::Class2? #t225 = #t224{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t225 == null ?{self::Class2?} null : let final self::Class2? #t226 = nullable2 in let final self::Class2 #t227 = #t225{self::Class2}.{self::Class2::[]}(#t226){(self::Class2?) → self::Class2} in let final void #t228 = #t225{self::Class2}.{self::Class2::[]=}(#t226, #t227.{self::Class2::+}(1){(core::int) → self::Class2}){(self::Class2?, self::Class2?) → void} in #t227; + let final self::Class3? #t229 = n3 in #t229 == null ?{self::Class2?} null : let final self::Class2? #t230 = #t229{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t230 == null ?{self::Class2?} null : let final self::Class2? #t231 = nullable2 in let final self::Class2 #t232 = #t230{self::Class2}.{self::Class2::[]}(#t231){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t233 = #t230{self::Class2}.{self::Class2::[]=}(#t231, #t232){(self::Class2?, self::Class2?) → void} in #t232; + nullable2 = let final self::Class3? #t234 = n3 in #t234 == null ?{self::Class2?} null : let final self::Class2? #t235 = #t234{self::Class3}.{self::Class3::[]}(nullable3){(self::Class3?) → self::Class2?} in #t235 == null ?{self::Class2?} null : let final self::Class2? #t236 = nullable2 in let final self::Class2 #t237 = #t235{self::Class2}.{self::Class2::[]}(#t236){(self::Class2?) → self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t238 = #t235{self::Class2}.{self::Class2::[]=}(#t236, #t237){(self::Class2?, self::Class2?) → void} in #t237; } static method operatorAccess(self::Class1? n1, self::Class2? n2) → void { self::Class2? nullable2 = n2; - self::throws(() → void => let final Never #t241 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:220:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:220:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. throws(() => n1?.nonNullable1 + 0); - ^" in (let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class1?} null : #t242{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::+}(0){(core::int) → self::Class1?}); - self::throws(() → void => let final Never #t243 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:221:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. + ^" in (let final self::Class1? #t239 = n1 in #t239 == null ?{self::Class1?} null : #t239{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::+}(0){(core::int) → self::Class1?}); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting.dart:221:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting.dart'. throws(() => -n1?.nonNullable1); - ^" in (let final self::Class1? #t244 = n1 in #t244 == null ?{self::Class1?} null : #t244{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::unary-}(){() → self::Class1?}); - let final self::Class2? #t245 = n2 in #t245 == null ?{self::Class2?} null : #t245.{self::Class2::nonNullable2} = #t245.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; - nullable2 = let final self::Class2? #t246 = n2 in #t246 == null ?{self::Class2?} null : let final self::Class2 #t247 = #t246.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t248 = #t246.{self::Class2::nonNullable2} = #t247 in #t247; - let final self::Class2? #t249 = n2 in #t249 == null ?{self::Class2?} null : let final self::Class2 #t250 = #t249{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t250.{self::Class2::nonNullable2} = #t250.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; - nullable2 = let final self::Class2? #t251 = n2 in #t251 == null ?{self::Class2?} null : let final self::Class2 #t252 = #t251{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t252.{self::Class2::nonNullable2} = #t252.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; - let final self::Class2? #t253 = n2 in #t253 == null ?{self::Class2?} null : #t253.{self::Class2::nonNullable2} = #t253.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}; - nullable2 = let final self::Class2? #t254 = n2 in #t254 == null ?{self::Class2?} null : let final self::Class2 #t255 = #t254.{self::Class2::nonNullable2}{self::Class2} in let final void #t256 = #t254.{self::Class2::nonNullable2} = #t255.{self::Class2::+}(1){(core::int) → self::Class2} in #t255; - let final self::Class2? #t257 = n2 in #t257 == null ?{self::Class2?} null : let final self::Class2 #t258 = #t257.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t259 = #t257.{self::Class2::nonNullable2} = #t258 in #t258; - nullable2 = let final self::Class2? #t260 = n2 in #t260 == null ?{self::Class2?} null : let final self::Class2 #t261 = #t260.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t262 = #t260.{self::Class2::nonNullable2} = #t261 in #t261; + ^" in (let final self::Class1? #t240 = n1 in #t240 == null ?{self::Class1?} null : #t240{self::Class1}.{self::Class1::nonNullable1}{self::Class1}).{self::Class1::unary-}(){() → self::Class1?}); + let final self::Class2? #t241 = n2 in #t241 == null ?{self::Class2?} null : #t241.{self::Class2::nonNullable2} = #t241.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; + nullable2 = let final self::Class2? #t242 = n2 in #t242 == null ?{self::Class2?} null : let final self::Class2 #t243 = #t242.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2} in let final void #t244 = #t242.{self::Class2::nonNullable2} = #t243 in #t243; + let final self::Class2? #t245 = n2 in #t245 == null ?{self::Class2?} null : let final self::Class2 #t246 = #t245{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t246.{self::Class2::nonNullable2} = #t246.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; + nullable2 = let final self::Class2? #t247 = n2 in #t247 == null ?{self::Class2?} null : let final self::Class2 #t248 = #t247{self::Class2}.{self::Class2::nonNullable2}{self::Class2} in #t248.{self::Class2::nonNullable2} = #t248.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(0){(core::int) → self::Class2}; + let final self::Class2? #t249 = n2 in #t249 == null ?{self::Class2?} null : #t249.{self::Class2::nonNullable2} = #t249.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2}; + nullable2 = let final self::Class2? #t250 = n2 in #t250 == null ?{self::Class2?} null : let final self::Class2 #t251 = #t250.{self::Class2::nonNullable2}{self::Class2} in let final void #t252 = #t250.{self::Class2::nonNullable2} = #t251.{self::Class2::+}(1){(core::int) → self::Class2} in #t251; + let final self::Class2? #t253 = n2 in #t253 == null ?{self::Class2?} null : let final self::Class2 #t254 = #t253.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t255 = #t253.{self::Class2::nonNullable2} = #t254 in #t254; + nullable2 = let final self::Class2? #t256 = n2 in #t256 == null ?{self::Class2?} null : let final self::Class2 #t257 = #t256.{self::Class2::nonNullable2}{self::Class2}.{self::Class2::+}(1){(core::int) → self::Class2} in let final void #t258 = #t256.{self::Class2::nonNullable2} = #t257 in #t257; } static method ifNull(self::Class1? n1) → void { self::Class1? nullable1 = n1; - let final self::Class1? #t263 = n1 in #t263 == null ?{self::Class1?} null : #t263.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t263.{self::Class1::nullable1} = n1{self::Class1} : null; - n1 = let final self::Class1? #t264 = n1 in #t264 == null ?{self::Class1?} null : let final self::Class1? #t265 = #t264.{self::Class1::nullable1}{self::Class1?} in #t265 == null ?{self::Class1} #t264.{self::Class1::nullable1} = n1{self::Class1} : #t265{self::Class1}; - let final self::Class1? #t266 = n1 in #t266 == null ?{self::Class1?} null : let final self::Class1 #t267 = #t266{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in #t267.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t267.{self::Class1::nullable1} = n1{self::Class1} : null; - n1 = let final self::Class1? #t268 = n1 in #t268 == null ?{self::Class1?} null : let final self::Class1 #t269 = #t268{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t270 = #t269.{self::Class1::nullable1}{self::Class1?} in #t270 == null ?{self::Class1} #t269.{self::Class1::nullable1} = n1{self::Class1} : #t270{self::Class1}; - let final self::Class1? #t271 = n1 in #t271 == null ?{self::Class1?} null : let final self::Class1 #t272 = #t271{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t273 = n1{self::Class1} in #t272.{self::Class1::[]}(#t273){(self::Class1?) → self::Class1?} == null ?{self::Class1} #t272.{self::Class1::[]=}(#t273, n1{self::Class1}){(self::Class1?, self::Class1?) → void} : null; - n1 = let final self::Class1? #t274 = n1 in #t274 == null ?{self::Class1?} null : let final self::Class1 #t275 = #t274{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t276 = n1{self::Class1} in let final self::Class1? #t277 = #t275.{self::Class1::[]}(#t276){(self::Class1?) → self::Class1?} in #t277 == null ?{self::Class1} let final self::Class1 #t278 = n1{self::Class1} in let final void #t279 = #t275.{self::Class1::[]=}(#t276, #t278){(self::Class1?, self::Class1?) → void} in #t278 : #t277{self::Class1}; + let final self::Class1? #t259 = n1 in #t259 == null ?{self::Class1?} null : #t259.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t259.{self::Class1::nullable1} = n1{self::Class1} : null; + n1 = let final self::Class1? #t260 = n1 in #t260 == null ?{self::Class1?} null : let final self::Class1? #t261 = #t260.{self::Class1::nullable1}{self::Class1?} in #t261 == null ?{self::Class1} #t260.{self::Class1::nullable1} = n1{self::Class1} : #t261{self::Class1}; + let final self::Class1? #t262 = n1 in #t262 == null ?{self::Class1?} null : let final self::Class1 #t263 = #t262{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in #t263.{self::Class1::nullable1}{self::Class1?} == null ?{self::Class1} #t263.{self::Class1::nullable1} = n1{self::Class1} : null; + n1 = let final self::Class1? #t264 = n1 in #t264 == null ?{self::Class1?} null : let final self::Class1 #t265 = #t264{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1? #t266 = #t265.{self::Class1::nullable1}{self::Class1?} in #t266 == null ?{self::Class1} #t265.{self::Class1::nullable1} = n1{self::Class1} : #t266{self::Class1}; + let final self::Class1? #t267 = n1 in #t267 == null ?{self::Class1?} null : let final self::Class1 #t268 = #t267{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t269 = n1{self::Class1} in #t268.{self::Class1::[]}(#t269){(self::Class1?) → self::Class1?} == null ?{self::Class1} #t268.{self::Class1::[]=}(#t269, n1{self::Class1}){(self::Class1?, self::Class1?) → void} : null; + n1 = let final self::Class1? #t270 = n1 in #t270 == null ?{self::Class1?} null : let final self::Class1 #t271 = #t270{self::Class1}.{self::Class1::nonNullable1}{self::Class1} in let final self::Class1 #t272 = n1{self::Class1} in let final self::Class1? #t273 = #t271.{self::Class1::[]}(#t272){(self::Class1?) → self::Class1?} in #t273 == null ?{self::Class1} let final self::Class1 #t274 = n1{self::Class1} in let final void #t275 = #t271.{self::Class1::[]=}(#t272, #t274){(self::Class1?, self::Class1?) → void} in #t274 : #t273{self::Class1}; } static method throws(() → void f) → void { try { diff --git a/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.strong.expect b/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.strong.expect index 25e39a1f6fe..410df6c40e0 100644 --- a/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.strong.expect @@ -139,153 +139,153 @@ static method propertyAccess(self::Class1? n1) → void { let final self::Class1? #t13 = n1 in #t13 == null ?{self::Class1?} null : let final self::Class1? #t14 = self::Extension1|get#nullable1(#t13{self::Class1}) in #t14 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t14{self::Class1}, new self::Class1::•()); let final self::Class1? #t15 = n1 in #t15 == null ?{self::Class1?} null : let final self::Class1? #t16 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t15{self::Class1})) in #t16 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t16{self::Class1}, new self::Class1::•()); let final self::Class1? #t17 = let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t18{self::Class1}) in #t17 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t17{self::Class1}); - self::throws(() → void => let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:93:59: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:93:59: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. Try accessing using ?. instead. throws(() => (Extension1(n1)?.nullable1 = new Class1()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : let final self::Class1 #t21 = new self::Class1::•() in let final void #t22 = self::Extension1|set#nullable1(#t20{self::Class1}, #t21) in #t21)); - self::throws(() → void => let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:94:55: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t19 = n1 in #t19 == null ?{self::Class1?} null : let final self::Class1 #t20 = new self::Class1::•() in let final void #t21 = self::Extension1|set#nullable1(#t19{self::Class1}, #t20) in #t20)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:94:55: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. Try accessing using ?. instead. throws(() => (Extension1(n1)?.nonNullable1Method()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t24{self::Class1}))); - nullable1 = let final self::Class1? #t25 = n1 in #t25 == null ?{self::Class1?} null : let final self::Class1 #t26 = new self::Class1::•() in let final void #t27 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t25{self::Class1}), #t26) in #t26; - nullable1 = let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : let final self::Class1? #t29 = self::Extension1|get#nullable1(#t28{self::Class1}) in #t29 == null ?{self::Class1?} null : let final self::Class1 #t30 = new self::Class1::•() in let final void #t31 = self::Extension1|set#nullable1(#t29{self::Class1}, #t30) in #t30; - nullable1 = let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : let final self::Class1? #t33 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t32{self::Class1})) in #t33 == null ?{self::Class1?} null : let final self::Class1 #t34 = new self::Class1::•() in let final void #t35 = self::Extension1|set#nullable1(#t33{self::Class1}, #t34) in #t34; - let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : let final self::Class1? #t37 = self::Extension1|get#nullable1(#t36{self::Class1}) in #t37 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t37{self::Class1}); - let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t38{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t39 = n1 in #t39 == null ?{self::Class1?} null : let final self::Class1? #t40 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t41 = self::Extension1|set#nullable1(#t39{self::Class1}, #t40) in #t40; - let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t42{self::Class1}, let final self::Class1 #t43 = new self::Class1::•() in let final void #t44 = self::Extension1|set#nullable1(new self::Class1::•(), #t43) in #t43); - nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : let final self::Class1 #t46 = let final self::Class1 #t47 = new self::Class1::•() in let final void #t48 = self::Extension1|set#nullable1(new self::Class1::•(), #t47) in #t47 in let final void #t49 = self::Extension1|set#nullable1(#t45{self::Class1}, #t46) in #t46; - let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t50{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : let final self::Class1 #t52 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t53 = self::Extension1|set#nullable1(#t51{self::Class1}, #t52) in #t52; - let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t54{self::Class1})); - let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t55{self::Class1}), new self::Class1::•()); - let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t56{self::Class1})); - let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1}))); - let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t58{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : let final self::Class1 #t60 = new self::Class1::•() in let final void #t61 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t59{self::Class1})), #t60) in #t60; - let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : let final self::Class1? #t63 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t62{self::Class1})) in #t63 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t63{self::Class1}); - let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t64{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : let final self::Class1? #t66 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t67 = self::Extension1|set#nullable1(#t65{self::Class1}, #t66) in #t66; - let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t68{self::Class1}, let final self::Class1 #t69 = new self::Class1::•() in let final void #t70 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t69) in #t69); - nullable1 = let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : let final self::Class1 #t72 = let final self::Class1 #t73 = new self::Class1::•() in let final void #t74 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t73) in #t73 in let final void #t75 = self::Extension1|set#nullable1(#t71{self::Class1}, #t72) in #t72; - let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t76{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : let final self::Class1 #t78 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t79 = self::Extension1|set#nullable1(#t77{self::Class1}, #t78) in #t78; - let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); - let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t81{self::Class1})), new self::Class1::•()); - let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t82{self::Class1}))); - let final self::Class1? #t83 = n1 in #t83 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t83{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : let final self::Class1? #t85 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t86 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t84{self::Class1}), #t85) in #t85; - let final self::Class1? #t87 = n1 in #t87 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t87{self::Class1}), let final self::Class1 #t88 = new self::Class1::•() in let final void #t89 = self::Extension1|set#nullable1(new self::Class1::•(), #t88) in #t88); - nullable1 = let final self::Class1? #t90 = n1 in #t90 == null ?{self::Class1?} null : let final self::Class1 #t91 = let final self::Class1 #t92 = new self::Class1::•() in let final void #t93 = self::Extension1|set#nullable1(new self::Class1::•(), #t92) in #t92 in let final void #t94 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t90{self::Class1}), #t91) in #t91; - let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t95{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t96 = n1 in #t96 == null ?{self::Class1?} null : let final self::Class1 #t97 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t98 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t96{self::Class1}), #t97) in #t97; - let final self::Class1? #t99 = n1 in #t99 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t99{self::Class1}, let final self::Class1? #t100 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t101 = self::Extension1|set#nullable1(new self::Class1::•(), #t100) in #t100); - nullable1 = let final self::Class1? #t102 = n1 in #t102 == null ?{self::Class1?} null : let final self::Class1? #t103 = let final self::Class1? #t104 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t105 = self::Extension1|set#nullable1(new self::Class1::•(), #t104) in #t104 in let final void #t106 = self::Extension1|set#nullable1(#t102{self::Class1}, #t103) in #t103; - let final self::Class1? #t107 = n1 in #t107 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t107{self::Class1}, let final self::Class1 #t108 = let final self::Class1 #t109 = new self::Class1::•() in let final void #t110 = self::Extension1|set#nullable1(new self::Class1::•(), #t109) in #t109 in let final void #t111 = self::Extension1|set#nullable1(new self::Class1::•(), #t108) in #t108); - nullable1 = let final self::Class1? #t112 = n1 in #t112 == null ?{self::Class1?} null : let final self::Class1 #t113 = let final self::Class1 #t114 = let final self::Class1 #t115 = new self::Class1::•() in let final void #t116 = self::Extension1|set#nullable1(new self::Class1::•(), #t115) in #t115 in let final void #t117 = self::Extension1|set#nullable1(new self::Class1::•(), #t114) in #t114 in let final void #t118 = self::Extension1|set#nullable1(#t112{self::Class1}, #t113) in #t113; - let final self::Class1? #t119 = n1 in #t119 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t119{self::Class1}, let final self::Class1 #t120 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t121 = self::Extension1|set#nullable1(new self::Class1::•(), #t120) in #t120); - nullable1 = let final self::Class1? #t122 = n1 in #t122 == null ?{self::Class1?} null : let final self::Class1 #t123 = let final self::Class1 #t124 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t125 = self::Extension1|set#nullable1(new self::Class1::•(), #t124) in #t124 in let final void #t126 = self::Extension1|set#nullable1(#t122{self::Class1}, #t123) in #t123; - let final self::Class1? #t127 = n1 in #t127 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t127{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t128 = n1 in #t128 == null ?{self::Class1?} null : let final self::Class1? #t129 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t130 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t128{self::Class1}), #t129) in #t129; - let final self::Class1? #t131 = n1 in #t131 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t131{self::Class1}), let final self::Class1 #t132 = new self::Class1::•() in let final void #t133 = self::Extension1|set#nullable1(new self::Class1::•(), #t132) in #t132); - nullable1 = let final self::Class1? #t134 = n1 in #t134 == null ?{self::Class1?} null : let final self::Class1 #t135 = let final self::Class1 #t136 = new self::Class1::•() in let final void #t137 = self::Extension1|set#nullable1(new self::Class1::•(), #t136) in #t136 in let final void #t138 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t134{self::Class1}), #t135) in #t135; - let final self::Class1? #t139 = n1 in #t139 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t139{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t140 = n1 in #t140 == null ?{self::Class1?} null : let final self::Class1 #t141 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t142 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t140{self::Class1}), #t141) in #t141; - let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1}))); - let final self::Class1? #t144 = n1 in #t144 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t144{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t145 = n1 in #t145 == null ?{self::Class1?} null : let final self::Class1 #t146 = new self::Class1::•() in let final void #t147 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t145{self::Class1})), #t146) in #t146; - let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t148{self::Class1}))); - let final self::Class1? #t149 = n1 in #t149 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t149{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t150 = n1 in #t150 == null ?{self::Class1?} null : let final self::Class1? #t151 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t152 = self::Extension1|set#nullable1(#t150{self::Class1}, #t151) in #t151; - let final self::Class1? #t153 = n1 in #t153 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t153{self::Class1}, let final self::Class1 #t154 = new self::Class1::•() in let final void #t155 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t154) in #t154); - nullable1 = let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class1?} null : let final self::Class1 #t157 = let final self::Class1 #t158 = new self::Class1::•() in let final void #t159 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t158) in #t158 in let final void #t160 = self::Extension1|set#nullable1(#t156{self::Class1}, #t157) in #t157; - let final self::Class1? #t161 = n1 in #t161 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t161{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t162 = n1 in #t162 == null ?{self::Class1?} null : let final self::Class1 #t163 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t164 = self::Extension1|set#nullable1(#t162{self::Class1}, #t163) in #t163; - let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); - let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t166{self::Class1})), new self::Class1::•()); - let final self::Class1? #t167 = n1 in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t167{self::Class1}))); - let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : let final self::Class1? #t169 = self::Extension1|nonNullable1Method(#t168{self::Class1}) in #t169 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t169{self::Class1}); + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t22{self::Class1}))); + nullable1 = let final self::Class1? #t23 = n1 in #t23 == null ?{self::Class1?} null : let final self::Class1 #t24 = new self::Class1::•() in let final void #t25 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t23{self::Class1}), #t24) in #t24; + nullable1 = let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : let final self::Class1? #t27 = self::Extension1|get#nullable1(#t26{self::Class1}) in #t27 == null ?{self::Class1?} null : let final self::Class1 #t28 = new self::Class1::•() in let final void #t29 = self::Extension1|set#nullable1(#t27{self::Class1}, #t28) in #t28; + nullable1 = let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : let final self::Class1? #t31 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t30{self::Class1})) in #t31 == null ?{self::Class1?} null : let final self::Class1 #t32 = new self::Class1::•() in let final void #t33 = self::Extension1|set#nullable1(#t31{self::Class1}, #t32) in #t32; + let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : let final self::Class1? #t35 = self::Extension1|get#nullable1(#t34{self::Class1}) in #t35 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t35{self::Class1}); + let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t36{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : let final self::Class1? #t38 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t39 = self::Extension1|set#nullable1(#t37{self::Class1}, #t38) in #t38; + let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t40{self::Class1}, let final self::Class1 #t41 = new self::Class1::•() in let final void #t42 = self::Extension1|set#nullable1(new self::Class1::•(), #t41) in #t41); + nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : let final self::Class1 #t44 = let final self::Class1 #t45 = new self::Class1::•() in let final void #t46 = self::Extension1|set#nullable1(new self::Class1::•(), #t45) in #t45 in let final void #t47 = self::Extension1|set#nullable1(#t43{self::Class1}, #t44) in #t44; + let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t48{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : let final self::Class1 #t50 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t51 = self::Extension1|set#nullable1(#t49{self::Class1}, #t50) in #t50; + let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t52{self::Class1})); + let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t53{self::Class1}), new self::Class1::•()); + let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t54{self::Class1})); + let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t55{self::Class1}))); + let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t56{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : let final self::Class1 #t58 = new self::Class1::•() in let final void #t59 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1})), #t58) in #t58; + let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : let final self::Class1? #t61 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t60{self::Class1})) in #t61 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t61{self::Class1}); + let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t62{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : let final self::Class1? #t64 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t65 = self::Extension1|set#nullable1(#t63{self::Class1}, #t64) in #t64; + let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t66{self::Class1}, let final self::Class1 #t67 = new self::Class1::•() in let final void #t68 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t67) in #t67); + nullable1 = let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : let final self::Class1 #t70 = let final self::Class1 #t71 = new self::Class1::•() in let final void #t72 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t71) in #t71 in let final void #t73 = self::Extension1|set#nullable1(#t69{self::Class1}, #t70) in #t70; + let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t74{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : let final self::Class1 #t76 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t77 = self::Extension1|set#nullable1(#t75{self::Class1}, #t76) in #t76; + let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t78{self::Class1}))); + let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t79{self::Class1})), new self::Class1::•()); + let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); + let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t81{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : let final self::Class1? #t83 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t84 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t82{self::Class1}), #t83) in #t83; + let final self::Class1? #t85 = n1 in #t85 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t85{self::Class1}), let final self::Class1 #t86 = new self::Class1::•() in let final void #t87 = self::Extension1|set#nullable1(new self::Class1::•(), #t86) in #t86); + nullable1 = let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : let final self::Class1 #t89 = let final self::Class1 #t90 = new self::Class1::•() in let final void #t91 = self::Extension1|set#nullable1(new self::Class1::•(), #t90) in #t90 in let final void #t92 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t88{self::Class1}), #t89) in #t89; + let final self::Class1? #t93 = n1 in #t93 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t93{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t94 = n1 in #t94 == null ?{self::Class1?} null : let final self::Class1 #t95 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t96 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t94{self::Class1}), #t95) in #t95; + let final self::Class1? #t97 = n1 in #t97 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t97{self::Class1}, let final self::Class1? #t98 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t99 = self::Extension1|set#nullable1(new self::Class1::•(), #t98) in #t98); + nullable1 = let final self::Class1? #t100 = n1 in #t100 == null ?{self::Class1?} null : let final self::Class1? #t101 = let final self::Class1? #t102 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t103 = self::Extension1|set#nullable1(new self::Class1::•(), #t102) in #t102 in let final void #t104 = self::Extension1|set#nullable1(#t100{self::Class1}, #t101) in #t101; + let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t105{self::Class1}, let final self::Class1 #t106 = let final self::Class1 #t107 = new self::Class1::•() in let final void #t108 = self::Extension1|set#nullable1(new self::Class1::•(), #t107) in #t107 in let final void #t109 = self::Extension1|set#nullable1(new self::Class1::•(), #t106) in #t106); + nullable1 = let final self::Class1? #t110 = n1 in #t110 == null ?{self::Class1?} null : let final self::Class1 #t111 = let final self::Class1 #t112 = let final self::Class1 #t113 = new self::Class1::•() in let final void #t114 = self::Extension1|set#nullable1(new self::Class1::•(), #t113) in #t113 in let final void #t115 = self::Extension1|set#nullable1(new self::Class1::•(), #t112) in #t112 in let final void #t116 = self::Extension1|set#nullable1(#t110{self::Class1}, #t111) in #t111; + let final self::Class1? #t117 = n1 in #t117 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t117{self::Class1}, let final self::Class1 #t118 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t119 = self::Extension1|set#nullable1(new self::Class1::•(), #t118) in #t118); + nullable1 = let final self::Class1? #t120 = n1 in #t120 == null ?{self::Class1?} null : let final self::Class1 #t121 = let final self::Class1 #t122 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t123 = self::Extension1|set#nullable1(new self::Class1::•(), #t122) in #t122 in let final void #t124 = self::Extension1|set#nullable1(#t120{self::Class1}, #t121) in #t121; + let final self::Class1? #t125 = n1 in #t125 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t125{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t126 = n1 in #t126 == null ?{self::Class1?} null : let final self::Class1? #t127 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t128 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t126{self::Class1}), #t127) in #t127; + let final self::Class1? #t129 = n1 in #t129 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t129{self::Class1}), let final self::Class1 #t130 = new self::Class1::•() in let final void #t131 = self::Extension1|set#nullable1(new self::Class1::•(), #t130) in #t130); + nullable1 = let final self::Class1? #t132 = n1 in #t132 == null ?{self::Class1?} null : let final self::Class1 #t133 = let final self::Class1 #t134 = new self::Class1::•() in let final void #t135 = self::Extension1|set#nullable1(new self::Class1::•(), #t134) in #t134 in let final void #t136 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t132{self::Class1}), #t133) in #t133; + let final self::Class1? #t137 = n1 in #t137 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t137{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t138 = n1 in #t138 == null ?{self::Class1?} null : let final self::Class1 #t139 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t140 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t138{self::Class1}), #t139) in #t139; + let final self::Class1? #t141 = n1 in #t141 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t141{self::Class1}))); + let final self::Class1? #t142 = n1 in #t142 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t142{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : let final self::Class1 #t144 = new self::Class1::•() in let final void #t145 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1})), #t144) in #t144; + let final self::Class1? #t146 = n1 in #t146 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t146{self::Class1}))); + let final self::Class1? #t147 = n1 in #t147 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t147{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : let final self::Class1? #t149 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t150 = self::Extension1|set#nullable1(#t148{self::Class1}, #t149) in #t149; + let final self::Class1? #t151 = n1 in #t151 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t151{self::Class1}, let final self::Class1 #t152 = new self::Class1::•() in let final void #t153 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t152) in #t152); + nullable1 = let final self::Class1? #t154 = n1 in #t154 == null ?{self::Class1?} null : let final self::Class1 #t155 = let final self::Class1 #t156 = new self::Class1::•() in let final void #t157 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t156) in #t156 in let final void #t158 = self::Extension1|set#nullable1(#t154{self::Class1}, #t155) in #t155; + let final self::Class1? #t159 = n1 in #t159 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t159{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t160 = n1 in #t160 == null ?{self::Class1?} null : let final self::Class1 #t161 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t162 = self::Extension1|set#nullable1(#t160{self::Class1}, #t161) in #t161; + let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t163{self::Class1}))); + let final self::Class1? #t164 = n1 in #t164 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t164{self::Class1})), new self::Class1::•()); + let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); + let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : let final self::Class1? #t167 = self::Extension1|nonNullable1Method(#t166{self::Class1}) in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t167{self::Class1}); } static method indexAccess(self::Class1? n1, self::Class2? n2, self::Class3? n3) → void { self::Class1? nullable1 = n1; self::Class2? nullable2 = n2; self::Class3? nullable3 = n3; - let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : self::Extension1|[](#t170{self::Class1}, nullable1); - let final self::Class1? #t171 = n1 in #t171 == null ?{void} null : self::Extension1|[]=(#t171{self::Class1}, nullable1, new self::Class1::•()); - let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : let final self::Class1? #t173 = self::Extension1|[](#t172{self::Class1}, nullable1) in #t173 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t173{self::Class1}); - let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t174{self::Class1}), nullable1); - let final self::Class1? #t175 = n1 in #t175 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t175{self::Class1}), nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t176 = n1 in #t176 == null ?{self::Class1?} null : let final self::Class1 #t177 = self::Extension1|get#nonNullable1(#t176{self::Class1}) in let final self::Class1? #t178 = nullable1 in let final self::Class1 #t179 = new self::Class1::•() in let final void #t180 = self::Extension1|[]=(#t177, #t178, #t179) in #t179; - let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class1?} null : let final self::Class1? #t182 = self::Extension1|[](self::Extension1|get#nonNullable1(#t181{self::Class1}), nullable1) in #t182 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t182{self::Class1}); - let final self::Class1? #t183 = n1 in #t183 == null ?{self::Class2?} null : let final self::Class2 #t184 = self::Extension1|get#nonNullable2(#t183{self::Class1}) in let final self::Class2? #t185 = nullable2 in self::Extension2|[]=(#t184, #t185, self::Extension2|+(self::Extension2|[](#t184, #t185), 0)); - nullable2 = let final self::Class1? #t186 = n1 in #t186 == null ?{self::Class2?} null : let final self::Class2 #t187 = self::Extension1|get#nonNullable2(#t186{self::Class1}) in let final self::Class2? #t188 = nullable2 in let final self::Class2 #t189 = self::Extension2|+(self::Extension2|[](#t187, #t188), 0) in let final void #t190 = self::Extension2|[]=(#t187, #t188, #t189) in #t189; - let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in self::Extension1|[](#t191{self::Class1}, #t192) == null ?{self::Class1?} self::Extension1|[]=(#t191{self::Class1}, #t192, nullable1) : null; - nullable1 = let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = nullable1 in let final self::Class1? #t195 = self::Extension1|[](#t193{self::Class1}, #t194) in #t195 == null ?{self::Class1?} let final self::Class1? #t196 = nullable1 in let final void #t197 = self::Extension1|[]=(#t193{self::Class1}, #t194, #t196) in #t196 : #t195{self::Class1}; - let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in self::Extension2|[]=(#t198{self::Class2}, #t199, self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0)); - nullable2 = let final self::Class2? #t200 = n2 in #t200 == null ?{self::Class2?} null : let final self::Class2? #t201 = nullable2 in let final self::Class2 #t202 = self::Extension2|+(self::Extension2|[](#t200{self::Class2}, #t201), 0) in let final void #t203 = self::Extension2|[]=(#t200{self::Class2}, #t201, #t202) in #t202; - let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in self::Extension2|[]=(#t204{self::Class2}, #t205, self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0)); - nullable2 = let final self::Class2? #t206 = n2 in #t206 == null ?{self::Class2?} null : let final self::Class2? #t207 = nullable2 in let final self::Class2 #t208 = self::Extension2|+(self::Extension2|[](#t206{self::Class2}, #t207), 0) in let final void #t209 = self::Extension2|[]=(#t206{self::Class2}, #t207, #t208) in #t208; - let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(self::Extension2|[](#t210{self::Class2}, #t211), 1)); - nullable2 = let final self::Class2? #t212 = n2 in #t212 == null ?{self::Class2?} null : let final self::Class2? #t213 = nullable2 in let final self::Class2 #t214 = self::Extension2|[](#t212{self::Class2}, #t213) in let final void #t215 = self::Extension2|[]=(#t212{self::Class2}, #t213, self::Extension2|+(#t214, 1)) in #t214; - let final self::Class2? #t216 = n2 in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = nullable2 in let final self::Class2 #t218 = self::Extension2|+(self::Extension2|[](#t216{self::Class2}, #t217), 1) in let final void #t219 = self::Extension2|[]=(#t216{self::Class2}, #t217, #t218) in #t218; - nullable2 = let final self::Class2? #t220 = n2 in #t220 == null ?{self::Class2?} null : let final self::Class2? #t221 = nullable2 in let final self::Class2 #t222 = self::Extension2|+(self::Extension2|[](#t220{self::Class2}, #t221), 1) in let final void #t223 = self::Extension2|[]=(#t220{self::Class2}, #t221, #t222) in #t222; - let final self::Class1? #t224 = n1 in #t224 == null ?{self::Class2?} null : let final self::Class2 #t225 = self::Extension1|get#nonNullable2(#t224{self::Class1}) in let final self::Class2? #t226 = nullable2 in self::Extension2|[]=(#t225, #t226, self::Extension2|+(self::Extension2|[](#t225, #t226), 1)); - nullable2 = let final self::Class1? #t227 = n1 in #t227 == null ?{self::Class2?} null : let final self::Class2 #t228 = self::Extension1|get#nonNullable2(#t227{self::Class1}) in let final self::Class2? #t229 = nullable2 in let final self::Class2 #t230 = self::Extension2|[](#t228, #t229) in let final void #t231 = self::Extension2|[]=(#t228, #t229, self::Extension2|+(#t230, 1)) in #t230; - let final self::Class1? #t232 = n1 in #t232 == null ?{self::Class2?} null : let final self::Class2 #t233 = self::Extension1|get#nonNullable2(#t232{self::Class1}) in let final self::Class2? #t234 = nullable2 in let final self::Class2 #t235 = self::Extension2|+(self::Extension2|[](#t233, #t234), 1) in let final void #t236 = self::Extension2|[]=(#t233, #t234, #t235) in #t235; - nullable2 = let final self::Class1? #t237 = n1 in #t237 == null ?{self::Class2?} null : let final self::Class2 #t238 = self::Extension1|get#nonNullable2(#t237{self::Class1}) in let final self::Class2? #t239 = nullable2 in let final self::Class2 #t240 = self::Extension2|+(self::Extension2|[](#t238, #t239), 1) in let final void #t241 = self::Extension2|[]=(#t238, #t239, #t240) in #t240; - let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2), nullable2); - let final self::Class1? #t243 = n1 in #t243 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t243{self::Class1}), nullable2), nullable2, new self::Class2::•()); - nullable2 = let final self::Class1? #t244 = n1 in #t244 == null ?{self::Class2?} null : let final self::Class2 #t245 = self::Extension2|[](self::Extension1|get#nonNullable2(#t244{self::Class1}), nullable2) in let final self::Class2? #t246 = nullable2 in let final self::Class2 #t247 = new self::Class2::•() in let final void #t248 = self::Extension2|[]=(#t245, #t246, #t247) in #t247; - let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2? #t250 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2), nullable2) in #t250 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t250{self::Class2}); - let final self::Class1? #t251 = n1 in #t251 == null ?{self::Class2?} null : let final self::Class2 #t252 = self::Extension2|[](self::Extension1|get#nonNullable2(#t251{self::Class1}), nullable2) in let final self::Class2? #t253 = nullable2 in self::Extension2|[]=(#t252, #t253, self::Extension2|+(self::Extension2|[](#t252, #t253), 0)); - nullable2 = let final self::Class1? #t254 = n1 in #t254 == null ?{self::Class2?} null : let final self::Class2 #t255 = self::Extension2|[](self::Extension1|get#nonNullable2(#t254{self::Class1}), nullable2) in let final self::Class2? #t256 = nullable2 in let final self::Class2 #t257 = self::Extension2|+(self::Extension2|[](#t255, #t256), 0) in let final void #t258 = self::Extension2|[]=(#t255, #t256, #t257) in #t257; - let final self::Class1? #t259 = n1 in #t259 == null ?{self::Class2?} null : let final self::Class2 #t260 = self::Extension2|[](self::Extension1|get#nonNullable2(#t259{self::Class1}), nullable2) in let final self::Class2? #t261 = nullable2 in self::Extension2|[]=(#t260, #t261, self::Extension2|+(self::Extension2|[](#t260, #t261), 1)); - nullable2 = let final self::Class1? #t262 = n1 in #t262 == null ?{self::Class2?} null : let final self::Class2 #t263 = self::Extension2|[](self::Extension1|get#nonNullable2(#t262{self::Class1}), nullable2) in let final self::Class2? #t264 = nullable2 in let final self::Class2 #t265 = self::Extension2|[](#t263, #t264) in let final void #t266 = self::Extension2|[]=(#t263, #t264, self::Extension2|+(#t265, 1)) in #t265; - let final self::Class1? #t267 = n1 in #t267 == null ?{self::Class2?} null : let final self::Class2 #t268 = self::Extension2|[](self::Extension1|get#nonNullable2(#t267{self::Class1}), nullable2) in let final self::Class2? #t269 = nullable2 in let final self::Class2 #t270 = self::Extension2|+(self::Extension2|[](#t268, #t269), 1) in let final void #t271 = self::Extension2|[]=(#t268, #t269, #t270) in #t270; - nullable2 = let final self::Class1? #t272 = n1 in #t272 == null ?{self::Class2?} null : let final self::Class2 #t273 = self::Extension2|[](self::Extension1|get#nonNullable2(#t272{self::Class1}), nullable2) in let final self::Class2? #t274 = nullable2 in let final self::Class2 #t275 = self::Extension2|+(self::Extension2|[](#t273, #t274), 1) in let final void #t276 = self::Extension2|[]=(#t273, #t274, #t275) in #t275; - let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[](#t278{self::Class1}, nullable1); - let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : self::Extension1|[]=(#t280{self::Class1}, nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t281 = n1 in #t281 == null ?{self::Class1?} null : let final self::Class1? #t282 = self::Extension1|[](#t281{self::Class1}, nullable1) in #t282 == null ?{self::Class1?} null : let final self::Class1? #t283 = nullable1 in let final self::Class1 #t284 = new self::Class1::•() in let final void #t285 = self::Extension1|[]=(#t282{self::Class1}, #t283, #t284) in #t284; - let final self::Class1? #t286 = n1 in #t286 == null ?{self::Class1?} null : let final self::Class1? #t287 = self::Extension1|[](#t286{self::Class1}, nullable1) in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t288{self::Class1}); - nullable1 = let final self::Class1? #t289 = n1 in #t289 == null ?{self::Class1?} null : let final self::Class1? #t290 = self::Extension1|[](#t289{self::Class1}, nullable1) in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t291{self::Class1}); - let final self::Class1? #t292 = n1 in #t292 == null ?{self::Class1?} null : let final self::Class1? #t293 = self::Extension1|[](#t292{self::Class1}, nullable1) in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = nullable1 in self::Extension1|[](#t293{self::Class1}, #t294) == null ?{self::Class1?} self::Extension1|[]=(#t293{self::Class1}, #t294, nullable1) : null; - nullable1 = let final self::Class1? #t295 = n1 in #t295 == null ?{self::Class1?} null : let final self::Class1? #t296 = self::Extension1|[](#t295{self::Class1}, nullable1) in #t296 == null ?{self::Class1?} null : let final self::Class1? #t297 = nullable1 in let final self::Class1? #t298 = self::Extension1|[](#t296{self::Class1}, #t297) in #t298 == null ?{self::Class1?} let final self::Class1? #t299 = nullable1 in let final void #t300 = self::Extension1|[]=(#t296{self::Class1}, #t297, #t299) in #t299 : #t298{self::Class1}; - let final self::Class3? #t301 = n3 in #t301 == null ?{self::Class2?} null : let final self::Class2? #t302 = self::Extension3|[](#t301{self::Class3}, nullable3) in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = nullable2 in self::Extension2|[]=(#t302{self::Class2}, #t303, self::Extension2|+(self::Extension2|[](#t302{self::Class2}, #t303), 0)); - nullable2 = let final self::Class3? #t304 = n3 in #t304 == null ?{self::Class2?} null : let final self::Class2? #t305 = self::Extension3|[](#t304{self::Class3}, nullable3) in #t305 == null ?{self::Class2?} null : let final self::Class2? #t306 = nullable2 in let final self::Class2 #t307 = self::Extension2|+(self::Extension2|[](#t305{self::Class2}, #t306), 0) in let final void #t308 = self::Extension2|[]=(#t305{self::Class2}, #t306, #t307) in #t307; - let final self::Class3? #t309 = n3 in #t309 == null ?{self::Class2?} null : let final self::Class2? #t310 = self::Extension3|[](#t309{self::Class3}, nullable3) in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = nullable2 in self::Extension2|[]=(#t310{self::Class2}, #t311, self::Extension2|+(self::Extension2|[](#t310{self::Class2}, #t311), 1)); - nullable2 = let final self::Class3? #t312 = n3 in #t312 == null ?{self::Class2?} null : let final self::Class2? #t313 = self::Extension3|[](#t312{self::Class3}, nullable3) in #t313 == null ?{self::Class2?} null : let final self::Class2? #t314 = nullable2 in let final self::Class2 #t315 = self::Extension2|[](#t313{self::Class2}, #t314) in let final void #t316 = self::Extension2|[]=(#t313{self::Class2}, #t314, self::Extension2|+(#t315, 1)) in #t315; - let final self::Class3? #t317 = n3 in #t317 == null ?{self::Class2?} null : let final self::Class2? #t318 = self::Extension3|[](#t317{self::Class3}, nullable3) in #t318 == null ?{self::Class2?} null : let final self::Class2? #t319 = nullable2 in let final self::Class2 #t320 = self::Extension2|+(self::Extension2|[](#t318{self::Class2}, #t319), 1) in let final void #t321 = self::Extension2|[]=(#t318{self::Class2}, #t319, #t320) in #t320; - nullable2 = let final self::Class3? #t322 = n3 in #t322 == null ?{self::Class2?} null : let final self::Class2? #t323 = self::Extension3|[](#t322{self::Class3}, nullable3) in #t323 == null ?{self::Class2?} null : let final self::Class2? #t324 = nullable2 in let final self::Class2 #t325 = self::Extension2|+(self::Extension2|[](#t323{self::Class2}, #t324), 1) in let final void #t326 = self::Extension2|[]=(#t323{self::Class2}, #t324, #t325) in #t325; + let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : self::Extension1|[](#t168{self::Class1}, nullable1); + let final self::Class1? #t169 = n1 in #t169 == null ?{void} null : self::Extension1|[]=(#t169{self::Class1}, nullable1, new self::Class1::•()); + let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : let final self::Class1? #t171 = self::Extension1|[](#t170{self::Class1}, nullable1) in #t171 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t171{self::Class1}); + let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t172{self::Class1}), nullable1); + let final self::Class1? #t173 = n1 in #t173 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t173{self::Class1}), nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : let final self::Class1 #t175 = self::Extension1|get#nonNullable1(#t174{self::Class1}) in let final self::Class1? #t176 = nullable1 in let final self::Class1 #t177 = new self::Class1::•() in let final void #t178 = self::Extension1|[]=(#t175, #t176, #t177) in #t177; + let final self::Class1? #t179 = n1 in #t179 == null ?{self::Class1?} null : let final self::Class1? #t180 = self::Extension1|[](self::Extension1|get#nonNullable1(#t179{self::Class1}), nullable1) in #t180 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t180{self::Class1}); + let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class2?} null : let final self::Class2 #t182 = self::Extension1|get#nonNullable2(#t181{self::Class1}) in let final self::Class2? #t183 = nullable2 in self::Extension2|[]=(#t182, #t183, self::Extension2|+(self::Extension2|[](#t182, #t183), 0)); + nullable2 = let final self::Class1? #t184 = n1 in #t184 == null ?{self::Class2?} null : let final self::Class2 #t185 = self::Extension1|get#nonNullable2(#t184{self::Class1}) in let final self::Class2? #t186 = nullable2 in let final self::Class2 #t187 = self::Extension2|+(self::Extension2|[](#t185, #t186), 0) in let final void #t188 = self::Extension2|[]=(#t185, #t186, #t187) in #t187; + let final self::Class1? #t189 = n1 in #t189 == null ?{self::Class1?} null : let final self::Class1? #t190 = nullable1 in self::Extension1|[](#t189{self::Class1}, #t190) == null ?{self::Class1?} self::Extension1|[]=(#t189{self::Class1}, #t190, nullable1) : null; + nullable1 = let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in let final self::Class1? #t193 = self::Extension1|[](#t191{self::Class1}, #t192) in #t193 == null ?{self::Class1?} let final self::Class1? #t194 = nullable1 in let final void #t195 = self::Extension1|[]=(#t191{self::Class1}, #t192, #t194) in #t194 : #t193{self::Class1}; + let final self::Class2? #t196 = n2 in #t196 == null ?{self::Class2?} null : let final self::Class2? #t197 = nullable2 in self::Extension2|[]=(#t196{self::Class2}, #t197, self::Extension2|+(self::Extension2|[](#t196{self::Class2}, #t197), 0)); + nullable2 = let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in let final self::Class2 #t200 = self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0) in let final void #t201 = self::Extension2|[]=(#t198{self::Class2}, #t199, #t200) in #t200; + let final self::Class2? #t202 = n2 in #t202 == null ?{self::Class2?} null : let final self::Class2? #t203 = nullable2 in self::Extension2|[]=(#t202{self::Class2}, #t203, self::Extension2|+(self::Extension2|[](#t202{self::Class2}, #t203), 0)); + nullable2 = let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in let final self::Class2 #t206 = self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0) in let final void #t207 = self::Extension2|[]=(#t204{self::Class2}, #t205, #t206) in #t206; + let final self::Class2? #t208 = n2 in #t208 == null ?{self::Class2?} null : let final self::Class2? #t209 = nullable2 in self::Extension2|[]=(#t208{self::Class2}, #t209, self::Extension2|+(self::Extension2|[](#t208{self::Class2}, #t209), 1)); + nullable2 = let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in let final self::Class2 #t212 = self::Extension2|[](#t210{self::Class2}, #t211) in let final void #t213 = self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(#t212, 1)) in #t212; + let final self::Class2? #t214 = n2 in #t214 == null ?{self::Class2?} null : let final self::Class2? #t215 = nullable2 in let final self::Class2 #t216 = self::Extension2|+(self::Extension2|[](#t214{self::Class2}, #t215), 1) in let final void #t217 = self::Extension2|[]=(#t214{self::Class2}, #t215, #t216) in #t216; + nullable2 = let final self::Class2? #t218 = n2 in #t218 == null ?{self::Class2?} null : let final self::Class2? #t219 = nullable2 in let final self::Class2 #t220 = self::Extension2|+(self::Extension2|[](#t218{self::Class2}, #t219), 1) in let final void #t221 = self::Extension2|[]=(#t218{self::Class2}, #t219, #t220) in #t220; + let final self::Class1? #t222 = n1 in #t222 == null ?{self::Class2?} null : let final self::Class2 #t223 = self::Extension1|get#nonNullable2(#t222{self::Class1}) in let final self::Class2? #t224 = nullable2 in self::Extension2|[]=(#t223, #t224, self::Extension2|+(self::Extension2|[](#t223, #t224), 1)); + nullable2 = let final self::Class1? #t225 = n1 in #t225 == null ?{self::Class2?} null : let final self::Class2 #t226 = self::Extension1|get#nonNullable2(#t225{self::Class1}) in let final self::Class2? #t227 = nullable2 in let final self::Class2 #t228 = self::Extension2|[](#t226, #t227) in let final void #t229 = self::Extension2|[]=(#t226, #t227, self::Extension2|+(#t228, 1)) in #t228; + let final self::Class1? #t230 = n1 in #t230 == null ?{self::Class2?} null : let final self::Class2 #t231 = self::Extension1|get#nonNullable2(#t230{self::Class1}) in let final self::Class2? #t232 = nullable2 in let final self::Class2 #t233 = self::Extension2|+(self::Extension2|[](#t231, #t232), 1) in let final void #t234 = self::Extension2|[]=(#t231, #t232, #t233) in #t233; + nullable2 = let final self::Class1? #t235 = n1 in #t235 == null ?{self::Class2?} null : let final self::Class2 #t236 = self::Extension1|get#nonNullable2(#t235{self::Class1}) in let final self::Class2? #t237 = nullable2 in let final self::Class2 #t238 = self::Extension2|+(self::Extension2|[](#t236, #t237), 1) in let final void #t239 = self::Extension2|[]=(#t236, #t237, #t238) in #t238; + let final self::Class1? #t240 = n1 in #t240 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t240{self::Class1}), nullable2), nullable2); + let final self::Class1? #t241 = n1 in #t241 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t241{self::Class1}), nullable2), nullable2, new self::Class2::•()); + nullable2 = let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : let final self::Class2 #t243 = self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2) in let final self::Class2? #t244 = nullable2 in let final self::Class2 #t245 = new self::Class2::•() in let final void #t246 = self::Extension2|[]=(#t243, #t244, #t245) in #t245; + let final self::Class1? #t247 = n1 in #t247 == null ?{self::Class2?} null : let final self::Class2? #t248 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t247{self::Class1}), nullable2), nullable2) in #t248 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t248{self::Class2}); + let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2 #t250 = self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2) in let final self::Class2? #t251 = nullable2 in self::Extension2|[]=(#t250, #t251, self::Extension2|+(self::Extension2|[](#t250, #t251), 0)); + nullable2 = let final self::Class1? #t252 = n1 in #t252 == null ?{self::Class2?} null : let final self::Class2 #t253 = self::Extension2|[](self::Extension1|get#nonNullable2(#t252{self::Class1}), nullable2) in let final self::Class2? #t254 = nullable2 in let final self::Class2 #t255 = self::Extension2|+(self::Extension2|[](#t253, #t254), 0) in let final void #t256 = self::Extension2|[]=(#t253, #t254, #t255) in #t255; + let final self::Class1? #t257 = n1 in #t257 == null ?{self::Class2?} null : let final self::Class2 #t258 = self::Extension2|[](self::Extension1|get#nonNullable2(#t257{self::Class1}), nullable2) in let final self::Class2? #t259 = nullable2 in self::Extension2|[]=(#t258, #t259, self::Extension2|+(self::Extension2|[](#t258, #t259), 1)); + nullable2 = let final self::Class1? #t260 = n1 in #t260 == null ?{self::Class2?} null : let final self::Class2 #t261 = self::Extension2|[](self::Extension1|get#nonNullable2(#t260{self::Class1}), nullable2) in let final self::Class2? #t262 = nullable2 in let final self::Class2 #t263 = self::Extension2|[](#t261, #t262) in let final void #t264 = self::Extension2|[]=(#t261, #t262, self::Extension2|+(#t263, 1)) in #t263; + let final self::Class1? #t265 = n1 in #t265 == null ?{self::Class2?} null : let final self::Class2 #t266 = self::Extension2|[](self::Extension1|get#nonNullable2(#t265{self::Class1}), nullable2) in let final self::Class2? #t267 = nullable2 in let final self::Class2 #t268 = self::Extension2|+(self::Extension2|[](#t266, #t267), 1) in let final void #t269 = self::Extension2|[]=(#t266, #t267, #t268) in #t268; + nullable2 = let final self::Class1? #t270 = n1 in #t270 == null ?{self::Class2?} null : let final self::Class2 #t271 = self::Extension2|[](self::Extension1|get#nonNullable2(#t270{self::Class1}), nullable2) in let final self::Class2? #t272 = nullable2 in let final self::Class2 #t273 = self::Extension2|+(self::Extension2|[](#t271, #t272), 1) in let final void #t274 = self::Extension2|[]=(#t271, #t272, #t273) in #t273; + let final self::Class1? #t275 = n1 in #t275 == null ?{self::Class1?} null : let final self::Class1? #t276 = self::Extension1|[](#t275{self::Class1}, nullable1) in #t276 == null ?{self::Class1?} null : self::Extension1|[](#t276{self::Class1}, nullable1); + let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[]=(#t278{self::Class1}, nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : let final self::Class1? #t281 = nullable1 in let final self::Class1 #t282 = new self::Class1::•() in let final void #t283 = self::Extension1|[]=(#t280{self::Class1}, #t281, #t282) in #t282; + let final self::Class1? #t284 = n1 in #t284 == null ?{self::Class1?} null : let final self::Class1? #t285 = self::Extension1|[](#t284{self::Class1}, nullable1) in #t285 == null ?{self::Class1?} null : let final self::Class1? #t286 = self::Extension1|[](#t285{self::Class1}, nullable1) in #t286 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t286{self::Class1}); + nullable1 = let final self::Class1? #t287 = n1 in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : let final self::Class1? #t289 = self::Extension1|[](#t288{self::Class1}, nullable1) in #t289 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t289{self::Class1}); + let final self::Class1? #t290 = n1 in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : let final self::Class1? #t292 = nullable1 in self::Extension1|[](#t291{self::Class1}, #t292) == null ?{self::Class1?} self::Extension1|[]=(#t291{self::Class1}, #t292, nullable1) : null; + nullable1 = let final self::Class1? #t293 = n1 in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = self::Extension1|[](#t293{self::Class1}, nullable1) in #t294 == null ?{self::Class1?} null : let final self::Class1? #t295 = nullable1 in let final self::Class1? #t296 = self::Extension1|[](#t294{self::Class1}, #t295) in #t296 == null ?{self::Class1?} let final self::Class1? #t297 = nullable1 in let final void #t298 = self::Extension1|[]=(#t294{self::Class1}, #t295, #t297) in #t297 : #t296{self::Class1}; + let final self::Class3? #t299 = n3 in #t299 == null ?{self::Class2?} null : let final self::Class2? #t300 = self::Extension3|[](#t299{self::Class3}, nullable3) in #t300 == null ?{self::Class2?} null : let final self::Class2? #t301 = nullable2 in self::Extension2|[]=(#t300{self::Class2}, #t301, self::Extension2|+(self::Extension2|[](#t300{self::Class2}, #t301), 0)); + nullable2 = let final self::Class3? #t302 = n3 in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = self::Extension3|[](#t302{self::Class3}, nullable3) in #t303 == null ?{self::Class2?} null : let final self::Class2? #t304 = nullable2 in let final self::Class2 #t305 = self::Extension2|+(self::Extension2|[](#t303{self::Class2}, #t304), 0) in let final void #t306 = self::Extension2|[]=(#t303{self::Class2}, #t304, #t305) in #t305; + let final self::Class3? #t307 = n3 in #t307 == null ?{self::Class2?} null : let final self::Class2? #t308 = self::Extension3|[](#t307{self::Class3}, nullable3) in #t308 == null ?{self::Class2?} null : let final self::Class2? #t309 = nullable2 in self::Extension2|[]=(#t308{self::Class2}, #t309, self::Extension2|+(self::Extension2|[](#t308{self::Class2}, #t309), 1)); + nullable2 = let final self::Class3? #t310 = n3 in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = self::Extension3|[](#t310{self::Class3}, nullable3) in #t311 == null ?{self::Class2?} null : let final self::Class2? #t312 = nullable2 in let final self::Class2 #t313 = self::Extension2|[](#t311{self::Class2}, #t312) in let final void #t314 = self::Extension2|[]=(#t311{self::Class2}, #t312, self::Extension2|+(#t313, 1)) in #t313; + let final self::Class3? #t315 = n3 in #t315 == null ?{self::Class2?} null : let final self::Class2? #t316 = self::Extension3|[](#t315{self::Class3}, nullable3) in #t316 == null ?{self::Class2?} null : let final self::Class2? #t317 = nullable2 in let final self::Class2 #t318 = self::Extension2|+(self::Extension2|[](#t316{self::Class2}, #t317), 1) in let final void #t319 = self::Extension2|[]=(#t316{self::Class2}, #t317, #t318) in #t318; + nullable2 = let final self::Class3? #t320 = n3 in #t320 == null ?{self::Class2?} null : let final self::Class2? #t321 = self::Extension3|[](#t320{self::Class3}, nullable3) in #t321 == null ?{self::Class2?} null : let final self::Class2? #t322 = nullable2 in let final self::Class2 #t323 = self::Extension2|+(self::Extension2|[](#t321{self::Class2}, #t322), 1) in let final void #t324 = self::Extension2|[]=(#t321{self::Class2}, #t322, #t323) in #t323; } static method operatorAccess(self::Class1? n1, self::Class2? n2) → void { self::Class2? nullable2 = n2; - self::throws(() → void => let final Never #t327 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:244:45: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:244:45: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. throws(() => Extension1(n1)?.nonNullable1 + 0); - ^" in self::Extension1|+(let final self::Class1? #t328 = n1 in #t328 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t328{self::Class1}), 0)); - self::throws(() → void => let final Never #t329 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:245:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. + ^" in self::Extension1|+(let final self::Class1? #t325 = n1 in #t325 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t325{self::Class1}), 0)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:245:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. throws(() => -Extension1(n1)?.nonNullable1); - ^" in self::Extension1|unary-(let final self::Class1? #t330 = n1 in #t330 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t330{self::Class1}))); - let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t331{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t331{self::Class2}), 0)); - nullable2 = let final self::Class2? #t332 = n2 in #t332 == null ?{self::Class2?} null : let final self::Class2 #t333 = self::Extension2|+(self::Extension2|get#nonNullable2(#t332{self::Class2}), 0) in let final void #t334 = self::Extension2|set#nonNullable2(#t332{self::Class2}, #t333) in #t333; - let final self::Class2? #t335 = n2 in #t335 == null ?{self::Class2?} null : let final self::Class2 #t336 = self::Extension2|get#nonNullable2(#t335{self::Class2}) in self::Extension2|set#nonNullable2(#t336, self::Extension2|+(self::Extension2|get#nonNullable2(#t336), 0)); - nullable2 = let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : let final self::Class2 #t338 = self::Extension2|get#nonNullable2(#t337{self::Class2}) in let final self::Class2 #t339 = self::Extension2|+(self::Extension2|get#nonNullable2(#t338), 0) in let final void #t340 = self::Extension2|set#nonNullable2(#t338, #t339) in #t339; - let final self::Class2? #t341 = n2 in #t341 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t341{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t341{self::Class2}), 1)); - nullable2 = let final self::Class2? #t342 = n2 in #t342 == null ?{self::Class2?} null : let final self::Class2 #t343 = self::Extension2|get#nonNullable2(#t342{self::Class2}) in let final self::Class2 #t344 = let final self::Class2 #t345 = self::Extension2|+(#t343, 1) in let final void #t346 = self::Extension2|set#nonNullable2(#t342{self::Class2}, #t345) in #t345 in #t343; - let final self::Class2? #t347 = n2 in #t347 == null ?{self::Class2?} null : let final self::Class2 #t348 = self::Extension2|+(self::Extension2|get#nonNullable2(#t347{self::Class2}), 1) in let final void #t349 = self::Extension2|set#nonNullable2(#t347{self::Class2}, #t348) in #t348; - nullable2 = let final self::Class2? #t350 = n2 in #t350 == null ?{self::Class2?} null : let final self::Class2 #t351 = self::Extension2|+(self::Extension2|get#nonNullable2(#t350{self::Class2}), 1) in let final void #t352 = self::Extension2|set#nonNullable2(#t350{self::Class2}, #t351) in #t351; + ^" in self::Extension1|unary-(let final self::Class1? #t326 = n1 in #t326 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t326{self::Class1}))); + let final self::Class2? #t327 = n2 in #t327 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t327{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t327{self::Class2}), 0)); + nullable2 = let final self::Class2? #t328 = n2 in #t328 == null ?{self::Class2?} null : let final self::Class2 #t329 = self::Extension2|+(self::Extension2|get#nonNullable2(#t328{self::Class2}), 0) in let final void #t330 = self::Extension2|set#nonNullable2(#t328{self::Class2}, #t329) in #t329; + let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : let final self::Class2 #t332 = self::Extension2|get#nonNullable2(#t331{self::Class2}) in self::Extension2|set#nonNullable2(#t332, self::Extension2|+(self::Extension2|get#nonNullable2(#t332), 0)); + nullable2 = let final self::Class2? #t333 = n2 in #t333 == null ?{self::Class2?} null : let final self::Class2 #t334 = self::Extension2|get#nonNullable2(#t333{self::Class2}) in let final self::Class2 #t335 = self::Extension2|+(self::Extension2|get#nonNullable2(#t334), 0) in let final void #t336 = self::Extension2|set#nonNullable2(#t334, #t335) in #t335; + let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t337{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t337{self::Class2}), 1)); + nullable2 = let final self::Class2? #t338 = n2 in #t338 == null ?{self::Class2?} null : let final self::Class2 #t339 = self::Extension2|get#nonNullable2(#t338{self::Class2}) in let final self::Class2 #t340 = let final self::Class2 #t341 = self::Extension2|+(#t339, 1) in let final void #t342 = self::Extension2|set#nonNullable2(#t338{self::Class2}, #t341) in #t341 in #t339; + let final self::Class2? #t343 = n2 in #t343 == null ?{self::Class2?} null : let final self::Class2 #t344 = self::Extension2|+(self::Extension2|get#nonNullable2(#t343{self::Class2}), 1) in let final void #t345 = self::Extension2|set#nonNullable2(#t343{self::Class2}, #t344) in #t344; + nullable2 = let final self::Class2? #t346 = n2 in #t346 == null ?{self::Class2?} null : let final self::Class2 #t347 = self::Extension2|+(self::Extension2|get#nonNullable2(#t346{self::Class2}), 1) in let final void #t348 = self::Extension2|set#nonNullable2(#t346{self::Class2}, #t347) in #t347; } static method ifNull(self::Class1? n1) → void { self::Class1? nullable1 = n1; - let final self::Class1? #t353 = n1 in #t353 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t353) == null ?{self::Class1} self::Extension1|set#nullable1(#t353, n1{self::Class1}) : null; - n1 = let final self::Class1? #t354 = n1 in #t354 == null ?{self::Class1?} null : let final self::Class1? #t355 = self::Extension1|get#nullable1(#t354) in #t355 == null ?{self::Class1} let final self::Class1 #t356 = n1{self::Class1} in let final void #t357 = self::Extension1|set#nullable1(#t354, #t356) in #t356 : #t355{self::Class1}; - let final self::Class1? #t358 = n1 in #t358 == null ?{self::Class1?} null : let final self::Class1 #t359 = self::Extension1|get#nonNullable1(#t358{self::Class1}) in self::Extension1|get#nullable1(#t359) == null ?{self::Class1} self::Extension1|set#nullable1(#t359, n1{self::Class1}) : null; - n1 = let final self::Class1? #t360 = n1 in #t360 == null ?{self::Class1?} null : let final self::Class1 #t361 = self::Extension1|get#nonNullable1(#t360{self::Class1}) in let final self::Class1? #t362 = self::Extension1|get#nullable1(#t361) in #t362 == null ?{self::Class1} let final self::Class1 #t363 = n1{self::Class1} in let final void #t364 = self::Extension1|set#nullable1(#t361, #t363) in #t363 : #t362{self::Class1}; - let final self::Class1? #t365 = n1 in #t365 == null ?{self::Class1?} null : let final self::Class1 #t366 = self::Extension1|get#nonNullable1(#t365{self::Class1}) in let final self::Class1 #t367 = n1{self::Class1} in self::Extension1|[](#t366, #t367) == null ?{self::Class1} self::Extension1|[]=(#t366, #t367, n1{self::Class1}) : null; - n1 = let final self::Class1? #t368 = n1 in #t368 == null ?{self::Class1?} null : let final self::Class1 #t369 = self::Extension1|get#nonNullable1(#t368{self::Class1}) in let final self::Class1 #t370 = n1{self::Class1} in let final self::Class1? #t371 = self::Extension1|[](#t369, #t370) in #t371 == null ?{self::Class1} let final self::Class1 #t372 = n1{self::Class1} in let final void #t373 = self::Extension1|[]=(#t369, #t370, #t372) in #t372 : #t371{self::Class1}; + let final self::Class1? #t349 = n1 in #t349 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t349) == null ?{self::Class1} self::Extension1|set#nullable1(#t349, n1{self::Class1}) : null; + n1 = let final self::Class1? #t350 = n1 in #t350 == null ?{self::Class1?} null : let final self::Class1? #t351 = self::Extension1|get#nullable1(#t350) in #t351 == null ?{self::Class1} let final self::Class1 #t352 = n1{self::Class1} in let final void #t353 = self::Extension1|set#nullable1(#t350, #t352) in #t352 : #t351{self::Class1}; + let final self::Class1? #t354 = n1 in #t354 == null ?{self::Class1?} null : let final self::Class1 #t355 = self::Extension1|get#nonNullable1(#t354{self::Class1}) in self::Extension1|get#nullable1(#t355) == null ?{self::Class1} self::Extension1|set#nullable1(#t355, n1{self::Class1}) : null; + n1 = let final self::Class1? #t356 = n1 in #t356 == null ?{self::Class1?} null : let final self::Class1 #t357 = self::Extension1|get#nonNullable1(#t356{self::Class1}) in let final self::Class1? #t358 = self::Extension1|get#nullable1(#t357) in #t358 == null ?{self::Class1} let final self::Class1 #t359 = n1{self::Class1} in let final void #t360 = self::Extension1|set#nullable1(#t357, #t359) in #t359 : #t358{self::Class1}; + let final self::Class1? #t361 = n1 in #t361 == null ?{self::Class1?} null : let final self::Class1 #t362 = self::Extension1|get#nonNullable1(#t361{self::Class1}) in let final self::Class1 #t363 = n1{self::Class1} in self::Extension1|[](#t362, #t363) == null ?{self::Class1} self::Extension1|[]=(#t362, #t363, n1{self::Class1}) : null; + n1 = let final self::Class1? #t364 = n1 in #t364 == null ?{self::Class1?} null : let final self::Class1 #t365 = self::Extension1|get#nonNullable1(#t364{self::Class1}) in let final self::Class1 #t366 = n1{self::Class1} in let final self::Class1? #t367 = self::Extension1|[](#t365, #t366) in #t367 == null ?{self::Class1} let final self::Class1 #t368 = n1{self::Class1} in let final void #t369 = self::Extension1|[]=(#t365, #t366, #t368) in #t368 : #t367{self::Class1}; } static method throws(() → void f) → void { try { diff --git a/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.strong.transformed.expect index 25e39a1f6fe..410df6c40e0 100644 --- a/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.strong.transformed.expect @@ -139,153 +139,153 @@ static method propertyAccess(self::Class1? n1) → void { let final self::Class1? #t13 = n1 in #t13 == null ?{self::Class1?} null : let final self::Class1? #t14 = self::Extension1|get#nullable1(#t13{self::Class1}) in #t14 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t14{self::Class1}, new self::Class1::•()); let final self::Class1? #t15 = n1 in #t15 == null ?{self::Class1?} null : let final self::Class1? #t16 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t15{self::Class1})) in #t16 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t16{self::Class1}, new self::Class1::•()); let final self::Class1? #t17 = let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t18{self::Class1}) in #t17 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t17{self::Class1}); - self::throws(() → void => let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:93:59: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:93:59: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. Try accessing using ?. instead. throws(() => (Extension1(n1)?.nullable1 = new Class1()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : let final self::Class1 #t21 = new self::Class1::•() in let final void #t22 = self::Extension1|set#nullable1(#t20{self::Class1}, #t21) in #t21)); - self::throws(() → void => let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:94:55: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t19 = n1 in #t19 == null ?{self::Class1?} null : let final self::Class1 #t20 = new self::Class1::•() in let final void #t21 = self::Extension1|set#nullable1(#t19{self::Class1}, #t20) in #t20)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:94:55: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. Try accessing using ?. instead. throws(() => (Extension1(n1)?.nonNullable1Method()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t24{self::Class1}))); - nullable1 = let final self::Class1? #t25 = n1 in #t25 == null ?{self::Class1?} null : let final self::Class1 #t26 = new self::Class1::•() in let final void #t27 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t25{self::Class1}), #t26) in #t26; - nullable1 = let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : let final self::Class1? #t29 = self::Extension1|get#nullable1(#t28{self::Class1}) in #t29 == null ?{self::Class1?} null : let final self::Class1 #t30 = new self::Class1::•() in let final void #t31 = self::Extension1|set#nullable1(#t29{self::Class1}, #t30) in #t30; - nullable1 = let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : let final self::Class1? #t33 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t32{self::Class1})) in #t33 == null ?{self::Class1?} null : let final self::Class1 #t34 = new self::Class1::•() in let final void #t35 = self::Extension1|set#nullable1(#t33{self::Class1}, #t34) in #t34; - let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : let final self::Class1? #t37 = self::Extension1|get#nullable1(#t36{self::Class1}) in #t37 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t37{self::Class1}); - let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t38{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t39 = n1 in #t39 == null ?{self::Class1?} null : let final self::Class1? #t40 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t41 = self::Extension1|set#nullable1(#t39{self::Class1}, #t40) in #t40; - let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t42{self::Class1}, let final self::Class1 #t43 = new self::Class1::•() in let final void #t44 = self::Extension1|set#nullable1(new self::Class1::•(), #t43) in #t43); - nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : let final self::Class1 #t46 = let final self::Class1 #t47 = new self::Class1::•() in let final void #t48 = self::Extension1|set#nullable1(new self::Class1::•(), #t47) in #t47 in let final void #t49 = self::Extension1|set#nullable1(#t45{self::Class1}, #t46) in #t46; - let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t50{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : let final self::Class1 #t52 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t53 = self::Extension1|set#nullable1(#t51{self::Class1}, #t52) in #t52; - let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t54{self::Class1})); - let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t55{self::Class1}), new self::Class1::•()); - let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t56{self::Class1})); - let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1}))); - let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t58{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : let final self::Class1 #t60 = new self::Class1::•() in let final void #t61 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t59{self::Class1})), #t60) in #t60; - let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : let final self::Class1? #t63 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t62{self::Class1})) in #t63 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t63{self::Class1}); - let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t64{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : let final self::Class1? #t66 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t67 = self::Extension1|set#nullable1(#t65{self::Class1}, #t66) in #t66; - let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t68{self::Class1}, let final self::Class1 #t69 = new self::Class1::•() in let final void #t70 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t69) in #t69); - nullable1 = let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : let final self::Class1 #t72 = let final self::Class1 #t73 = new self::Class1::•() in let final void #t74 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t73) in #t73 in let final void #t75 = self::Extension1|set#nullable1(#t71{self::Class1}, #t72) in #t72; - let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t76{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : let final self::Class1 #t78 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t79 = self::Extension1|set#nullable1(#t77{self::Class1}, #t78) in #t78; - let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); - let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t81{self::Class1})), new self::Class1::•()); - let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t82{self::Class1}))); - let final self::Class1? #t83 = n1 in #t83 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t83{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : let final self::Class1? #t85 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t86 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t84{self::Class1}), #t85) in #t85; - let final self::Class1? #t87 = n1 in #t87 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t87{self::Class1}), let final self::Class1 #t88 = new self::Class1::•() in let final void #t89 = self::Extension1|set#nullable1(new self::Class1::•(), #t88) in #t88); - nullable1 = let final self::Class1? #t90 = n1 in #t90 == null ?{self::Class1?} null : let final self::Class1 #t91 = let final self::Class1 #t92 = new self::Class1::•() in let final void #t93 = self::Extension1|set#nullable1(new self::Class1::•(), #t92) in #t92 in let final void #t94 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t90{self::Class1}), #t91) in #t91; - let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t95{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t96 = n1 in #t96 == null ?{self::Class1?} null : let final self::Class1 #t97 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t98 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t96{self::Class1}), #t97) in #t97; - let final self::Class1? #t99 = n1 in #t99 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t99{self::Class1}, let final self::Class1? #t100 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t101 = self::Extension1|set#nullable1(new self::Class1::•(), #t100) in #t100); - nullable1 = let final self::Class1? #t102 = n1 in #t102 == null ?{self::Class1?} null : let final self::Class1? #t103 = let final self::Class1? #t104 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t105 = self::Extension1|set#nullable1(new self::Class1::•(), #t104) in #t104 in let final void #t106 = self::Extension1|set#nullable1(#t102{self::Class1}, #t103) in #t103; - let final self::Class1? #t107 = n1 in #t107 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t107{self::Class1}, let final self::Class1 #t108 = let final self::Class1 #t109 = new self::Class1::•() in let final void #t110 = self::Extension1|set#nullable1(new self::Class1::•(), #t109) in #t109 in let final void #t111 = self::Extension1|set#nullable1(new self::Class1::•(), #t108) in #t108); - nullable1 = let final self::Class1? #t112 = n1 in #t112 == null ?{self::Class1?} null : let final self::Class1 #t113 = let final self::Class1 #t114 = let final self::Class1 #t115 = new self::Class1::•() in let final void #t116 = self::Extension1|set#nullable1(new self::Class1::•(), #t115) in #t115 in let final void #t117 = self::Extension1|set#nullable1(new self::Class1::•(), #t114) in #t114 in let final void #t118 = self::Extension1|set#nullable1(#t112{self::Class1}, #t113) in #t113; - let final self::Class1? #t119 = n1 in #t119 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t119{self::Class1}, let final self::Class1 #t120 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t121 = self::Extension1|set#nullable1(new self::Class1::•(), #t120) in #t120); - nullable1 = let final self::Class1? #t122 = n1 in #t122 == null ?{self::Class1?} null : let final self::Class1 #t123 = let final self::Class1 #t124 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t125 = self::Extension1|set#nullable1(new self::Class1::•(), #t124) in #t124 in let final void #t126 = self::Extension1|set#nullable1(#t122{self::Class1}, #t123) in #t123; - let final self::Class1? #t127 = n1 in #t127 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t127{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t128 = n1 in #t128 == null ?{self::Class1?} null : let final self::Class1? #t129 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t130 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t128{self::Class1}), #t129) in #t129; - let final self::Class1? #t131 = n1 in #t131 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t131{self::Class1}), let final self::Class1 #t132 = new self::Class1::•() in let final void #t133 = self::Extension1|set#nullable1(new self::Class1::•(), #t132) in #t132); - nullable1 = let final self::Class1? #t134 = n1 in #t134 == null ?{self::Class1?} null : let final self::Class1 #t135 = let final self::Class1 #t136 = new self::Class1::•() in let final void #t137 = self::Extension1|set#nullable1(new self::Class1::•(), #t136) in #t136 in let final void #t138 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t134{self::Class1}), #t135) in #t135; - let final self::Class1? #t139 = n1 in #t139 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t139{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t140 = n1 in #t140 == null ?{self::Class1?} null : let final self::Class1 #t141 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t142 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t140{self::Class1}), #t141) in #t141; - let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1}))); - let final self::Class1? #t144 = n1 in #t144 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t144{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t145 = n1 in #t145 == null ?{self::Class1?} null : let final self::Class1 #t146 = new self::Class1::•() in let final void #t147 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t145{self::Class1})), #t146) in #t146; - let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t148{self::Class1}))); - let final self::Class1? #t149 = n1 in #t149 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t149{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t150 = n1 in #t150 == null ?{self::Class1?} null : let final self::Class1? #t151 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t152 = self::Extension1|set#nullable1(#t150{self::Class1}, #t151) in #t151; - let final self::Class1? #t153 = n1 in #t153 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t153{self::Class1}, let final self::Class1 #t154 = new self::Class1::•() in let final void #t155 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t154) in #t154); - nullable1 = let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class1?} null : let final self::Class1 #t157 = let final self::Class1 #t158 = new self::Class1::•() in let final void #t159 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t158) in #t158 in let final void #t160 = self::Extension1|set#nullable1(#t156{self::Class1}, #t157) in #t157; - let final self::Class1? #t161 = n1 in #t161 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t161{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t162 = n1 in #t162 == null ?{self::Class1?} null : let final self::Class1 #t163 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t164 = self::Extension1|set#nullable1(#t162{self::Class1}, #t163) in #t163; - let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); - let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t166{self::Class1})), new self::Class1::•()); - let final self::Class1? #t167 = n1 in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t167{self::Class1}))); - let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : let final self::Class1? #t169 = self::Extension1|nonNullable1Method(#t168{self::Class1}) in #t169 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t169{self::Class1}); + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t22{self::Class1}))); + nullable1 = let final self::Class1? #t23 = n1 in #t23 == null ?{self::Class1?} null : let final self::Class1 #t24 = new self::Class1::•() in let final void #t25 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t23{self::Class1}), #t24) in #t24; + nullable1 = let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : let final self::Class1? #t27 = self::Extension1|get#nullable1(#t26{self::Class1}) in #t27 == null ?{self::Class1?} null : let final self::Class1 #t28 = new self::Class1::•() in let final void #t29 = self::Extension1|set#nullable1(#t27{self::Class1}, #t28) in #t28; + nullable1 = let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : let final self::Class1? #t31 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t30{self::Class1})) in #t31 == null ?{self::Class1?} null : let final self::Class1 #t32 = new self::Class1::•() in let final void #t33 = self::Extension1|set#nullable1(#t31{self::Class1}, #t32) in #t32; + let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : let final self::Class1? #t35 = self::Extension1|get#nullable1(#t34{self::Class1}) in #t35 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t35{self::Class1}); + let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t36{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : let final self::Class1? #t38 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t39 = self::Extension1|set#nullable1(#t37{self::Class1}, #t38) in #t38; + let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t40{self::Class1}, let final self::Class1 #t41 = new self::Class1::•() in let final void #t42 = self::Extension1|set#nullable1(new self::Class1::•(), #t41) in #t41); + nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : let final self::Class1 #t44 = let final self::Class1 #t45 = new self::Class1::•() in let final void #t46 = self::Extension1|set#nullable1(new self::Class1::•(), #t45) in #t45 in let final void #t47 = self::Extension1|set#nullable1(#t43{self::Class1}, #t44) in #t44; + let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t48{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : let final self::Class1 #t50 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t51 = self::Extension1|set#nullable1(#t49{self::Class1}, #t50) in #t50; + let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t52{self::Class1})); + let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t53{self::Class1}), new self::Class1::•()); + let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t54{self::Class1})); + let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t55{self::Class1}))); + let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t56{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : let final self::Class1 #t58 = new self::Class1::•() in let final void #t59 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1})), #t58) in #t58; + let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : let final self::Class1? #t61 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t60{self::Class1})) in #t61 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t61{self::Class1}); + let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t62{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : let final self::Class1? #t64 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t65 = self::Extension1|set#nullable1(#t63{self::Class1}, #t64) in #t64; + let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t66{self::Class1}, let final self::Class1 #t67 = new self::Class1::•() in let final void #t68 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t67) in #t67); + nullable1 = let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : let final self::Class1 #t70 = let final self::Class1 #t71 = new self::Class1::•() in let final void #t72 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t71) in #t71 in let final void #t73 = self::Extension1|set#nullable1(#t69{self::Class1}, #t70) in #t70; + let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t74{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : let final self::Class1 #t76 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t77 = self::Extension1|set#nullable1(#t75{self::Class1}, #t76) in #t76; + let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t78{self::Class1}))); + let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t79{self::Class1})), new self::Class1::•()); + let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); + let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t81{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : let final self::Class1? #t83 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t84 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t82{self::Class1}), #t83) in #t83; + let final self::Class1? #t85 = n1 in #t85 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t85{self::Class1}), let final self::Class1 #t86 = new self::Class1::•() in let final void #t87 = self::Extension1|set#nullable1(new self::Class1::•(), #t86) in #t86); + nullable1 = let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : let final self::Class1 #t89 = let final self::Class1 #t90 = new self::Class1::•() in let final void #t91 = self::Extension1|set#nullable1(new self::Class1::•(), #t90) in #t90 in let final void #t92 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t88{self::Class1}), #t89) in #t89; + let final self::Class1? #t93 = n1 in #t93 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t93{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t94 = n1 in #t94 == null ?{self::Class1?} null : let final self::Class1 #t95 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t96 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t94{self::Class1}), #t95) in #t95; + let final self::Class1? #t97 = n1 in #t97 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t97{self::Class1}, let final self::Class1? #t98 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t99 = self::Extension1|set#nullable1(new self::Class1::•(), #t98) in #t98); + nullable1 = let final self::Class1? #t100 = n1 in #t100 == null ?{self::Class1?} null : let final self::Class1? #t101 = let final self::Class1? #t102 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t103 = self::Extension1|set#nullable1(new self::Class1::•(), #t102) in #t102 in let final void #t104 = self::Extension1|set#nullable1(#t100{self::Class1}, #t101) in #t101; + let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t105{self::Class1}, let final self::Class1 #t106 = let final self::Class1 #t107 = new self::Class1::•() in let final void #t108 = self::Extension1|set#nullable1(new self::Class1::•(), #t107) in #t107 in let final void #t109 = self::Extension1|set#nullable1(new self::Class1::•(), #t106) in #t106); + nullable1 = let final self::Class1? #t110 = n1 in #t110 == null ?{self::Class1?} null : let final self::Class1 #t111 = let final self::Class1 #t112 = let final self::Class1 #t113 = new self::Class1::•() in let final void #t114 = self::Extension1|set#nullable1(new self::Class1::•(), #t113) in #t113 in let final void #t115 = self::Extension1|set#nullable1(new self::Class1::•(), #t112) in #t112 in let final void #t116 = self::Extension1|set#nullable1(#t110{self::Class1}, #t111) in #t111; + let final self::Class1? #t117 = n1 in #t117 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t117{self::Class1}, let final self::Class1 #t118 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t119 = self::Extension1|set#nullable1(new self::Class1::•(), #t118) in #t118); + nullable1 = let final self::Class1? #t120 = n1 in #t120 == null ?{self::Class1?} null : let final self::Class1 #t121 = let final self::Class1 #t122 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t123 = self::Extension1|set#nullable1(new self::Class1::•(), #t122) in #t122 in let final void #t124 = self::Extension1|set#nullable1(#t120{self::Class1}, #t121) in #t121; + let final self::Class1? #t125 = n1 in #t125 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t125{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t126 = n1 in #t126 == null ?{self::Class1?} null : let final self::Class1? #t127 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t128 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t126{self::Class1}), #t127) in #t127; + let final self::Class1? #t129 = n1 in #t129 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t129{self::Class1}), let final self::Class1 #t130 = new self::Class1::•() in let final void #t131 = self::Extension1|set#nullable1(new self::Class1::•(), #t130) in #t130); + nullable1 = let final self::Class1? #t132 = n1 in #t132 == null ?{self::Class1?} null : let final self::Class1 #t133 = let final self::Class1 #t134 = new self::Class1::•() in let final void #t135 = self::Extension1|set#nullable1(new self::Class1::•(), #t134) in #t134 in let final void #t136 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t132{self::Class1}), #t133) in #t133; + let final self::Class1? #t137 = n1 in #t137 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t137{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t138 = n1 in #t138 == null ?{self::Class1?} null : let final self::Class1 #t139 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t140 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t138{self::Class1}), #t139) in #t139; + let final self::Class1? #t141 = n1 in #t141 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t141{self::Class1}))); + let final self::Class1? #t142 = n1 in #t142 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t142{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : let final self::Class1 #t144 = new self::Class1::•() in let final void #t145 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1})), #t144) in #t144; + let final self::Class1? #t146 = n1 in #t146 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t146{self::Class1}))); + let final self::Class1? #t147 = n1 in #t147 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t147{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : let final self::Class1? #t149 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t150 = self::Extension1|set#nullable1(#t148{self::Class1}, #t149) in #t149; + let final self::Class1? #t151 = n1 in #t151 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t151{self::Class1}, let final self::Class1 #t152 = new self::Class1::•() in let final void #t153 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t152) in #t152); + nullable1 = let final self::Class1? #t154 = n1 in #t154 == null ?{self::Class1?} null : let final self::Class1 #t155 = let final self::Class1 #t156 = new self::Class1::•() in let final void #t157 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t156) in #t156 in let final void #t158 = self::Extension1|set#nullable1(#t154{self::Class1}, #t155) in #t155; + let final self::Class1? #t159 = n1 in #t159 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t159{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t160 = n1 in #t160 == null ?{self::Class1?} null : let final self::Class1 #t161 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t162 = self::Extension1|set#nullable1(#t160{self::Class1}, #t161) in #t161; + let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t163{self::Class1}))); + let final self::Class1? #t164 = n1 in #t164 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t164{self::Class1})), new self::Class1::•()); + let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); + let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : let final self::Class1? #t167 = self::Extension1|nonNullable1Method(#t166{self::Class1}) in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t167{self::Class1}); } static method indexAccess(self::Class1? n1, self::Class2? n2, self::Class3? n3) → void { self::Class1? nullable1 = n1; self::Class2? nullable2 = n2; self::Class3? nullable3 = n3; - let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : self::Extension1|[](#t170{self::Class1}, nullable1); - let final self::Class1? #t171 = n1 in #t171 == null ?{void} null : self::Extension1|[]=(#t171{self::Class1}, nullable1, new self::Class1::•()); - let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : let final self::Class1? #t173 = self::Extension1|[](#t172{self::Class1}, nullable1) in #t173 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t173{self::Class1}); - let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t174{self::Class1}), nullable1); - let final self::Class1? #t175 = n1 in #t175 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t175{self::Class1}), nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t176 = n1 in #t176 == null ?{self::Class1?} null : let final self::Class1 #t177 = self::Extension1|get#nonNullable1(#t176{self::Class1}) in let final self::Class1? #t178 = nullable1 in let final self::Class1 #t179 = new self::Class1::•() in let final void #t180 = self::Extension1|[]=(#t177, #t178, #t179) in #t179; - let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class1?} null : let final self::Class1? #t182 = self::Extension1|[](self::Extension1|get#nonNullable1(#t181{self::Class1}), nullable1) in #t182 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t182{self::Class1}); - let final self::Class1? #t183 = n1 in #t183 == null ?{self::Class2?} null : let final self::Class2 #t184 = self::Extension1|get#nonNullable2(#t183{self::Class1}) in let final self::Class2? #t185 = nullable2 in self::Extension2|[]=(#t184, #t185, self::Extension2|+(self::Extension2|[](#t184, #t185), 0)); - nullable2 = let final self::Class1? #t186 = n1 in #t186 == null ?{self::Class2?} null : let final self::Class2 #t187 = self::Extension1|get#nonNullable2(#t186{self::Class1}) in let final self::Class2? #t188 = nullable2 in let final self::Class2 #t189 = self::Extension2|+(self::Extension2|[](#t187, #t188), 0) in let final void #t190 = self::Extension2|[]=(#t187, #t188, #t189) in #t189; - let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in self::Extension1|[](#t191{self::Class1}, #t192) == null ?{self::Class1?} self::Extension1|[]=(#t191{self::Class1}, #t192, nullable1) : null; - nullable1 = let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = nullable1 in let final self::Class1? #t195 = self::Extension1|[](#t193{self::Class1}, #t194) in #t195 == null ?{self::Class1?} let final self::Class1? #t196 = nullable1 in let final void #t197 = self::Extension1|[]=(#t193{self::Class1}, #t194, #t196) in #t196 : #t195{self::Class1}; - let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in self::Extension2|[]=(#t198{self::Class2}, #t199, self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0)); - nullable2 = let final self::Class2? #t200 = n2 in #t200 == null ?{self::Class2?} null : let final self::Class2? #t201 = nullable2 in let final self::Class2 #t202 = self::Extension2|+(self::Extension2|[](#t200{self::Class2}, #t201), 0) in let final void #t203 = self::Extension2|[]=(#t200{self::Class2}, #t201, #t202) in #t202; - let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in self::Extension2|[]=(#t204{self::Class2}, #t205, self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0)); - nullable2 = let final self::Class2? #t206 = n2 in #t206 == null ?{self::Class2?} null : let final self::Class2? #t207 = nullable2 in let final self::Class2 #t208 = self::Extension2|+(self::Extension2|[](#t206{self::Class2}, #t207), 0) in let final void #t209 = self::Extension2|[]=(#t206{self::Class2}, #t207, #t208) in #t208; - let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(self::Extension2|[](#t210{self::Class2}, #t211), 1)); - nullable2 = let final self::Class2? #t212 = n2 in #t212 == null ?{self::Class2?} null : let final self::Class2? #t213 = nullable2 in let final self::Class2 #t214 = self::Extension2|[](#t212{self::Class2}, #t213) in let final void #t215 = self::Extension2|[]=(#t212{self::Class2}, #t213, self::Extension2|+(#t214, 1)) in #t214; - let final self::Class2? #t216 = n2 in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = nullable2 in let final self::Class2 #t218 = self::Extension2|+(self::Extension2|[](#t216{self::Class2}, #t217), 1) in let final void #t219 = self::Extension2|[]=(#t216{self::Class2}, #t217, #t218) in #t218; - nullable2 = let final self::Class2? #t220 = n2 in #t220 == null ?{self::Class2?} null : let final self::Class2? #t221 = nullable2 in let final self::Class2 #t222 = self::Extension2|+(self::Extension2|[](#t220{self::Class2}, #t221), 1) in let final void #t223 = self::Extension2|[]=(#t220{self::Class2}, #t221, #t222) in #t222; - let final self::Class1? #t224 = n1 in #t224 == null ?{self::Class2?} null : let final self::Class2 #t225 = self::Extension1|get#nonNullable2(#t224{self::Class1}) in let final self::Class2? #t226 = nullable2 in self::Extension2|[]=(#t225, #t226, self::Extension2|+(self::Extension2|[](#t225, #t226), 1)); - nullable2 = let final self::Class1? #t227 = n1 in #t227 == null ?{self::Class2?} null : let final self::Class2 #t228 = self::Extension1|get#nonNullable2(#t227{self::Class1}) in let final self::Class2? #t229 = nullable2 in let final self::Class2 #t230 = self::Extension2|[](#t228, #t229) in let final void #t231 = self::Extension2|[]=(#t228, #t229, self::Extension2|+(#t230, 1)) in #t230; - let final self::Class1? #t232 = n1 in #t232 == null ?{self::Class2?} null : let final self::Class2 #t233 = self::Extension1|get#nonNullable2(#t232{self::Class1}) in let final self::Class2? #t234 = nullable2 in let final self::Class2 #t235 = self::Extension2|+(self::Extension2|[](#t233, #t234), 1) in let final void #t236 = self::Extension2|[]=(#t233, #t234, #t235) in #t235; - nullable2 = let final self::Class1? #t237 = n1 in #t237 == null ?{self::Class2?} null : let final self::Class2 #t238 = self::Extension1|get#nonNullable2(#t237{self::Class1}) in let final self::Class2? #t239 = nullable2 in let final self::Class2 #t240 = self::Extension2|+(self::Extension2|[](#t238, #t239), 1) in let final void #t241 = self::Extension2|[]=(#t238, #t239, #t240) in #t240; - let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2), nullable2); - let final self::Class1? #t243 = n1 in #t243 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t243{self::Class1}), nullable2), nullable2, new self::Class2::•()); - nullable2 = let final self::Class1? #t244 = n1 in #t244 == null ?{self::Class2?} null : let final self::Class2 #t245 = self::Extension2|[](self::Extension1|get#nonNullable2(#t244{self::Class1}), nullable2) in let final self::Class2? #t246 = nullable2 in let final self::Class2 #t247 = new self::Class2::•() in let final void #t248 = self::Extension2|[]=(#t245, #t246, #t247) in #t247; - let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2? #t250 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2), nullable2) in #t250 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t250{self::Class2}); - let final self::Class1? #t251 = n1 in #t251 == null ?{self::Class2?} null : let final self::Class2 #t252 = self::Extension2|[](self::Extension1|get#nonNullable2(#t251{self::Class1}), nullable2) in let final self::Class2? #t253 = nullable2 in self::Extension2|[]=(#t252, #t253, self::Extension2|+(self::Extension2|[](#t252, #t253), 0)); - nullable2 = let final self::Class1? #t254 = n1 in #t254 == null ?{self::Class2?} null : let final self::Class2 #t255 = self::Extension2|[](self::Extension1|get#nonNullable2(#t254{self::Class1}), nullable2) in let final self::Class2? #t256 = nullable2 in let final self::Class2 #t257 = self::Extension2|+(self::Extension2|[](#t255, #t256), 0) in let final void #t258 = self::Extension2|[]=(#t255, #t256, #t257) in #t257; - let final self::Class1? #t259 = n1 in #t259 == null ?{self::Class2?} null : let final self::Class2 #t260 = self::Extension2|[](self::Extension1|get#nonNullable2(#t259{self::Class1}), nullable2) in let final self::Class2? #t261 = nullable2 in self::Extension2|[]=(#t260, #t261, self::Extension2|+(self::Extension2|[](#t260, #t261), 1)); - nullable2 = let final self::Class1? #t262 = n1 in #t262 == null ?{self::Class2?} null : let final self::Class2 #t263 = self::Extension2|[](self::Extension1|get#nonNullable2(#t262{self::Class1}), nullable2) in let final self::Class2? #t264 = nullable2 in let final self::Class2 #t265 = self::Extension2|[](#t263, #t264) in let final void #t266 = self::Extension2|[]=(#t263, #t264, self::Extension2|+(#t265, 1)) in #t265; - let final self::Class1? #t267 = n1 in #t267 == null ?{self::Class2?} null : let final self::Class2 #t268 = self::Extension2|[](self::Extension1|get#nonNullable2(#t267{self::Class1}), nullable2) in let final self::Class2? #t269 = nullable2 in let final self::Class2 #t270 = self::Extension2|+(self::Extension2|[](#t268, #t269), 1) in let final void #t271 = self::Extension2|[]=(#t268, #t269, #t270) in #t270; - nullable2 = let final self::Class1? #t272 = n1 in #t272 == null ?{self::Class2?} null : let final self::Class2 #t273 = self::Extension2|[](self::Extension1|get#nonNullable2(#t272{self::Class1}), nullable2) in let final self::Class2? #t274 = nullable2 in let final self::Class2 #t275 = self::Extension2|+(self::Extension2|[](#t273, #t274), 1) in let final void #t276 = self::Extension2|[]=(#t273, #t274, #t275) in #t275; - let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[](#t278{self::Class1}, nullable1); - let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : self::Extension1|[]=(#t280{self::Class1}, nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t281 = n1 in #t281 == null ?{self::Class1?} null : let final self::Class1? #t282 = self::Extension1|[](#t281{self::Class1}, nullable1) in #t282 == null ?{self::Class1?} null : let final self::Class1? #t283 = nullable1 in let final self::Class1 #t284 = new self::Class1::•() in let final void #t285 = self::Extension1|[]=(#t282{self::Class1}, #t283, #t284) in #t284; - let final self::Class1? #t286 = n1 in #t286 == null ?{self::Class1?} null : let final self::Class1? #t287 = self::Extension1|[](#t286{self::Class1}, nullable1) in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t288{self::Class1}); - nullable1 = let final self::Class1? #t289 = n1 in #t289 == null ?{self::Class1?} null : let final self::Class1? #t290 = self::Extension1|[](#t289{self::Class1}, nullable1) in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t291{self::Class1}); - let final self::Class1? #t292 = n1 in #t292 == null ?{self::Class1?} null : let final self::Class1? #t293 = self::Extension1|[](#t292{self::Class1}, nullable1) in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = nullable1 in self::Extension1|[](#t293{self::Class1}, #t294) == null ?{self::Class1?} self::Extension1|[]=(#t293{self::Class1}, #t294, nullable1) : null; - nullable1 = let final self::Class1? #t295 = n1 in #t295 == null ?{self::Class1?} null : let final self::Class1? #t296 = self::Extension1|[](#t295{self::Class1}, nullable1) in #t296 == null ?{self::Class1?} null : let final self::Class1? #t297 = nullable1 in let final self::Class1? #t298 = self::Extension1|[](#t296{self::Class1}, #t297) in #t298 == null ?{self::Class1?} let final self::Class1? #t299 = nullable1 in let final void #t300 = self::Extension1|[]=(#t296{self::Class1}, #t297, #t299) in #t299 : #t298{self::Class1}; - let final self::Class3? #t301 = n3 in #t301 == null ?{self::Class2?} null : let final self::Class2? #t302 = self::Extension3|[](#t301{self::Class3}, nullable3) in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = nullable2 in self::Extension2|[]=(#t302{self::Class2}, #t303, self::Extension2|+(self::Extension2|[](#t302{self::Class2}, #t303), 0)); - nullable2 = let final self::Class3? #t304 = n3 in #t304 == null ?{self::Class2?} null : let final self::Class2? #t305 = self::Extension3|[](#t304{self::Class3}, nullable3) in #t305 == null ?{self::Class2?} null : let final self::Class2? #t306 = nullable2 in let final self::Class2 #t307 = self::Extension2|+(self::Extension2|[](#t305{self::Class2}, #t306), 0) in let final void #t308 = self::Extension2|[]=(#t305{self::Class2}, #t306, #t307) in #t307; - let final self::Class3? #t309 = n3 in #t309 == null ?{self::Class2?} null : let final self::Class2? #t310 = self::Extension3|[](#t309{self::Class3}, nullable3) in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = nullable2 in self::Extension2|[]=(#t310{self::Class2}, #t311, self::Extension2|+(self::Extension2|[](#t310{self::Class2}, #t311), 1)); - nullable2 = let final self::Class3? #t312 = n3 in #t312 == null ?{self::Class2?} null : let final self::Class2? #t313 = self::Extension3|[](#t312{self::Class3}, nullable3) in #t313 == null ?{self::Class2?} null : let final self::Class2? #t314 = nullable2 in let final self::Class2 #t315 = self::Extension2|[](#t313{self::Class2}, #t314) in let final void #t316 = self::Extension2|[]=(#t313{self::Class2}, #t314, self::Extension2|+(#t315, 1)) in #t315; - let final self::Class3? #t317 = n3 in #t317 == null ?{self::Class2?} null : let final self::Class2? #t318 = self::Extension3|[](#t317{self::Class3}, nullable3) in #t318 == null ?{self::Class2?} null : let final self::Class2? #t319 = nullable2 in let final self::Class2 #t320 = self::Extension2|+(self::Extension2|[](#t318{self::Class2}, #t319), 1) in let final void #t321 = self::Extension2|[]=(#t318{self::Class2}, #t319, #t320) in #t320; - nullable2 = let final self::Class3? #t322 = n3 in #t322 == null ?{self::Class2?} null : let final self::Class2? #t323 = self::Extension3|[](#t322{self::Class3}, nullable3) in #t323 == null ?{self::Class2?} null : let final self::Class2? #t324 = nullable2 in let final self::Class2 #t325 = self::Extension2|+(self::Extension2|[](#t323{self::Class2}, #t324), 1) in let final void #t326 = self::Extension2|[]=(#t323{self::Class2}, #t324, #t325) in #t325; + let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : self::Extension1|[](#t168{self::Class1}, nullable1); + let final self::Class1? #t169 = n1 in #t169 == null ?{void} null : self::Extension1|[]=(#t169{self::Class1}, nullable1, new self::Class1::•()); + let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : let final self::Class1? #t171 = self::Extension1|[](#t170{self::Class1}, nullable1) in #t171 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t171{self::Class1}); + let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t172{self::Class1}), nullable1); + let final self::Class1? #t173 = n1 in #t173 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t173{self::Class1}), nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : let final self::Class1 #t175 = self::Extension1|get#nonNullable1(#t174{self::Class1}) in let final self::Class1? #t176 = nullable1 in let final self::Class1 #t177 = new self::Class1::•() in let final void #t178 = self::Extension1|[]=(#t175, #t176, #t177) in #t177; + let final self::Class1? #t179 = n1 in #t179 == null ?{self::Class1?} null : let final self::Class1? #t180 = self::Extension1|[](self::Extension1|get#nonNullable1(#t179{self::Class1}), nullable1) in #t180 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t180{self::Class1}); + let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class2?} null : let final self::Class2 #t182 = self::Extension1|get#nonNullable2(#t181{self::Class1}) in let final self::Class2? #t183 = nullable2 in self::Extension2|[]=(#t182, #t183, self::Extension2|+(self::Extension2|[](#t182, #t183), 0)); + nullable2 = let final self::Class1? #t184 = n1 in #t184 == null ?{self::Class2?} null : let final self::Class2 #t185 = self::Extension1|get#nonNullable2(#t184{self::Class1}) in let final self::Class2? #t186 = nullable2 in let final self::Class2 #t187 = self::Extension2|+(self::Extension2|[](#t185, #t186), 0) in let final void #t188 = self::Extension2|[]=(#t185, #t186, #t187) in #t187; + let final self::Class1? #t189 = n1 in #t189 == null ?{self::Class1?} null : let final self::Class1? #t190 = nullable1 in self::Extension1|[](#t189{self::Class1}, #t190) == null ?{self::Class1?} self::Extension1|[]=(#t189{self::Class1}, #t190, nullable1) : null; + nullable1 = let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in let final self::Class1? #t193 = self::Extension1|[](#t191{self::Class1}, #t192) in #t193 == null ?{self::Class1?} let final self::Class1? #t194 = nullable1 in let final void #t195 = self::Extension1|[]=(#t191{self::Class1}, #t192, #t194) in #t194 : #t193{self::Class1}; + let final self::Class2? #t196 = n2 in #t196 == null ?{self::Class2?} null : let final self::Class2? #t197 = nullable2 in self::Extension2|[]=(#t196{self::Class2}, #t197, self::Extension2|+(self::Extension2|[](#t196{self::Class2}, #t197), 0)); + nullable2 = let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in let final self::Class2 #t200 = self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0) in let final void #t201 = self::Extension2|[]=(#t198{self::Class2}, #t199, #t200) in #t200; + let final self::Class2? #t202 = n2 in #t202 == null ?{self::Class2?} null : let final self::Class2? #t203 = nullable2 in self::Extension2|[]=(#t202{self::Class2}, #t203, self::Extension2|+(self::Extension2|[](#t202{self::Class2}, #t203), 0)); + nullable2 = let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in let final self::Class2 #t206 = self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0) in let final void #t207 = self::Extension2|[]=(#t204{self::Class2}, #t205, #t206) in #t206; + let final self::Class2? #t208 = n2 in #t208 == null ?{self::Class2?} null : let final self::Class2? #t209 = nullable2 in self::Extension2|[]=(#t208{self::Class2}, #t209, self::Extension2|+(self::Extension2|[](#t208{self::Class2}, #t209), 1)); + nullable2 = let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in let final self::Class2 #t212 = self::Extension2|[](#t210{self::Class2}, #t211) in let final void #t213 = self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(#t212, 1)) in #t212; + let final self::Class2? #t214 = n2 in #t214 == null ?{self::Class2?} null : let final self::Class2? #t215 = nullable2 in let final self::Class2 #t216 = self::Extension2|+(self::Extension2|[](#t214{self::Class2}, #t215), 1) in let final void #t217 = self::Extension2|[]=(#t214{self::Class2}, #t215, #t216) in #t216; + nullable2 = let final self::Class2? #t218 = n2 in #t218 == null ?{self::Class2?} null : let final self::Class2? #t219 = nullable2 in let final self::Class2 #t220 = self::Extension2|+(self::Extension2|[](#t218{self::Class2}, #t219), 1) in let final void #t221 = self::Extension2|[]=(#t218{self::Class2}, #t219, #t220) in #t220; + let final self::Class1? #t222 = n1 in #t222 == null ?{self::Class2?} null : let final self::Class2 #t223 = self::Extension1|get#nonNullable2(#t222{self::Class1}) in let final self::Class2? #t224 = nullable2 in self::Extension2|[]=(#t223, #t224, self::Extension2|+(self::Extension2|[](#t223, #t224), 1)); + nullable2 = let final self::Class1? #t225 = n1 in #t225 == null ?{self::Class2?} null : let final self::Class2 #t226 = self::Extension1|get#nonNullable2(#t225{self::Class1}) in let final self::Class2? #t227 = nullable2 in let final self::Class2 #t228 = self::Extension2|[](#t226, #t227) in let final void #t229 = self::Extension2|[]=(#t226, #t227, self::Extension2|+(#t228, 1)) in #t228; + let final self::Class1? #t230 = n1 in #t230 == null ?{self::Class2?} null : let final self::Class2 #t231 = self::Extension1|get#nonNullable2(#t230{self::Class1}) in let final self::Class2? #t232 = nullable2 in let final self::Class2 #t233 = self::Extension2|+(self::Extension2|[](#t231, #t232), 1) in let final void #t234 = self::Extension2|[]=(#t231, #t232, #t233) in #t233; + nullable2 = let final self::Class1? #t235 = n1 in #t235 == null ?{self::Class2?} null : let final self::Class2 #t236 = self::Extension1|get#nonNullable2(#t235{self::Class1}) in let final self::Class2? #t237 = nullable2 in let final self::Class2 #t238 = self::Extension2|+(self::Extension2|[](#t236, #t237), 1) in let final void #t239 = self::Extension2|[]=(#t236, #t237, #t238) in #t238; + let final self::Class1? #t240 = n1 in #t240 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t240{self::Class1}), nullable2), nullable2); + let final self::Class1? #t241 = n1 in #t241 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t241{self::Class1}), nullable2), nullable2, new self::Class2::•()); + nullable2 = let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : let final self::Class2 #t243 = self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2) in let final self::Class2? #t244 = nullable2 in let final self::Class2 #t245 = new self::Class2::•() in let final void #t246 = self::Extension2|[]=(#t243, #t244, #t245) in #t245; + let final self::Class1? #t247 = n1 in #t247 == null ?{self::Class2?} null : let final self::Class2? #t248 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t247{self::Class1}), nullable2), nullable2) in #t248 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t248{self::Class2}); + let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2 #t250 = self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2) in let final self::Class2? #t251 = nullable2 in self::Extension2|[]=(#t250, #t251, self::Extension2|+(self::Extension2|[](#t250, #t251), 0)); + nullable2 = let final self::Class1? #t252 = n1 in #t252 == null ?{self::Class2?} null : let final self::Class2 #t253 = self::Extension2|[](self::Extension1|get#nonNullable2(#t252{self::Class1}), nullable2) in let final self::Class2? #t254 = nullable2 in let final self::Class2 #t255 = self::Extension2|+(self::Extension2|[](#t253, #t254), 0) in let final void #t256 = self::Extension2|[]=(#t253, #t254, #t255) in #t255; + let final self::Class1? #t257 = n1 in #t257 == null ?{self::Class2?} null : let final self::Class2 #t258 = self::Extension2|[](self::Extension1|get#nonNullable2(#t257{self::Class1}), nullable2) in let final self::Class2? #t259 = nullable2 in self::Extension2|[]=(#t258, #t259, self::Extension2|+(self::Extension2|[](#t258, #t259), 1)); + nullable2 = let final self::Class1? #t260 = n1 in #t260 == null ?{self::Class2?} null : let final self::Class2 #t261 = self::Extension2|[](self::Extension1|get#nonNullable2(#t260{self::Class1}), nullable2) in let final self::Class2? #t262 = nullable2 in let final self::Class2 #t263 = self::Extension2|[](#t261, #t262) in let final void #t264 = self::Extension2|[]=(#t261, #t262, self::Extension2|+(#t263, 1)) in #t263; + let final self::Class1? #t265 = n1 in #t265 == null ?{self::Class2?} null : let final self::Class2 #t266 = self::Extension2|[](self::Extension1|get#nonNullable2(#t265{self::Class1}), nullable2) in let final self::Class2? #t267 = nullable2 in let final self::Class2 #t268 = self::Extension2|+(self::Extension2|[](#t266, #t267), 1) in let final void #t269 = self::Extension2|[]=(#t266, #t267, #t268) in #t268; + nullable2 = let final self::Class1? #t270 = n1 in #t270 == null ?{self::Class2?} null : let final self::Class2 #t271 = self::Extension2|[](self::Extension1|get#nonNullable2(#t270{self::Class1}), nullable2) in let final self::Class2? #t272 = nullable2 in let final self::Class2 #t273 = self::Extension2|+(self::Extension2|[](#t271, #t272), 1) in let final void #t274 = self::Extension2|[]=(#t271, #t272, #t273) in #t273; + let final self::Class1? #t275 = n1 in #t275 == null ?{self::Class1?} null : let final self::Class1? #t276 = self::Extension1|[](#t275{self::Class1}, nullable1) in #t276 == null ?{self::Class1?} null : self::Extension1|[](#t276{self::Class1}, nullable1); + let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[]=(#t278{self::Class1}, nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : let final self::Class1? #t281 = nullable1 in let final self::Class1 #t282 = new self::Class1::•() in let final void #t283 = self::Extension1|[]=(#t280{self::Class1}, #t281, #t282) in #t282; + let final self::Class1? #t284 = n1 in #t284 == null ?{self::Class1?} null : let final self::Class1? #t285 = self::Extension1|[](#t284{self::Class1}, nullable1) in #t285 == null ?{self::Class1?} null : let final self::Class1? #t286 = self::Extension1|[](#t285{self::Class1}, nullable1) in #t286 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t286{self::Class1}); + nullable1 = let final self::Class1? #t287 = n1 in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : let final self::Class1? #t289 = self::Extension1|[](#t288{self::Class1}, nullable1) in #t289 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t289{self::Class1}); + let final self::Class1? #t290 = n1 in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : let final self::Class1? #t292 = nullable1 in self::Extension1|[](#t291{self::Class1}, #t292) == null ?{self::Class1?} self::Extension1|[]=(#t291{self::Class1}, #t292, nullable1) : null; + nullable1 = let final self::Class1? #t293 = n1 in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = self::Extension1|[](#t293{self::Class1}, nullable1) in #t294 == null ?{self::Class1?} null : let final self::Class1? #t295 = nullable1 in let final self::Class1? #t296 = self::Extension1|[](#t294{self::Class1}, #t295) in #t296 == null ?{self::Class1?} let final self::Class1? #t297 = nullable1 in let final void #t298 = self::Extension1|[]=(#t294{self::Class1}, #t295, #t297) in #t297 : #t296{self::Class1}; + let final self::Class3? #t299 = n3 in #t299 == null ?{self::Class2?} null : let final self::Class2? #t300 = self::Extension3|[](#t299{self::Class3}, nullable3) in #t300 == null ?{self::Class2?} null : let final self::Class2? #t301 = nullable2 in self::Extension2|[]=(#t300{self::Class2}, #t301, self::Extension2|+(self::Extension2|[](#t300{self::Class2}, #t301), 0)); + nullable2 = let final self::Class3? #t302 = n3 in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = self::Extension3|[](#t302{self::Class3}, nullable3) in #t303 == null ?{self::Class2?} null : let final self::Class2? #t304 = nullable2 in let final self::Class2 #t305 = self::Extension2|+(self::Extension2|[](#t303{self::Class2}, #t304), 0) in let final void #t306 = self::Extension2|[]=(#t303{self::Class2}, #t304, #t305) in #t305; + let final self::Class3? #t307 = n3 in #t307 == null ?{self::Class2?} null : let final self::Class2? #t308 = self::Extension3|[](#t307{self::Class3}, nullable3) in #t308 == null ?{self::Class2?} null : let final self::Class2? #t309 = nullable2 in self::Extension2|[]=(#t308{self::Class2}, #t309, self::Extension2|+(self::Extension2|[](#t308{self::Class2}, #t309), 1)); + nullable2 = let final self::Class3? #t310 = n3 in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = self::Extension3|[](#t310{self::Class3}, nullable3) in #t311 == null ?{self::Class2?} null : let final self::Class2? #t312 = nullable2 in let final self::Class2 #t313 = self::Extension2|[](#t311{self::Class2}, #t312) in let final void #t314 = self::Extension2|[]=(#t311{self::Class2}, #t312, self::Extension2|+(#t313, 1)) in #t313; + let final self::Class3? #t315 = n3 in #t315 == null ?{self::Class2?} null : let final self::Class2? #t316 = self::Extension3|[](#t315{self::Class3}, nullable3) in #t316 == null ?{self::Class2?} null : let final self::Class2? #t317 = nullable2 in let final self::Class2 #t318 = self::Extension2|+(self::Extension2|[](#t316{self::Class2}, #t317), 1) in let final void #t319 = self::Extension2|[]=(#t316{self::Class2}, #t317, #t318) in #t318; + nullable2 = let final self::Class3? #t320 = n3 in #t320 == null ?{self::Class2?} null : let final self::Class2? #t321 = self::Extension3|[](#t320{self::Class3}, nullable3) in #t321 == null ?{self::Class2?} null : let final self::Class2? #t322 = nullable2 in let final self::Class2 #t323 = self::Extension2|+(self::Extension2|[](#t321{self::Class2}, #t322), 1) in let final void #t324 = self::Extension2|[]=(#t321{self::Class2}, #t322, #t323) in #t323; } static method operatorAccess(self::Class1? n1, self::Class2? n2) → void { self::Class2? nullable2 = n2; - self::throws(() → void => let final Never #t327 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:244:45: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:244:45: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. throws(() => Extension1(n1)?.nonNullable1 + 0); - ^" in self::Extension1|+(let final self::Class1? #t328 = n1 in #t328 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t328{self::Class1}), 0)); - self::throws(() → void => let final Never #t329 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:245:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. + ^" in self::Extension1|+(let final self::Class1? #t325 = n1 in #t325 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t325{self::Class1}), 0)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:245:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. throws(() => -Extension1(n1)?.nonNullable1); - ^" in self::Extension1|unary-(let final self::Class1? #t330 = n1 in #t330 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t330{self::Class1}))); - let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t331{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t331{self::Class2}), 0)); - nullable2 = let final self::Class2? #t332 = n2 in #t332 == null ?{self::Class2?} null : let final self::Class2 #t333 = self::Extension2|+(self::Extension2|get#nonNullable2(#t332{self::Class2}), 0) in let final void #t334 = self::Extension2|set#nonNullable2(#t332{self::Class2}, #t333) in #t333; - let final self::Class2? #t335 = n2 in #t335 == null ?{self::Class2?} null : let final self::Class2 #t336 = self::Extension2|get#nonNullable2(#t335{self::Class2}) in self::Extension2|set#nonNullable2(#t336, self::Extension2|+(self::Extension2|get#nonNullable2(#t336), 0)); - nullable2 = let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : let final self::Class2 #t338 = self::Extension2|get#nonNullable2(#t337{self::Class2}) in let final self::Class2 #t339 = self::Extension2|+(self::Extension2|get#nonNullable2(#t338), 0) in let final void #t340 = self::Extension2|set#nonNullable2(#t338, #t339) in #t339; - let final self::Class2? #t341 = n2 in #t341 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t341{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t341{self::Class2}), 1)); - nullable2 = let final self::Class2? #t342 = n2 in #t342 == null ?{self::Class2?} null : let final self::Class2 #t343 = self::Extension2|get#nonNullable2(#t342{self::Class2}) in let final self::Class2 #t344 = let final self::Class2 #t345 = self::Extension2|+(#t343, 1) in let final void #t346 = self::Extension2|set#nonNullable2(#t342{self::Class2}, #t345) in #t345 in #t343; - let final self::Class2? #t347 = n2 in #t347 == null ?{self::Class2?} null : let final self::Class2 #t348 = self::Extension2|+(self::Extension2|get#nonNullable2(#t347{self::Class2}), 1) in let final void #t349 = self::Extension2|set#nonNullable2(#t347{self::Class2}, #t348) in #t348; - nullable2 = let final self::Class2? #t350 = n2 in #t350 == null ?{self::Class2?} null : let final self::Class2 #t351 = self::Extension2|+(self::Extension2|get#nonNullable2(#t350{self::Class2}), 1) in let final void #t352 = self::Extension2|set#nonNullable2(#t350{self::Class2}, #t351) in #t351; + ^" in self::Extension1|unary-(let final self::Class1? #t326 = n1 in #t326 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t326{self::Class1}))); + let final self::Class2? #t327 = n2 in #t327 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t327{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t327{self::Class2}), 0)); + nullable2 = let final self::Class2? #t328 = n2 in #t328 == null ?{self::Class2?} null : let final self::Class2 #t329 = self::Extension2|+(self::Extension2|get#nonNullable2(#t328{self::Class2}), 0) in let final void #t330 = self::Extension2|set#nonNullable2(#t328{self::Class2}, #t329) in #t329; + let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : let final self::Class2 #t332 = self::Extension2|get#nonNullable2(#t331{self::Class2}) in self::Extension2|set#nonNullable2(#t332, self::Extension2|+(self::Extension2|get#nonNullable2(#t332), 0)); + nullable2 = let final self::Class2? #t333 = n2 in #t333 == null ?{self::Class2?} null : let final self::Class2 #t334 = self::Extension2|get#nonNullable2(#t333{self::Class2}) in let final self::Class2 #t335 = self::Extension2|+(self::Extension2|get#nonNullable2(#t334), 0) in let final void #t336 = self::Extension2|set#nonNullable2(#t334, #t335) in #t335; + let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t337{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t337{self::Class2}), 1)); + nullable2 = let final self::Class2? #t338 = n2 in #t338 == null ?{self::Class2?} null : let final self::Class2 #t339 = self::Extension2|get#nonNullable2(#t338{self::Class2}) in let final self::Class2 #t340 = let final self::Class2 #t341 = self::Extension2|+(#t339, 1) in let final void #t342 = self::Extension2|set#nonNullable2(#t338{self::Class2}, #t341) in #t341 in #t339; + let final self::Class2? #t343 = n2 in #t343 == null ?{self::Class2?} null : let final self::Class2 #t344 = self::Extension2|+(self::Extension2|get#nonNullable2(#t343{self::Class2}), 1) in let final void #t345 = self::Extension2|set#nonNullable2(#t343{self::Class2}, #t344) in #t344; + nullable2 = let final self::Class2? #t346 = n2 in #t346 == null ?{self::Class2?} null : let final self::Class2 #t347 = self::Extension2|+(self::Extension2|get#nonNullable2(#t346{self::Class2}), 1) in let final void #t348 = self::Extension2|set#nonNullable2(#t346{self::Class2}, #t347) in #t347; } static method ifNull(self::Class1? n1) → void { self::Class1? nullable1 = n1; - let final self::Class1? #t353 = n1 in #t353 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t353) == null ?{self::Class1} self::Extension1|set#nullable1(#t353, n1{self::Class1}) : null; - n1 = let final self::Class1? #t354 = n1 in #t354 == null ?{self::Class1?} null : let final self::Class1? #t355 = self::Extension1|get#nullable1(#t354) in #t355 == null ?{self::Class1} let final self::Class1 #t356 = n1{self::Class1} in let final void #t357 = self::Extension1|set#nullable1(#t354, #t356) in #t356 : #t355{self::Class1}; - let final self::Class1? #t358 = n1 in #t358 == null ?{self::Class1?} null : let final self::Class1 #t359 = self::Extension1|get#nonNullable1(#t358{self::Class1}) in self::Extension1|get#nullable1(#t359) == null ?{self::Class1} self::Extension1|set#nullable1(#t359, n1{self::Class1}) : null; - n1 = let final self::Class1? #t360 = n1 in #t360 == null ?{self::Class1?} null : let final self::Class1 #t361 = self::Extension1|get#nonNullable1(#t360{self::Class1}) in let final self::Class1? #t362 = self::Extension1|get#nullable1(#t361) in #t362 == null ?{self::Class1} let final self::Class1 #t363 = n1{self::Class1} in let final void #t364 = self::Extension1|set#nullable1(#t361, #t363) in #t363 : #t362{self::Class1}; - let final self::Class1? #t365 = n1 in #t365 == null ?{self::Class1?} null : let final self::Class1 #t366 = self::Extension1|get#nonNullable1(#t365{self::Class1}) in let final self::Class1 #t367 = n1{self::Class1} in self::Extension1|[](#t366, #t367) == null ?{self::Class1} self::Extension1|[]=(#t366, #t367, n1{self::Class1}) : null; - n1 = let final self::Class1? #t368 = n1 in #t368 == null ?{self::Class1?} null : let final self::Class1 #t369 = self::Extension1|get#nonNullable1(#t368{self::Class1}) in let final self::Class1 #t370 = n1{self::Class1} in let final self::Class1? #t371 = self::Extension1|[](#t369, #t370) in #t371 == null ?{self::Class1} let final self::Class1 #t372 = n1{self::Class1} in let final void #t373 = self::Extension1|[]=(#t369, #t370, #t372) in #t372 : #t371{self::Class1}; + let final self::Class1? #t349 = n1 in #t349 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t349) == null ?{self::Class1} self::Extension1|set#nullable1(#t349, n1{self::Class1}) : null; + n1 = let final self::Class1? #t350 = n1 in #t350 == null ?{self::Class1?} null : let final self::Class1? #t351 = self::Extension1|get#nullable1(#t350) in #t351 == null ?{self::Class1} let final self::Class1 #t352 = n1{self::Class1} in let final void #t353 = self::Extension1|set#nullable1(#t350, #t352) in #t352 : #t351{self::Class1}; + let final self::Class1? #t354 = n1 in #t354 == null ?{self::Class1?} null : let final self::Class1 #t355 = self::Extension1|get#nonNullable1(#t354{self::Class1}) in self::Extension1|get#nullable1(#t355) == null ?{self::Class1} self::Extension1|set#nullable1(#t355, n1{self::Class1}) : null; + n1 = let final self::Class1? #t356 = n1 in #t356 == null ?{self::Class1?} null : let final self::Class1 #t357 = self::Extension1|get#nonNullable1(#t356{self::Class1}) in let final self::Class1? #t358 = self::Extension1|get#nullable1(#t357) in #t358 == null ?{self::Class1} let final self::Class1 #t359 = n1{self::Class1} in let final void #t360 = self::Extension1|set#nullable1(#t357, #t359) in #t359 : #t358{self::Class1}; + let final self::Class1? #t361 = n1 in #t361 == null ?{self::Class1?} null : let final self::Class1 #t362 = self::Extension1|get#nonNullable1(#t361{self::Class1}) in let final self::Class1 #t363 = n1{self::Class1} in self::Extension1|[](#t362, #t363) == null ?{self::Class1} self::Extension1|[]=(#t362, #t363, n1{self::Class1}) : null; + n1 = let final self::Class1? #t364 = n1 in #t364 == null ?{self::Class1?} null : let final self::Class1 #t365 = self::Extension1|get#nonNullable1(#t364{self::Class1}) in let final self::Class1 #t366 = n1{self::Class1} in let final self::Class1? #t367 = self::Extension1|[](#t365, #t366) in #t367 == null ?{self::Class1} let final self::Class1 #t368 = n1{self::Class1} in let final void #t369 = self::Extension1|[]=(#t365, #t366, #t368) in #t368 : #t367{self::Class1}; } static method throws(() → void f) → void { try { diff --git a/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.weak.expect b/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.weak.expect index 25e39a1f6fe..410df6c40e0 100644 --- a/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.weak.expect @@ -139,153 +139,153 @@ static method propertyAccess(self::Class1? n1) → void { let final self::Class1? #t13 = n1 in #t13 == null ?{self::Class1?} null : let final self::Class1? #t14 = self::Extension1|get#nullable1(#t13{self::Class1}) in #t14 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t14{self::Class1}, new self::Class1::•()); let final self::Class1? #t15 = n1 in #t15 == null ?{self::Class1?} null : let final self::Class1? #t16 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t15{self::Class1})) in #t16 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t16{self::Class1}, new self::Class1::•()); let final self::Class1? #t17 = let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t18{self::Class1}) in #t17 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t17{self::Class1}); - self::throws(() → void => let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:93:59: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:93:59: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. Try accessing using ?. instead. throws(() => (Extension1(n1)?.nullable1 = new Class1()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : let final self::Class1 #t21 = new self::Class1::•() in let final void #t22 = self::Extension1|set#nullable1(#t20{self::Class1}, #t21) in #t21)); - self::throws(() → void => let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:94:55: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t19 = n1 in #t19 == null ?{self::Class1?} null : let final self::Class1 #t20 = new self::Class1::•() in let final void #t21 = self::Extension1|set#nullable1(#t19{self::Class1}, #t20) in #t20)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:94:55: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. Try accessing using ?. instead. throws(() => (Extension1(n1)?.nonNullable1Method()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t24{self::Class1}))); - nullable1 = let final self::Class1? #t25 = n1 in #t25 == null ?{self::Class1?} null : let final self::Class1 #t26 = new self::Class1::•() in let final void #t27 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t25{self::Class1}), #t26) in #t26; - nullable1 = let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : let final self::Class1? #t29 = self::Extension1|get#nullable1(#t28{self::Class1}) in #t29 == null ?{self::Class1?} null : let final self::Class1 #t30 = new self::Class1::•() in let final void #t31 = self::Extension1|set#nullable1(#t29{self::Class1}, #t30) in #t30; - nullable1 = let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : let final self::Class1? #t33 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t32{self::Class1})) in #t33 == null ?{self::Class1?} null : let final self::Class1 #t34 = new self::Class1::•() in let final void #t35 = self::Extension1|set#nullable1(#t33{self::Class1}, #t34) in #t34; - let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : let final self::Class1? #t37 = self::Extension1|get#nullable1(#t36{self::Class1}) in #t37 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t37{self::Class1}); - let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t38{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t39 = n1 in #t39 == null ?{self::Class1?} null : let final self::Class1? #t40 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t41 = self::Extension1|set#nullable1(#t39{self::Class1}, #t40) in #t40; - let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t42{self::Class1}, let final self::Class1 #t43 = new self::Class1::•() in let final void #t44 = self::Extension1|set#nullable1(new self::Class1::•(), #t43) in #t43); - nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : let final self::Class1 #t46 = let final self::Class1 #t47 = new self::Class1::•() in let final void #t48 = self::Extension1|set#nullable1(new self::Class1::•(), #t47) in #t47 in let final void #t49 = self::Extension1|set#nullable1(#t45{self::Class1}, #t46) in #t46; - let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t50{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : let final self::Class1 #t52 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t53 = self::Extension1|set#nullable1(#t51{self::Class1}, #t52) in #t52; - let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t54{self::Class1})); - let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t55{self::Class1}), new self::Class1::•()); - let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t56{self::Class1})); - let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1}))); - let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t58{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : let final self::Class1 #t60 = new self::Class1::•() in let final void #t61 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t59{self::Class1})), #t60) in #t60; - let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : let final self::Class1? #t63 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t62{self::Class1})) in #t63 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t63{self::Class1}); - let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t64{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : let final self::Class1? #t66 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t67 = self::Extension1|set#nullable1(#t65{self::Class1}, #t66) in #t66; - let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t68{self::Class1}, let final self::Class1 #t69 = new self::Class1::•() in let final void #t70 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t69) in #t69); - nullable1 = let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : let final self::Class1 #t72 = let final self::Class1 #t73 = new self::Class1::•() in let final void #t74 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t73) in #t73 in let final void #t75 = self::Extension1|set#nullable1(#t71{self::Class1}, #t72) in #t72; - let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t76{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : let final self::Class1 #t78 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t79 = self::Extension1|set#nullable1(#t77{self::Class1}, #t78) in #t78; - let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); - let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t81{self::Class1})), new self::Class1::•()); - let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t82{self::Class1}))); - let final self::Class1? #t83 = n1 in #t83 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t83{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : let final self::Class1? #t85 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t86 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t84{self::Class1}), #t85) in #t85; - let final self::Class1? #t87 = n1 in #t87 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t87{self::Class1}), let final self::Class1 #t88 = new self::Class1::•() in let final void #t89 = self::Extension1|set#nullable1(new self::Class1::•(), #t88) in #t88); - nullable1 = let final self::Class1? #t90 = n1 in #t90 == null ?{self::Class1?} null : let final self::Class1 #t91 = let final self::Class1 #t92 = new self::Class1::•() in let final void #t93 = self::Extension1|set#nullable1(new self::Class1::•(), #t92) in #t92 in let final void #t94 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t90{self::Class1}), #t91) in #t91; - let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t95{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t96 = n1 in #t96 == null ?{self::Class1?} null : let final self::Class1 #t97 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t98 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t96{self::Class1}), #t97) in #t97; - let final self::Class1? #t99 = n1 in #t99 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t99{self::Class1}, let final self::Class1? #t100 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t101 = self::Extension1|set#nullable1(new self::Class1::•(), #t100) in #t100); - nullable1 = let final self::Class1? #t102 = n1 in #t102 == null ?{self::Class1?} null : let final self::Class1? #t103 = let final self::Class1? #t104 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t105 = self::Extension1|set#nullable1(new self::Class1::•(), #t104) in #t104 in let final void #t106 = self::Extension1|set#nullable1(#t102{self::Class1}, #t103) in #t103; - let final self::Class1? #t107 = n1 in #t107 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t107{self::Class1}, let final self::Class1 #t108 = let final self::Class1 #t109 = new self::Class1::•() in let final void #t110 = self::Extension1|set#nullable1(new self::Class1::•(), #t109) in #t109 in let final void #t111 = self::Extension1|set#nullable1(new self::Class1::•(), #t108) in #t108); - nullable1 = let final self::Class1? #t112 = n1 in #t112 == null ?{self::Class1?} null : let final self::Class1 #t113 = let final self::Class1 #t114 = let final self::Class1 #t115 = new self::Class1::•() in let final void #t116 = self::Extension1|set#nullable1(new self::Class1::•(), #t115) in #t115 in let final void #t117 = self::Extension1|set#nullable1(new self::Class1::•(), #t114) in #t114 in let final void #t118 = self::Extension1|set#nullable1(#t112{self::Class1}, #t113) in #t113; - let final self::Class1? #t119 = n1 in #t119 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t119{self::Class1}, let final self::Class1 #t120 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t121 = self::Extension1|set#nullable1(new self::Class1::•(), #t120) in #t120); - nullable1 = let final self::Class1? #t122 = n1 in #t122 == null ?{self::Class1?} null : let final self::Class1 #t123 = let final self::Class1 #t124 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t125 = self::Extension1|set#nullable1(new self::Class1::•(), #t124) in #t124 in let final void #t126 = self::Extension1|set#nullable1(#t122{self::Class1}, #t123) in #t123; - let final self::Class1? #t127 = n1 in #t127 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t127{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t128 = n1 in #t128 == null ?{self::Class1?} null : let final self::Class1? #t129 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t130 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t128{self::Class1}), #t129) in #t129; - let final self::Class1? #t131 = n1 in #t131 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t131{self::Class1}), let final self::Class1 #t132 = new self::Class1::•() in let final void #t133 = self::Extension1|set#nullable1(new self::Class1::•(), #t132) in #t132); - nullable1 = let final self::Class1? #t134 = n1 in #t134 == null ?{self::Class1?} null : let final self::Class1 #t135 = let final self::Class1 #t136 = new self::Class1::•() in let final void #t137 = self::Extension1|set#nullable1(new self::Class1::•(), #t136) in #t136 in let final void #t138 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t134{self::Class1}), #t135) in #t135; - let final self::Class1? #t139 = n1 in #t139 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t139{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t140 = n1 in #t140 == null ?{self::Class1?} null : let final self::Class1 #t141 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t142 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t140{self::Class1}), #t141) in #t141; - let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1}))); - let final self::Class1? #t144 = n1 in #t144 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t144{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t145 = n1 in #t145 == null ?{self::Class1?} null : let final self::Class1 #t146 = new self::Class1::•() in let final void #t147 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t145{self::Class1})), #t146) in #t146; - let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t148{self::Class1}))); - let final self::Class1? #t149 = n1 in #t149 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t149{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t150 = n1 in #t150 == null ?{self::Class1?} null : let final self::Class1? #t151 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t152 = self::Extension1|set#nullable1(#t150{self::Class1}, #t151) in #t151; - let final self::Class1? #t153 = n1 in #t153 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t153{self::Class1}, let final self::Class1 #t154 = new self::Class1::•() in let final void #t155 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t154) in #t154); - nullable1 = let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class1?} null : let final self::Class1 #t157 = let final self::Class1 #t158 = new self::Class1::•() in let final void #t159 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t158) in #t158 in let final void #t160 = self::Extension1|set#nullable1(#t156{self::Class1}, #t157) in #t157; - let final self::Class1? #t161 = n1 in #t161 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t161{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t162 = n1 in #t162 == null ?{self::Class1?} null : let final self::Class1 #t163 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t164 = self::Extension1|set#nullable1(#t162{self::Class1}, #t163) in #t163; - let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); - let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t166{self::Class1})), new self::Class1::•()); - let final self::Class1? #t167 = n1 in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t167{self::Class1}))); - let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : let final self::Class1? #t169 = self::Extension1|nonNullable1Method(#t168{self::Class1}) in #t169 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t169{self::Class1}); + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t22{self::Class1}))); + nullable1 = let final self::Class1? #t23 = n1 in #t23 == null ?{self::Class1?} null : let final self::Class1 #t24 = new self::Class1::•() in let final void #t25 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t23{self::Class1}), #t24) in #t24; + nullable1 = let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : let final self::Class1? #t27 = self::Extension1|get#nullable1(#t26{self::Class1}) in #t27 == null ?{self::Class1?} null : let final self::Class1 #t28 = new self::Class1::•() in let final void #t29 = self::Extension1|set#nullable1(#t27{self::Class1}, #t28) in #t28; + nullable1 = let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : let final self::Class1? #t31 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t30{self::Class1})) in #t31 == null ?{self::Class1?} null : let final self::Class1 #t32 = new self::Class1::•() in let final void #t33 = self::Extension1|set#nullable1(#t31{self::Class1}, #t32) in #t32; + let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : let final self::Class1? #t35 = self::Extension1|get#nullable1(#t34{self::Class1}) in #t35 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t35{self::Class1}); + let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t36{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : let final self::Class1? #t38 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t39 = self::Extension1|set#nullable1(#t37{self::Class1}, #t38) in #t38; + let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t40{self::Class1}, let final self::Class1 #t41 = new self::Class1::•() in let final void #t42 = self::Extension1|set#nullable1(new self::Class1::•(), #t41) in #t41); + nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : let final self::Class1 #t44 = let final self::Class1 #t45 = new self::Class1::•() in let final void #t46 = self::Extension1|set#nullable1(new self::Class1::•(), #t45) in #t45 in let final void #t47 = self::Extension1|set#nullable1(#t43{self::Class1}, #t44) in #t44; + let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t48{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : let final self::Class1 #t50 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t51 = self::Extension1|set#nullable1(#t49{self::Class1}, #t50) in #t50; + let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t52{self::Class1})); + let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t53{self::Class1}), new self::Class1::•()); + let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t54{self::Class1})); + let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t55{self::Class1}))); + let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t56{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : let final self::Class1 #t58 = new self::Class1::•() in let final void #t59 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1})), #t58) in #t58; + let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : let final self::Class1? #t61 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t60{self::Class1})) in #t61 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t61{self::Class1}); + let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t62{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : let final self::Class1? #t64 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t65 = self::Extension1|set#nullable1(#t63{self::Class1}, #t64) in #t64; + let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t66{self::Class1}, let final self::Class1 #t67 = new self::Class1::•() in let final void #t68 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t67) in #t67); + nullable1 = let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : let final self::Class1 #t70 = let final self::Class1 #t71 = new self::Class1::•() in let final void #t72 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t71) in #t71 in let final void #t73 = self::Extension1|set#nullable1(#t69{self::Class1}, #t70) in #t70; + let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t74{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : let final self::Class1 #t76 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t77 = self::Extension1|set#nullable1(#t75{self::Class1}, #t76) in #t76; + let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t78{self::Class1}))); + let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t79{self::Class1})), new self::Class1::•()); + let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); + let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t81{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : let final self::Class1? #t83 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t84 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t82{self::Class1}), #t83) in #t83; + let final self::Class1? #t85 = n1 in #t85 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t85{self::Class1}), let final self::Class1 #t86 = new self::Class1::•() in let final void #t87 = self::Extension1|set#nullable1(new self::Class1::•(), #t86) in #t86); + nullable1 = let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : let final self::Class1 #t89 = let final self::Class1 #t90 = new self::Class1::•() in let final void #t91 = self::Extension1|set#nullable1(new self::Class1::•(), #t90) in #t90 in let final void #t92 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t88{self::Class1}), #t89) in #t89; + let final self::Class1? #t93 = n1 in #t93 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t93{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t94 = n1 in #t94 == null ?{self::Class1?} null : let final self::Class1 #t95 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t96 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t94{self::Class1}), #t95) in #t95; + let final self::Class1? #t97 = n1 in #t97 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t97{self::Class1}, let final self::Class1? #t98 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t99 = self::Extension1|set#nullable1(new self::Class1::•(), #t98) in #t98); + nullable1 = let final self::Class1? #t100 = n1 in #t100 == null ?{self::Class1?} null : let final self::Class1? #t101 = let final self::Class1? #t102 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t103 = self::Extension1|set#nullable1(new self::Class1::•(), #t102) in #t102 in let final void #t104 = self::Extension1|set#nullable1(#t100{self::Class1}, #t101) in #t101; + let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t105{self::Class1}, let final self::Class1 #t106 = let final self::Class1 #t107 = new self::Class1::•() in let final void #t108 = self::Extension1|set#nullable1(new self::Class1::•(), #t107) in #t107 in let final void #t109 = self::Extension1|set#nullable1(new self::Class1::•(), #t106) in #t106); + nullable1 = let final self::Class1? #t110 = n1 in #t110 == null ?{self::Class1?} null : let final self::Class1 #t111 = let final self::Class1 #t112 = let final self::Class1 #t113 = new self::Class1::•() in let final void #t114 = self::Extension1|set#nullable1(new self::Class1::•(), #t113) in #t113 in let final void #t115 = self::Extension1|set#nullable1(new self::Class1::•(), #t112) in #t112 in let final void #t116 = self::Extension1|set#nullable1(#t110{self::Class1}, #t111) in #t111; + let final self::Class1? #t117 = n1 in #t117 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t117{self::Class1}, let final self::Class1 #t118 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t119 = self::Extension1|set#nullable1(new self::Class1::•(), #t118) in #t118); + nullable1 = let final self::Class1? #t120 = n1 in #t120 == null ?{self::Class1?} null : let final self::Class1 #t121 = let final self::Class1 #t122 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t123 = self::Extension1|set#nullable1(new self::Class1::•(), #t122) in #t122 in let final void #t124 = self::Extension1|set#nullable1(#t120{self::Class1}, #t121) in #t121; + let final self::Class1? #t125 = n1 in #t125 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t125{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t126 = n1 in #t126 == null ?{self::Class1?} null : let final self::Class1? #t127 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t128 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t126{self::Class1}), #t127) in #t127; + let final self::Class1? #t129 = n1 in #t129 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t129{self::Class1}), let final self::Class1 #t130 = new self::Class1::•() in let final void #t131 = self::Extension1|set#nullable1(new self::Class1::•(), #t130) in #t130); + nullable1 = let final self::Class1? #t132 = n1 in #t132 == null ?{self::Class1?} null : let final self::Class1 #t133 = let final self::Class1 #t134 = new self::Class1::•() in let final void #t135 = self::Extension1|set#nullable1(new self::Class1::•(), #t134) in #t134 in let final void #t136 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t132{self::Class1}), #t133) in #t133; + let final self::Class1? #t137 = n1 in #t137 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t137{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t138 = n1 in #t138 == null ?{self::Class1?} null : let final self::Class1 #t139 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t140 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t138{self::Class1}), #t139) in #t139; + let final self::Class1? #t141 = n1 in #t141 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t141{self::Class1}))); + let final self::Class1? #t142 = n1 in #t142 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t142{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : let final self::Class1 #t144 = new self::Class1::•() in let final void #t145 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1})), #t144) in #t144; + let final self::Class1? #t146 = n1 in #t146 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t146{self::Class1}))); + let final self::Class1? #t147 = n1 in #t147 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t147{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : let final self::Class1? #t149 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t150 = self::Extension1|set#nullable1(#t148{self::Class1}, #t149) in #t149; + let final self::Class1? #t151 = n1 in #t151 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t151{self::Class1}, let final self::Class1 #t152 = new self::Class1::•() in let final void #t153 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t152) in #t152); + nullable1 = let final self::Class1? #t154 = n1 in #t154 == null ?{self::Class1?} null : let final self::Class1 #t155 = let final self::Class1 #t156 = new self::Class1::•() in let final void #t157 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t156) in #t156 in let final void #t158 = self::Extension1|set#nullable1(#t154{self::Class1}, #t155) in #t155; + let final self::Class1? #t159 = n1 in #t159 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t159{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t160 = n1 in #t160 == null ?{self::Class1?} null : let final self::Class1 #t161 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t162 = self::Extension1|set#nullable1(#t160{self::Class1}, #t161) in #t161; + let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t163{self::Class1}))); + let final self::Class1? #t164 = n1 in #t164 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t164{self::Class1})), new self::Class1::•()); + let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); + let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : let final self::Class1? #t167 = self::Extension1|nonNullable1Method(#t166{self::Class1}) in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t167{self::Class1}); } static method indexAccess(self::Class1? n1, self::Class2? n2, self::Class3? n3) → void { self::Class1? nullable1 = n1; self::Class2? nullable2 = n2; self::Class3? nullable3 = n3; - let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : self::Extension1|[](#t170{self::Class1}, nullable1); - let final self::Class1? #t171 = n1 in #t171 == null ?{void} null : self::Extension1|[]=(#t171{self::Class1}, nullable1, new self::Class1::•()); - let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : let final self::Class1? #t173 = self::Extension1|[](#t172{self::Class1}, nullable1) in #t173 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t173{self::Class1}); - let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t174{self::Class1}), nullable1); - let final self::Class1? #t175 = n1 in #t175 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t175{self::Class1}), nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t176 = n1 in #t176 == null ?{self::Class1?} null : let final self::Class1 #t177 = self::Extension1|get#nonNullable1(#t176{self::Class1}) in let final self::Class1? #t178 = nullable1 in let final self::Class1 #t179 = new self::Class1::•() in let final void #t180 = self::Extension1|[]=(#t177, #t178, #t179) in #t179; - let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class1?} null : let final self::Class1? #t182 = self::Extension1|[](self::Extension1|get#nonNullable1(#t181{self::Class1}), nullable1) in #t182 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t182{self::Class1}); - let final self::Class1? #t183 = n1 in #t183 == null ?{self::Class2?} null : let final self::Class2 #t184 = self::Extension1|get#nonNullable2(#t183{self::Class1}) in let final self::Class2? #t185 = nullable2 in self::Extension2|[]=(#t184, #t185, self::Extension2|+(self::Extension2|[](#t184, #t185), 0)); - nullable2 = let final self::Class1? #t186 = n1 in #t186 == null ?{self::Class2?} null : let final self::Class2 #t187 = self::Extension1|get#nonNullable2(#t186{self::Class1}) in let final self::Class2? #t188 = nullable2 in let final self::Class2 #t189 = self::Extension2|+(self::Extension2|[](#t187, #t188), 0) in let final void #t190 = self::Extension2|[]=(#t187, #t188, #t189) in #t189; - let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in self::Extension1|[](#t191{self::Class1}, #t192) == null ?{self::Class1?} self::Extension1|[]=(#t191{self::Class1}, #t192, nullable1) : null; - nullable1 = let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = nullable1 in let final self::Class1? #t195 = self::Extension1|[](#t193{self::Class1}, #t194) in #t195 == null ?{self::Class1?} let final self::Class1? #t196 = nullable1 in let final void #t197 = self::Extension1|[]=(#t193{self::Class1}, #t194, #t196) in #t196 : #t195{self::Class1}; - let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in self::Extension2|[]=(#t198{self::Class2}, #t199, self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0)); - nullable2 = let final self::Class2? #t200 = n2 in #t200 == null ?{self::Class2?} null : let final self::Class2? #t201 = nullable2 in let final self::Class2 #t202 = self::Extension2|+(self::Extension2|[](#t200{self::Class2}, #t201), 0) in let final void #t203 = self::Extension2|[]=(#t200{self::Class2}, #t201, #t202) in #t202; - let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in self::Extension2|[]=(#t204{self::Class2}, #t205, self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0)); - nullable2 = let final self::Class2? #t206 = n2 in #t206 == null ?{self::Class2?} null : let final self::Class2? #t207 = nullable2 in let final self::Class2 #t208 = self::Extension2|+(self::Extension2|[](#t206{self::Class2}, #t207), 0) in let final void #t209 = self::Extension2|[]=(#t206{self::Class2}, #t207, #t208) in #t208; - let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(self::Extension2|[](#t210{self::Class2}, #t211), 1)); - nullable2 = let final self::Class2? #t212 = n2 in #t212 == null ?{self::Class2?} null : let final self::Class2? #t213 = nullable2 in let final self::Class2 #t214 = self::Extension2|[](#t212{self::Class2}, #t213) in let final void #t215 = self::Extension2|[]=(#t212{self::Class2}, #t213, self::Extension2|+(#t214, 1)) in #t214; - let final self::Class2? #t216 = n2 in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = nullable2 in let final self::Class2 #t218 = self::Extension2|+(self::Extension2|[](#t216{self::Class2}, #t217), 1) in let final void #t219 = self::Extension2|[]=(#t216{self::Class2}, #t217, #t218) in #t218; - nullable2 = let final self::Class2? #t220 = n2 in #t220 == null ?{self::Class2?} null : let final self::Class2? #t221 = nullable2 in let final self::Class2 #t222 = self::Extension2|+(self::Extension2|[](#t220{self::Class2}, #t221), 1) in let final void #t223 = self::Extension2|[]=(#t220{self::Class2}, #t221, #t222) in #t222; - let final self::Class1? #t224 = n1 in #t224 == null ?{self::Class2?} null : let final self::Class2 #t225 = self::Extension1|get#nonNullable2(#t224{self::Class1}) in let final self::Class2? #t226 = nullable2 in self::Extension2|[]=(#t225, #t226, self::Extension2|+(self::Extension2|[](#t225, #t226), 1)); - nullable2 = let final self::Class1? #t227 = n1 in #t227 == null ?{self::Class2?} null : let final self::Class2 #t228 = self::Extension1|get#nonNullable2(#t227{self::Class1}) in let final self::Class2? #t229 = nullable2 in let final self::Class2 #t230 = self::Extension2|[](#t228, #t229) in let final void #t231 = self::Extension2|[]=(#t228, #t229, self::Extension2|+(#t230, 1)) in #t230; - let final self::Class1? #t232 = n1 in #t232 == null ?{self::Class2?} null : let final self::Class2 #t233 = self::Extension1|get#nonNullable2(#t232{self::Class1}) in let final self::Class2? #t234 = nullable2 in let final self::Class2 #t235 = self::Extension2|+(self::Extension2|[](#t233, #t234), 1) in let final void #t236 = self::Extension2|[]=(#t233, #t234, #t235) in #t235; - nullable2 = let final self::Class1? #t237 = n1 in #t237 == null ?{self::Class2?} null : let final self::Class2 #t238 = self::Extension1|get#nonNullable2(#t237{self::Class1}) in let final self::Class2? #t239 = nullable2 in let final self::Class2 #t240 = self::Extension2|+(self::Extension2|[](#t238, #t239), 1) in let final void #t241 = self::Extension2|[]=(#t238, #t239, #t240) in #t240; - let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2), nullable2); - let final self::Class1? #t243 = n1 in #t243 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t243{self::Class1}), nullable2), nullable2, new self::Class2::•()); - nullable2 = let final self::Class1? #t244 = n1 in #t244 == null ?{self::Class2?} null : let final self::Class2 #t245 = self::Extension2|[](self::Extension1|get#nonNullable2(#t244{self::Class1}), nullable2) in let final self::Class2? #t246 = nullable2 in let final self::Class2 #t247 = new self::Class2::•() in let final void #t248 = self::Extension2|[]=(#t245, #t246, #t247) in #t247; - let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2? #t250 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2), nullable2) in #t250 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t250{self::Class2}); - let final self::Class1? #t251 = n1 in #t251 == null ?{self::Class2?} null : let final self::Class2 #t252 = self::Extension2|[](self::Extension1|get#nonNullable2(#t251{self::Class1}), nullable2) in let final self::Class2? #t253 = nullable2 in self::Extension2|[]=(#t252, #t253, self::Extension2|+(self::Extension2|[](#t252, #t253), 0)); - nullable2 = let final self::Class1? #t254 = n1 in #t254 == null ?{self::Class2?} null : let final self::Class2 #t255 = self::Extension2|[](self::Extension1|get#nonNullable2(#t254{self::Class1}), nullable2) in let final self::Class2? #t256 = nullable2 in let final self::Class2 #t257 = self::Extension2|+(self::Extension2|[](#t255, #t256), 0) in let final void #t258 = self::Extension2|[]=(#t255, #t256, #t257) in #t257; - let final self::Class1? #t259 = n1 in #t259 == null ?{self::Class2?} null : let final self::Class2 #t260 = self::Extension2|[](self::Extension1|get#nonNullable2(#t259{self::Class1}), nullable2) in let final self::Class2? #t261 = nullable2 in self::Extension2|[]=(#t260, #t261, self::Extension2|+(self::Extension2|[](#t260, #t261), 1)); - nullable2 = let final self::Class1? #t262 = n1 in #t262 == null ?{self::Class2?} null : let final self::Class2 #t263 = self::Extension2|[](self::Extension1|get#nonNullable2(#t262{self::Class1}), nullable2) in let final self::Class2? #t264 = nullable2 in let final self::Class2 #t265 = self::Extension2|[](#t263, #t264) in let final void #t266 = self::Extension2|[]=(#t263, #t264, self::Extension2|+(#t265, 1)) in #t265; - let final self::Class1? #t267 = n1 in #t267 == null ?{self::Class2?} null : let final self::Class2 #t268 = self::Extension2|[](self::Extension1|get#nonNullable2(#t267{self::Class1}), nullable2) in let final self::Class2? #t269 = nullable2 in let final self::Class2 #t270 = self::Extension2|+(self::Extension2|[](#t268, #t269), 1) in let final void #t271 = self::Extension2|[]=(#t268, #t269, #t270) in #t270; - nullable2 = let final self::Class1? #t272 = n1 in #t272 == null ?{self::Class2?} null : let final self::Class2 #t273 = self::Extension2|[](self::Extension1|get#nonNullable2(#t272{self::Class1}), nullable2) in let final self::Class2? #t274 = nullable2 in let final self::Class2 #t275 = self::Extension2|+(self::Extension2|[](#t273, #t274), 1) in let final void #t276 = self::Extension2|[]=(#t273, #t274, #t275) in #t275; - let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[](#t278{self::Class1}, nullable1); - let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : self::Extension1|[]=(#t280{self::Class1}, nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t281 = n1 in #t281 == null ?{self::Class1?} null : let final self::Class1? #t282 = self::Extension1|[](#t281{self::Class1}, nullable1) in #t282 == null ?{self::Class1?} null : let final self::Class1? #t283 = nullable1 in let final self::Class1 #t284 = new self::Class1::•() in let final void #t285 = self::Extension1|[]=(#t282{self::Class1}, #t283, #t284) in #t284; - let final self::Class1? #t286 = n1 in #t286 == null ?{self::Class1?} null : let final self::Class1? #t287 = self::Extension1|[](#t286{self::Class1}, nullable1) in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t288{self::Class1}); - nullable1 = let final self::Class1? #t289 = n1 in #t289 == null ?{self::Class1?} null : let final self::Class1? #t290 = self::Extension1|[](#t289{self::Class1}, nullable1) in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t291{self::Class1}); - let final self::Class1? #t292 = n1 in #t292 == null ?{self::Class1?} null : let final self::Class1? #t293 = self::Extension1|[](#t292{self::Class1}, nullable1) in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = nullable1 in self::Extension1|[](#t293{self::Class1}, #t294) == null ?{self::Class1?} self::Extension1|[]=(#t293{self::Class1}, #t294, nullable1) : null; - nullable1 = let final self::Class1? #t295 = n1 in #t295 == null ?{self::Class1?} null : let final self::Class1? #t296 = self::Extension1|[](#t295{self::Class1}, nullable1) in #t296 == null ?{self::Class1?} null : let final self::Class1? #t297 = nullable1 in let final self::Class1? #t298 = self::Extension1|[](#t296{self::Class1}, #t297) in #t298 == null ?{self::Class1?} let final self::Class1? #t299 = nullable1 in let final void #t300 = self::Extension1|[]=(#t296{self::Class1}, #t297, #t299) in #t299 : #t298{self::Class1}; - let final self::Class3? #t301 = n3 in #t301 == null ?{self::Class2?} null : let final self::Class2? #t302 = self::Extension3|[](#t301{self::Class3}, nullable3) in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = nullable2 in self::Extension2|[]=(#t302{self::Class2}, #t303, self::Extension2|+(self::Extension2|[](#t302{self::Class2}, #t303), 0)); - nullable2 = let final self::Class3? #t304 = n3 in #t304 == null ?{self::Class2?} null : let final self::Class2? #t305 = self::Extension3|[](#t304{self::Class3}, nullable3) in #t305 == null ?{self::Class2?} null : let final self::Class2? #t306 = nullable2 in let final self::Class2 #t307 = self::Extension2|+(self::Extension2|[](#t305{self::Class2}, #t306), 0) in let final void #t308 = self::Extension2|[]=(#t305{self::Class2}, #t306, #t307) in #t307; - let final self::Class3? #t309 = n3 in #t309 == null ?{self::Class2?} null : let final self::Class2? #t310 = self::Extension3|[](#t309{self::Class3}, nullable3) in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = nullable2 in self::Extension2|[]=(#t310{self::Class2}, #t311, self::Extension2|+(self::Extension2|[](#t310{self::Class2}, #t311), 1)); - nullable2 = let final self::Class3? #t312 = n3 in #t312 == null ?{self::Class2?} null : let final self::Class2? #t313 = self::Extension3|[](#t312{self::Class3}, nullable3) in #t313 == null ?{self::Class2?} null : let final self::Class2? #t314 = nullable2 in let final self::Class2 #t315 = self::Extension2|[](#t313{self::Class2}, #t314) in let final void #t316 = self::Extension2|[]=(#t313{self::Class2}, #t314, self::Extension2|+(#t315, 1)) in #t315; - let final self::Class3? #t317 = n3 in #t317 == null ?{self::Class2?} null : let final self::Class2? #t318 = self::Extension3|[](#t317{self::Class3}, nullable3) in #t318 == null ?{self::Class2?} null : let final self::Class2? #t319 = nullable2 in let final self::Class2 #t320 = self::Extension2|+(self::Extension2|[](#t318{self::Class2}, #t319), 1) in let final void #t321 = self::Extension2|[]=(#t318{self::Class2}, #t319, #t320) in #t320; - nullable2 = let final self::Class3? #t322 = n3 in #t322 == null ?{self::Class2?} null : let final self::Class2? #t323 = self::Extension3|[](#t322{self::Class3}, nullable3) in #t323 == null ?{self::Class2?} null : let final self::Class2? #t324 = nullable2 in let final self::Class2 #t325 = self::Extension2|+(self::Extension2|[](#t323{self::Class2}, #t324), 1) in let final void #t326 = self::Extension2|[]=(#t323{self::Class2}, #t324, #t325) in #t325; + let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : self::Extension1|[](#t168{self::Class1}, nullable1); + let final self::Class1? #t169 = n1 in #t169 == null ?{void} null : self::Extension1|[]=(#t169{self::Class1}, nullable1, new self::Class1::•()); + let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : let final self::Class1? #t171 = self::Extension1|[](#t170{self::Class1}, nullable1) in #t171 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t171{self::Class1}); + let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t172{self::Class1}), nullable1); + let final self::Class1? #t173 = n1 in #t173 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t173{self::Class1}), nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : let final self::Class1 #t175 = self::Extension1|get#nonNullable1(#t174{self::Class1}) in let final self::Class1? #t176 = nullable1 in let final self::Class1 #t177 = new self::Class1::•() in let final void #t178 = self::Extension1|[]=(#t175, #t176, #t177) in #t177; + let final self::Class1? #t179 = n1 in #t179 == null ?{self::Class1?} null : let final self::Class1? #t180 = self::Extension1|[](self::Extension1|get#nonNullable1(#t179{self::Class1}), nullable1) in #t180 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t180{self::Class1}); + let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class2?} null : let final self::Class2 #t182 = self::Extension1|get#nonNullable2(#t181{self::Class1}) in let final self::Class2? #t183 = nullable2 in self::Extension2|[]=(#t182, #t183, self::Extension2|+(self::Extension2|[](#t182, #t183), 0)); + nullable2 = let final self::Class1? #t184 = n1 in #t184 == null ?{self::Class2?} null : let final self::Class2 #t185 = self::Extension1|get#nonNullable2(#t184{self::Class1}) in let final self::Class2? #t186 = nullable2 in let final self::Class2 #t187 = self::Extension2|+(self::Extension2|[](#t185, #t186), 0) in let final void #t188 = self::Extension2|[]=(#t185, #t186, #t187) in #t187; + let final self::Class1? #t189 = n1 in #t189 == null ?{self::Class1?} null : let final self::Class1? #t190 = nullable1 in self::Extension1|[](#t189{self::Class1}, #t190) == null ?{self::Class1?} self::Extension1|[]=(#t189{self::Class1}, #t190, nullable1) : null; + nullable1 = let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in let final self::Class1? #t193 = self::Extension1|[](#t191{self::Class1}, #t192) in #t193 == null ?{self::Class1?} let final self::Class1? #t194 = nullable1 in let final void #t195 = self::Extension1|[]=(#t191{self::Class1}, #t192, #t194) in #t194 : #t193{self::Class1}; + let final self::Class2? #t196 = n2 in #t196 == null ?{self::Class2?} null : let final self::Class2? #t197 = nullable2 in self::Extension2|[]=(#t196{self::Class2}, #t197, self::Extension2|+(self::Extension2|[](#t196{self::Class2}, #t197), 0)); + nullable2 = let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in let final self::Class2 #t200 = self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0) in let final void #t201 = self::Extension2|[]=(#t198{self::Class2}, #t199, #t200) in #t200; + let final self::Class2? #t202 = n2 in #t202 == null ?{self::Class2?} null : let final self::Class2? #t203 = nullable2 in self::Extension2|[]=(#t202{self::Class2}, #t203, self::Extension2|+(self::Extension2|[](#t202{self::Class2}, #t203), 0)); + nullable2 = let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in let final self::Class2 #t206 = self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0) in let final void #t207 = self::Extension2|[]=(#t204{self::Class2}, #t205, #t206) in #t206; + let final self::Class2? #t208 = n2 in #t208 == null ?{self::Class2?} null : let final self::Class2? #t209 = nullable2 in self::Extension2|[]=(#t208{self::Class2}, #t209, self::Extension2|+(self::Extension2|[](#t208{self::Class2}, #t209), 1)); + nullable2 = let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in let final self::Class2 #t212 = self::Extension2|[](#t210{self::Class2}, #t211) in let final void #t213 = self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(#t212, 1)) in #t212; + let final self::Class2? #t214 = n2 in #t214 == null ?{self::Class2?} null : let final self::Class2? #t215 = nullable2 in let final self::Class2 #t216 = self::Extension2|+(self::Extension2|[](#t214{self::Class2}, #t215), 1) in let final void #t217 = self::Extension2|[]=(#t214{self::Class2}, #t215, #t216) in #t216; + nullable2 = let final self::Class2? #t218 = n2 in #t218 == null ?{self::Class2?} null : let final self::Class2? #t219 = nullable2 in let final self::Class2 #t220 = self::Extension2|+(self::Extension2|[](#t218{self::Class2}, #t219), 1) in let final void #t221 = self::Extension2|[]=(#t218{self::Class2}, #t219, #t220) in #t220; + let final self::Class1? #t222 = n1 in #t222 == null ?{self::Class2?} null : let final self::Class2 #t223 = self::Extension1|get#nonNullable2(#t222{self::Class1}) in let final self::Class2? #t224 = nullable2 in self::Extension2|[]=(#t223, #t224, self::Extension2|+(self::Extension2|[](#t223, #t224), 1)); + nullable2 = let final self::Class1? #t225 = n1 in #t225 == null ?{self::Class2?} null : let final self::Class2 #t226 = self::Extension1|get#nonNullable2(#t225{self::Class1}) in let final self::Class2? #t227 = nullable2 in let final self::Class2 #t228 = self::Extension2|[](#t226, #t227) in let final void #t229 = self::Extension2|[]=(#t226, #t227, self::Extension2|+(#t228, 1)) in #t228; + let final self::Class1? #t230 = n1 in #t230 == null ?{self::Class2?} null : let final self::Class2 #t231 = self::Extension1|get#nonNullable2(#t230{self::Class1}) in let final self::Class2? #t232 = nullable2 in let final self::Class2 #t233 = self::Extension2|+(self::Extension2|[](#t231, #t232), 1) in let final void #t234 = self::Extension2|[]=(#t231, #t232, #t233) in #t233; + nullable2 = let final self::Class1? #t235 = n1 in #t235 == null ?{self::Class2?} null : let final self::Class2 #t236 = self::Extension1|get#nonNullable2(#t235{self::Class1}) in let final self::Class2? #t237 = nullable2 in let final self::Class2 #t238 = self::Extension2|+(self::Extension2|[](#t236, #t237), 1) in let final void #t239 = self::Extension2|[]=(#t236, #t237, #t238) in #t238; + let final self::Class1? #t240 = n1 in #t240 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t240{self::Class1}), nullable2), nullable2); + let final self::Class1? #t241 = n1 in #t241 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t241{self::Class1}), nullable2), nullable2, new self::Class2::•()); + nullable2 = let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : let final self::Class2 #t243 = self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2) in let final self::Class2? #t244 = nullable2 in let final self::Class2 #t245 = new self::Class2::•() in let final void #t246 = self::Extension2|[]=(#t243, #t244, #t245) in #t245; + let final self::Class1? #t247 = n1 in #t247 == null ?{self::Class2?} null : let final self::Class2? #t248 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t247{self::Class1}), nullable2), nullable2) in #t248 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t248{self::Class2}); + let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2 #t250 = self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2) in let final self::Class2? #t251 = nullable2 in self::Extension2|[]=(#t250, #t251, self::Extension2|+(self::Extension2|[](#t250, #t251), 0)); + nullable2 = let final self::Class1? #t252 = n1 in #t252 == null ?{self::Class2?} null : let final self::Class2 #t253 = self::Extension2|[](self::Extension1|get#nonNullable2(#t252{self::Class1}), nullable2) in let final self::Class2? #t254 = nullable2 in let final self::Class2 #t255 = self::Extension2|+(self::Extension2|[](#t253, #t254), 0) in let final void #t256 = self::Extension2|[]=(#t253, #t254, #t255) in #t255; + let final self::Class1? #t257 = n1 in #t257 == null ?{self::Class2?} null : let final self::Class2 #t258 = self::Extension2|[](self::Extension1|get#nonNullable2(#t257{self::Class1}), nullable2) in let final self::Class2? #t259 = nullable2 in self::Extension2|[]=(#t258, #t259, self::Extension2|+(self::Extension2|[](#t258, #t259), 1)); + nullable2 = let final self::Class1? #t260 = n1 in #t260 == null ?{self::Class2?} null : let final self::Class2 #t261 = self::Extension2|[](self::Extension1|get#nonNullable2(#t260{self::Class1}), nullable2) in let final self::Class2? #t262 = nullable2 in let final self::Class2 #t263 = self::Extension2|[](#t261, #t262) in let final void #t264 = self::Extension2|[]=(#t261, #t262, self::Extension2|+(#t263, 1)) in #t263; + let final self::Class1? #t265 = n1 in #t265 == null ?{self::Class2?} null : let final self::Class2 #t266 = self::Extension2|[](self::Extension1|get#nonNullable2(#t265{self::Class1}), nullable2) in let final self::Class2? #t267 = nullable2 in let final self::Class2 #t268 = self::Extension2|+(self::Extension2|[](#t266, #t267), 1) in let final void #t269 = self::Extension2|[]=(#t266, #t267, #t268) in #t268; + nullable2 = let final self::Class1? #t270 = n1 in #t270 == null ?{self::Class2?} null : let final self::Class2 #t271 = self::Extension2|[](self::Extension1|get#nonNullable2(#t270{self::Class1}), nullable2) in let final self::Class2? #t272 = nullable2 in let final self::Class2 #t273 = self::Extension2|+(self::Extension2|[](#t271, #t272), 1) in let final void #t274 = self::Extension2|[]=(#t271, #t272, #t273) in #t273; + let final self::Class1? #t275 = n1 in #t275 == null ?{self::Class1?} null : let final self::Class1? #t276 = self::Extension1|[](#t275{self::Class1}, nullable1) in #t276 == null ?{self::Class1?} null : self::Extension1|[](#t276{self::Class1}, nullable1); + let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[]=(#t278{self::Class1}, nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : let final self::Class1? #t281 = nullable1 in let final self::Class1 #t282 = new self::Class1::•() in let final void #t283 = self::Extension1|[]=(#t280{self::Class1}, #t281, #t282) in #t282; + let final self::Class1? #t284 = n1 in #t284 == null ?{self::Class1?} null : let final self::Class1? #t285 = self::Extension1|[](#t284{self::Class1}, nullable1) in #t285 == null ?{self::Class1?} null : let final self::Class1? #t286 = self::Extension1|[](#t285{self::Class1}, nullable1) in #t286 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t286{self::Class1}); + nullable1 = let final self::Class1? #t287 = n1 in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : let final self::Class1? #t289 = self::Extension1|[](#t288{self::Class1}, nullable1) in #t289 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t289{self::Class1}); + let final self::Class1? #t290 = n1 in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : let final self::Class1? #t292 = nullable1 in self::Extension1|[](#t291{self::Class1}, #t292) == null ?{self::Class1?} self::Extension1|[]=(#t291{self::Class1}, #t292, nullable1) : null; + nullable1 = let final self::Class1? #t293 = n1 in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = self::Extension1|[](#t293{self::Class1}, nullable1) in #t294 == null ?{self::Class1?} null : let final self::Class1? #t295 = nullable1 in let final self::Class1? #t296 = self::Extension1|[](#t294{self::Class1}, #t295) in #t296 == null ?{self::Class1?} let final self::Class1? #t297 = nullable1 in let final void #t298 = self::Extension1|[]=(#t294{self::Class1}, #t295, #t297) in #t297 : #t296{self::Class1}; + let final self::Class3? #t299 = n3 in #t299 == null ?{self::Class2?} null : let final self::Class2? #t300 = self::Extension3|[](#t299{self::Class3}, nullable3) in #t300 == null ?{self::Class2?} null : let final self::Class2? #t301 = nullable2 in self::Extension2|[]=(#t300{self::Class2}, #t301, self::Extension2|+(self::Extension2|[](#t300{self::Class2}, #t301), 0)); + nullable2 = let final self::Class3? #t302 = n3 in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = self::Extension3|[](#t302{self::Class3}, nullable3) in #t303 == null ?{self::Class2?} null : let final self::Class2? #t304 = nullable2 in let final self::Class2 #t305 = self::Extension2|+(self::Extension2|[](#t303{self::Class2}, #t304), 0) in let final void #t306 = self::Extension2|[]=(#t303{self::Class2}, #t304, #t305) in #t305; + let final self::Class3? #t307 = n3 in #t307 == null ?{self::Class2?} null : let final self::Class2? #t308 = self::Extension3|[](#t307{self::Class3}, nullable3) in #t308 == null ?{self::Class2?} null : let final self::Class2? #t309 = nullable2 in self::Extension2|[]=(#t308{self::Class2}, #t309, self::Extension2|+(self::Extension2|[](#t308{self::Class2}, #t309), 1)); + nullable2 = let final self::Class3? #t310 = n3 in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = self::Extension3|[](#t310{self::Class3}, nullable3) in #t311 == null ?{self::Class2?} null : let final self::Class2? #t312 = nullable2 in let final self::Class2 #t313 = self::Extension2|[](#t311{self::Class2}, #t312) in let final void #t314 = self::Extension2|[]=(#t311{self::Class2}, #t312, self::Extension2|+(#t313, 1)) in #t313; + let final self::Class3? #t315 = n3 in #t315 == null ?{self::Class2?} null : let final self::Class2? #t316 = self::Extension3|[](#t315{self::Class3}, nullable3) in #t316 == null ?{self::Class2?} null : let final self::Class2? #t317 = nullable2 in let final self::Class2 #t318 = self::Extension2|+(self::Extension2|[](#t316{self::Class2}, #t317), 1) in let final void #t319 = self::Extension2|[]=(#t316{self::Class2}, #t317, #t318) in #t318; + nullable2 = let final self::Class3? #t320 = n3 in #t320 == null ?{self::Class2?} null : let final self::Class2? #t321 = self::Extension3|[](#t320{self::Class3}, nullable3) in #t321 == null ?{self::Class2?} null : let final self::Class2? #t322 = nullable2 in let final self::Class2 #t323 = self::Extension2|+(self::Extension2|[](#t321{self::Class2}, #t322), 1) in let final void #t324 = self::Extension2|[]=(#t321{self::Class2}, #t322, #t323) in #t323; } static method operatorAccess(self::Class1? n1, self::Class2? n2) → void { self::Class2? nullable2 = n2; - self::throws(() → void => let final Never #t327 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:244:45: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:244:45: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. throws(() => Extension1(n1)?.nonNullable1 + 0); - ^" in self::Extension1|+(let final self::Class1? #t328 = n1 in #t328 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t328{self::Class1}), 0)); - self::throws(() → void => let final Never #t329 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:245:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. + ^" in self::Extension1|+(let final self::Class1? #t325 = n1 in #t325 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t325{self::Class1}), 0)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:245:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. throws(() => -Extension1(n1)?.nonNullable1); - ^" in self::Extension1|unary-(let final self::Class1? #t330 = n1 in #t330 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t330{self::Class1}))); - let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t331{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t331{self::Class2}), 0)); - nullable2 = let final self::Class2? #t332 = n2 in #t332 == null ?{self::Class2?} null : let final self::Class2 #t333 = self::Extension2|+(self::Extension2|get#nonNullable2(#t332{self::Class2}), 0) in let final void #t334 = self::Extension2|set#nonNullable2(#t332{self::Class2}, #t333) in #t333; - let final self::Class2? #t335 = n2 in #t335 == null ?{self::Class2?} null : let final self::Class2 #t336 = self::Extension2|get#nonNullable2(#t335{self::Class2}) in self::Extension2|set#nonNullable2(#t336, self::Extension2|+(self::Extension2|get#nonNullable2(#t336), 0)); - nullable2 = let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : let final self::Class2 #t338 = self::Extension2|get#nonNullable2(#t337{self::Class2}) in let final self::Class2 #t339 = self::Extension2|+(self::Extension2|get#nonNullable2(#t338), 0) in let final void #t340 = self::Extension2|set#nonNullable2(#t338, #t339) in #t339; - let final self::Class2? #t341 = n2 in #t341 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t341{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t341{self::Class2}), 1)); - nullable2 = let final self::Class2? #t342 = n2 in #t342 == null ?{self::Class2?} null : let final self::Class2 #t343 = self::Extension2|get#nonNullable2(#t342{self::Class2}) in let final self::Class2 #t344 = let final self::Class2 #t345 = self::Extension2|+(#t343, 1) in let final void #t346 = self::Extension2|set#nonNullable2(#t342{self::Class2}, #t345) in #t345 in #t343; - let final self::Class2? #t347 = n2 in #t347 == null ?{self::Class2?} null : let final self::Class2 #t348 = self::Extension2|+(self::Extension2|get#nonNullable2(#t347{self::Class2}), 1) in let final void #t349 = self::Extension2|set#nonNullable2(#t347{self::Class2}, #t348) in #t348; - nullable2 = let final self::Class2? #t350 = n2 in #t350 == null ?{self::Class2?} null : let final self::Class2 #t351 = self::Extension2|+(self::Extension2|get#nonNullable2(#t350{self::Class2}), 1) in let final void #t352 = self::Extension2|set#nonNullable2(#t350{self::Class2}, #t351) in #t351; + ^" in self::Extension1|unary-(let final self::Class1? #t326 = n1 in #t326 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t326{self::Class1}))); + let final self::Class2? #t327 = n2 in #t327 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t327{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t327{self::Class2}), 0)); + nullable2 = let final self::Class2? #t328 = n2 in #t328 == null ?{self::Class2?} null : let final self::Class2 #t329 = self::Extension2|+(self::Extension2|get#nonNullable2(#t328{self::Class2}), 0) in let final void #t330 = self::Extension2|set#nonNullable2(#t328{self::Class2}, #t329) in #t329; + let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : let final self::Class2 #t332 = self::Extension2|get#nonNullable2(#t331{self::Class2}) in self::Extension2|set#nonNullable2(#t332, self::Extension2|+(self::Extension2|get#nonNullable2(#t332), 0)); + nullable2 = let final self::Class2? #t333 = n2 in #t333 == null ?{self::Class2?} null : let final self::Class2 #t334 = self::Extension2|get#nonNullable2(#t333{self::Class2}) in let final self::Class2 #t335 = self::Extension2|+(self::Extension2|get#nonNullable2(#t334), 0) in let final void #t336 = self::Extension2|set#nonNullable2(#t334, #t335) in #t335; + let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t337{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t337{self::Class2}), 1)); + nullable2 = let final self::Class2? #t338 = n2 in #t338 == null ?{self::Class2?} null : let final self::Class2 #t339 = self::Extension2|get#nonNullable2(#t338{self::Class2}) in let final self::Class2 #t340 = let final self::Class2 #t341 = self::Extension2|+(#t339, 1) in let final void #t342 = self::Extension2|set#nonNullable2(#t338{self::Class2}, #t341) in #t341 in #t339; + let final self::Class2? #t343 = n2 in #t343 == null ?{self::Class2?} null : let final self::Class2 #t344 = self::Extension2|+(self::Extension2|get#nonNullable2(#t343{self::Class2}), 1) in let final void #t345 = self::Extension2|set#nonNullable2(#t343{self::Class2}, #t344) in #t344; + nullable2 = let final self::Class2? #t346 = n2 in #t346 == null ?{self::Class2?} null : let final self::Class2 #t347 = self::Extension2|+(self::Extension2|get#nonNullable2(#t346{self::Class2}), 1) in let final void #t348 = self::Extension2|set#nonNullable2(#t346{self::Class2}, #t347) in #t347; } static method ifNull(self::Class1? n1) → void { self::Class1? nullable1 = n1; - let final self::Class1? #t353 = n1 in #t353 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t353) == null ?{self::Class1} self::Extension1|set#nullable1(#t353, n1{self::Class1}) : null; - n1 = let final self::Class1? #t354 = n1 in #t354 == null ?{self::Class1?} null : let final self::Class1? #t355 = self::Extension1|get#nullable1(#t354) in #t355 == null ?{self::Class1} let final self::Class1 #t356 = n1{self::Class1} in let final void #t357 = self::Extension1|set#nullable1(#t354, #t356) in #t356 : #t355{self::Class1}; - let final self::Class1? #t358 = n1 in #t358 == null ?{self::Class1?} null : let final self::Class1 #t359 = self::Extension1|get#nonNullable1(#t358{self::Class1}) in self::Extension1|get#nullable1(#t359) == null ?{self::Class1} self::Extension1|set#nullable1(#t359, n1{self::Class1}) : null; - n1 = let final self::Class1? #t360 = n1 in #t360 == null ?{self::Class1?} null : let final self::Class1 #t361 = self::Extension1|get#nonNullable1(#t360{self::Class1}) in let final self::Class1? #t362 = self::Extension1|get#nullable1(#t361) in #t362 == null ?{self::Class1} let final self::Class1 #t363 = n1{self::Class1} in let final void #t364 = self::Extension1|set#nullable1(#t361, #t363) in #t363 : #t362{self::Class1}; - let final self::Class1? #t365 = n1 in #t365 == null ?{self::Class1?} null : let final self::Class1 #t366 = self::Extension1|get#nonNullable1(#t365{self::Class1}) in let final self::Class1 #t367 = n1{self::Class1} in self::Extension1|[](#t366, #t367) == null ?{self::Class1} self::Extension1|[]=(#t366, #t367, n1{self::Class1}) : null; - n1 = let final self::Class1? #t368 = n1 in #t368 == null ?{self::Class1?} null : let final self::Class1 #t369 = self::Extension1|get#nonNullable1(#t368{self::Class1}) in let final self::Class1 #t370 = n1{self::Class1} in let final self::Class1? #t371 = self::Extension1|[](#t369, #t370) in #t371 == null ?{self::Class1} let final self::Class1 #t372 = n1{self::Class1} in let final void #t373 = self::Extension1|[]=(#t369, #t370, #t372) in #t372 : #t371{self::Class1}; + let final self::Class1? #t349 = n1 in #t349 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t349) == null ?{self::Class1} self::Extension1|set#nullable1(#t349, n1{self::Class1}) : null; + n1 = let final self::Class1? #t350 = n1 in #t350 == null ?{self::Class1?} null : let final self::Class1? #t351 = self::Extension1|get#nullable1(#t350) in #t351 == null ?{self::Class1} let final self::Class1 #t352 = n1{self::Class1} in let final void #t353 = self::Extension1|set#nullable1(#t350, #t352) in #t352 : #t351{self::Class1}; + let final self::Class1? #t354 = n1 in #t354 == null ?{self::Class1?} null : let final self::Class1 #t355 = self::Extension1|get#nonNullable1(#t354{self::Class1}) in self::Extension1|get#nullable1(#t355) == null ?{self::Class1} self::Extension1|set#nullable1(#t355, n1{self::Class1}) : null; + n1 = let final self::Class1? #t356 = n1 in #t356 == null ?{self::Class1?} null : let final self::Class1 #t357 = self::Extension1|get#nonNullable1(#t356{self::Class1}) in let final self::Class1? #t358 = self::Extension1|get#nullable1(#t357) in #t358 == null ?{self::Class1} let final self::Class1 #t359 = n1{self::Class1} in let final void #t360 = self::Extension1|set#nullable1(#t357, #t359) in #t359 : #t358{self::Class1}; + let final self::Class1? #t361 = n1 in #t361 == null ?{self::Class1?} null : let final self::Class1 #t362 = self::Extension1|get#nonNullable1(#t361{self::Class1}) in let final self::Class1 #t363 = n1{self::Class1} in self::Extension1|[](#t362, #t363) == null ?{self::Class1} self::Extension1|[]=(#t362, #t363, n1{self::Class1}) : null; + n1 = let final self::Class1? #t364 = n1 in #t364 == null ?{self::Class1?} null : let final self::Class1 #t365 = self::Extension1|get#nonNullable1(#t364{self::Class1}) in let final self::Class1 #t366 = n1{self::Class1} in let final self::Class1? #t367 = self::Extension1|[](#t365, #t366) in #t367 == null ?{self::Class1} let final self::Class1 #t368 = n1{self::Class1} in let final void #t369 = self::Extension1|[]=(#t365, #t366, #t368) in #t368 : #t367{self::Class1}; } static method throws(() → void f) → void { try { diff --git a/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.weak.transformed.expect index 25e39a1f6fe..410df6c40e0 100644 --- a/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart.weak.transformed.expect @@ -139,153 +139,153 @@ static method propertyAccess(self::Class1? n1) → void { let final self::Class1? #t13 = n1 in #t13 == null ?{self::Class1?} null : let final self::Class1? #t14 = self::Extension1|get#nullable1(#t13{self::Class1}) in #t14 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t14{self::Class1}, new self::Class1::•()); let final self::Class1? #t15 = n1 in #t15 == null ?{self::Class1?} null : let final self::Class1? #t16 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t15{self::Class1})) in #t16 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t16{self::Class1}, new self::Class1::•()); let final self::Class1? #t17 = let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t18{self::Class1}) in #t17 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t17{self::Class1}); - self::throws(() → void => let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:93:59: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:93:59: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. Try accessing using ?. instead. throws(() => (Extension1(n1)?.nullable1 = new Class1()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : let final self::Class1 #t21 = new self::Class1::•() in let final void #t22 = self::Extension1|set#nullable1(#t20{self::Class1}, #t21) in #t21)); - self::throws(() → void => let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:94:55: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t19 = n1 in #t19 == null ?{self::Class1?} null : let final self::Class1 #t20 = new self::Class1::•() in let final void #t21 = self::Extension1|set#nullable1(#t19{self::Class1}, #t20) in #t20)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:94:55: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. Try accessing using ?. instead. throws(() => (Extension1(n1)?.nonNullable1Method()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t24{self::Class1}))); - nullable1 = let final self::Class1? #t25 = n1 in #t25 == null ?{self::Class1?} null : let final self::Class1 #t26 = new self::Class1::•() in let final void #t27 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t25{self::Class1}), #t26) in #t26; - nullable1 = let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : let final self::Class1? #t29 = self::Extension1|get#nullable1(#t28{self::Class1}) in #t29 == null ?{self::Class1?} null : let final self::Class1 #t30 = new self::Class1::•() in let final void #t31 = self::Extension1|set#nullable1(#t29{self::Class1}, #t30) in #t30; - nullable1 = let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : let final self::Class1? #t33 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t32{self::Class1})) in #t33 == null ?{self::Class1?} null : let final self::Class1 #t34 = new self::Class1::•() in let final void #t35 = self::Extension1|set#nullable1(#t33{self::Class1}, #t34) in #t34; - let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : let final self::Class1? #t37 = self::Extension1|get#nullable1(#t36{self::Class1}) in #t37 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t37{self::Class1}); - let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t38{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t39 = n1 in #t39 == null ?{self::Class1?} null : let final self::Class1? #t40 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t41 = self::Extension1|set#nullable1(#t39{self::Class1}, #t40) in #t40; - let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t42{self::Class1}, let final self::Class1 #t43 = new self::Class1::•() in let final void #t44 = self::Extension1|set#nullable1(new self::Class1::•(), #t43) in #t43); - nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : let final self::Class1 #t46 = let final self::Class1 #t47 = new self::Class1::•() in let final void #t48 = self::Extension1|set#nullable1(new self::Class1::•(), #t47) in #t47 in let final void #t49 = self::Extension1|set#nullable1(#t45{self::Class1}, #t46) in #t46; - let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t50{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : let final self::Class1 #t52 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t53 = self::Extension1|set#nullable1(#t51{self::Class1}, #t52) in #t52; - let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t54{self::Class1})); - let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t55{self::Class1}), new self::Class1::•()); - let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t56{self::Class1})); - let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1}))); - let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t58{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : let final self::Class1 #t60 = new self::Class1::•() in let final void #t61 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t59{self::Class1})), #t60) in #t60; - let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : let final self::Class1? #t63 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t62{self::Class1})) in #t63 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t63{self::Class1}); - let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t64{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : let final self::Class1? #t66 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t67 = self::Extension1|set#nullable1(#t65{self::Class1}, #t66) in #t66; - let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t68{self::Class1}, let final self::Class1 #t69 = new self::Class1::•() in let final void #t70 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t69) in #t69); - nullable1 = let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : let final self::Class1 #t72 = let final self::Class1 #t73 = new self::Class1::•() in let final void #t74 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t73) in #t73 in let final void #t75 = self::Extension1|set#nullable1(#t71{self::Class1}, #t72) in #t72; - let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t76{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : let final self::Class1 #t78 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t79 = self::Extension1|set#nullable1(#t77{self::Class1}, #t78) in #t78; - let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); - let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t81{self::Class1})), new self::Class1::•()); - let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t82{self::Class1}))); - let final self::Class1? #t83 = n1 in #t83 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t83{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : let final self::Class1? #t85 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t86 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t84{self::Class1}), #t85) in #t85; - let final self::Class1? #t87 = n1 in #t87 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t87{self::Class1}), let final self::Class1 #t88 = new self::Class1::•() in let final void #t89 = self::Extension1|set#nullable1(new self::Class1::•(), #t88) in #t88); - nullable1 = let final self::Class1? #t90 = n1 in #t90 == null ?{self::Class1?} null : let final self::Class1 #t91 = let final self::Class1 #t92 = new self::Class1::•() in let final void #t93 = self::Extension1|set#nullable1(new self::Class1::•(), #t92) in #t92 in let final void #t94 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t90{self::Class1}), #t91) in #t91; - let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t95{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t96 = n1 in #t96 == null ?{self::Class1?} null : let final self::Class1 #t97 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t98 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t96{self::Class1}), #t97) in #t97; - let final self::Class1? #t99 = n1 in #t99 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t99{self::Class1}, let final self::Class1? #t100 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t101 = self::Extension1|set#nullable1(new self::Class1::•(), #t100) in #t100); - nullable1 = let final self::Class1? #t102 = n1 in #t102 == null ?{self::Class1?} null : let final self::Class1? #t103 = let final self::Class1? #t104 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t105 = self::Extension1|set#nullable1(new self::Class1::•(), #t104) in #t104 in let final void #t106 = self::Extension1|set#nullable1(#t102{self::Class1}, #t103) in #t103; - let final self::Class1? #t107 = n1 in #t107 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t107{self::Class1}, let final self::Class1 #t108 = let final self::Class1 #t109 = new self::Class1::•() in let final void #t110 = self::Extension1|set#nullable1(new self::Class1::•(), #t109) in #t109 in let final void #t111 = self::Extension1|set#nullable1(new self::Class1::•(), #t108) in #t108); - nullable1 = let final self::Class1? #t112 = n1 in #t112 == null ?{self::Class1?} null : let final self::Class1 #t113 = let final self::Class1 #t114 = let final self::Class1 #t115 = new self::Class1::•() in let final void #t116 = self::Extension1|set#nullable1(new self::Class1::•(), #t115) in #t115 in let final void #t117 = self::Extension1|set#nullable1(new self::Class1::•(), #t114) in #t114 in let final void #t118 = self::Extension1|set#nullable1(#t112{self::Class1}, #t113) in #t113; - let final self::Class1? #t119 = n1 in #t119 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t119{self::Class1}, let final self::Class1 #t120 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t121 = self::Extension1|set#nullable1(new self::Class1::•(), #t120) in #t120); - nullable1 = let final self::Class1? #t122 = n1 in #t122 == null ?{self::Class1?} null : let final self::Class1 #t123 = let final self::Class1 #t124 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t125 = self::Extension1|set#nullable1(new self::Class1::•(), #t124) in #t124 in let final void #t126 = self::Extension1|set#nullable1(#t122{self::Class1}, #t123) in #t123; - let final self::Class1? #t127 = n1 in #t127 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t127{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t128 = n1 in #t128 == null ?{self::Class1?} null : let final self::Class1? #t129 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t130 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t128{self::Class1}), #t129) in #t129; - let final self::Class1? #t131 = n1 in #t131 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t131{self::Class1}), let final self::Class1 #t132 = new self::Class1::•() in let final void #t133 = self::Extension1|set#nullable1(new self::Class1::•(), #t132) in #t132); - nullable1 = let final self::Class1? #t134 = n1 in #t134 == null ?{self::Class1?} null : let final self::Class1 #t135 = let final self::Class1 #t136 = new self::Class1::•() in let final void #t137 = self::Extension1|set#nullable1(new self::Class1::•(), #t136) in #t136 in let final void #t138 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t134{self::Class1}), #t135) in #t135; - let final self::Class1? #t139 = n1 in #t139 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t139{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t140 = n1 in #t140 == null ?{self::Class1?} null : let final self::Class1 #t141 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t142 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t140{self::Class1}), #t141) in #t141; - let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1}))); - let final self::Class1? #t144 = n1 in #t144 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t144{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t145 = n1 in #t145 == null ?{self::Class1?} null : let final self::Class1 #t146 = new self::Class1::•() in let final void #t147 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t145{self::Class1})), #t146) in #t146; - let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t148{self::Class1}))); - let final self::Class1? #t149 = n1 in #t149 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t149{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t150 = n1 in #t150 == null ?{self::Class1?} null : let final self::Class1? #t151 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t152 = self::Extension1|set#nullable1(#t150{self::Class1}, #t151) in #t151; - let final self::Class1? #t153 = n1 in #t153 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t153{self::Class1}, let final self::Class1 #t154 = new self::Class1::•() in let final void #t155 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t154) in #t154); - nullable1 = let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class1?} null : let final self::Class1 #t157 = let final self::Class1 #t158 = new self::Class1::•() in let final void #t159 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t158) in #t158 in let final void #t160 = self::Extension1|set#nullable1(#t156{self::Class1}, #t157) in #t157; - let final self::Class1? #t161 = n1 in #t161 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t161{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t162 = n1 in #t162 == null ?{self::Class1?} null : let final self::Class1 #t163 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t164 = self::Extension1|set#nullable1(#t162{self::Class1}, #t163) in #t163; - let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); - let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t166{self::Class1})), new self::Class1::•()); - let final self::Class1? #t167 = n1 in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t167{self::Class1}))); - let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : let final self::Class1? #t169 = self::Extension1|nonNullable1Method(#t168{self::Class1}) in #t169 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t169{self::Class1}); + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t22{self::Class1}))); + nullable1 = let final self::Class1? #t23 = n1 in #t23 == null ?{self::Class1?} null : let final self::Class1 #t24 = new self::Class1::•() in let final void #t25 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t23{self::Class1}), #t24) in #t24; + nullable1 = let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : let final self::Class1? #t27 = self::Extension1|get#nullable1(#t26{self::Class1}) in #t27 == null ?{self::Class1?} null : let final self::Class1 #t28 = new self::Class1::•() in let final void #t29 = self::Extension1|set#nullable1(#t27{self::Class1}, #t28) in #t28; + nullable1 = let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : let final self::Class1? #t31 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t30{self::Class1})) in #t31 == null ?{self::Class1?} null : let final self::Class1 #t32 = new self::Class1::•() in let final void #t33 = self::Extension1|set#nullable1(#t31{self::Class1}, #t32) in #t32; + let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : let final self::Class1? #t35 = self::Extension1|get#nullable1(#t34{self::Class1}) in #t35 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t35{self::Class1}); + let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t36{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : let final self::Class1? #t38 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t39 = self::Extension1|set#nullable1(#t37{self::Class1}, #t38) in #t38; + let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t40{self::Class1}, let final self::Class1 #t41 = new self::Class1::•() in let final void #t42 = self::Extension1|set#nullable1(new self::Class1::•(), #t41) in #t41); + nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : let final self::Class1 #t44 = let final self::Class1 #t45 = new self::Class1::•() in let final void #t46 = self::Extension1|set#nullable1(new self::Class1::•(), #t45) in #t45 in let final void #t47 = self::Extension1|set#nullable1(#t43{self::Class1}, #t44) in #t44; + let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t48{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : let final self::Class1 #t50 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t51 = self::Extension1|set#nullable1(#t49{self::Class1}, #t50) in #t50; + let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t52{self::Class1})); + let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t53{self::Class1}), new self::Class1::•()); + let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t54{self::Class1})); + let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t55{self::Class1}))); + let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t56{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : let final self::Class1 #t58 = new self::Class1::•() in let final void #t59 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1})), #t58) in #t58; + let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : let final self::Class1? #t61 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t60{self::Class1})) in #t61 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t61{self::Class1}); + let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t62{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : let final self::Class1? #t64 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t65 = self::Extension1|set#nullable1(#t63{self::Class1}, #t64) in #t64; + let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t66{self::Class1}, let final self::Class1 #t67 = new self::Class1::•() in let final void #t68 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t67) in #t67); + nullable1 = let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : let final self::Class1 #t70 = let final self::Class1 #t71 = new self::Class1::•() in let final void #t72 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t71) in #t71 in let final void #t73 = self::Extension1|set#nullable1(#t69{self::Class1}, #t70) in #t70; + let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t74{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : let final self::Class1 #t76 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t77 = self::Extension1|set#nullable1(#t75{self::Class1}, #t76) in #t76; + let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t78{self::Class1}))); + let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t79{self::Class1})), new self::Class1::•()); + let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); + let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t81{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : let final self::Class1? #t83 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t84 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t82{self::Class1}), #t83) in #t83; + let final self::Class1? #t85 = n1 in #t85 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t85{self::Class1}), let final self::Class1 #t86 = new self::Class1::•() in let final void #t87 = self::Extension1|set#nullable1(new self::Class1::•(), #t86) in #t86); + nullable1 = let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : let final self::Class1 #t89 = let final self::Class1 #t90 = new self::Class1::•() in let final void #t91 = self::Extension1|set#nullable1(new self::Class1::•(), #t90) in #t90 in let final void #t92 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t88{self::Class1}), #t89) in #t89; + let final self::Class1? #t93 = n1 in #t93 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t93{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t94 = n1 in #t94 == null ?{self::Class1?} null : let final self::Class1 #t95 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t96 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t94{self::Class1}), #t95) in #t95; + let final self::Class1? #t97 = n1 in #t97 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t97{self::Class1}, let final self::Class1? #t98 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t99 = self::Extension1|set#nullable1(new self::Class1::•(), #t98) in #t98); + nullable1 = let final self::Class1? #t100 = n1 in #t100 == null ?{self::Class1?} null : let final self::Class1? #t101 = let final self::Class1? #t102 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t103 = self::Extension1|set#nullable1(new self::Class1::•(), #t102) in #t102 in let final void #t104 = self::Extension1|set#nullable1(#t100{self::Class1}, #t101) in #t101; + let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t105{self::Class1}, let final self::Class1 #t106 = let final self::Class1 #t107 = new self::Class1::•() in let final void #t108 = self::Extension1|set#nullable1(new self::Class1::•(), #t107) in #t107 in let final void #t109 = self::Extension1|set#nullable1(new self::Class1::•(), #t106) in #t106); + nullable1 = let final self::Class1? #t110 = n1 in #t110 == null ?{self::Class1?} null : let final self::Class1 #t111 = let final self::Class1 #t112 = let final self::Class1 #t113 = new self::Class1::•() in let final void #t114 = self::Extension1|set#nullable1(new self::Class1::•(), #t113) in #t113 in let final void #t115 = self::Extension1|set#nullable1(new self::Class1::•(), #t112) in #t112 in let final void #t116 = self::Extension1|set#nullable1(#t110{self::Class1}, #t111) in #t111; + let final self::Class1? #t117 = n1 in #t117 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t117{self::Class1}, let final self::Class1 #t118 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t119 = self::Extension1|set#nullable1(new self::Class1::•(), #t118) in #t118); + nullable1 = let final self::Class1? #t120 = n1 in #t120 == null ?{self::Class1?} null : let final self::Class1 #t121 = let final self::Class1 #t122 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t123 = self::Extension1|set#nullable1(new self::Class1::•(), #t122) in #t122 in let final void #t124 = self::Extension1|set#nullable1(#t120{self::Class1}, #t121) in #t121; + let final self::Class1? #t125 = n1 in #t125 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t125{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t126 = n1 in #t126 == null ?{self::Class1?} null : let final self::Class1? #t127 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t128 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t126{self::Class1}), #t127) in #t127; + let final self::Class1? #t129 = n1 in #t129 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t129{self::Class1}), let final self::Class1 #t130 = new self::Class1::•() in let final void #t131 = self::Extension1|set#nullable1(new self::Class1::•(), #t130) in #t130); + nullable1 = let final self::Class1? #t132 = n1 in #t132 == null ?{self::Class1?} null : let final self::Class1 #t133 = let final self::Class1 #t134 = new self::Class1::•() in let final void #t135 = self::Extension1|set#nullable1(new self::Class1::•(), #t134) in #t134 in let final void #t136 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t132{self::Class1}), #t133) in #t133; + let final self::Class1? #t137 = n1 in #t137 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t137{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t138 = n1 in #t138 == null ?{self::Class1?} null : let final self::Class1 #t139 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t140 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t138{self::Class1}), #t139) in #t139; + let final self::Class1? #t141 = n1 in #t141 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t141{self::Class1}))); + let final self::Class1? #t142 = n1 in #t142 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t142{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : let final self::Class1 #t144 = new self::Class1::•() in let final void #t145 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1})), #t144) in #t144; + let final self::Class1? #t146 = n1 in #t146 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t146{self::Class1}))); + let final self::Class1? #t147 = n1 in #t147 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t147{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : let final self::Class1? #t149 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t150 = self::Extension1|set#nullable1(#t148{self::Class1}, #t149) in #t149; + let final self::Class1? #t151 = n1 in #t151 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t151{self::Class1}, let final self::Class1 #t152 = new self::Class1::•() in let final void #t153 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t152) in #t152); + nullable1 = let final self::Class1? #t154 = n1 in #t154 == null ?{self::Class1?} null : let final self::Class1 #t155 = let final self::Class1 #t156 = new self::Class1::•() in let final void #t157 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t156) in #t156 in let final void #t158 = self::Extension1|set#nullable1(#t154{self::Class1}, #t155) in #t155; + let final self::Class1? #t159 = n1 in #t159 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t159{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t160 = n1 in #t160 == null ?{self::Class1?} null : let final self::Class1 #t161 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t162 = self::Extension1|set#nullable1(#t160{self::Class1}, #t161) in #t161; + let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t163{self::Class1}))); + let final self::Class1? #t164 = n1 in #t164 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t164{self::Class1})), new self::Class1::•()); + let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); + let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : let final self::Class1? #t167 = self::Extension1|nonNullable1Method(#t166{self::Class1}) in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t167{self::Class1}); } static method indexAccess(self::Class1? n1, self::Class2? n2, self::Class3? n3) → void { self::Class1? nullable1 = n1; self::Class2? nullable2 = n2; self::Class3? nullable3 = n3; - let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : self::Extension1|[](#t170{self::Class1}, nullable1); - let final self::Class1? #t171 = n1 in #t171 == null ?{void} null : self::Extension1|[]=(#t171{self::Class1}, nullable1, new self::Class1::•()); - let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : let final self::Class1? #t173 = self::Extension1|[](#t172{self::Class1}, nullable1) in #t173 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t173{self::Class1}); - let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t174{self::Class1}), nullable1); - let final self::Class1? #t175 = n1 in #t175 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t175{self::Class1}), nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t176 = n1 in #t176 == null ?{self::Class1?} null : let final self::Class1 #t177 = self::Extension1|get#nonNullable1(#t176{self::Class1}) in let final self::Class1? #t178 = nullable1 in let final self::Class1 #t179 = new self::Class1::•() in let final void #t180 = self::Extension1|[]=(#t177, #t178, #t179) in #t179; - let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class1?} null : let final self::Class1? #t182 = self::Extension1|[](self::Extension1|get#nonNullable1(#t181{self::Class1}), nullable1) in #t182 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t182{self::Class1}); - let final self::Class1? #t183 = n1 in #t183 == null ?{self::Class2?} null : let final self::Class2 #t184 = self::Extension1|get#nonNullable2(#t183{self::Class1}) in let final self::Class2? #t185 = nullable2 in self::Extension2|[]=(#t184, #t185, self::Extension2|+(self::Extension2|[](#t184, #t185), 0)); - nullable2 = let final self::Class1? #t186 = n1 in #t186 == null ?{self::Class2?} null : let final self::Class2 #t187 = self::Extension1|get#nonNullable2(#t186{self::Class1}) in let final self::Class2? #t188 = nullable2 in let final self::Class2 #t189 = self::Extension2|+(self::Extension2|[](#t187, #t188), 0) in let final void #t190 = self::Extension2|[]=(#t187, #t188, #t189) in #t189; - let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in self::Extension1|[](#t191{self::Class1}, #t192) == null ?{self::Class1?} self::Extension1|[]=(#t191{self::Class1}, #t192, nullable1) : null; - nullable1 = let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = nullable1 in let final self::Class1? #t195 = self::Extension1|[](#t193{self::Class1}, #t194) in #t195 == null ?{self::Class1?} let final self::Class1? #t196 = nullable1 in let final void #t197 = self::Extension1|[]=(#t193{self::Class1}, #t194, #t196) in #t196 : #t195{self::Class1}; - let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in self::Extension2|[]=(#t198{self::Class2}, #t199, self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0)); - nullable2 = let final self::Class2? #t200 = n2 in #t200 == null ?{self::Class2?} null : let final self::Class2? #t201 = nullable2 in let final self::Class2 #t202 = self::Extension2|+(self::Extension2|[](#t200{self::Class2}, #t201), 0) in let final void #t203 = self::Extension2|[]=(#t200{self::Class2}, #t201, #t202) in #t202; - let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in self::Extension2|[]=(#t204{self::Class2}, #t205, self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0)); - nullable2 = let final self::Class2? #t206 = n2 in #t206 == null ?{self::Class2?} null : let final self::Class2? #t207 = nullable2 in let final self::Class2 #t208 = self::Extension2|+(self::Extension2|[](#t206{self::Class2}, #t207), 0) in let final void #t209 = self::Extension2|[]=(#t206{self::Class2}, #t207, #t208) in #t208; - let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(self::Extension2|[](#t210{self::Class2}, #t211), 1)); - nullable2 = let final self::Class2? #t212 = n2 in #t212 == null ?{self::Class2?} null : let final self::Class2? #t213 = nullable2 in let final self::Class2 #t214 = self::Extension2|[](#t212{self::Class2}, #t213) in let final void #t215 = self::Extension2|[]=(#t212{self::Class2}, #t213, self::Extension2|+(#t214, 1)) in #t214; - let final self::Class2? #t216 = n2 in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = nullable2 in let final self::Class2 #t218 = self::Extension2|+(self::Extension2|[](#t216{self::Class2}, #t217), 1) in let final void #t219 = self::Extension2|[]=(#t216{self::Class2}, #t217, #t218) in #t218; - nullable2 = let final self::Class2? #t220 = n2 in #t220 == null ?{self::Class2?} null : let final self::Class2? #t221 = nullable2 in let final self::Class2 #t222 = self::Extension2|+(self::Extension2|[](#t220{self::Class2}, #t221), 1) in let final void #t223 = self::Extension2|[]=(#t220{self::Class2}, #t221, #t222) in #t222; - let final self::Class1? #t224 = n1 in #t224 == null ?{self::Class2?} null : let final self::Class2 #t225 = self::Extension1|get#nonNullable2(#t224{self::Class1}) in let final self::Class2? #t226 = nullable2 in self::Extension2|[]=(#t225, #t226, self::Extension2|+(self::Extension2|[](#t225, #t226), 1)); - nullable2 = let final self::Class1? #t227 = n1 in #t227 == null ?{self::Class2?} null : let final self::Class2 #t228 = self::Extension1|get#nonNullable2(#t227{self::Class1}) in let final self::Class2? #t229 = nullable2 in let final self::Class2 #t230 = self::Extension2|[](#t228, #t229) in let final void #t231 = self::Extension2|[]=(#t228, #t229, self::Extension2|+(#t230, 1)) in #t230; - let final self::Class1? #t232 = n1 in #t232 == null ?{self::Class2?} null : let final self::Class2 #t233 = self::Extension1|get#nonNullable2(#t232{self::Class1}) in let final self::Class2? #t234 = nullable2 in let final self::Class2 #t235 = self::Extension2|+(self::Extension2|[](#t233, #t234), 1) in let final void #t236 = self::Extension2|[]=(#t233, #t234, #t235) in #t235; - nullable2 = let final self::Class1? #t237 = n1 in #t237 == null ?{self::Class2?} null : let final self::Class2 #t238 = self::Extension1|get#nonNullable2(#t237{self::Class1}) in let final self::Class2? #t239 = nullable2 in let final self::Class2 #t240 = self::Extension2|+(self::Extension2|[](#t238, #t239), 1) in let final void #t241 = self::Extension2|[]=(#t238, #t239, #t240) in #t240; - let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2), nullable2); - let final self::Class1? #t243 = n1 in #t243 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t243{self::Class1}), nullable2), nullable2, new self::Class2::•()); - nullable2 = let final self::Class1? #t244 = n1 in #t244 == null ?{self::Class2?} null : let final self::Class2 #t245 = self::Extension2|[](self::Extension1|get#nonNullable2(#t244{self::Class1}), nullable2) in let final self::Class2? #t246 = nullable2 in let final self::Class2 #t247 = new self::Class2::•() in let final void #t248 = self::Extension2|[]=(#t245, #t246, #t247) in #t247; - let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2? #t250 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2), nullable2) in #t250 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t250{self::Class2}); - let final self::Class1? #t251 = n1 in #t251 == null ?{self::Class2?} null : let final self::Class2 #t252 = self::Extension2|[](self::Extension1|get#nonNullable2(#t251{self::Class1}), nullable2) in let final self::Class2? #t253 = nullable2 in self::Extension2|[]=(#t252, #t253, self::Extension2|+(self::Extension2|[](#t252, #t253), 0)); - nullable2 = let final self::Class1? #t254 = n1 in #t254 == null ?{self::Class2?} null : let final self::Class2 #t255 = self::Extension2|[](self::Extension1|get#nonNullable2(#t254{self::Class1}), nullable2) in let final self::Class2? #t256 = nullable2 in let final self::Class2 #t257 = self::Extension2|+(self::Extension2|[](#t255, #t256), 0) in let final void #t258 = self::Extension2|[]=(#t255, #t256, #t257) in #t257; - let final self::Class1? #t259 = n1 in #t259 == null ?{self::Class2?} null : let final self::Class2 #t260 = self::Extension2|[](self::Extension1|get#nonNullable2(#t259{self::Class1}), nullable2) in let final self::Class2? #t261 = nullable2 in self::Extension2|[]=(#t260, #t261, self::Extension2|+(self::Extension2|[](#t260, #t261), 1)); - nullable2 = let final self::Class1? #t262 = n1 in #t262 == null ?{self::Class2?} null : let final self::Class2 #t263 = self::Extension2|[](self::Extension1|get#nonNullable2(#t262{self::Class1}), nullable2) in let final self::Class2? #t264 = nullable2 in let final self::Class2 #t265 = self::Extension2|[](#t263, #t264) in let final void #t266 = self::Extension2|[]=(#t263, #t264, self::Extension2|+(#t265, 1)) in #t265; - let final self::Class1? #t267 = n1 in #t267 == null ?{self::Class2?} null : let final self::Class2 #t268 = self::Extension2|[](self::Extension1|get#nonNullable2(#t267{self::Class1}), nullable2) in let final self::Class2? #t269 = nullable2 in let final self::Class2 #t270 = self::Extension2|+(self::Extension2|[](#t268, #t269), 1) in let final void #t271 = self::Extension2|[]=(#t268, #t269, #t270) in #t270; - nullable2 = let final self::Class1? #t272 = n1 in #t272 == null ?{self::Class2?} null : let final self::Class2 #t273 = self::Extension2|[](self::Extension1|get#nonNullable2(#t272{self::Class1}), nullable2) in let final self::Class2? #t274 = nullable2 in let final self::Class2 #t275 = self::Extension2|+(self::Extension2|[](#t273, #t274), 1) in let final void #t276 = self::Extension2|[]=(#t273, #t274, #t275) in #t275; - let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[](#t278{self::Class1}, nullable1); - let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : self::Extension1|[]=(#t280{self::Class1}, nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t281 = n1 in #t281 == null ?{self::Class1?} null : let final self::Class1? #t282 = self::Extension1|[](#t281{self::Class1}, nullable1) in #t282 == null ?{self::Class1?} null : let final self::Class1? #t283 = nullable1 in let final self::Class1 #t284 = new self::Class1::•() in let final void #t285 = self::Extension1|[]=(#t282{self::Class1}, #t283, #t284) in #t284; - let final self::Class1? #t286 = n1 in #t286 == null ?{self::Class1?} null : let final self::Class1? #t287 = self::Extension1|[](#t286{self::Class1}, nullable1) in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t288{self::Class1}); - nullable1 = let final self::Class1? #t289 = n1 in #t289 == null ?{self::Class1?} null : let final self::Class1? #t290 = self::Extension1|[](#t289{self::Class1}, nullable1) in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t291{self::Class1}); - let final self::Class1? #t292 = n1 in #t292 == null ?{self::Class1?} null : let final self::Class1? #t293 = self::Extension1|[](#t292{self::Class1}, nullable1) in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = nullable1 in self::Extension1|[](#t293{self::Class1}, #t294) == null ?{self::Class1?} self::Extension1|[]=(#t293{self::Class1}, #t294, nullable1) : null; - nullable1 = let final self::Class1? #t295 = n1 in #t295 == null ?{self::Class1?} null : let final self::Class1? #t296 = self::Extension1|[](#t295{self::Class1}, nullable1) in #t296 == null ?{self::Class1?} null : let final self::Class1? #t297 = nullable1 in let final self::Class1? #t298 = self::Extension1|[](#t296{self::Class1}, #t297) in #t298 == null ?{self::Class1?} let final self::Class1? #t299 = nullable1 in let final void #t300 = self::Extension1|[]=(#t296{self::Class1}, #t297, #t299) in #t299 : #t298{self::Class1}; - let final self::Class3? #t301 = n3 in #t301 == null ?{self::Class2?} null : let final self::Class2? #t302 = self::Extension3|[](#t301{self::Class3}, nullable3) in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = nullable2 in self::Extension2|[]=(#t302{self::Class2}, #t303, self::Extension2|+(self::Extension2|[](#t302{self::Class2}, #t303), 0)); - nullable2 = let final self::Class3? #t304 = n3 in #t304 == null ?{self::Class2?} null : let final self::Class2? #t305 = self::Extension3|[](#t304{self::Class3}, nullable3) in #t305 == null ?{self::Class2?} null : let final self::Class2? #t306 = nullable2 in let final self::Class2 #t307 = self::Extension2|+(self::Extension2|[](#t305{self::Class2}, #t306), 0) in let final void #t308 = self::Extension2|[]=(#t305{self::Class2}, #t306, #t307) in #t307; - let final self::Class3? #t309 = n3 in #t309 == null ?{self::Class2?} null : let final self::Class2? #t310 = self::Extension3|[](#t309{self::Class3}, nullable3) in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = nullable2 in self::Extension2|[]=(#t310{self::Class2}, #t311, self::Extension2|+(self::Extension2|[](#t310{self::Class2}, #t311), 1)); - nullable2 = let final self::Class3? #t312 = n3 in #t312 == null ?{self::Class2?} null : let final self::Class2? #t313 = self::Extension3|[](#t312{self::Class3}, nullable3) in #t313 == null ?{self::Class2?} null : let final self::Class2? #t314 = nullable2 in let final self::Class2 #t315 = self::Extension2|[](#t313{self::Class2}, #t314) in let final void #t316 = self::Extension2|[]=(#t313{self::Class2}, #t314, self::Extension2|+(#t315, 1)) in #t315; - let final self::Class3? #t317 = n3 in #t317 == null ?{self::Class2?} null : let final self::Class2? #t318 = self::Extension3|[](#t317{self::Class3}, nullable3) in #t318 == null ?{self::Class2?} null : let final self::Class2? #t319 = nullable2 in let final self::Class2 #t320 = self::Extension2|+(self::Extension2|[](#t318{self::Class2}, #t319), 1) in let final void #t321 = self::Extension2|[]=(#t318{self::Class2}, #t319, #t320) in #t320; - nullable2 = let final self::Class3? #t322 = n3 in #t322 == null ?{self::Class2?} null : let final self::Class2? #t323 = self::Extension3|[](#t322{self::Class3}, nullable3) in #t323 == null ?{self::Class2?} null : let final self::Class2? #t324 = nullable2 in let final self::Class2 #t325 = self::Extension2|+(self::Extension2|[](#t323{self::Class2}, #t324), 1) in let final void #t326 = self::Extension2|[]=(#t323{self::Class2}, #t324, #t325) in #t325; + let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : self::Extension1|[](#t168{self::Class1}, nullable1); + let final self::Class1? #t169 = n1 in #t169 == null ?{void} null : self::Extension1|[]=(#t169{self::Class1}, nullable1, new self::Class1::•()); + let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : let final self::Class1? #t171 = self::Extension1|[](#t170{self::Class1}, nullable1) in #t171 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t171{self::Class1}); + let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t172{self::Class1}), nullable1); + let final self::Class1? #t173 = n1 in #t173 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t173{self::Class1}), nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : let final self::Class1 #t175 = self::Extension1|get#nonNullable1(#t174{self::Class1}) in let final self::Class1? #t176 = nullable1 in let final self::Class1 #t177 = new self::Class1::•() in let final void #t178 = self::Extension1|[]=(#t175, #t176, #t177) in #t177; + let final self::Class1? #t179 = n1 in #t179 == null ?{self::Class1?} null : let final self::Class1? #t180 = self::Extension1|[](self::Extension1|get#nonNullable1(#t179{self::Class1}), nullable1) in #t180 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t180{self::Class1}); + let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class2?} null : let final self::Class2 #t182 = self::Extension1|get#nonNullable2(#t181{self::Class1}) in let final self::Class2? #t183 = nullable2 in self::Extension2|[]=(#t182, #t183, self::Extension2|+(self::Extension2|[](#t182, #t183), 0)); + nullable2 = let final self::Class1? #t184 = n1 in #t184 == null ?{self::Class2?} null : let final self::Class2 #t185 = self::Extension1|get#nonNullable2(#t184{self::Class1}) in let final self::Class2? #t186 = nullable2 in let final self::Class2 #t187 = self::Extension2|+(self::Extension2|[](#t185, #t186), 0) in let final void #t188 = self::Extension2|[]=(#t185, #t186, #t187) in #t187; + let final self::Class1? #t189 = n1 in #t189 == null ?{self::Class1?} null : let final self::Class1? #t190 = nullable1 in self::Extension1|[](#t189{self::Class1}, #t190) == null ?{self::Class1?} self::Extension1|[]=(#t189{self::Class1}, #t190, nullable1) : null; + nullable1 = let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in let final self::Class1? #t193 = self::Extension1|[](#t191{self::Class1}, #t192) in #t193 == null ?{self::Class1?} let final self::Class1? #t194 = nullable1 in let final void #t195 = self::Extension1|[]=(#t191{self::Class1}, #t192, #t194) in #t194 : #t193{self::Class1}; + let final self::Class2? #t196 = n2 in #t196 == null ?{self::Class2?} null : let final self::Class2? #t197 = nullable2 in self::Extension2|[]=(#t196{self::Class2}, #t197, self::Extension2|+(self::Extension2|[](#t196{self::Class2}, #t197), 0)); + nullable2 = let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in let final self::Class2 #t200 = self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0) in let final void #t201 = self::Extension2|[]=(#t198{self::Class2}, #t199, #t200) in #t200; + let final self::Class2? #t202 = n2 in #t202 == null ?{self::Class2?} null : let final self::Class2? #t203 = nullable2 in self::Extension2|[]=(#t202{self::Class2}, #t203, self::Extension2|+(self::Extension2|[](#t202{self::Class2}, #t203), 0)); + nullable2 = let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in let final self::Class2 #t206 = self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0) in let final void #t207 = self::Extension2|[]=(#t204{self::Class2}, #t205, #t206) in #t206; + let final self::Class2? #t208 = n2 in #t208 == null ?{self::Class2?} null : let final self::Class2? #t209 = nullable2 in self::Extension2|[]=(#t208{self::Class2}, #t209, self::Extension2|+(self::Extension2|[](#t208{self::Class2}, #t209), 1)); + nullable2 = let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in let final self::Class2 #t212 = self::Extension2|[](#t210{self::Class2}, #t211) in let final void #t213 = self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(#t212, 1)) in #t212; + let final self::Class2? #t214 = n2 in #t214 == null ?{self::Class2?} null : let final self::Class2? #t215 = nullable2 in let final self::Class2 #t216 = self::Extension2|+(self::Extension2|[](#t214{self::Class2}, #t215), 1) in let final void #t217 = self::Extension2|[]=(#t214{self::Class2}, #t215, #t216) in #t216; + nullable2 = let final self::Class2? #t218 = n2 in #t218 == null ?{self::Class2?} null : let final self::Class2? #t219 = nullable2 in let final self::Class2 #t220 = self::Extension2|+(self::Extension2|[](#t218{self::Class2}, #t219), 1) in let final void #t221 = self::Extension2|[]=(#t218{self::Class2}, #t219, #t220) in #t220; + let final self::Class1? #t222 = n1 in #t222 == null ?{self::Class2?} null : let final self::Class2 #t223 = self::Extension1|get#nonNullable2(#t222{self::Class1}) in let final self::Class2? #t224 = nullable2 in self::Extension2|[]=(#t223, #t224, self::Extension2|+(self::Extension2|[](#t223, #t224), 1)); + nullable2 = let final self::Class1? #t225 = n1 in #t225 == null ?{self::Class2?} null : let final self::Class2 #t226 = self::Extension1|get#nonNullable2(#t225{self::Class1}) in let final self::Class2? #t227 = nullable2 in let final self::Class2 #t228 = self::Extension2|[](#t226, #t227) in let final void #t229 = self::Extension2|[]=(#t226, #t227, self::Extension2|+(#t228, 1)) in #t228; + let final self::Class1? #t230 = n1 in #t230 == null ?{self::Class2?} null : let final self::Class2 #t231 = self::Extension1|get#nonNullable2(#t230{self::Class1}) in let final self::Class2? #t232 = nullable2 in let final self::Class2 #t233 = self::Extension2|+(self::Extension2|[](#t231, #t232), 1) in let final void #t234 = self::Extension2|[]=(#t231, #t232, #t233) in #t233; + nullable2 = let final self::Class1? #t235 = n1 in #t235 == null ?{self::Class2?} null : let final self::Class2 #t236 = self::Extension1|get#nonNullable2(#t235{self::Class1}) in let final self::Class2? #t237 = nullable2 in let final self::Class2 #t238 = self::Extension2|+(self::Extension2|[](#t236, #t237), 1) in let final void #t239 = self::Extension2|[]=(#t236, #t237, #t238) in #t238; + let final self::Class1? #t240 = n1 in #t240 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t240{self::Class1}), nullable2), nullable2); + let final self::Class1? #t241 = n1 in #t241 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t241{self::Class1}), nullable2), nullable2, new self::Class2::•()); + nullable2 = let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : let final self::Class2 #t243 = self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2) in let final self::Class2? #t244 = nullable2 in let final self::Class2 #t245 = new self::Class2::•() in let final void #t246 = self::Extension2|[]=(#t243, #t244, #t245) in #t245; + let final self::Class1? #t247 = n1 in #t247 == null ?{self::Class2?} null : let final self::Class2? #t248 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t247{self::Class1}), nullable2), nullable2) in #t248 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t248{self::Class2}); + let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2 #t250 = self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2) in let final self::Class2? #t251 = nullable2 in self::Extension2|[]=(#t250, #t251, self::Extension2|+(self::Extension2|[](#t250, #t251), 0)); + nullable2 = let final self::Class1? #t252 = n1 in #t252 == null ?{self::Class2?} null : let final self::Class2 #t253 = self::Extension2|[](self::Extension1|get#nonNullable2(#t252{self::Class1}), nullable2) in let final self::Class2? #t254 = nullable2 in let final self::Class2 #t255 = self::Extension2|+(self::Extension2|[](#t253, #t254), 0) in let final void #t256 = self::Extension2|[]=(#t253, #t254, #t255) in #t255; + let final self::Class1? #t257 = n1 in #t257 == null ?{self::Class2?} null : let final self::Class2 #t258 = self::Extension2|[](self::Extension1|get#nonNullable2(#t257{self::Class1}), nullable2) in let final self::Class2? #t259 = nullable2 in self::Extension2|[]=(#t258, #t259, self::Extension2|+(self::Extension2|[](#t258, #t259), 1)); + nullable2 = let final self::Class1? #t260 = n1 in #t260 == null ?{self::Class2?} null : let final self::Class2 #t261 = self::Extension2|[](self::Extension1|get#nonNullable2(#t260{self::Class1}), nullable2) in let final self::Class2? #t262 = nullable2 in let final self::Class2 #t263 = self::Extension2|[](#t261, #t262) in let final void #t264 = self::Extension2|[]=(#t261, #t262, self::Extension2|+(#t263, 1)) in #t263; + let final self::Class1? #t265 = n1 in #t265 == null ?{self::Class2?} null : let final self::Class2 #t266 = self::Extension2|[](self::Extension1|get#nonNullable2(#t265{self::Class1}), nullable2) in let final self::Class2? #t267 = nullable2 in let final self::Class2 #t268 = self::Extension2|+(self::Extension2|[](#t266, #t267), 1) in let final void #t269 = self::Extension2|[]=(#t266, #t267, #t268) in #t268; + nullable2 = let final self::Class1? #t270 = n1 in #t270 == null ?{self::Class2?} null : let final self::Class2 #t271 = self::Extension2|[](self::Extension1|get#nonNullable2(#t270{self::Class1}), nullable2) in let final self::Class2? #t272 = nullable2 in let final self::Class2 #t273 = self::Extension2|+(self::Extension2|[](#t271, #t272), 1) in let final void #t274 = self::Extension2|[]=(#t271, #t272, #t273) in #t273; + let final self::Class1? #t275 = n1 in #t275 == null ?{self::Class1?} null : let final self::Class1? #t276 = self::Extension1|[](#t275{self::Class1}, nullable1) in #t276 == null ?{self::Class1?} null : self::Extension1|[](#t276{self::Class1}, nullable1); + let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[]=(#t278{self::Class1}, nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : let final self::Class1? #t281 = nullable1 in let final self::Class1 #t282 = new self::Class1::•() in let final void #t283 = self::Extension1|[]=(#t280{self::Class1}, #t281, #t282) in #t282; + let final self::Class1? #t284 = n1 in #t284 == null ?{self::Class1?} null : let final self::Class1? #t285 = self::Extension1|[](#t284{self::Class1}, nullable1) in #t285 == null ?{self::Class1?} null : let final self::Class1? #t286 = self::Extension1|[](#t285{self::Class1}, nullable1) in #t286 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t286{self::Class1}); + nullable1 = let final self::Class1? #t287 = n1 in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : let final self::Class1? #t289 = self::Extension1|[](#t288{self::Class1}, nullable1) in #t289 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t289{self::Class1}); + let final self::Class1? #t290 = n1 in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : let final self::Class1? #t292 = nullable1 in self::Extension1|[](#t291{self::Class1}, #t292) == null ?{self::Class1?} self::Extension1|[]=(#t291{self::Class1}, #t292, nullable1) : null; + nullable1 = let final self::Class1? #t293 = n1 in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = self::Extension1|[](#t293{self::Class1}, nullable1) in #t294 == null ?{self::Class1?} null : let final self::Class1? #t295 = nullable1 in let final self::Class1? #t296 = self::Extension1|[](#t294{self::Class1}, #t295) in #t296 == null ?{self::Class1?} let final self::Class1? #t297 = nullable1 in let final void #t298 = self::Extension1|[]=(#t294{self::Class1}, #t295, #t297) in #t297 : #t296{self::Class1}; + let final self::Class3? #t299 = n3 in #t299 == null ?{self::Class2?} null : let final self::Class2? #t300 = self::Extension3|[](#t299{self::Class3}, nullable3) in #t300 == null ?{self::Class2?} null : let final self::Class2? #t301 = nullable2 in self::Extension2|[]=(#t300{self::Class2}, #t301, self::Extension2|+(self::Extension2|[](#t300{self::Class2}, #t301), 0)); + nullable2 = let final self::Class3? #t302 = n3 in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = self::Extension3|[](#t302{self::Class3}, nullable3) in #t303 == null ?{self::Class2?} null : let final self::Class2? #t304 = nullable2 in let final self::Class2 #t305 = self::Extension2|+(self::Extension2|[](#t303{self::Class2}, #t304), 0) in let final void #t306 = self::Extension2|[]=(#t303{self::Class2}, #t304, #t305) in #t305; + let final self::Class3? #t307 = n3 in #t307 == null ?{self::Class2?} null : let final self::Class2? #t308 = self::Extension3|[](#t307{self::Class3}, nullable3) in #t308 == null ?{self::Class2?} null : let final self::Class2? #t309 = nullable2 in self::Extension2|[]=(#t308{self::Class2}, #t309, self::Extension2|+(self::Extension2|[](#t308{self::Class2}, #t309), 1)); + nullable2 = let final self::Class3? #t310 = n3 in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = self::Extension3|[](#t310{self::Class3}, nullable3) in #t311 == null ?{self::Class2?} null : let final self::Class2? #t312 = nullable2 in let final self::Class2 #t313 = self::Extension2|[](#t311{self::Class2}, #t312) in let final void #t314 = self::Extension2|[]=(#t311{self::Class2}, #t312, self::Extension2|+(#t313, 1)) in #t313; + let final self::Class3? #t315 = n3 in #t315 == null ?{self::Class2?} null : let final self::Class2? #t316 = self::Extension3|[](#t315{self::Class3}, nullable3) in #t316 == null ?{self::Class2?} null : let final self::Class2? #t317 = nullable2 in let final self::Class2 #t318 = self::Extension2|+(self::Extension2|[](#t316{self::Class2}, #t317), 1) in let final void #t319 = self::Extension2|[]=(#t316{self::Class2}, #t317, #t318) in #t318; + nullable2 = let final self::Class3? #t320 = n3 in #t320 == null ?{self::Class2?} null : let final self::Class2? #t321 = self::Extension3|[](#t320{self::Class3}, nullable3) in #t321 == null ?{self::Class2?} null : let final self::Class2? #t322 = nullable2 in let final self::Class2 #t323 = self::Extension2|+(self::Extension2|[](#t321{self::Class2}, #t322), 1) in let final void #t324 = self::Extension2|[]=(#t321{self::Class2}, #t322, #t323) in #t323; } static method operatorAccess(self::Class1? n1, self::Class2? n2) → void { self::Class2? nullable2 = n2; - self::throws(() → void => let final Never #t327 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:244:45: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:244:45: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. throws(() => Extension1(n1)?.nonNullable1 + 0); - ^" in self::Extension1|+(let final self::Class1? #t328 = n1 in #t328 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t328{self::Class1}), 0)); - self::throws(() → void => let final Never #t329 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:245:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. + ^" in self::Extension1|+(let final self::Class1? #t325 = n1 in #t325 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t325{self::Class1}), 0)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart:245:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_explicit_extension.dart'. throws(() => -Extension1(n1)?.nonNullable1); - ^" in self::Extension1|unary-(let final self::Class1? #t330 = n1 in #t330 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t330{self::Class1}))); - let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t331{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t331{self::Class2}), 0)); - nullable2 = let final self::Class2? #t332 = n2 in #t332 == null ?{self::Class2?} null : let final self::Class2 #t333 = self::Extension2|+(self::Extension2|get#nonNullable2(#t332{self::Class2}), 0) in let final void #t334 = self::Extension2|set#nonNullable2(#t332{self::Class2}, #t333) in #t333; - let final self::Class2? #t335 = n2 in #t335 == null ?{self::Class2?} null : let final self::Class2 #t336 = self::Extension2|get#nonNullable2(#t335{self::Class2}) in self::Extension2|set#nonNullable2(#t336, self::Extension2|+(self::Extension2|get#nonNullable2(#t336), 0)); - nullable2 = let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : let final self::Class2 #t338 = self::Extension2|get#nonNullable2(#t337{self::Class2}) in let final self::Class2 #t339 = self::Extension2|+(self::Extension2|get#nonNullable2(#t338), 0) in let final void #t340 = self::Extension2|set#nonNullable2(#t338, #t339) in #t339; - let final self::Class2? #t341 = n2 in #t341 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t341{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t341{self::Class2}), 1)); - nullable2 = let final self::Class2? #t342 = n2 in #t342 == null ?{self::Class2?} null : let final self::Class2 #t343 = self::Extension2|get#nonNullable2(#t342{self::Class2}) in let final self::Class2 #t344 = let final self::Class2 #t345 = self::Extension2|+(#t343, 1) in let final void #t346 = self::Extension2|set#nonNullable2(#t342{self::Class2}, #t345) in #t345 in #t343; - let final self::Class2? #t347 = n2 in #t347 == null ?{self::Class2?} null : let final self::Class2 #t348 = self::Extension2|+(self::Extension2|get#nonNullable2(#t347{self::Class2}), 1) in let final void #t349 = self::Extension2|set#nonNullable2(#t347{self::Class2}, #t348) in #t348; - nullable2 = let final self::Class2? #t350 = n2 in #t350 == null ?{self::Class2?} null : let final self::Class2 #t351 = self::Extension2|+(self::Extension2|get#nonNullable2(#t350{self::Class2}), 1) in let final void #t352 = self::Extension2|set#nonNullable2(#t350{self::Class2}, #t351) in #t351; + ^" in self::Extension1|unary-(let final self::Class1? #t326 = n1 in #t326 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t326{self::Class1}))); + let final self::Class2? #t327 = n2 in #t327 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t327{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t327{self::Class2}), 0)); + nullable2 = let final self::Class2? #t328 = n2 in #t328 == null ?{self::Class2?} null : let final self::Class2 #t329 = self::Extension2|+(self::Extension2|get#nonNullable2(#t328{self::Class2}), 0) in let final void #t330 = self::Extension2|set#nonNullable2(#t328{self::Class2}, #t329) in #t329; + let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : let final self::Class2 #t332 = self::Extension2|get#nonNullable2(#t331{self::Class2}) in self::Extension2|set#nonNullable2(#t332, self::Extension2|+(self::Extension2|get#nonNullable2(#t332), 0)); + nullable2 = let final self::Class2? #t333 = n2 in #t333 == null ?{self::Class2?} null : let final self::Class2 #t334 = self::Extension2|get#nonNullable2(#t333{self::Class2}) in let final self::Class2 #t335 = self::Extension2|+(self::Extension2|get#nonNullable2(#t334), 0) in let final void #t336 = self::Extension2|set#nonNullable2(#t334, #t335) in #t335; + let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t337{self::Class2}, self::Extension2|+(self::Extension2|get#nonNullable2(#t337{self::Class2}), 1)); + nullable2 = let final self::Class2? #t338 = n2 in #t338 == null ?{self::Class2?} null : let final self::Class2 #t339 = self::Extension2|get#nonNullable2(#t338{self::Class2}) in let final self::Class2 #t340 = let final self::Class2 #t341 = self::Extension2|+(#t339, 1) in let final void #t342 = self::Extension2|set#nonNullable2(#t338{self::Class2}, #t341) in #t341 in #t339; + let final self::Class2? #t343 = n2 in #t343 == null ?{self::Class2?} null : let final self::Class2 #t344 = self::Extension2|+(self::Extension2|get#nonNullable2(#t343{self::Class2}), 1) in let final void #t345 = self::Extension2|set#nonNullable2(#t343{self::Class2}, #t344) in #t344; + nullable2 = let final self::Class2? #t346 = n2 in #t346 == null ?{self::Class2?} null : let final self::Class2 #t347 = self::Extension2|+(self::Extension2|get#nonNullable2(#t346{self::Class2}), 1) in let final void #t348 = self::Extension2|set#nonNullable2(#t346{self::Class2}, #t347) in #t347; } static method ifNull(self::Class1? n1) → void { self::Class1? nullable1 = n1; - let final self::Class1? #t353 = n1 in #t353 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t353) == null ?{self::Class1} self::Extension1|set#nullable1(#t353, n1{self::Class1}) : null; - n1 = let final self::Class1? #t354 = n1 in #t354 == null ?{self::Class1?} null : let final self::Class1? #t355 = self::Extension1|get#nullable1(#t354) in #t355 == null ?{self::Class1} let final self::Class1 #t356 = n1{self::Class1} in let final void #t357 = self::Extension1|set#nullable1(#t354, #t356) in #t356 : #t355{self::Class1}; - let final self::Class1? #t358 = n1 in #t358 == null ?{self::Class1?} null : let final self::Class1 #t359 = self::Extension1|get#nonNullable1(#t358{self::Class1}) in self::Extension1|get#nullable1(#t359) == null ?{self::Class1} self::Extension1|set#nullable1(#t359, n1{self::Class1}) : null; - n1 = let final self::Class1? #t360 = n1 in #t360 == null ?{self::Class1?} null : let final self::Class1 #t361 = self::Extension1|get#nonNullable1(#t360{self::Class1}) in let final self::Class1? #t362 = self::Extension1|get#nullable1(#t361) in #t362 == null ?{self::Class1} let final self::Class1 #t363 = n1{self::Class1} in let final void #t364 = self::Extension1|set#nullable1(#t361, #t363) in #t363 : #t362{self::Class1}; - let final self::Class1? #t365 = n1 in #t365 == null ?{self::Class1?} null : let final self::Class1 #t366 = self::Extension1|get#nonNullable1(#t365{self::Class1}) in let final self::Class1 #t367 = n1{self::Class1} in self::Extension1|[](#t366, #t367) == null ?{self::Class1} self::Extension1|[]=(#t366, #t367, n1{self::Class1}) : null; - n1 = let final self::Class1? #t368 = n1 in #t368 == null ?{self::Class1?} null : let final self::Class1 #t369 = self::Extension1|get#nonNullable1(#t368{self::Class1}) in let final self::Class1 #t370 = n1{self::Class1} in let final self::Class1? #t371 = self::Extension1|[](#t369, #t370) in #t371 == null ?{self::Class1} let final self::Class1 #t372 = n1{self::Class1} in let final void #t373 = self::Extension1|[]=(#t369, #t370, #t372) in #t372 : #t371{self::Class1}; + let final self::Class1? #t349 = n1 in #t349 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t349) == null ?{self::Class1} self::Extension1|set#nullable1(#t349, n1{self::Class1}) : null; + n1 = let final self::Class1? #t350 = n1 in #t350 == null ?{self::Class1?} null : let final self::Class1? #t351 = self::Extension1|get#nullable1(#t350) in #t351 == null ?{self::Class1} let final self::Class1 #t352 = n1{self::Class1} in let final void #t353 = self::Extension1|set#nullable1(#t350, #t352) in #t352 : #t351{self::Class1}; + let final self::Class1? #t354 = n1 in #t354 == null ?{self::Class1?} null : let final self::Class1 #t355 = self::Extension1|get#nonNullable1(#t354{self::Class1}) in self::Extension1|get#nullable1(#t355) == null ?{self::Class1} self::Extension1|set#nullable1(#t355, n1{self::Class1}) : null; + n1 = let final self::Class1? #t356 = n1 in #t356 == null ?{self::Class1?} null : let final self::Class1 #t357 = self::Extension1|get#nonNullable1(#t356{self::Class1}) in let final self::Class1? #t358 = self::Extension1|get#nullable1(#t357) in #t358 == null ?{self::Class1} let final self::Class1 #t359 = n1{self::Class1} in let final void #t360 = self::Extension1|set#nullable1(#t357, #t359) in #t359 : #t358{self::Class1}; + let final self::Class1? #t361 = n1 in #t361 == null ?{self::Class1?} null : let final self::Class1 #t362 = self::Extension1|get#nonNullable1(#t361{self::Class1}) in let final self::Class1 #t363 = n1{self::Class1} in self::Extension1|[](#t362, #t363) == null ?{self::Class1} self::Extension1|[]=(#t362, #t363, n1{self::Class1}) : null; + n1 = let final self::Class1? #t364 = n1 in #t364 == null ?{self::Class1?} null : let final self::Class1 #t365 = self::Extension1|get#nonNullable1(#t364{self::Class1}) in let final self::Class1 #t366 = n1{self::Class1} in let final self::Class1? #t367 = self::Extension1|[](#t365, #t366) in #t367 == null ?{self::Class1} let final self::Class1 #t368 = n1{self::Class1} in let final void #t369 = self::Extension1|[]=(#t365, #t366, #t368) in #t368 : #t367{self::Class1}; } static method throws(() → void f) → void { try { diff --git a/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.strong.expect b/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.strong.expect index 38237dc6ce4..954b4c04ca7 100644 --- a/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.strong.expect @@ -139,153 +139,153 @@ static method propertyAccess(self::Class1? n1) → void { let final self::Class1? #t13 = n1 in #t13 == null ?{self::Class1?} null : let final self::Class1? #t14 = self::Extension1|get#nullable1(#t13{self::Class1}) in #t14 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t14{self::Class1}, new self::Class1::•()); let final self::Class1? #t15 = n1 in #t15 == null ?{self::Class1?} null : let final self::Class1? #t16 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t15{self::Class1})) in #t16 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t16{self::Class1}, new self::Class1::•()); let final self::Class1? #t17 = let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t18{self::Class1}) in #t17 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t17{self::Class1}); - self::throws(() → void => let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:93:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:93:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. Try accessing using ?. instead. throws(() => (n1?.nullable1 = new Class1()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : let final self::Class1 #t21 = new self::Class1::•() in let final void #t22 = self::Extension1|set#nullable1(#t20{self::Class1}, #t21) in #t21)); - self::throws(() → void => let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:94:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t19 = n1 in #t19 == null ?{self::Class1?} null : let final self::Class1 #t20 = new self::Class1::•() in let final void #t21 = self::Extension1|set#nullable1(#t19{self::Class1}, #t20) in #t20)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:94:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. Try accessing using ?. instead. throws(() => (n1?.nonNullable1Method()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t24{self::Class1}))); - nullable1 = let final self::Class1? #t25 = n1 in #t25 == null ?{self::Class1?} null : let final self::Class1 #t26 = new self::Class1::•() in let final void #t27 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t25{self::Class1}), #t26) in #t26; - nullable1 = let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : let final self::Class1? #t29 = self::Extension1|get#nullable1(#t28{self::Class1}) in #t29 == null ?{self::Class1?} null : let final self::Class1 #t30 = new self::Class1::•() in let final void #t31 = self::Extension1|set#nullable1(#t29{self::Class1}, #t30) in #t30; - nullable1 = let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : let final self::Class1? #t33 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t32{self::Class1})) in #t33 == null ?{self::Class1?} null : let final self::Class1 #t34 = new self::Class1::•() in let final void #t35 = self::Extension1|set#nullable1(#t33{self::Class1}, #t34) in #t34; - let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : let final self::Class1? #t37 = self::Extension1|get#nullable1(#t36{self::Class1}) in #t37 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t37{self::Class1}); - let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t38{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t39 = n1 in #t39 == null ?{self::Class1?} null : let final self::Class1? #t40 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t41 = self::Extension1|set#nullable1(#t39{self::Class1}, #t40) in #t40; - let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t42{self::Class1}, let final self::Class1 #t43 = new self::Class1::•() in let final void #t44 = self::Extension1|set#nullable1(new self::Class1::•(), #t43) in #t43); - nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : let final self::Class1 #t46 = let final self::Class1 #t47 = new self::Class1::•() in let final void #t48 = self::Extension1|set#nullable1(new self::Class1::•(), #t47) in #t47 in let final void #t49 = self::Extension1|set#nullable1(#t45{self::Class1}, #t46) in #t46; - let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t50{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : let final self::Class1 #t52 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t53 = self::Extension1|set#nullable1(#t51{self::Class1}, #t52) in #t52; - let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t54{self::Class1})); - let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t55{self::Class1}), new self::Class1::•()); - let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t56{self::Class1})); - let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1}))); - let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t58{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : let final self::Class1 #t60 = new self::Class1::•() in let final void #t61 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t59{self::Class1})), #t60) in #t60; - let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : let final self::Class1? #t63 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t62{self::Class1})) in #t63 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t63{self::Class1}); - let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t64{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : let final self::Class1? #t66 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t67 = self::Extension1|set#nullable1(#t65{self::Class1}, #t66) in #t66; - let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t68{self::Class1}, let final self::Class1 #t69 = new self::Class1::•() in let final void #t70 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t69) in #t69); - nullable1 = let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : let final self::Class1 #t72 = let final self::Class1 #t73 = new self::Class1::•() in let final void #t74 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t73) in #t73 in let final void #t75 = self::Extension1|set#nullable1(#t71{self::Class1}, #t72) in #t72; - let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t76{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : let final self::Class1 #t78 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t79 = self::Extension1|set#nullable1(#t77{self::Class1}, #t78) in #t78; - let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); - let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t81{self::Class1})), new self::Class1::•()); - let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t82{self::Class1}))); - let final self::Class1? #t83 = n1 in #t83 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t83{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : let final self::Class1? #t85 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t86 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t84{self::Class1}), #t85) in #t85; - let final self::Class1? #t87 = n1 in #t87 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t87{self::Class1}), let final self::Class1 #t88 = new self::Class1::•() in let final void #t89 = self::Extension1|set#nullable1(new self::Class1::•(), #t88) in #t88); - nullable1 = let final self::Class1? #t90 = n1 in #t90 == null ?{self::Class1?} null : let final self::Class1 #t91 = let final self::Class1 #t92 = new self::Class1::•() in let final void #t93 = self::Extension1|set#nullable1(new self::Class1::•(), #t92) in #t92 in let final void #t94 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t90{self::Class1}), #t91) in #t91; - let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t95{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t96 = n1 in #t96 == null ?{self::Class1?} null : let final self::Class1 #t97 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t98 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t96{self::Class1}), #t97) in #t97; - let final self::Class1? #t99 = n1 in #t99 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t99{self::Class1}, let final self::Class1? #t100 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t101 = self::Extension1|set#nullable1(new self::Class1::•(), #t100) in #t100); - nullable1 = let final self::Class1? #t102 = n1 in #t102 == null ?{self::Class1?} null : let final self::Class1? #t103 = let final self::Class1? #t104 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t105 = self::Extension1|set#nullable1(new self::Class1::•(), #t104) in #t104 in let final void #t106 = self::Extension1|set#nullable1(#t102{self::Class1}, #t103) in #t103; - let final self::Class1? #t107 = n1 in #t107 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t107{self::Class1}, let final self::Class1 #t108 = let final self::Class1 #t109 = new self::Class1::•() in let final void #t110 = self::Extension1|set#nullable1(new self::Class1::•(), #t109) in #t109 in let final void #t111 = self::Extension1|set#nullable1(new self::Class1::•(), #t108) in #t108); - nullable1 = let final self::Class1? #t112 = n1 in #t112 == null ?{self::Class1?} null : let final self::Class1 #t113 = let final self::Class1 #t114 = let final self::Class1 #t115 = new self::Class1::•() in let final void #t116 = self::Extension1|set#nullable1(new self::Class1::•(), #t115) in #t115 in let final void #t117 = self::Extension1|set#nullable1(new self::Class1::•(), #t114) in #t114 in let final void #t118 = self::Extension1|set#nullable1(#t112{self::Class1}, #t113) in #t113; - let final self::Class1? #t119 = n1 in #t119 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t119{self::Class1}, let final self::Class1 #t120 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t121 = self::Extension1|set#nullable1(new self::Class1::•(), #t120) in #t120); - nullable1 = let final self::Class1? #t122 = n1 in #t122 == null ?{self::Class1?} null : let final self::Class1 #t123 = let final self::Class1 #t124 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t125 = self::Extension1|set#nullable1(new self::Class1::•(), #t124) in #t124 in let final void #t126 = self::Extension1|set#nullable1(#t122{self::Class1}, #t123) in #t123; - let final self::Class1? #t127 = n1 in #t127 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t127{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t128 = n1 in #t128 == null ?{self::Class1?} null : let final self::Class1? #t129 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t130 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t128{self::Class1}), #t129) in #t129; - let final self::Class1? #t131 = n1 in #t131 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t131{self::Class1}), let final self::Class1 #t132 = new self::Class1::•() in let final void #t133 = self::Extension1|set#nullable1(new self::Class1::•(), #t132) in #t132); - nullable1 = let final self::Class1? #t134 = n1 in #t134 == null ?{self::Class1?} null : let final self::Class1 #t135 = let final self::Class1 #t136 = new self::Class1::•() in let final void #t137 = self::Extension1|set#nullable1(new self::Class1::•(), #t136) in #t136 in let final void #t138 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t134{self::Class1}), #t135) in #t135; - let final self::Class1? #t139 = n1 in #t139 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t139{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t140 = n1 in #t140 == null ?{self::Class1?} null : let final self::Class1 #t141 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t142 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t140{self::Class1}), #t141) in #t141; - let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1}))); - let final self::Class1? #t144 = n1 in #t144 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t144{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t145 = n1 in #t145 == null ?{self::Class1?} null : let final self::Class1 #t146 = new self::Class1::•() in let final void #t147 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t145{self::Class1})), #t146) in #t146; - let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t148{self::Class1}))); - let final self::Class1? #t149 = n1 in #t149 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t149{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t150 = n1 in #t150 == null ?{self::Class1?} null : let final self::Class1? #t151 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t152 = self::Extension1|set#nullable1(#t150{self::Class1}, #t151) in #t151; - let final self::Class1? #t153 = n1 in #t153 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t153{self::Class1}, let final self::Class1 #t154 = new self::Class1::•() in let final void #t155 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t154) in #t154); - nullable1 = let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class1?} null : let final self::Class1 #t157 = let final self::Class1 #t158 = new self::Class1::•() in let final void #t159 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t158) in #t158 in let final void #t160 = self::Extension1|set#nullable1(#t156{self::Class1}, #t157) in #t157; - let final self::Class1? #t161 = n1 in #t161 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t161{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t162 = n1 in #t162 == null ?{self::Class1?} null : let final self::Class1 #t163 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t164 = self::Extension1|set#nullable1(#t162{self::Class1}, #t163) in #t163; - let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); - let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t166{self::Class1})), new self::Class1::•()); - let final self::Class1? #t167 = n1 in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t167{self::Class1}))); - let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : let final self::Class1? #t169 = self::Extension1|nonNullable1Method(#t168{self::Class1}) in #t169 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t169{self::Class1}); + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t22{self::Class1}))); + nullable1 = let final self::Class1? #t23 = n1 in #t23 == null ?{self::Class1?} null : let final self::Class1 #t24 = new self::Class1::•() in let final void #t25 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t23{self::Class1}), #t24) in #t24; + nullable1 = let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : let final self::Class1? #t27 = self::Extension1|get#nullable1(#t26{self::Class1}) in #t27 == null ?{self::Class1?} null : let final self::Class1 #t28 = new self::Class1::•() in let final void #t29 = self::Extension1|set#nullable1(#t27{self::Class1}, #t28) in #t28; + nullable1 = let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : let final self::Class1? #t31 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t30{self::Class1})) in #t31 == null ?{self::Class1?} null : let final self::Class1 #t32 = new self::Class1::•() in let final void #t33 = self::Extension1|set#nullable1(#t31{self::Class1}, #t32) in #t32; + let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : let final self::Class1? #t35 = self::Extension1|get#nullable1(#t34{self::Class1}) in #t35 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t35{self::Class1}); + let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t36{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : let final self::Class1? #t38 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t39 = self::Extension1|set#nullable1(#t37{self::Class1}, #t38) in #t38; + let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t40{self::Class1}, let final self::Class1 #t41 = new self::Class1::•() in let final void #t42 = self::Extension1|set#nullable1(new self::Class1::•(), #t41) in #t41); + nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : let final self::Class1 #t44 = let final self::Class1 #t45 = new self::Class1::•() in let final void #t46 = self::Extension1|set#nullable1(new self::Class1::•(), #t45) in #t45 in let final void #t47 = self::Extension1|set#nullable1(#t43{self::Class1}, #t44) in #t44; + let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t48{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : let final self::Class1 #t50 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t51 = self::Extension1|set#nullable1(#t49{self::Class1}, #t50) in #t50; + let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t52{self::Class1})); + let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t53{self::Class1}), new self::Class1::•()); + let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t54{self::Class1})); + let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t55{self::Class1}))); + let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t56{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : let final self::Class1 #t58 = new self::Class1::•() in let final void #t59 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1})), #t58) in #t58; + let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : let final self::Class1? #t61 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t60{self::Class1})) in #t61 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t61{self::Class1}); + let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t62{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : let final self::Class1? #t64 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t65 = self::Extension1|set#nullable1(#t63{self::Class1}, #t64) in #t64; + let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t66{self::Class1}, let final self::Class1 #t67 = new self::Class1::•() in let final void #t68 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t67) in #t67); + nullable1 = let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : let final self::Class1 #t70 = let final self::Class1 #t71 = new self::Class1::•() in let final void #t72 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t71) in #t71 in let final void #t73 = self::Extension1|set#nullable1(#t69{self::Class1}, #t70) in #t70; + let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t74{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : let final self::Class1 #t76 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t77 = self::Extension1|set#nullable1(#t75{self::Class1}, #t76) in #t76; + let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t78{self::Class1}))); + let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t79{self::Class1})), new self::Class1::•()); + let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); + let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t81{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : let final self::Class1? #t83 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t84 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t82{self::Class1}), #t83) in #t83; + let final self::Class1? #t85 = n1 in #t85 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t85{self::Class1}), let final self::Class1 #t86 = new self::Class1::•() in let final void #t87 = self::Extension1|set#nullable1(new self::Class1::•(), #t86) in #t86); + nullable1 = let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : let final self::Class1 #t89 = let final self::Class1 #t90 = new self::Class1::•() in let final void #t91 = self::Extension1|set#nullable1(new self::Class1::•(), #t90) in #t90 in let final void #t92 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t88{self::Class1}), #t89) in #t89; + let final self::Class1? #t93 = n1 in #t93 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t93{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t94 = n1 in #t94 == null ?{self::Class1?} null : let final self::Class1 #t95 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t96 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t94{self::Class1}), #t95) in #t95; + let final self::Class1? #t97 = n1 in #t97 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t97{self::Class1}, let final self::Class1? #t98 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t99 = self::Extension1|set#nullable1(new self::Class1::•(), #t98) in #t98); + nullable1 = let final self::Class1? #t100 = n1 in #t100 == null ?{self::Class1?} null : let final self::Class1? #t101 = let final self::Class1? #t102 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t103 = self::Extension1|set#nullable1(new self::Class1::•(), #t102) in #t102 in let final void #t104 = self::Extension1|set#nullable1(#t100{self::Class1}, #t101) in #t101; + let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t105{self::Class1}, let final self::Class1 #t106 = let final self::Class1 #t107 = new self::Class1::•() in let final void #t108 = self::Extension1|set#nullable1(new self::Class1::•(), #t107) in #t107 in let final void #t109 = self::Extension1|set#nullable1(new self::Class1::•(), #t106) in #t106); + nullable1 = let final self::Class1? #t110 = n1 in #t110 == null ?{self::Class1?} null : let final self::Class1 #t111 = let final self::Class1 #t112 = let final self::Class1 #t113 = new self::Class1::•() in let final void #t114 = self::Extension1|set#nullable1(new self::Class1::•(), #t113) in #t113 in let final void #t115 = self::Extension1|set#nullable1(new self::Class1::•(), #t112) in #t112 in let final void #t116 = self::Extension1|set#nullable1(#t110{self::Class1}, #t111) in #t111; + let final self::Class1? #t117 = n1 in #t117 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t117{self::Class1}, let final self::Class1 #t118 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t119 = self::Extension1|set#nullable1(new self::Class1::•(), #t118) in #t118); + nullable1 = let final self::Class1? #t120 = n1 in #t120 == null ?{self::Class1?} null : let final self::Class1 #t121 = let final self::Class1 #t122 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t123 = self::Extension1|set#nullable1(new self::Class1::•(), #t122) in #t122 in let final void #t124 = self::Extension1|set#nullable1(#t120{self::Class1}, #t121) in #t121; + let final self::Class1? #t125 = n1 in #t125 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t125{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t126 = n1 in #t126 == null ?{self::Class1?} null : let final self::Class1? #t127 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t128 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t126{self::Class1}), #t127) in #t127; + let final self::Class1? #t129 = n1 in #t129 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t129{self::Class1}), let final self::Class1 #t130 = new self::Class1::•() in let final void #t131 = self::Extension1|set#nullable1(new self::Class1::•(), #t130) in #t130); + nullable1 = let final self::Class1? #t132 = n1 in #t132 == null ?{self::Class1?} null : let final self::Class1 #t133 = let final self::Class1 #t134 = new self::Class1::•() in let final void #t135 = self::Extension1|set#nullable1(new self::Class1::•(), #t134) in #t134 in let final void #t136 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t132{self::Class1}), #t133) in #t133; + let final self::Class1? #t137 = n1 in #t137 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t137{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t138 = n1 in #t138 == null ?{self::Class1?} null : let final self::Class1 #t139 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t140 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t138{self::Class1}), #t139) in #t139; + let final self::Class1? #t141 = n1 in #t141 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t141{self::Class1}))); + let final self::Class1? #t142 = n1 in #t142 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t142{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : let final self::Class1 #t144 = new self::Class1::•() in let final void #t145 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1})), #t144) in #t144; + let final self::Class1? #t146 = n1 in #t146 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t146{self::Class1}))); + let final self::Class1? #t147 = n1 in #t147 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t147{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : let final self::Class1? #t149 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t150 = self::Extension1|set#nullable1(#t148{self::Class1}, #t149) in #t149; + let final self::Class1? #t151 = n1 in #t151 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t151{self::Class1}, let final self::Class1 #t152 = new self::Class1::•() in let final void #t153 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t152) in #t152); + nullable1 = let final self::Class1? #t154 = n1 in #t154 == null ?{self::Class1?} null : let final self::Class1 #t155 = let final self::Class1 #t156 = new self::Class1::•() in let final void #t157 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t156) in #t156 in let final void #t158 = self::Extension1|set#nullable1(#t154{self::Class1}, #t155) in #t155; + let final self::Class1? #t159 = n1 in #t159 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t159{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t160 = n1 in #t160 == null ?{self::Class1?} null : let final self::Class1 #t161 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t162 = self::Extension1|set#nullable1(#t160{self::Class1}, #t161) in #t161; + let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t163{self::Class1}))); + let final self::Class1? #t164 = n1 in #t164 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t164{self::Class1})), new self::Class1::•()); + let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); + let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : let final self::Class1? #t167 = self::Extension1|nonNullable1Method(#t166{self::Class1}) in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t167{self::Class1}); } static method indexAccess(self::Class1? n1, self::Class2? n2, self::Class3? n3) → void { self::Class1? nullable1 = n1; self::Class2? nullable2 = n2; self::Class3? nullable3 = n3; - let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : self::Extension1|[](#t170{self::Class1}, nullable1); - let final self::Class1? #t171 = n1 in #t171 == null ?{self::Class1?} null : self::Extension1|[]=(#t171{self::Class1}, nullable1, new self::Class1::•()); - let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : let final self::Class1? #t173 = self::Extension1|[](#t172{self::Class1}, nullable1) in #t173 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t173{self::Class1}); - let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t174{self::Class1}), nullable1); - let final self::Class1? #t175 = n1 in #t175 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t175{self::Class1}), nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t176 = n1 in #t176 == null ?{self::Class1?} null : let final self::Class1 #t177 = self::Extension1|get#nonNullable1(#t176{self::Class1}) in let final self::Class1? #t178 = nullable1 in let final self::Class1 #t179 = new self::Class1::•() in let final void #t180 = self::Extension1|[]=(#t177, #t178, #t179) in #t179; - let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class1?} null : let final self::Class1? #t182 = self::Extension1|[](self::Extension1|get#nonNullable1(#t181{self::Class1}), nullable1) in #t182 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t182{self::Class1}); - let final self::Class1? #t183 = n1 in #t183 == null ?{self::Class2?} null : let final self::Class2 #t184 = self::Extension1|get#nonNullable2(#t183{self::Class1}) in let final self::Class2? #t185 = nullable2 in self::Extension2|[]=(#t184, #t185, self::Extension2|+(self::Extension2|[](#t184, #t185), 0)); - nullable2 = let final self::Class1? #t186 = n1 in #t186 == null ?{self::Class2?} null : let final self::Class2 #t187 = self::Extension1|get#nonNullable2(#t186{self::Class1}) in let final self::Class2? #t188 = nullable2 in let final self::Class2 #t189 = self::Extension2|+(self::Extension2|[](#t187, #t188), 0) in let final void #t190 = self::Extension2|[]=(#t187, #t188, #t189) in #t189; - let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in self::Extension1|[](#t191{self::Class1}, #t192) == null ?{self::Class1?} self::Extension1|[]=(#t191{self::Class1}, #t192, nullable1) : null; - nullable1 = let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = nullable1 in let final self::Class1? #t195 = self::Extension1|[](#t193{self::Class1}, #t194) in #t195 == null ?{self::Class1?} let final self::Class1? #t196 = nullable1 in let final void #t197 = self::Extension1|[]=(#t193{self::Class1}, #t194, #t196) in #t196 : #t195{self::Class1}; - let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in self::Extension2|[]=(#t198{self::Class2}, #t199, self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0)); - nullable2 = let final self::Class2? #t200 = n2 in #t200 == null ?{self::Class2?} null : let final self::Class2? #t201 = nullable2 in let final self::Class2 #t202 = self::Extension2|+(self::Extension2|[](#t200{self::Class2}, #t201), 0) in let final void #t203 = self::Extension2|[]=(#t200{self::Class2}, #t201, #t202) in #t202; - let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in self::Extension2|[]=(#t204{self::Class2}, #t205, self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0)); - nullable2 = let final self::Class2? #t206 = n2 in #t206 == null ?{self::Class2?} null : let final self::Class2? #t207 = nullable2 in let final self::Class2 #t208 = self::Extension2|+(self::Extension2|[](#t206{self::Class2}, #t207), 0) in let final void #t209 = self::Extension2|[]=(#t206{self::Class2}, #t207, #t208) in #t208; - let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(self::Extension2|[](#t210{self::Class2}, #t211), 1)); - nullable2 = let final self::Class2? #t212 = n2 in #t212 == null ?{self::Class2?} null : let final self::Class2? #t213 = nullable2 in let final self::Class2 #t214 = self::Extension2|[](#t212{self::Class2}, #t213) in let final void #t215 = self::Extension2|[]=(#t212{self::Class2}, #t213, self::Extension2|+(#t214, 1)) in #t214; - let final self::Class2? #t216 = n2 in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = nullable2 in let final self::Class2 #t218 = self::Extension2|+(self::Extension2|[](#t216{self::Class2}, #t217), 1) in let final void #t219 = self::Extension2|[]=(#t216{self::Class2}, #t217, #t218) in #t218; - nullable2 = let final self::Class2? #t220 = n2 in #t220 == null ?{self::Class2?} null : let final self::Class2? #t221 = nullable2 in let final self::Class2 #t222 = self::Extension2|+(self::Extension2|[](#t220{self::Class2}, #t221), 1) in let final void #t223 = self::Extension2|[]=(#t220{self::Class2}, #t221, #t222) in #t222; - let final self::Class1? #t224 = n1 in #t224 == null ?{self::Class2?} null : let final self::Class2 #t225 = self::Extension1|get#nonNullable2(#t224{self::Class1}) in let final self::Class2? #t226 = nullable2 in self::Extension2|[]=(#t225, #t226, self::Extension2|+(self::Extension2|[](#t225, #t226), 1)); - nullable2 = let final self::Class1? #t227 = n1 in #t227 == null ?{self::Class2?} null : let final self::Class2 #t228 = self::Extension1|get#nonNullable2(#t227{self::Class1}) in let final self::Class2? #t229 = nullable2 in let final self::Class2 #t230 = self::Extension2|[](#t228, #t229) in let final void #t231 = self::Extension2|[]=(#t228, #t229, self::Extension2|+(#t230, 1)) in #t230; - let final self::Class1? #t232 = n1 in #t232 == null ?{self::Class2?} null : let final self::Class2 #t233 = self::Extension1|get#nonNullable2(#t232{self::Class1}) in let final self::Class2? #t234 = nullable2 in let final self::Class2 #t235 = self::Extension2|+(self::Extension2|[](#t233, #t234), 1) in let final void #t236 = self::Extension2|[]=(#t233, #t234, #t235) in #t235; - nullable2 = let final self::Class1? #t237 = n1 in #t237 == null ?{self::Class2?} null : let final self::Class2 #t238 = self::Extension1|get#nonNullable2(#t237{self::Class1}) in let final self::Class2? #t239 = nullable2 in let final self::Class2 #t240 = self::Extension2|+(self::Extension2|[](#t238, #t239), 1) in let final void #t241 = self::Extension2|[]=(#t238, #t239, #t240) in #t240; - let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2), nullable2); - let final self::Class1? #t243 = n1 in #t243 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t243{self::Class1}), nullable2), nullable2, new self::Class2::•()); - nullable2 = let final self::Class1? #t244 = n1 in #t244 == null ?{self::Class2?} null : let final self::Class2 #t245 = self::Extension2|[](self::Extension1|get#nonNullable2(#t244{self::Class1}), nullable2) in let final self::Class2? #t246 = nullable2 in let final self::Class2 #t247 = new self::Class2::•() in let final void #t248 = self::Extension2|[]=(#t245, #t246, #t247) in #t247; - let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2? #t250 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2), nullable2) in #t250 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t250{self::Class2}); - let final self::Class1? #t251 = n1 in #t251 == null ?{self::Class2?} null : let final self::Class2 #t252 = self::Extension2|[](self::Extension1|get#nonNullable2(#t251{self::Class1}), nullable2) in let final self::Class2? #t253 = nullable2 in self::Extension2|[]=(#t252, #t253, self::Extension2|+(self::Extension2|[](#t252, #t253), 0)); - nullable2 = let final self::Class1? #t254 = n1 in #t254 == null ?{self::Class2?} null : let final self::Class2 #t255 = self::Extension2|[](self::Extension1|get#nonNullable2(#t254{self::Class1}), nullable2) in let final self::Class2? #t256 = nullable2 in let final self::Class2 #t257 = self::Extension2|+(self::Extension2|[](#t255, #t256), 0) in let final void #t258 = self::Extension2|[]=(#t255, #t256, #t257) in #t257; - let final self::Class1? #t259 = n1 in #t259 == null ?{self::Class2?} null : let final self::Class2 #t260 = self::Extension2|[](self::Extension1|get#nonNullable2(#t259{self::Class1}), nullable2) in let final self::Class2? #t261 = nullable2 in self::Extension2|[]=(#t260, #t261, self::Extension2|+(self::Extension2|[](#t260, #t261), 1)); - nullable2 = let final self::Class1? #t262 = n1 in #t262 == null ?{self::Class2?} null : let final self::Class2 #t263 = self::Extension2|[](self::Extension1|get#nonNullable2(#t262{self::Class1}), nullable2) in let final self::Class2? #t264 = nullable2 in let final self::Class2 #t265 = self::Extension2|[](#t263, #t264) in let final void #t266 = self::Extension2|[]=(#t263, #t264, self::Extension2|+(#t265, 1)) in #t265; - let final self::Class1? #t267 = n1 in #t267 == null ?{self::Class2?} null : let final self::Class2 #t268 = self::Extension2|[](self::Extension1|get#nonNullable2(#t267{self::Class1}), nullable2) in let final self::Class2? #t269 = nullable2 in let final self::Class2 #t270 = self::Extension2|+(self::Extension2|[](#t268, #t269), 1) in let final void #t271 = self::Extension2|[]=(#t268, #t269, #t270) in #t270; - nullable2 = let final self::Class1? #t272 = n1 in #t272 == null ?{self::Class2?} null : let final self::Class2 #t273 = self::Extension2|[](self::Extension1|get#nonNullable2(#t272{self::Class1}), nullable2) in let final self::Class2? #t274 = nullable2 in let final self::Class2 #t275 = self::Extension2|+(self::Extension2|[](#t273, #t274), 1) in let final void #t276 = self::Extension2|[]=(#t273, #t274, #t275) in #t275; - let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[](#t278{self::Class1}, nullable1); - let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : self::Extension1|[]=(#t280{self::Class1}, nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t281 = n1 in #t281 == null ?{self::Class1?} null : let final self::Class1? #t282 = self::Extension1|[](#t281{self::Class1}, nullable1) in #t282 == null ?{self::Class1?} null : let final self::Class1? #t283 = nullable1 in let final self::Class1 #t284 = new self::Class1::•() in let final void #t285 = self::Extension1|[]=(#t282{self::Class1}, #t283, #t284) in #t284; - let final self::Class1? #t286 = n1 in #t286 == null ?{self::Class1?} null : let final self::Class1? #t287 = self::Extension1|[](#t286{self::Class1}, nullable1) in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t288{self::Class1}); - nullable1 = let final self::Class1? #t289 = n1 in #t289 == null ?{self::Class1?} null : let final self::Class1? #t290 = self::Extension1|[](#t289{self::Class1}, nullable1) in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t291{self::Class1}); - let final self::Class1? #t292 = n1 in #t292 == null ?{self::Class1?} null : let final self::Class1? #t293 = self::Extension1|[](#t292{self::Class1}, nullable1) in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = nullable1 in self::Extension1|[](#t293{self::Class1}, #t294) == null ?{self::Class1?} self::Extension1|[]=(#t293{self::Class1}, #t294, nullable1) : null; - nullable1 = let final self::Class1? #t295 = n1 in #t295 == null ?{self::Class1?} null : let final self::Class1? #t296 = self::Extension1|[](#t295{self::Class1}, nullable1) in #t296 == null ?{self::Class1?} null : let final self::Class1? #t297 = nullable1 in let final self::Class1? #t298 = self::Extension1|[](#t296{self::Class1}, #t297) in #t298 == null ?{self::Class1?} let final self::Class1? #t299 = nullable1 in let final void #t300 = self::Extension1|[]=(#t296{self::Class1}, #t297, #t299) in #t299 : #t298{self::Class1}; - let final self::Class3? #t301 = n3 in #t301 == null ?{self::Class2?} null : let final self::Class2? #t302 = self::Extension3|[](#t301{self::Class3}, nullable3) in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = nullable2 in self::Extension2|[]=(#t302{self::Class2}, #t303, self::Extension2|+(self::Extension2|[](#t302{self::Class2}, #t303), 0)); - nullable2 = let final self::Class3? #t304 = n3 in #t304 == null ?{self::Class2?} null : let final self::Class2? #t305 = self::Extension3|[](#t304{self::Class3}, nullable3) in #t305 == null ?{self::Class2?} null : let final self::Class2? #t306 = nullable2 in let final self::Class2 #t307 = self::Extension2|+(self::Extension2|[](#t305{self::Class2}, #t306), 0) in let final void #t308 = self::Extension2|[]=(#t305{self::Class2}, #t306, #t307) in #t307; - let final self::Class3? #t309 = n3 in #t309 == null ?{self::Class2?} null : let final self::Class2? #t310 = self::Extension3|[](#t309{self::Class3}, nullable3) in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = nullable2 in self::Extension2|[]=(#t310{self::Class2}, #t311, self::Extension2|+(self::Extension2|[](#t310{self::Class2}, #t311), 1)); - nullable2 = let final self::Class3? #t312 = n3 in #t312 == null ?{self::Class2?} null : let final self::Class2? #t313 = self::Extension3|[](#t312{self::Class3}, nullable3) in #t313 == null ?{self::Class2?} null : let final self::Class2? #t314 = nullable2 in let final self::Class2 #t315 = self::Extension2|[](#t313{self::Class2}, #t314) in let final void #t316 = self::Extension2|[]=(#t313{self::Class2}, #t314, self::Extension2|+(#t315, 1)) in #t315; - let final self::Class3? #t317 = n3 in #t317 == null ?{self::Class2?} null : let final self::Class2? #t318 = self::Extension3|[](#t317{self::Class3}, nullable3) in #t318 == null ?{self::Class2?} null : let final self::Class2? #t319 = nullable2 in let final self::Class2 #t320 = self::Extension2|+(self::Extension2|[](#t318{self::Class2}, #t319), 1) in let final void #t321 = self::Extension2|[]=(#t318{self::Class2}, #t319, #t320) in #t320; - nullable2 = let final self::Class3? #t322 = n3 in #t322 == null ?{self::Class2?} null : let final self::Class2? #t323 = self::Extension3|[](#t322{self::Class3}, nullable3) in #t323 == null ?{self::Class2?} null : let final self::Class2? #t324 = nullable2 in let final self::Class2 #t325 = self::Extension2|+(self::Extension2|[](#t323{self::Class2}, #t324), 1) in let final void #t326 = self::Extension2|[]=(#t323{self::Class2}, #t324, #t325) in #t325; + let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : self::Extension1|[](#t168{self::Class1}, nullable1); + let final self::Class1? #t169 = n1 in #t169 == null ?{self::Class1?} null : self::Extension1|[]=(#t169{self::Class1}, nullable1, new self::Class1::•()); + let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : let final self::Class1? #t171 = self::Extension1|[](#t170{self::Class1}, nullable1) in #t171 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t171{self::Class1}); + let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t172{self::Class1}), nullable1); + let final self::Class1? #t173 = n1 in #t173 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t173{self::Class1}), nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : let final self::Class1 #t175 = self::Extension1|get#nonNullable1(#t174{self::Class1}) in let final self::Class1? #t176 = nullable1 in let final self::Class1 #t177 = new self::Class1::•() in let final void #t178 = self::Extension1|[]=(#t175, #t176, #t177) in #t177; + let final self::Class1? #t179 = n1 in #t179 == null ?{self::Class1?} null : let final self::Class1? #t180 = self::Extension1|[](self::Extension1|get#nonNullable1(#t179{self::Class1}), nullable1) in #t180 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t180{self::Class1}); + let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class2?} null : let final self::Class2 #t182 = self::Extension1|get#nonNullable2(#t181{self::Class1}) in let final self::Class2? #t183 = nullable2 in self::Extension2|[]=(#t182, #t183, self::Extension2|+(self::Extension2|[](#t182, #t183), 0)); + nullable2 = let final self::Class1? #t184 = n1 in #t184 == null ?{self::Class2?} null : let final self::Class2 #t185 = self::Extension1|get#nonNullable2(#t184{self::Class1}) in let final self::Class2? #t186 = nullable2 in let final self::Class2 #t187 = self::Extension2|+(self::Extension2|[](#t185, #t186), 0) in let final void #t188 = self::Extension2|[]=(#t185, #t186, #t187) in #t187; + let final self::Class1? #t189 = n1 in #t189 == null ?{self::Class1?} null : let final self::Class1? #t190 = nullable1 in self::Extension1|[](#t189{self::Class1}, #t190) == null ?{self::Class1?} self::Extension1|[]=(#t189{self::Class1}, #t190, nullable1) : null; + nullable1 = let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in let final self::Class1? #t193 = self::Extension1|[](#t191{self::Class1}, #t192) in #t193 == null ?{self::Class1?} let final self::Class1? #t194 = nullable1 in let final void #t195 = self::Extension1|[]=(#t191{self::Class1}, #t192, #t194) in #t194 : #t193{self::Class1}; + let final self::Class2? #t196 = n2 in #t196 == null ?{self::Class2?} null : let final self::Class2? #t197 = nullable2 in self::Extension2|[]=(#t196{self::Class2}, #t197, self::Extension2|+(self::Extension2|[](#t196{self::Class2}, #t197), 0)); + nullable2 = let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in let final self::Class2 #t200 = self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0) in let final void #t201 = self::Extension2|[]=(#t198{self::Class2}, #t199, #t200) in #t200; + let final self::Class2? #t202 = n2 in #t202 == null ?{self::Class2?} null : let final self::Class2? #t203 = nullable2 in self::Extension2|[]=(#t202{self::Class2}, #t203, self::Extension2|+(self::Extension2|[](#t202{self::Class2}, #t203), 0)); + nullable2 = let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in let final self::Class2 #t206 = self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0) in let final void #t207 = self::Extension2|[]=(#t204{self::Class2}, #t205, #t206) in #t206; + let final self::Class2? #t208 = n2 in #t208 == null ?{self::Class2?} null : let final self::Class2? #t209 = nullable2 in self::Extension2|[]=(#t208{self::Class2}, #t209, self::Extension2|+(self::Extension2|[](#t208{self::Class2}, #t209), 1)); + nullable2 = let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in let final self::Class2 #t212 = self::Extension2|[](#t210{self::Class2}, #t211) in let final void #t213 = self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(#t212, 1)) in #t212; + let final self::Class2? #t214 = n2 in #t214 == null ?{self::Class2?} null : let final self::Class2? #t215 = nullable2 in let final self::Class2 #t216 = self::Extension2|+(self::Extension2|[](#t214{self::Class2}, #t215), 1) in let final void #t217 = self::Extension2|[]=(#t214{self::Class2}, #t215, #t216) in #t216; + nullable2 = let final self::Class2? #t218 = n2 in #t218 == null ?{self::Class2?} null : let final self::Class2? #t219 = nullable2 in let final self::Class2 #t220 = self::Extension2|+(self::Extension2|[](#t218{self::Class2}, #t219), 1) in let final void #t221 = self::Extension2|[]=(#t218{self::Class2}, #t219, #t220) in #t220; + let final self::Class1? #t222 = n1 in #t222 == null ?{self::Class2?} null : let final self::Class2 #t223 = self::Extension1|get#nonNullable2(#t222{self::Class1}) in let final self::Class2? #t224 = nullable2 in self::Extension2|[]=(#t223, #t224, self::Extension2|+(self::Extension2|[](#t223, #t224), 1)); + nullable2 = let final self::Class1? #t225 = n1 in #t225 == null ?{self::Class2?} null : let final self::Class2 #t226 = self::Extension1|get#nonNullable2(#t225{self::Class1}) in let final self::Class2? #t227 = nullable2 in let final self::Class2 #t228 = self::Extension2|[](#t226, #t227) in let final void #t229 = self::Extension2|[]=(#t226, #t227, self::Extension2|+(#t228, 1)) in #t228; + let final self::Class1? #t230 = n1 in #t230 == null ?{self::Class2?} null : let final self::Class2 #t231 = self::Extension1|get#nonNullable2(#t230{self::Class1}) in let final self::Class2? #t232 = nullable2 in let final self::Class2 #t233 = self::Extension2|+(self::Extension2|[](#t231, #t232), 1) in let final void #t234 = self::Extension2|[]=(#t231, #t232, #t233) in #t233; + nullable2 = let final self::Class1? #t235 = n1 in #t235 == null ?{self::Class2?} null : let final self::Class2 #t236 = self::Extension1|get#nonNullable2(#t235{self::Class1}) in let final self::Class2? #t237 = nullable2 in let final self::Class2 #t238 = self::Extension2|+(self::Extension2|[](#t236, #t237), 1) in let final void #t239 = self::Extension2|[]=(#t236, #t237, #t238) in #t238; + let final self::Class1? #t240 = n1 in #t240 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t240{self::Class1}), nullable2), nullable2); + let final self::Class1? #t241 = n1 in #t241 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t241{self::Class1}), nullable2), nullable2, new self::Class2::•()); + nullable2 = let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : let final self::Class2 #t243 = self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2) in let final self::Class2? #t244 = nullable2 in let final self::Class2 #t245 = new self::Class2::•() in let final void #t246 = self::Extension2|[]=(#t243, #t244, #t245) in #t245; + let final self::Class1? #t247 = n1 in #t247 == null ?{self::Class2?} null : let final self::Class2? #t248 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t247{self::Class1}), nullable2), nullable2) in #t248 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t248{self::Class2}); + let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2 #t250 = self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2) in let final self::Class2? #t251 = nullable2 in self::Extension2|[]=(#t250, #t251, self::Extension2|+(self::Extension2|[](#t250, #t251), 0)); + nullable2 = let final self::Class1? #t252 = n1 in #t252 == null ?{self::Class2?} null : let final self::Class2 #t253 = self::Extension2|[](self::Extension1|get#nonNullable2(#t252{self::Class1}), nullable2) in let final self::Class2? #t254 = nullable2 in let final self::Class2 #t255 = self::Extension2|+(self::Extension2|[](#t253, #t254), 0) in let final void #t256 = self::Extension2|[]=(#t253, #t254, #t255) in #t255; + let final self::Class1? #t257 = n1 in #t257 == null ?{self::Class2?} null : let final self::Class2 #t258 = self::Extension2|[](self::Extension1|get#nonNullable2(#t257{self::Class1}), nullable2) in let final self::Class2? #t259 = nullable2 in self::Extension2|[]=(#t258, #t259, self::Extension2|+(self::Extension2|[](#t258, #t259), 1)); + nullable2 = let final self::Class1? #t260 = n1 in #t260 == null ?{self::Class2?} null : let final self::Class2 #t261 = self::Extension2|[](self::Extension1|get#nonNullable2(#t260{self::Class1}), nullable2) in let final self::Class2? #t262 = nullable2 in let final self::Class2 #t263 = self::Extension2|[](#t261, #t262) in let final void #t264 = self::Extension2|[]=(#t261, #t262, self::Extension2|+(#t263, 1)) in #t263; + let final self::Class1? #t265 = n1 in #t265 == null ?{self::Class2?} null : let final self::Class2 #t266 = self::Extension2|[](self::Extension1|get#nonNullable2(#t265{self::Class1}), nullable2) in let final self::Class2? #t267 = nullable2 in let final self::Class2 #t268 = self::Extension2|+(self::Extension2|[](#t266, #t267), 1) in let final void #t269 = self::Extension2|[]=(#t266, #t267, #t268) in #t268; + nullable2 = let final self::Class1? #t270 = n1 in #t270 == null ?{self::Class2?} null : let final self::Class2 #t271 = self::Extension2|[](self::Extension1|get#nonNullable2(#t270{self::Class1}), nullable2) in let final self::Class2? #t272 = nullable2 in let final self::Class2 #t273 = self::Extension2|+(self::Extension2|[](#t271, #t272), 1) in let final void #t274 = self::Extension2|[]=(#t271, #t272, #t273) in #t273; + let final self::Class1? #t275 = n1 in #t275 == null ?{self::Class1?} null : let final self::Class1? #t276 = self::Extension1|[](#t275{self::Class1}, nullable1) in #t276 == null ?{self::Class1?} null : self::Extension1|[](#t276{self::Class1}, nullable1); + let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[]=(#t278{self::Class1}, nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : let final self::Class1? #t281 = nullable1 in let final self::Class1 #t282 = new self::Class1::•() in let final void #t283 = self::Extension1|[]=(#t280{self::Class1}, #t281, #t282) in #t282; + let final self::Class1? #t284 = n1 in #t284 == null ?{self::Class1?} null : let final self::Class1? #t285 = self::Extension1|[](#t284{self::Class1}, nullable1) in #t285 == null ?{self::Class1?} null : let final self::Class1? #t286 = self::Extension1|[](#t285{self::Class1}, nullable1) in #t286 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t286{self::Class1}); + nullable1 = let final self::Class1? #t287 = n1 in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : let final self::Class1? #t289 = self::Extension1|[](#t288{self::Class1}, nullable1) in #t289 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t289{self::Class1}); + let final self::Class1? #t290 = n1 in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : let final self::Class1? #t292 = nullable1 in self::Extension1|[](#t291{self::Class1}, #t292) == null ?{self::Class1?} self::Extension1|[]=(#t291{self::Class1}, #t292, nullable1) : null; + nullable1 = let final self::Class1? #t293 = n1 in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = self::Extension1|[](#t293{self::Class1}, nullable1) in #t294 == null ?{self::Class1?} null : let final self::Class1? #t295 = nullable1 in let final self::Class1? #t296 = self::Extension1|[](#t294{self::Class1}, #t295) in #t296 == null ?{self::Class1?} let final self::Class1? #t297 = nullable1 in let final void #t298 = self::Extension1|[]=(#t294{self::Class1}, #t295, #t297) in #t297 : #t296{self::Class1}; + let final self::Class3? #t299 = n3 in #t299 == null ?{self::Class2?} null : let final self::Class2? #t300 = self::Extension3|[](#t299{self::Class3}, nullable3) in #t300 == null ?{self::Class2?} null : let final self::Class2? #t301 = nullable2 in self::Extension2|[]=(#t300{self::Class2}, #t301, self::Extension2|+(self::Extension2|[](#t300{self::Class2}, #t301), 0)); + nullable2 = let final self::Class3? #t302 = n3 in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = self::Extension3|[](#t302{self::Class3}, nullable3) in #t303 == null ?{self::Class2?} null : let final self::Class2? #t304 = nullable2 in let final self::Class2 #t305 = self::Extension2|+(self::Extension2|[](#t303{self::Class2}, #t304), 0) in let final void #t306 = self::Extension2|[]=(#t303{self::Class2}, #t304, #t305) in #t305; + let final self::Class3? #t307 = n3 in #t307 == null ?{self::Class2?} null : let final self::Class2? #t308 = self::Extension3|[](#t307{self::Class3}, nullable3) in #t308 == null ?{self::Class2?} null : let final self::Class2? #t309 = nullable2 in self::Extension2|[]=(#t308{self::Class2}, #t309, self::Extension2|+(self::Extension2|[](#t308{self::Class2}, #t309), 1)); + nullable2 = let final self::Class3? #t310 = n3 in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = self::Extension3|[](#t310{self::Class3}, nullable3) in #t311 == null ?{self::Class2?} null : let final self::Class2? #t312 = nullable2 in let final self::Class2 #t313 = self::Extension2|[](#t311{self::Class2}, #t312) in let final void #t314 = self::Extension2|[]=(#t311{self::Class2}, #t312, self::Extension2|+(#t313, 1)) in #t313; + let final self::Class3? #t315 = n3 in #t315 == null ?{self::Class2?} null : let final self::Class2? #t316 = self::Extension3|[](#t315{self::Class3}, nullable3) in #t316 == null ?{self::Class2?} null : let final self::Class2? #t317 = nullable2 in let final self::Class2 #t318 = self::Extension2|+(self::Extension2|[](#t316{self::Class2}, #t317), 1) in let final void #t319 = self::Extension2|[]=(#t316{self::Class2}, #t317, #t318) in #t318; + nullable2 = let final self::Class3? #t320 = n3 in #t320 == null ?{self::Class2?} null : let final self::Class2? #t321 = self::Extension3|[](#t320{self::Class3}, nullable3) in #t321 == null ?{self::Class2?} null : let final self::Class2? #t322 = nullable2 in let final self::Class2 #t323 = self::Extension2|+(self::Extension2|[](#t321{self::Class2}, #t322), 1) in let final void #t324 = self::Extension2|[]=(#t321{self::Class2}, #t322, #t323) in #t323; } static method operatorAccess(self::Class1? n1, self::Class2? n2) → void { self::Class2? nullable2 = n2; - self::throws(() → void => let final Never #t327 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:226:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:226:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. throws(() => n1?.nonNullable1 + 0); - ^" in self::Extension1|+(let final self::Class1? #t328 = n1 in #t328 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t328{self::Class1}), 0)); - self::throws(() → void => let final Never #t329 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:227:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. + ^" in self::Extension1|+(let final self::Class1? #t325 = n1 in #t325 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t325{self::Class1}), 0)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:227:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. throws(() => -n1?.nonNullable1); - ^" in self::Extension1|unary-(let final self::Class1? #t330 = n1 in #t330 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t330{self::Class1}))); - let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t331, self::Extension2|+(self::Extension2|get#nonNullable2(#t331), 0)); - nullable2 = let final self::Class2? #t332 = n2 in #t332 == null ?{self::Class2?} null : let final self::Class2 #t333 = self::Extension2|+(self::Extension2|get#nonNullable2(#t332), 0) in let final void #t334 = self::Extension2|set#nonNullable2(#t332, #t333) in #t333; - let final self::Class2? #t335 = n2 in #t335 == null ?{self::Class2?} null : let final self::Class2 #t336 = self::Extension2|get#nonNullable2(#t335{self::Class2}) in self::Extension2|set#nonNullable2(#t336, self::Extension2|+(self::Extension2|get#nonNullable2(#t336), 0)); - nullable2 = let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : let final self::Class2 #t338 = self::Extension2|get#nonNullable2(#t337{self::Class2}) in let final self::Class2 #t339 = self::Extension2|+(self::Extension2|get#nonNullable2(#t338), 0) in let final void #t340 = self::Extension2|set#nonNullable2(#t338, #t339) in #t339; - let final self::Class2? #t341 = n2 in #t341 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t341, self::Extension2|+(self::Extension2|get#nonNullable2(#t341), 1)); - nullable2 = let final self::Class2? #t342 = n2 in #t342 == null ?{self::Class2?} null : let final self::Class2 #t343 = self::Extension2|get#nonNullable2(#t342) in let final void #t344 = self::Extension2|set#nonNullable2(#t342, self::Extension2|+(#t343, 1)) in #t343; - let final self::Class2? #t345 = n2 in #t345 == null ?{self::Class2?} null : let final self::Class2 #t346 = self::Extension2|+(self::Extension2|get#nonNullable2(#t345), 1) in let final void #t347 = self::Extension2|set#nonNullable2(#t345, #t346) in #t346; - nullable2 = let final self::Class2? #t348 = n2 in #t348 == null ?{self::Class2?} null : let final self::Class2 #t349 = self::Extension2|+(self::Extension2|get#nonNullable2(#t348), 1) in let final void #t350 = self::Extension2|set#nonNullable2(#t348, #t349) in #t349; + ^" in self::Extension1|unary-(let final self::Class1? #t326 = n1 in #t326 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t326{self::Class1}))); + let final self::Class2? #t327 = n2 in #t327 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t327, self::Extension2|+(self::Extension2|get#nonNullable2(#t327), 0)); + nullable2 = let final self::Class2? #t328 = n2 in #t328 == null ?{self::Class2?} null : let final self::Class2 #t329 = self::Extension2|+(self::Extension2|get#nonNullable2(#t328), 0) in let final void #t330 = self::Extension2|set#nonNullable2(#t328, #t329) in #t329; + let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : let final self::Class2 #t332 = self::Extension2|get#nonNullable2(#t331{self::Class2}) in self::Extension2|set#nonNullable2(#t332, self::Extension2|+(self::Extension2|get#nonNullable2(#t332), 0)); + nullable2 = let final self::Class2? #t333 = n2 in #t333 == null ?{self::Class2?} null : let final self::Class2 #t334 = self::Extension2|get#nonNullable2(#t333{self::Class2}) in let final self::Class2 #t335 = self::Extension2|+(self::Extension2|get#nonNullable2(#t334), 0) in let final void #t336 = self::Extension2|set#nonNullable2(#t334, #t335) in #t335; + let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t337, self::Extension2|+(self::Extension2|get#nonNullable2(#t337), 1)); + nullable2 = let final self::Class2? #t338 = n2 in #t338 == null ?{self::Class2?} null : let final self::Class2 #t339 = self::Extension2|get#nonNullable2(#t338) in let final void #t340 = self::Extension2|set#nonNullable2(#t338, self::Extension2|+(#t339, 1)) in #t339; + let final self::Class2? #t341 = n2 in #t341 == null ?{self::Class2?} null : let final self::Class2 #t342 = self::Extension2|+(self::Extension2|get#nonNullable2(#t341), 1) in let final void #t343 = self::Extension2|set#nonNullable2(#t341, #t342) in #t342; + nullable2 = let final self::Class2? #t344 = n2 in #t344 == null ?{self::Class2?} null : let final self::Class2 #t345 = self::Extension2|+(self::Extension2|get#nonNullable2(#t344), 1) in let final void #t346 = self::Extension2|set#nonNullable2(#t344, #t345) in #t345; } static method ifNull(self::Class1? n1) → void { self::Class1? nullable1 = n1; - let final self::Class1? #t351 = n1 in #t351 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t351) == null ?{self::Class1} self::Extension1|set#nullable1(#t351, n1{self::Class1}) : null; - n1 = let final self::Class1? #t352 = n1 in #t352 == null ?{self::Class1?} null : let final self::Class1? #t353 = self::Extension1|get#nullable1(#t352) in #t353 == null ?{self::Class1} let final self::Class1 #t354 = n1{self::Class1} in let final void #t355 = self::Extension1|set#nullable1(#t352, #t354) in #t354 : #t353{self::Class1}; - let final self::Class1? #t356 = n1 in #t356 == null ?{self::Class1?} null : let final self::Class1 #t357 = self::Extension1|get#nonNullable1(#t356{self::Class1}) in self::Extension1|get#nullable1(#t357) == null ?{self::Class1} self::Extension1|set#nullable1(#t357, n1{self::Class1}) : null; - n1 = let final self::Class1? #t358 = n1 in #t358 == null ?{self::Class1?} null : let final self::Class1 #t359 = self::Extension1|get#nonNullable1(#t358{self::Class1}) in let final self::Class1? #t360 = self::Extension1|get#nullable1(#t359) in #t360 == null ?{self::Class1} let final self::Class1 #t361 = n1{self::Class1} in let final void #t362 = self::Extension1|set#nullable1(#t359, #t361) in #t361 : #t360{self::Class1}; - let final self::Class1? #t363 = n1 in #t363 == null ?{self::Class1?} null : let final self::Class1 #t364 = self::Extension1|get#nonNullable1(#t363{self::Class1}) in let final self::Class1 #t365 = n1{self::Class1} in self::Extension1|[](#t364, #t365) == null ?{self::Class1} self::Extension1|[]=(#t364, #t365, n1{self::Class1}) : null; - n1 = let final self::Class1? #t366 = n1 in #t366 == null ?{self::Class1?} null : let final self::Class1 #t367 = self::Extension1|get#nonNullable1(#t366{self::Class1}) in let final self::Class1 #t368 = n1{self::Class1} in let final self::Class1? #t369 = self::Extension1|[](#t367, #t368) in #t369 == null ?{self::Class1} let final self::Class1 #t370 = n1{self::Class1} in let final void #t371 = self::Extension1|[]=(#t367, #t368, #t370) in #t370 : #t369{self::Class1}; + let final self::Class1? #t347 = n1 in #t347 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t347) == null ?{self::Class1} self::Extension1|set#nullable1(#t347, n1{self::Class1}) : null; + n1 = let final self::Class1? #t348 = n1 in #t348 == null ?{self::Class1?} null : let final self::Class1? #t349 = self::Extension1|get#nullable1(#t348) in #t349 == null ?{self::Class1} let final self::Class1 #t350 = n1{self::Class1} in let final void #t351 = self::Extension1|set#nullable1(#t348, #t350) in #t350 : #t349{self::Class1}; + let final self::Class1? #t352 = n1 in #t352 == null ?{self::Class1?} null : let final self::Class1 #t353 = self::Extension1|get#nonNullable1(#t352{self::Class1}) in self::Extension1|get#nullable1(#t353) == null ?{self::Class1} self::Extension1|set#nullable1(#t353, n1{self::Class1}) : null; + n1 = let final self::Class1? #t354 = n1 in #t354 == null ?{self::Class1?} null : let final self::Class1 #t355 = self::Extension1|get#nonNullable1(#t354{self::Class1}) in let final self::Class1? #t356 = self::Extension1|get#nullable1(#t355) in #t356 == null ?{self::Class1} let final self::Class1 #t357 = n1{self::Class1} in let final void #t358 = self::Extension1|set#nullable1(#t355, #t357) in #t357 : #t356{self::Class1}; + let final self::Class1? #t359 = n1 in #t359 == null ?{self::Class1?} null : let final self::Class1 #t360 = self::Extension1|get#nonNullable1(#t359{self::Class1}) in let final self::Class1 #t361 = n1{self::Class1} in self::Extension1|[](#t360, #t361) == null ?{self::Class1} self::Extension1|[]=(#t360, #t361, n1{self::Class1}) : null; + n1 = let final self::Class1? #t362 = n1 in #t362 == null ?{self::Class1?} null : let final self::Class1 #t363 = self::Extension1|get#nonNullable1(#t362{self::Class1}) in let final self::Class1 #t364 = n1{self::Class1} in let final self::Class1? #t365 = self::Extension1|[](#t363, #t364) in #t365 == null ?{self::Class1} let final self::Class1 #t366 = n1{self::Class1} in let final void #t367 = self::Extension1|[]=(#t363, #t364, #t366) in #t366 : #t365{self::Class1}; } static method throws(() → void f) → void { try { diff --git a/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.strong.transformed.expect index 38237dc6ce4..954b4c04ca7 100644 --- a/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.strong.transformed.expect @@ -139,153 +139,153 @@ static method propertyAccess(self::Class1? n1) → void { let final self::Class1? #t13 = n1 in #t13 == null ?{self::Class1?} null : let final self::Class1? #t14 = self::Extension1|get#nullable1(#t13{self::Class1}) in #t14 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t14{self::Class1}, new self::Class1::•()); let final self::Class1? #t15 = n1 in #t15 == null ?{self::Class1?} null : let final self::Class1? #t16 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t15{self::Class1})) in #t16 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t16{self::Class1}, new self::Class1::•()); let final self::Class1? #t17 = let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t18{self::Class1}) in #t17 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t17{self::Class1}); - self::throws(() → void => let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:93:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:93:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. Try accessing using ?. instead. throws(() => (n1?.nullable1 = new Class1()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : let final self::Class1 #t21 = new self::Class1::•() in let final void #t22 = self::Extension1|set#nullable1(#t20{self::Class1}, #t21) in #t21)); - self::throws(() → void => let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:94:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t19 = n1 in #t19 == null ?{self::Class1?} null : let final self::Class1 #t20 = new self::Class1::•() in let final void #t21 = self::Extension1|set#nullable1(#t19{self::Class1}, #t20) in #t20)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:94:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. Try accessing using ?. instead. throws(() => (n1?.nonNullable1Method()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t24{self::Class1}))); - nullable1 = let final self::Class1? #t25 = n1 in #t25 == null ?{self::Class1?} null : let final self::Class1 #t26 = new self::Class1::•() in let final void #t27 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t25{self::Class1}), #t26) in #t26; - nullable1 = let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : let final self::Class1? #t29 = self::Extension1|get#nullable1(#t28{self::Class1}) in #t29 == null ?{self::Class1?} null : let final self::Class1 #t30 = new self::Class1::•() in let final void #t31 = self::Extension1|set#nullable1(#t29{self::Class1}, #t30) in #t30; - nullable1 = let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : let final self::Class1? #t33 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t32{self::Class1})) in #t33 == null ?{self::Class1?} null : let final self::Class1 #t34 = new self::Class1::•() in let final void #t35 = self::Extension1|set#nullable1(#t33{self::Class1}, #t34) in #t34; - let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : let final self::Class1? #t37 = self::Extension1|get#nullable1(#t36{self::Class1}) in #t37 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t37{self::Class1}); - let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t38{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t39 = n1 in #t39 == null ?{self::Class1?} null : let final self::Class1? #t40 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t41 = self::Extension1|set#nullable1(#t39{self::Class1}, #t40) in #t40; - let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t42{self::Class1}, let final self::Class1 #t43 = new self::Class1::•() in let final void #t44 = self::Extension1|set#nullable1(new self::Class1::•(), #t43) in #t43); - nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : let final self::Class1 #t46 = let final self::Class1 #t47 = new self::Class1::•() in let final void #t48 = self::Extension1|set#nullable1(new self::Class1::•(), #t47) in #t47 in let final void #t49 = self::Extension1|set#nullable1(#t45{self::Class1}, #t46) in #t46; - let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t50{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : let final self::Class1 #t52 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t53 = self::Extension1|set#nullable1(#t51{self::Class1}, #t52) in #t52; - let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t54{self::Class1})); - let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t55{self::Class1}), new self::Class1::•()); - let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t56{self::Class1})); - let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1}))); - let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t58{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : let final self::Class1 #t60 = new self::Class1::•() in let final void #t61 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t59{self::Class1})), #t60) in #t60; - let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : let final self::Class1? #t63 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t62{self::Class1})) in #t63 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t63{self::Class1}); - let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t64{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : let final self::Class1? #t66 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t67 = self::Extension1|set#nullable1(#t65{self::Class1}, #t66) in #t66; - let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t68{self::Class1}, let final self::Class1 #t69 = new self::Class1::•() in let final void #t70 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t69) in #t69); - nullable1 = let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : let final self::Class1 #t72 = let final self::Class1 #t73 = new self::Class1::•() in let final void #t74 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t73) in #t73 in let final void #t75 = self::Extension1|set#nullable1(#t71{self::Class1}, #t72) in #t72; - let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t76{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : let final self::Class1 #t78 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t79 = self::Extension1|set#nullable1(#t77{self::Class1}, #t78) in #t78; - let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); - let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t81{self::Class1})), new self::Class1::•()); - let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t82{self::Class1}))); - let final self::Class1? #t83 = n1 in #t83 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t83{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : let final self::Class1? #t85 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t86 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t84{self::Class1}), #t85) in #t85; - let final self::Class1? #t87 = n1 in #t87 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t87{self::Class1}), let final self::Class1 #t88 = new self::Class1::•() in let final void #t89 = self::Extension1|set#nullable1(new self::Class1::•(), #t88) in #t88); - nullable1 = let final self::Class1? #t90 = n1 in #t90 == null ?{self::Class1?} null : let final self::Class1 #t91 = let final self::Class1 #t92 = new self::Class1::•() in let final void #t93 = self::Extension1|set#nullable1(new self::Class1::•(), #t92) in #t92 in let final void #t94 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t90{self::Class1}), #t91) in #t91; - let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t95{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t96 = n1 in #t96 == null ?{self::Class1?} null : let final self::Class1 #t97 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t98 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t96{self::Class1}), #t97) in #t97; - let final self::Class1? #t99 = n1 in #t99 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t99{self::Class1}, let final self::Class1? #t100 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t101 = self::Extension1|set#nullable1(new self::Class1::•(), #t100) in #t100); - nullable1 = let final self::Class1? #t102 = n1 in #t102 == null ?{self::Class1?} null : let final self::Class1? #t103 = let final self::Class1? #t104 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t105 = self::Extension1|set#nullable1(new self::Class1::•(), #t104) in #t104 in let final void #t106 = self::Extension1|set#nullable1(#t102{self::Class1}, #t103) in #t103; - let final self::Class1? #t107 = n1 in #t107 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t107{self::Class1}, let final self::Class1 #t108 = let final self::Class1 #t109 = new self::Class1::•() in let final void #t110 = self::Extension1|set#nullable1(new self::Class1::•(), #t109) in #t109 in let final void #t111 = self::Extension1|set#nullable1(new self::Class1::•(), #t108) in #t108); - nullable1 = let final self::Class1? #t112 = n1 in #t112 == null ?{self::Class1?} null : let final self::Class1 #t113 = let final self::Class1 #t114 = let final self::Class1 #t115 = new self::Class1::•() in let final void #t116 = self::Extension1|set#nullable1(new self::Class1::•(), #t115) in #t115 in let final void #t117 = self::Extension1|set#nullable1(new self::Class1::•(), #t114) in #t114 in let final void #t118 = self::Extension1|set#nullable1(#t112{self::Class1}, #t113) in #t113; - let final self::Class1? #t119 = n1 in #t119 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t119{self::Class1}, let final self::Class1 #t120 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t121 = self::Extension1|set#nullable1(new self::Class1::•(), #t120) in #t120); - nullable1 = let final self::Class1? #t122 = n1 in #t122 == null ?{self::Class1?} null : let final self::Class1 #t123 = let final self::Class1 #t124 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t125 = self::Extension1|set#nullable1(new self::Class1::•(), #t124) in #t124 in let final void #t126 = self::Extension1|set#nullable1(#t122{self::Class1}, #t123) in #t123; - let final self::Class1? #t127 = n1 in #t127 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t127{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t128 = n1 in #t128 == null ?{self::Class1?} null : let final self::Class1? #t129 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t130 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t128{self::Class1}), #t129) in #t129; - let final self::Class1? #t131 = n1 in #t131 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t131{self::Class1}), let final self::Class1 #t132 = new self::Class1::•() in let final void #t133 = self::Extension1|set#nullable1(new self::Class1::•(), #t132) in #t132); - nullable1 = let final self::Class1? #t134 = n1 in #t134 == null ?{self::Class1?} null : let final self::Class1 #t135 = let final self::Class1 #t136 = new self::Class1::•() in let final void #t137 = self::Extension1|set#nullable1(new self::Class1::•(), #t136) in #t136 in let final void #t138 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t134{self::Class1}), #t135) in #t135; - let final self::Class1? #t139 = n1 in #t139 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t139{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t140 = n1 in #t140 == null ?{self::Class1?} null : let final self::Class1 #t141 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t142 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t140{self::Class1}), #t141) in #t141; - let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1}))); - let final self::Class1? #t144 = n1 in #t144 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t144{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t145 = n1 in #t145 == null ?{self::Class1?} null : let final self::Class1 #t146 = new self::Class1::•() in let final void #t147 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t145{self::Class1})), #t146) in #t146; - let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t148{self::Class1}))); - let final self::Class1? #t149 = n1 in #t149 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t149{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t150 = n1 in #t150 == null ?{self::Class1?} null : let final self::Class1? #t151 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t152 = self::Extension1|set#nullable1(#t150{self::Class1}, #t151) in #t151; - let final self::Class1? #t153 = n1 in #t153 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t153{self::Class1}, let final self::Class1 #t154 = new self::Class1::•() in let final void #t155 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t154) in #t154); - nullable1 = let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class1?} null : let final self::Class1 #t157 = let final self::Class1 #t158 = new self::Class1::•() in let final void #t159 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t158) in #t158 in let final void #t160 = self::Extension1|set#nullable1(#t156{self::Class1}, #t157) in #t157; - let final self::Class1? #t161 = n1 in #t161 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t161{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t162 = n1 in #t162 == null ?{self::Class1?} null : let final self::Class1 #t163 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t164 = self::Extension1|set#nullable1(#t162{self::Class1}, #t163) in #t163; - let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); - let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t166{self::Class1})), new self::Class1::•()); - let final self::Class1? #t167 = n1 in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t167{self::Class1}))); - let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : let final self::Class1? #t169 = self::Extension1|nonNullable1Method(#t168{self::Class1}) in #t169 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t169{self::Class1}); + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t22{self::Class1}))); + nullable1 = let final self::Class1? #t23 = n1 in #t23 == null ?{self::Class1?} null : let final self::Class1 #t24 = new self::Class1::•() in let final void #t25 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t23{self::Class1}), #t24) in #t24; + nullable1 = let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : let final self::Class1? #t27 = self::Extension1|get#nullable1(#t26{self::Class1}) in #t27 == null ?{self::Class1?} null : let final self::Class1 #t28 = new self::Class1::•() in let final void #t29 = self::Extension1|set#nullable1(#t27{self::Class1}, #t28) in #t28; + nullable1 = let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : let final self::Class1? #t31 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t30{self::Class1})) in #t31 == null ?{self::Class1?} null : let final self::Class1 #t32 = new self::Class1::•() in let final void #t33 = self::Extension1|set#nullable1(#t31{self::Class1}, #t32) in #t32; + let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : let final self::Class1? #t35 = self::Extension1|get#nullable1(#t34{self::Class1}) in #t35 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t35{self::Class1}); + let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t36{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : let final self::Class1? #t38 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t39 = self::Extension1|set#nullable1(#t37{self::Class1}, #t38) in #t38; + let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t40{self::Class1}, let final self::Class1 #t41 = new self::Class1::•() in let final void #t42 = self::Extension1|set#nullable1(new self::Class1::•(), #t41) in #t41); + nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : let final self::Class1 #t44 = let final self::Class1 #t45 = new self::Class1::•() in let final void #t46 = self::Extension1|set#nullable1(new self::Class1::•(), #t45) in #t45 in let final void #t47 = self::Extension1|set#nullable1(#t43{self::Class1}, #t44) in #t44; + let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t48{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : let final self::Class1 #t50 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t51 = self::Extension1|set#nullable1(#t49{self::Class1}, #t50) in #t50; + let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t52{self::Class1})); + let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t53{self::Class1}), new self::Class1::•()); + let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t54{self::Class1})); + let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t55{self::Class1}))); + let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t56{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : let final self::Class1 #t58 = new self::Class1::•() in let final void #t59 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1})), #t58) in #t58; + let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : let final self::Class1? #t61 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t60{self::Class1})) in #t61 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t61{self::Class1}); + let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t62{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : let final self::Class1? #t64 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t65 = self::Extension1|set#nullable1(#t63{self::Class1}, #t64) in #t64; + let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t66{self::Class1}, let final self::Class1 #t67 = new self::Class1::•() in let final void #t68 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t67) in #t67); + nullable1 = let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : let final self::Class1 #t70 = let final self::Class1 #t71 = new self::Class1::•() in let final void #t72 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t71) in #t71 in let final void #t73 = self::Extension1|set#nullable1(#t69{self::Class1}, #t70) in #t70; + let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t74{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : let final self::Class1 #t76 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t77 = self::Extension1|set#nullable1(#t75{self::Class1}, #t76) in #t76; + let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t78{self::Class1}))); + let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t79{self::Class1})), new self::Class1::•()); + let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); + let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t81{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : let final self::Class1? #t83 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t84 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t82{self::Class1}), #t83) in #t83; + let final self::Class1? #t85 = n1 in #t85 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t85{self::Class1}), let final self::Class1 #t86 = new self::Class1::•() in let final void #t87 = self::Extension1|set#nullable1(new self::Class1::•(), #t86) in #t86); + nullable1 = let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : let final self::Class1 #t89 = let final self::Class1 #t90 = new self::Class1::•() in let final void #t91 = self::Extension1|set#nullable1(new self::Class1::•(), #t90) in #t90 in let final void #t92 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t88{self::Class1}), #t89) in #t89; + let final self::Class1? #t93 = n1 in #t93 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t93{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t94 = n1 in #t94 == null ?{self::Class1?} null : let final self::Class1 #t95 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t96 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t94{self::Class1}), #t95) in #t95; + let final self::Class1? #t97 = n1 in #t97 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t97{self::Class1}, let final self::Class1? #t98 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t99 = self::Extension1|set#nullable1(new self::Class1::•(), #t98) in #t98); + nullable1 = let final self::Class1? #t100 = n1 in #t100 == null ?{self::Class1?} null : let final self::Class1? #t101 = let final self::Class1? #t102 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t103 = self::Extension1|set#nullable1(new self::Class1::•(), #t102) in #t102 in let final void #t104 = self::Extension1|set#nullable1(#t100{self::Class1}, #t101) in #t101; + let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t105{self::Class1}, let final self::Class1 #t106 = let final self::Class1 #t107 = new self::Class1::•() in let final void #t108 = self::Extension1|set#nullable1(new self::Class1::•(), #t107) in #t107 in let final void #t109 = self::Extension1|set#nullable1(new self::Class1::•(), #t106) in #t106); + nullable1 = let final self::Class1? #t110 = n1 in #t110 == null ?{self::Class1?} null : let final self::Class1 #t111 = let final self::Class1 #t112 = let final self::Class1 #t113 = new self::Class1::•() in let final void #t114 = self::Extension1|set#nullable1(new self::Class1::•(), #t113) in #t113 in let final void #t115 = self::Extension1|set#nullable1(new self::Class1::•(), #t112) in #t112 in let final void #t116 = self::Extension1|set#nullable1(#t110{self::Class1}, #t111) in #t111; + let final self::Class1? #t117 = n1 in #t117 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t117{self::Class1}, let final self::Class1 #t118 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t119 = self::Extension1|set#nullable1(new self::Class1::•(), #t118) in #t118); + nullable1 = let final self::Class1? #t120 = n1 in #t120 == null ?{self::Class1?} null : let final self::Class1 #t121 = let final self::Class1 #t122 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t123 = self::Extension1|set#nullable1(new self::Class1::•(), #t122) in #t122 in let final void #t124 = self::Extension1|set#nullable1(#t120{self::Class1}, #t121) in #t121; + let final self::Class1? #t125 = n1 in #t125 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t125{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t126 = n1 in #t126 == null ?{self::Class1?} null : let final self::Class1? #t127 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t128 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t126{self::Class1}), #t127) in #t127; + let final self::Class1? #t129 = n1 in #t129 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t129{self::Class1}), let final self::Class1 #t130 = new self::Class1::•() in let final void #t131 = self::Extension1|set#nullable1(new self::Class1::•(), #t130) in #t130); + nullable1 = let final self::Class1? #t132 = n1 in #t132 == null ?{self::Class1?} null : let final self::Class1 #t133 = let final self::Class1 #t134 = new self::Class1::•() in let final void #t135 = self::Extension1|set#nullable1(new self::Class1::•(), #t134) in #t134 in let final void #t136 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t132{self::Class1}), #t133) in #t133; + let final self::Class1? #t137 = n1 in #t137 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t137{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t138 = n1 in #t138 == null ?{self::Class1?} null : let final self::Class1 #t139 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t140 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t138{self::Class1}), #t139) in #t139; + let final self::Class1? #t141 = n1 in #t141 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t141{self::Class1}))); + let final self::Class1? #t142 = n1 in #t142 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t142{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : let final self::Class1 #t144 = new self::Class1::•() in let final void #t145 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1})), #t144) in #t144; + let final self::Class1? #t146 = n1 in #t146 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t146{self::Class1}))); + let final self::Class1? #t147 = n1 in #t147 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t147{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : let final self::Class1? #t149 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t150 = self::Extension1|set#nullable1(#t148{self::Class1}, #t149) in #t149; + let final self::Class1? #t151 = n1 in #t151 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t151{self::Class1}, let final self::Class1 #t152 = new self::Class1::•() in let final void #t153 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t152) in #t152); + nullable1 = let final self::Class1? #t154 = n1 in #t154 == null ?{self::Class1?} null : let final self::Class1 #t155 = let final self::Class1 #t156 = new self::Class1::•() in let final void #t157 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t156) in #t156 in let final void #t158 = self::Extension1|set#nullable1(#t154{self::Class1}, #t155) in #t155; + let final self::Class1? #t159 = n1 in #t159 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t159{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t160 = n1 in #t160 == null ?{self::Class1?} null : let final self::Class1 #t161 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t162 = self::Extension1|set#nullable1(#t160{self::Class1}, #t161) in #t161; + let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t163{self::Class1}))); + let final self::Class1? #t164 = n1 in #t164 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t164{self::Class1})), new self::Class1::•()); + let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); + let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : let final self::Class1? #t167 = self::Extension1|nonNullable1Method(#t166{self::Class1}) in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t167{self::Class1}); } static method indexAccess(self::Class1? n1, self::Class2? n2, self::Class3? n3) → void { self::Class1? nullable1 = n1; self::Class2? nullable2 = n2; self::Class3? nullable3 = n3; - let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : self::Extension1|[](#t170{self::Class1}, nullable1); - let final self::Class1? #t171 = n1 in #t171 == null ?{self::Class1?} null : self::Extension1|[]=(#t171{self::Class1}, nullable1, new self::Class1::•()); - let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : let final self::Class1? #t173 = self::Extension1|[](#t172{self::Class1}, nullable1) in #t173 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t173{self::Class1}); - let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t174{self::Class1}), nullable1); - let final self::Class1? #t175 = n1 in #t175 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t175{self::Class1}), nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t176 = n1 in #t176 == null ?{self::Class1?} null : let final self::Class1 #t177 = self::Extension1|get#nonNullable1(#t176{self::Class1}) in let final self::Class1? #t178 = nullable1 in let final self::Class1 #t179 = new self::Class1::•() in let final void #t180 = self::Extension1|[]=(#t177, #t178, #t179) in #t179; - let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class1?} null : let final self::Class1? #t182 = self::Extension1|[](self::Extension1|get#nonNullable1(#t181{self::Class1}), nullable1) in #t182 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t182{self::Class1}); - let final self::Class1? #t183 = n1 in #t183 == null ?{self::Class2?} null : let final self::Class2 #t184 = self::Extension1|get#nonNullable2(#t183{self::Class1}) in let final self::Class2? #t185 = nullable2 in self::Extension2|[]=(#t184, #t185, self::Extension2|+(self::Extension2|[](#t184, #t185), 0)); - nullable2 = let final self::Class1? #t186 = n1 in #t186 == null ?{self::Class2?} null : let final self::Class2 #t187 = self::Extension1|get#nonNullable2(#t186{self::Class1}) in let final self::Class2? #t188 = nullable2 in let final self::Class2 #t189 = self::Extension2|+(self::Extension2|[](#t187, #t188), 0) in let final void #t190 = self::Extension2|[]=(#t187, #t188, #t189) in #t189; - let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in self::Extension1|[](#t191{self::Class1}, #t192) == null ?{self::Class1?} self::Extension1|[]=(#t191{self::Class1}, #t192, nullable1) : null; - nullable1 = let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = nullable1 in let final self::Class1? #t195 = self::Extension1|[](#t193{self::Class1}, #t194) in #t195 == null ?{self::Class1?} let final self::Class1? #t196 = nullable1 in let final void #t197 = self::Extension1|[]=(#t193{self::Class1}, #t194, #t196) in #t196 : #t195{self::Class1}; - let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in self::Extension2|[]=(#t198{self::Class2}, #t199, self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0)); - nullable2 = let final self::Class2? #t200 = n2 in #t200 == null ?{self::Class2?} null : let final self::Class2? #t201 = nullable2 in let final self::Class2 #t202 = self::Extension2|+(self::Extension2|[](#t200{self::Class2}, #t201), 0) in let final void #t203 = self::Extension2|[]=(#t200{self::Class2}, #t201, #t202) in #t202; - let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in self::Extension2|[]=(#t204{self::Class2}, #t205, self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0)); - nullable2 = let final self::Class2? #t206 = n2 in #t206 == null ?{self::Class2?} null : let final self::Class2? #t207 = nullable2 in let final self::Class2 #t208 = self::Extension2|+(self::Extension2|[](#t206{self::Class2}, #t207), 0) in let final void #t209 = self::Extension2|[]=(#t206{self::Class2}, #t207, #t208) in #t208; - let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(self::Extension2|[](#t210{self::Class2}, #t211), 1)); - nullable2 = let final self::Class2? #t212 = n2 in #t212 == null ?{self::Class2?} null : let final self::Class2? #t213 = nullable2 in let final self::Class2 #t214 = self::Extension2|[](#t212{self::Class2}, #t213) in let final void #t215 = self::Extension2|[]=(#t212{self::Class2}, #t213, self::Extension2|+(#t214, 1)) in #t214; - let final self::Class2? #t216 = n2 in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = nullable2 in let final self::Class2 #t218 = self::Extension2|+(self::Extension2|[](#t216{self::Class2}, #t217), 1) in let final void #t219 = self::Extension2|[]=(#t216{self::Class2}, #t217, #t218) in #t218; - nullable2 = let final self::Class2? #t220 = n2 in #t220 == null ?{self::Class2?} null : let final self::Class2? #t221 = nullable2 in let final self::Class2 #t222 = self::Extension2|+(self::Extension2|[](#t220{self::Class2}, #t221), 1) in let final void #t223 = self::Extension2|[]=(#t220{self::Class2}, #t221, #t222) in #t222; - let final self::Class1? #t224 = n1 in #t224 == null ?{self::Class2?} null : let final self::Class2 #t225 = self::Extension1|get#nonNullable2(#t224{self::Class1}) in let final self::Class2? #t226 = nullable2 in self::Extension2|[]=(#t225, #t226, self::Extension2|+(self::Extension2|[](#t225, #t226), 1)); - nullable2 = let final self::Class1? #t227 = n1 in #t227 == null ?{self::Class2?} null : let final self::Class2 #t228 = self::Extension1|get#nonNullable2(#t227{self::Class1}) in let final self::Class2? #t229 = nullable2 in let final self::Class2 #t230 = self::Extension2|[](#t228, #t229) in let final void #t231 = self::Extension2|[]=(#t228, #t229, self::Extension2|+(#t230, 1)) in #t230; - let final self::Class1? #t232 = n1 in #t232 == null ?{self::Class2?} null : let final self::Class2 #t233 = self::Extension1|get#nonNullable2(#t232{self::Class1}) in let final self::Class2? #t234 = nullable2 in let final self::Class2 #t235 = self::Extension2|+(self::Extension2|[](#t233, #t234), 1) in let final void #t236 = self::Extension2|[]=(#t233, #t234, #t235) in #t235; - nullable2 = let final self::Class1? #t237 = n1 in #t237 == null ?{self::Class2?} null : let final self::Class2 #t238 = self::Extension1|get#nonNullable2(#t237{self::Class1}) in let final self::Class2? #t239 = nullable2 in let final self::Class2 #t240 = self::Extension2|+(self::Extension2|[](#t238, #t239), 1) in let final void #t241 = self::Extension2|[]=(#t238, #t239, #t240) in #t240; - let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2), nullable2); - let final self::Class1? #t243 = n1 in #t243 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t243{self::Class1}), nullable2), nullable2, new self::Class2::•()); - nullable2 = let final self::Class1? #t244 = n1 in #t244 == null ?{self::Class2?} null : let final self::Class2 #t245 = self::Extension2|[](self::Extension1|get#nonNullable2(#t244{self::Class1}), nullable2) in let final self::Class2? #t246 = nullable2 in let final self::Class2 #t247 = new self::Class2::•() in let final void #t248 = self::Extension2|[]=(#t245, #t246, #t247) in #t247; - let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2? #t250 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2), nullable2) in #t250 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t250{self::Class2}); - let final self::Class1? #t251 = n1 in #t251 == null ?{self::Class2?} null : let final self::Class2 #t252 = self::Extension2|[](self::Extension1|get#nonNullable2(#t251{self::Class1}), nullable2) in let final self::Class2? #t253 = nullable2 in self::Extension2|[]=(#t252, #t253, self::Extension2|+(self::Extension2|[](#t252, #t253), 0)); - nullable2 = let final self::Class1? #t254 = n1 in #t254 == null ?{self::Class2?} null : let final self::Class2 #t255 = self::Extension2|[](self::Extension1|get#nonNullable2(#t254{self::Class1}), nullable2) in let final self::Class2? #t256 = nullable2 in let final self::Class2 #t257 = self::Extension2|+(self::Extension2|[](#t255, #t256), 0) in let final void #t258 = self::Extension2|[]=(#t255, #t256, #t257) in #t257; - let final self::Class1? #t259 = n1 in #t259 == null ?{self::Class2?} null : let final self::Class2 #t260 = self::Extension2|[](self::Extension1|get#nonNullable2(#t259{self::Class1}), nullable2) in let final self::Class2? #t261 = nullable2 in self::Extension2|[]=(#t260, #t261, self::Extension2|+(self::Extension2|[](#t260, #t261), 1)); - nullable2 = let final self::Class1? #t262 = n1 in #t262 == null ?{self::Class2?} null : let final self::Class2 #t263 = self::Extension2|[](self::Extension1|get#nonNullable2(#t262{self::Class1}), nullable2) in let final self::Class2? #t264 = nullable2 in let final self::Class2 #t265 = self::Extension2|[](#t263, #t264) in let final void #t266 = self::Extension2|[]=(#t263, #t264, self::Extension2|+(#t265, 1)) in #t265; - let final self::Class1? #t267 = n1 in #t267 == null ?{self::Class2?} null : let final self::Class2 #t268 = self::Extension2|[](self::Extension1|get#nonNullable2(#t267{self::Class1}), nullable2) in let final self::Class2? #t269 = nullable2 in let final self::Class2 #t270 = self::Extension2|+(self::Extension2|[](#t268, #t269), 1) in let final void #t271 = self::Extension2|[]=(#t268, #t269, #t270) in #t270; - nullable2 = let final self::Class1? #t272 = n1 in #t272 == null ?{self::Class2?} null : let final self::Class2 #t273 = self::Extension2|[](self::Extension1|get#nonNullable2(#t272{self::Class1}), nullable2) in let final self::Class2? #t274 = nullable2 in let final self::Class2 #t275 = self::Extension2|+(self::Extension2|[](#t273, #t274), 1) in let final void #t276 = self::Extension2|[]=(#t273, #t274, #t275) in #t275; - let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[](#t278{self::Class1}, nullable1); - let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : self::Extension1|[]=(#t280{self::Class1}, nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t281 = n1 in #t281 == null ?{self::Class1?} null : let final self::Class1? #t282 = self::Extension1|[](#t281{self::Class1}, nullable1) in #t282 == null ?{self::Class1?} null : let final self::Class1? #t283 = nullable1 in let final self::Class1 #t284 = new self::Class1::•() in let final void #t285 = self::Extension1|[]=(#t282{self::Class1}, #t283, #t284) in #t284; - let final self::Class1? #t286 = n1 in #t286 == null ?{self::Class1?} null : let final self::Class1? #t287 = self::Extension1|[](#t286{self::Class1}, nullable1) in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t288{self::Class1}); - nullable1 = let final self::Class1? #t289 = n1 in #t289 == null ?{self::Class1?} null : let final self::Class1? #t290 = self::Extension1|[](#t289{self::Class1}, nullable1) in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t291{self::Class1}); - let final self::Class1? #t292 = n1 in #t292 == null ?{self::Class1?} null : let final self::Class1? #t293 = self::Extension1|[](#t292{self::Class1}, nullable1) in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = nullable1 in self::Extension1|[](#t293{self::Class1}, #t294) == null ?{self::Class1?} self::Extension1|[]=(#t293{self::Class1}, #t294, nullable1) : null; - nullable1 = let final self::Class1? #t295 = n1 in #t295 == null ?{self::Class1?} null : let final self::Class1? #t296 = self::Extension1|[](#t295{self::Class1}, nullable1) in #t296 == null ?{self::Class1?} null : let final self::Class1? #t297 = nullable1 in let final self::Class1? #t298 = self::Extension1|[](#t296{self::Class1}, #t297) in #t298 == null ?{self::Class1?} let final self::Class1? #t299 = nullable1 in let final void #t300 = self::Extension1|[]=(#t296{self::Class1}, #t297, #t299) in #t299 : #t298{self::Class1}; - let final self::Class3? #t301 = n3 in #t301 == null ?{self::Class2?} null : let final self::Class2? #t302 = self::Extension3|[](#t301{self::Class3}, nullable3) in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = nullable2 in self::Extension2|[]=(#t302{self::Class2}, #t303, self::Extension2|+(self::Extension2|[](#t302{self::Class2}, #t303), 0)); - nullable2 = let final self::Class3? #t304 = n3 in #t304 == null ?{self::Class2?} null : let final self::Class2? #t305 = self::Extension3|[](#t304{self::Class3}, nullable3) in #t305 == null ?{self::Class2?} null : let final self::Class2? #t306 = nullable2 in let final self::Class2 #t307 = self::Extension2|+(self::Extension2|[](#t305{self::Class2}, #t306), 0) in let final void #t308 = self::Extension2|[]=(#t305{self::Class2}, #t306, #t307) in #t307; - let final self::Class3? #t309 = n3 in #t309 == null ?{self::Class2?} null : let final self::Class2? #t310 = self::Extension3|[](#t309{self::Class3}, nullable3) in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = nullable2 in self::Extension2|[]=(#t310{self::Class2}, #t311, self::Extension2|+(self::Extension2|[](#t310{self::Class2}, #t311), 1)); - nullable2 = let final self::Class3? #t312 = n3 in #t312 == null ?{self::Class2?} null : let final self::Class2? #t313 = self::Extension3|[](#t312{self::Class3}, nullable3) in #t313 == null ?{self::Class2?} null : let final self::Class2? #t314 = nullable2 in let final self::Class2 #t315 = self::Extension2|[](#t313{self::Class2}, #t314) in let final void #t316 = self::Extension2|[]=(#t313{self::Class2}, #t314, self::Extension2|+(#t315, 1)) in #t315; - let final self::Class3? #t317 = n3 in #t317 == null ?{self::Class2?} null : let final self::Class2? #t318 = self::Extension3|[](#t317{self::Class3}, nullable3) in #t318 == null ?{self::Class2?} null : let final self::Class2? #t319 = nullable2 in let final self::Class2 #t320 = self::Extension2|+(self::Extension2|[](#t318{self::Class2}, #t319), 1) in let final void #t321 = self::Extension2|[]=(#t318{self::Class2}, #t319, #t320) in #t320; - nullable2 = let final self::Class3? #t322 = n3 in #t322 == null ?{self::Class2?} null : let final self::Class2? #t323 = self::Extension3|[](#t322{self::Class3}, nullable3) in #t323 == null ?{self::Class2?} null : let final self::Class2? #t324 = nullable2 in let final self::Class2 #t325 = self::Extension2|+(self::Extension2|[](#t323{self::Class2}, #t324), 1) in let final void #t326 = self::Extension2|[]=(#t323{self::Class2}, #t324, #t325) in #t325; + let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : self::Extension1|[](#t168{self::Class1}, nullable1); + let final self::Class1? #t169 = n1 in #t169 == null ?{self::Class1?} null : self::Extension1|[]=(#t169{self::Class1}, nullable1, new self::Class1::•()); + let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : let final self::Class1? #t171 = self::Extension1|[](#t170{self::Class1}, nullable1) in #t171 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t171{self::Class1}); + let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t172{self::Class1}), nullable1); + let final self::Class1? #t173 = n1 in #t173 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t173{self::Class1}), nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : let final self::Class1 #t175 = self::Extension1|get#nonNullable1(#t174{self::Class1}) in let final self::Class1? #t176 = nullable1 in let final self::Class1 #t177 = new self::Class1::•() in let final void #t178 = self::Extension1|[]=(#t175, #t176, #t177) in #t177; + let final self::Class1? #t179 = n1 in #t179 == null ?{self::Class1?} null : let final self::Class1? #t180 = self::Extension1|[](self::Extension1|get#nonNullable1(#t179{self::Class1}), nullable1) in #t180 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t180{self::Class1}); + let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class2?} null : let final self::Class2 #t182 = self::Extension1|get#nonNullable2(#t181{self::Class1}) in let final self::Class2? #t183 = nullable2 in self::Extension2|[]=(#t182, #t183, self::Extension2|+(self::Extension2|[](#t182, #t183), 0)); + nullable2 = let final self::Class1? #t184 = n1 in #t184 == null ?{self::Class2?} null : let final self::Class2 #t185 = self::Extension1|get#nonNullable2(#t184{self::Class1}) in let final self::Class2? #t186 = nullable2 in let final self::Class2 #t187 = self::Extension2|+(self::Extension2|[](#t185, #t186), 0) in let final void #t188 = self::Extension2|[]=(#t185, #t186, #t187) in #t187; + let final self::Class1? #t189 = n1 in #t189 == null ?{self::Class1?} null : let final self::Class1? #t190 = nullable1 in self::Extension1|[](#t189{self::Class1}, #t190) == null ?{self::Class1?} self::Extension1|[]=(#t189{self::Class1}, #t190, nullable1) : null; + nullable1 = let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in let final self::Class1? #t193 = self::Extension1|[](#t191{self::Class1}, #t192) in #t193 == null ?{self::Class1?} let final self::Class1? #t194 = nullable1 in let final void #t195 = self::Extension1|[]=(#t191{self::Class1}, #t192, #t194) in #t194 : #t193{self::Class1}; + let final self::Class2? #t196 = n2 in #t196 == null ?{self::Class2?} null : let final self::Class2? #t197 = nullable2 in self::Extension2|[]=(#t196{self::Class2}, #t197, self::Extension2|+(self::Extension2|[](#t196{self::Class2}, #t197), 0)); + nullable2 = let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in let final self::Class2 #t200 = self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0) in let final void #t201 = self::Extension2|[]=(#t198{self::Class2}, #t199, #t200) in #t200; + let final self::Class2? #t202 = n2 in #t202 == null ?{self::Class2?} null : let final self::Class2? #t203 = nullable2 in self::Extension2|[]=(#t202{self::Class2}, #t203, self::Extension2|+(self::Extension2|[](#t202{self::Class2}, #t203), 0)); + nullable2 = let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in let final self::Class2 #t206 = self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0) in let final void #t207 = self::Extension2|[]=(#t204{self::Class2}, #t205, #t206) in #t206; + let final self::Class2? #t208 = n2 in #t208 == null ?{self::Class2?} null : let final self::Class2? #t209 = nullable2 in self::Extension2|[]=(#t208{self::Class2}, #t209, self::Extension2|+(self::Extension2|[](#t208{self::Class2}, #t209), 1)); + nullable2 = let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in let final self::Class2 #t212 = self::Extension2|[](#t210{self::Class2}, #t211) in let final void #t213 = self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(#t212, 1)) in #t212; + let final self::Class2? #t214 = n2 in #t214 == null ?{self::Class2?} null : let final self::Class2? #t215 = nullable2 in let final self::Class2 #t216 = self::Extension2|+(self::Extension2|[](#t214{self::Class2}, #t215), 1) in let final void #t217 = self::Extension2|[]=(#t214{self::Class2}, #t215, #t216) in #t216; + nullable2 = let final self::Class2? #t218 = n2 in #t218 == null ?{self::Class2?} null : let final self::Class2? #t219 = nullable2 in let final self::Class2 #t220 = self::Extension2|+(self::Extension2|[](#t218{self::Class2}, #t219), 1) in let final void #t221 = self::Extension2|[]=(#t218{self::Class2}, #t219, #t220) in #t220; + let final self::Class1? #t222 = n1 in #t222 == null ?{self::Class2?} null : let final self::Class2 #t223 = self::Extension1|get#nonNullable2(#t222{self::Class1}) in let final self::Class2? #t224 = nullable2 in self::Extension2|[]=(#t223, #t224, self::Extension2|+(self::Extension2|[](#t223, #t224), 1)); + nullable2 = let final self::Class1? #t225 = n1 in #t225 == null ?{self::Class2?} null : let final self::Class2 #t226 = self::Extension1|get#nonNullable2(#t225{self::Class1}) in let final self::Class2? #t227 = nullable2 in let final self::Class2 #t228 = self::Extension2|[](#t226, #t227) in let final void #t229 = self::Extension2|[]=(#t226, #t227, self::Extension2|+(#t228, 1)) in #t228; + let final self::Class1? #t230 = n1 in #t230 == null ?{self::Class2?} null : let final self::Class2 #t231 = self::Extension1|get#nonNullable2(#t230{self::Class1}) in let final self::Class2? #t232 = nullable2 in let final self::Class2 #t233 = self::Extension2|+(self::Extension2|[](#t231, #t232), 1) in let final void #t234 = self::Extension2|[]=(#t231, #t232, #t233) in #t233; + nullable2 = let final self::Class1? #t235 = n1 in #t235 == null ?{self::Class2?} null : let final self::Class2 #t236 = self::Extension1|get#nonNullable2(#t235{self::Class1}) in let final self::Class2? #t237 = nullable2 in let final self::Class2 #t238 = self::Extension2|+(self::Extension2|[](#t236, #t237), 1) in let final void #t239 = self::Extension2|[]=(#t236, #t237, #t238) in #t238; + let final self::Class1? #t240 = n1 in #t240 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t240{self::Class1}), nullable2), nullable2); + let final self::Class1? #t241 = n1 in #t241 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t241{self::Class1}), nullable2), nullable2, new self::Class2::•()); + nullable2 = let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : let final self::Class2 #t243 = self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2) in let final self::Class2? #t244 = nullable2 in let final self::Class2 #t245 = new self::Class2::•() in let final void #t246 = self::Extension2|[]=(#t243, #t244, #t245) in #t245; + let final self::Class1? #t247 = n1 in #t247 == null ?{self::Class2?} null : let final self::Class2? #t248 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t247{self::Class1}), nullable2), nullable2) in #t248 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t248{self::Class2}); + let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2 #t250 = self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2) in let final self::Class2? #t251 = nullable2 in self::Extension2|[]=(#t250, #t251, self::Extension2|+(self::Extension2|[](#t250, #t251), 0)); + nullable2 = let final self::Class1? #t252 = n1 in #t252 == null ?{self::Class2?} null : let final self::Class2 #t253 = self::Extension2|[](self::Extension1|get#nonNullable2(#t252{self::Class1}), nullable2) in let final self::Class2? #t254 = nullable2 in let final self::Class2 #t255 = self::Extension2|+(self::Extension2|[](#t253, #t254), 0) in let final void #t256 = self::Extension2|[]=(#t253, #t254, #t255) in #t255; + let final self::Class1? #t257 = n1 in #t257 == null ?{self::Class2?} null : let final self::Class2 #t258 = self::Extension2|[](self::Extension1|get#nonNullable2(#t257{self::Class1}), nullable2) in let final self::Class2? #t259 = nullable2 in self::Extension2|[]=(#t258, #t259, self::Extension2|+(self::Extension2|[](#t258, #t259), 1)); + nullable2 = let final self::Class1? #t260 = n1 in #t260 == null ?{self::Class2?} null : let final self::Class2 #t261 = self::Extension2|[](self::Extension1|get#nonNullable2(#t260{self::Class1}), nullable2) in let final self::Class2? #t262 = nullable2 in let final self::Class2 #t263 = self::Extension2|[](#t261, #t262) in let final void #t264 = self::Extension2|[]=(#t261, #t262, self::Extension2|+(#t263, 1)) in #t263; + let final self::Class1? #t265 = n1 in #t265 == null ?{self::Class2?} null : let final self::Class2 #t266 = self::Extension2|[](self::Extension1|get#nonNullable2(#t265{self::Class1}), nullable2) in let final self::Class2? #t267 = nullable2 in let final self::Class2 #t268 = self::Extension2|+(self::Extension2|[](#t266, #t267), 1) in let final void #t269 = self::Extension2|[]=(#t266, #t267, #t268) in #t268; + nullable2 = let final self::Class1? #t270 = n1 in #t270 == null ?{self::Class2?} null : let final self::Class2 #t271 = self::Extension2|[](self::Extension1|get#nonNullable2(#t270{self::Class1}), nullable2) in let final self::Class2? #t272 = nullable2 in let final self::Class2 #t273 = self::Extension2|+(self::Extension2|[](#t271, #t272), 1) in let final void #t274 = self::Extension2|[]=(#t271, #t272, #t273) in #t273; + let final self::Class1? #t275 = n1 in #t275 == null ?{self::Class1?} null : let final self::Class1? #t276 = self::Extension1|[](#t275{self::Class1}, nullable1) in #t276 == null ?{self::Class1?} null : self::Extension1|[](#t276{self::Class1}, nullable1); + let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[]=(#t278{self::Class1}, nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : let final self::Class1? #t281 = nullable1 in let final self::Class1 #t282 = new self::Class1::•() in let final void #t283 = self::Extension1|[]=(#t280{self::Class1}, #t281, #t282) in #t282; + let final self::Class1? #t284 = n1 in #t284 == null ?{self::Class1?} null : let final self::Class1? #t285 = self::Extension1|[](#t284{self::Class1}, nullable1) in #t285 == null ?{self::Class1?} null : let final self::Class1? #t286 = self::Extension1|[](#t285{self::Class1}, nullable1) in #t286 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t286{self::Class1}); + nullable1 = let final self::Class1? #t287 = n1 in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : let final self::Class1? #t289 = self::Extension1|[](#t288{self::Class1}, nullable1) in #t289 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t289{self::Class1}); + let final self::Class1? #t290 = n1 in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : let final self::Class1? #t292 = nullable1 in self::Extension1|[](#t291{self::Class1}, #t292) == null ?{self::Class1?} self::Extension1|[]=(#t291{self::Class1}, #t292, nullable1) : null; + nullable1 = let final self::Class1? #t293 = n1 in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = self::Extension1|[](#t293{self::Class1}, nullable1) in #t294 == null ?{self::Class1?} null : let final self::Class1? #t295 = nullable1 in let final self::Class1? #t296 = self::Extension1|[](#t294{self::Class1}, #t295) in #t296 == null ?{self::Class1?} let final self::Class1? #t297 = nullable1 in let final void #t298 = self::Extension1|[]=(#t294{self::Class1}, #t295, #t297) in #t297 : #t296{self::Class1}; + let final self::Class3? #t299 = n3 in #t299 == null ?{self::Class2?} null : let final self::Class2? #t300 = self::Extension3|[](#t299{self::Class3}, nullable3) in #t300 == null ?{self::Class2?} null : let final self::Class2? #t301 = nullable2 in self::Extension2|[]=(#t300{self::Class2}, #t301, self::Extension2|+(self::Extension2|[](#t300{self::Class2}, #t301), 0)); + nullable2 = let final self::Class3? #t302 = n3 in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = self::Extension3|[](#t302{self::Class3}, nullable3) in #t303 == null ?{self::Class2?} null : let final self::Class2? #t304 = nullable2 in let final self::Class2 #t305 = self::Extension2|+(self::Extension2|[](#t303{self::Class2}, #t304), 0) in let final void #t306 = self::Extension2|[]=(#t303{self::Class2}, #t304, #t305) in #t305; + let final self::Class3? #t307 = n3 in #t307 == null ?{self::Class2?} null : let final self::Class2? #t308 = self::Extension3|[](#t307{self::Class3}, nullable3) in #t308 == null ?{self::Class2?} null : let final self::Class2? #t309 = nullable2 in self::Extension2|[]=(#t308{self::Class2}, #t309, self::Extension2|+(self::Extension2|[](#t308{self::Class2}, #t309), 1)); + nullable2 = let final self::Class3? #t310 = n3 in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = self::Extension3|[](#t310{self::Class3}, nullable3) in #t311 == null ?{self::Class2?} null : let final self::Class2? #t312 = nullable2 in let final self::Class2 #t313 = self::Extension2|[](#t311{self::Class2}, #t312) in let final void #t314 = self::Extension2|[]=(#t311{self::Class2}, #t312, self::Extension2|+(#t313, 1)) in #t313; + let final self::Class3? #t315 = n3 in #t315 == null ?{self::Class2?} null : let final self::Class2? #t316 = self::Extension3|[](#t315{self::Class3}, nullable3) in #t316 == null ?{self::Class2?} null : let final self::Class2? #t317 = nullable2 in let final self::Class2 #t318 = self::Extension2|+(self::Extension2|[](#t316{self::Class2}, #t317), 1) in let final void #t319 = self::Extension2|[]=(#t316{self::Class2}, #t317, #t318) in #t318; + nullable2 = let final self::Class3? #t320 = n3 in #t320 == null ?{self::Class2?} null : let final self::Class2? #t321 = self::Extension3|[](#t320{self::Class3}, nullable3) in #t321 == null ?{self::Class2?} null : let final self::Class2? #t322 = nullable2 in let final self::Class2 #t323 = self::Extension2|+(self::Extension2|[](#t321{self::Class2}, #t322), 1) in let final void #t324 = self::Extension2|[]=(#t321{self::Class2}, #t322, #t323) in #t323; } static method operatorAccess(self::Class1? n1, self::Class2? n2) → void { self::Class2? nullable2 = n2; - self::throws(() → void => let final Never #t327 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:226:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:226:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. throws(() => n1?.nonNullable1 + 0); - ^" in self::Extension1|+(let final self::Class1? #t328 = n1 in #t328 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t328{self::Class1}), 0)); - self::throws(() → void => let final Never #t329 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:227:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. + ^" in self::Extension1|+(let final self::Class1? #t325 = n1 in #t325 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t325{self::Class1}), 0)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:227:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. throws(() => -n1?.nonNullable1); - ^" in self::Extension1|unary-(let final self::Class1? #t330 = n1 in #t330 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t330{self::Class1}))); - let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t331, self::Extension2|+(self::Extension2|get#nonNullable2(#t331), 0)); - nullable2 = let final self::Class2? #t332 = n2 in #t332 == null ?{self::Class2?} null : let final self::Class2 #t333 = self::Extension2|+(self::Extension2|get#nonNullable2(#t332), 0) in let final void #t334 = self::Extension2|set#nonNullable2(#t332, #t333) in #t333; - let final self::Class2? #t335 = n2 in #t335 == null ?{self::Class2?} null : let final self::Class2 #t336 = self::Extension2|get#nonNullable2(#t335{self::Class2}) in self::Extension2|set#nonNullable2(#t336, self::Extension2|+(self::Extension2|get#nonNullable2(#t336), 0)); - nullable2 = let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : let final self::Class2 #t338 = self::Extension2|get#nonNullable2(#t337{self::Class2}) in let final self::Class2 #t339 = self::Extension2|+(self::Extension2|get#nonNullable2(#t338), 0) in let final void #t340 = self::Extension2|set#nonNullable2(#t338, #t339) in #t339; - let final self::Class2? #t341 = n2 in #t341 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t341, self::Extension2|+(self::Extension2|get#nonNullable2(#t341), 1)); - nullable2 = let final self::Class2? #t342 = n2 in #t342 == null ?{self::Class2?} null : let final self::Class2 #t343 = self::Extension2|get#nonNullable2(#t342) in let final void #t344 = self::Extension2|set#nonNullable2(#t342, self::Extension2|+(#t343, 1)) in #t343; - let final self::Class2? #t345 = n2 in #t345 == null ?{self::Class2?} null : let final self::Class2 #t346 = self::Extension2|+(self::Extension2|get#nonNullable2(#t345), 1) in let final void #t347 = self::Extension2|set#nonNullable2(#t345, #t346) in #t346; - nullable2 = let final self::Class2? #t348 = n2 in #t348 == null ?{self::Class2?} null : let final self::Class2 #t349 = self::Extension2|+(self::Extension2|get#nonNullable2(#t348), 1) in let final void #t350 = self::Extension2|set#nonNullable2(#t348, #t349) in #t349; + ^" in self::Extension1|unary-(let final self::Class1? #t326 = n1 in #t326 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t326{self::Class1}))); + let final self::Class2? #t327 = n2 in #t327 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t327, self::Extension2|+(self::Extension2|get#nonNullable2(#t327), 0)); + nullable2 = let final self::Class2? #t328 = n2 in #t328 == null ?{self::Class2?} null : let final self::Class2 #t329 = self::Extension2|+(self::Extension2|get#nonNullable2(#t328), 0) in let final void #t330 = self::Extension2|set#nonNullable2(#t328, #t329) in #t329; + let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : let final self::Class2 #t332 = self::Extension2|get#nonNullable2(#t331{self::Class2}) in self::Extension2|set#nonNullable2(#t332, self::Extension2|+(self::Extension2|get#nonNullable2(#t332), 0)); + nullable2 = let final self::Class2? #t333 = n2 in #t333 == null ?{self::Class2?} null : let final self::Class2 #t334 = self::Extension2|get#nonNullable2(#t333{self::Class2}) in let final self::Class2 #t335 = self::Extension2|+(self::Extension2|get#nonNullable2(#t334), 0) in let final void #t336 = self::Extension2|set#nonNullable2(#t334, #t335) in #t335; + let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t337, self::Extension2|+(self::Extension2|get#nonNullable2(#t337), 1)); + nullable2 = let final self::Class2? #t338 = n2 in #t338 == null ?{self::Class2?} null : let final self::Class2 #t339 = self::Extension2|get#nonNullable2(#t338) in let final void #t340 = self::Extension2|set#nonNullable2(#t338, self::Extension2|+(#t339, 1)) in #t339; + let final self::Class2? #t341 = n2 in #t341 == null ?{self::Class2?} null : let final self::Class2 #t342 = self::Extension2|+(self::Extension2|get#nonNullable2(#t341), 1) in let final void #t343 = self::Extension2|set#nonNullable2(#t341, #t342) in #t342; + nullable2 = let final self::Class2? #t344 = n2 in #t344 == null ?{self::Class2?} null : let final self::Class2 #t345 = self::Extension2|+(self::Extension2|get#nonNullable2(#t344), 1) in let final void #t346 = self::Extension2|set#nonNullable2(#t344, #t345) in #t345; } static method ifNull(self::Class1? n1) → void { self::Class1? nullable1 = n1; - let final self::Class1? #t351 = n1 in #t351 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t351) == null ?{self::Class1} self::Extension1|set#nullable1(#t351, n1{self::Class1}) : null; - n1 = let final self::Class1? #t352 = n1 in #t352 == null ?{self::Class1?} null : let final self::Class1? #t353 = self::Extension1|get#nullable1(#t352) in #t353 == null ?{self::Class1} let final self::Class1 #t354 = n1{self::Class1} in let final void #t355 = self::Extension1|set#nullable1(#t352, #t354) in #t354 : #t353{self::Class1}; - let final self::Class1? #t356 = n1 in #t356 == null ?{self::Class1?} null : let final self::Class1 #t357 = self::Extension1|get#nonNullable1(#t356{self::Class1}) in self::Extension1|get#nullable1(#t357) == null ?{self::Class1} self::Extension1|set#nullable1(#t357, n1{self::Class1}) : null; - n1 = let final self::Class1? #t358 = n1 in #t358 == null ?{self::Class1?} null : let final self::Class1 #t359 = self::Extension1|get#nonNullable1(#t358{self::Class1}) in let final self::Class1? #t360 = self::Extension1|get#nullable1(#t359) in #t360 == null ?{self::Class1} let final self::Class1 #t361 = n1{self::Class1} in let final void #t362 = self::Extension1|set#nullable1(#t359, #t361) in #t361 : #t360{self::Class1}; - let final self::Class1? #t363 = n1 in #t363 == null ?{self::Class1?} null : let final self::Class1 #t364 = self::Extension1|get#nonNullable1(#t363{self::Class1}) in let final self::Class1 #t365 = n1{self::Class1} in self::Extension1|[](#t364, #t365) == null ?{self::Class1} self::Extension1|[]=(#t364, #t365, n1{self::Class1}) : null; - n1 = let final self::Class1? #t366 = n1 in #t366 == null ?{self::Class1?} null : let final self::Class1 #t367 = self::Extension1|get#nonNullable1(#t366{self::Class1}) in let final self::Class1 #t368 = n1{self::Class1} in let final self::Class1? #t369 = self::Extension1|[](#t367, #t368) in #t369 == null ?{self::Class1} let final self::Class1 #t370 = n1{self::Class1} in let final void #t371 = self::Extension1|[]=(#t367, #t368, #t370) in #t370 : #t369{self::Class1}; + let final self::Class1? #t347 = n1 in #t347 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t347) == null ?{self::Class1} self::Extension1|set#nullable1(#t347, n1{self::Class1}) : null; + n1 = let final self::Class1? #t348 = n1 in #t348 == null ?{self::Class1?} null : let final self::Class1? #t349 = self::Extension1|get#nullable1(#t348) in #t349 == null ?{self::Class1} let final self::Class1 #t350 = n1{self::Class1} in let final void #t351 = self::Extension1|set#nullable1(#t348, #t350) in #t350 : #t349{self::Class1}; + let final self::Class1? #t352 = n1 in #t352 == null ?{self::Class1?} null : let final self::Class1 #t353 = self::Extension1|get#nonNullable1(#t352{self::Class1}) in self::Extension1|get#nullable1(#t353) == null ?{self::Class1} self::Extension1|set#nullable1(#t353, n1{self::Class1}) : null; + n1 = let final self::Class1? #t354 = n1 in #t354 == null ?{self::Class1?} null : let final self::Class1 #t355 = self::Extension1|get#nonNullable1(#t354{self::Class1}) in let final self::Class1? #t356 = self::Extension1|get#nullable1(#t355) in #t356 == null ?{self::Class1} let final self::Class1 #t357 = n1{self::Class1} in let final void #t358 = self::Extension1|set#nullable1(#t355, #t357) in #t357 : #t356{self::Class1}; + let final self::Class1? #t359 = n1 in #t359 == null ?{self::Class1?} null : let final self::Class1 #t360 = self::Extension1|get#nonNullable1(#t359{self::Class1}) in let final self::Class1 #t361 = n1{self::Class1} in self::Extension1|[](#t360, #t361) == null ?{self::Class1} self::Extension1|[]=(#t360, #t361, n1{self::Class1}) : null; + n1 = let final self::Class1? #t362 = n1 in #t362 == null ?{self::Class1?} null : let final self::Class1 #t363 = self::Extension1|get#nonNullable1(#t362{self::Class1}) in let final self::Class1 #t364 = n1{self::Class1} in let final self::Class1? #t365 = self::Extension1|[](#t363, #t364) in #t365 == null ?{self::Class1} let final self::Class1 #t366 = n1{self::Class1} in let final void #t367 = self::Extension1|[]=(#t363, #t364, #t366) in #t366 : #t365{self::Class1}; } static method throws(() → void f) → void { try { diff --git a/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.weak.expect b/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.weak.expect index 38237dc6ce4..954b4c04ca7 100644 --- a/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.weak.expect @@ -139,153 +139,153 @@ static method propertyAccess(self::Class1? n1) → void { let final self::Class1? #t13 = n1 in #t13 == null ?{self::Class1?} null : let final self::Class1? #t14 = self::Extension1|get#nullable1(#t13{self::Class1}) in #t14 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t14{self::Class1}, new self::Class1::•()); let final self::Class1? #t15 = n1 in #t15 == null ?{self::Class1?} null : let final self::Class1? #t16 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t15{self::Class1})) in #t16 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t16{self::Class1}, new self::Class1::•()); let final self::Class1? #t17 = let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t18{self::Class1}) in #t17 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t17{self::Class1}); - self::throws(() → void => let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:93:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:93:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. Try accessing using ?. instead. throws(() => (n1?.nullable1 = new Class1()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : let final self::Class1 #t21 = new self::Class1::•() in let final void #t22 = self::Extension1|set#nullable1(#t20{self::Class1}, #t21) in #t21)); - self::throws(() → void => let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:94:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t19 = n1 in #t19 == null ?{self::Class1?} null : let final self::Class1 #t20 = new self::Class1::•() in let final void #t21 = self::Extension1|set#nullable1(#t19{self::Class1}, #t20) in #t20)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:94:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. Try accessing using ?. instead. throws(() => (n1?.nonNullable1Method()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t24{self::Class1}))); - nullable1 = let final self::Class1? #t25 = n1 in #t25 == null ?{self::Class1?} null : let final self::Class1 #t26 = new self::Class1::•() in let final void #t27 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t25{self::Class1}), #t26) in #t26; - nullable1 = let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : let final self::Class1? #t29 = self::Extension1|get#nullable1(#t28{self::Class1}) in #t29 == null ?{self::Class1?} null : let final self::Class1 #t30 = new self::Class1::•() in let final void #t31 = self::Extension1|set#nullable1(#t29{self::Class1}, #t30) in #t30; - nullable1 = let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : let final self::Class1? #t33 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t32{self::Class1})) in #t33 == null ?{self::Class1?} null : let final self::Class1 #t34 = new self::Class1::•() in let final void #t35 = self::Extension1|set#nullable1(#t33{self::Class1}, #t34) in #t34; - let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : let final self::Class1? #t37 = self::Extension1|get#nullable1(#t36{self::Class1}) in #t37 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t37{self::Class1}); - let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t38{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t39 = n1 in #t39 == null ?{self::Class1?} null : let final self::Class1? #t40 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t41 = self::Extension1|set#nullable1(#t39{self::Class1}, #t40) in #t40; - let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t42{self::Class1}, let final self::Class1 #t43 = new self::Class1::•() in let final void #t44 = self::Extension1|set#nullable1(new self::Class1::•(), #t43) in #t43); - nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : let final self::Class1 #t46 = let final self::Class1 #t47 = new self::Class1::•() in let final void #t48 = self::Extension1|set#nullable1(new self::Class1::•(), #t47) in #t47 in let final void #t49 = self::Extension1|set#nullable1(#t45{self::Class1}, #t46) in #t46; - let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t50{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : let final self::Class1 #t52 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t53 = self::Extension1|set#nullable1(#t51{self::Class1}, #t52) in #t52; - let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t54{self::Class1})); - let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t55{self::Class1}), new self::Class1::•()); - let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t56{self::Class1})); - let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1}))); - let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t58{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : let final self::Class1 #t60 = new self::Class1::•() in let final void #t61 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t59{self::Class1})), #t60) in #t60; - let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : let final self::Class1? #t63 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t62{self::Class1})) in #t63 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t63{self::Class1}); - let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t64{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : let final self::Class1? #t66 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t67 = self::Extension1|set#nullable1(#t65{self::Class1}, #t66) in #t66; - let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t68{self::Class1}, let final self::Class1 #t69 = new self::Class1::•() in let final void #t70 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t69) in #t69); - nullable1 = let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : let final self::Class1 #t72 = let final self::Class1 #t73 = new self::Class1::•() in let final void #t74 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t73) in #t73 in let final void #t75 = self::Extension1|set#nullable1(#t71{self::Class1}, #t72) in #t72; - let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t76{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : let final self::Class1 #t78 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t79 = self::Extension1|set#nullable1(#t77{self::Class1}, #t78) in #t78; - let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); - let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t81{self::Class1})), new self::Class1::•()); - let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t82{self::Class1}))); - let final self::Class1? #t83 = n1 in #t83 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t83{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : let final self::Class1? #t85 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t86 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t84{self::Class1}), #t85) in #t85; - let final self::Class1? #t87 = n1 in #t87 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t87{self::Class1}), let final self::Class1 #t88 = new self::Class1::•() in let final void #t89 = self::Extension1|set#nullable1(new self::Class1::•(), #t88) in #t88); - nullable1 = let final self::Class1? #t90 = n1 in #t90 == null ?{self::Class1?} null : let final self::Class1 #t91 = let final self::Class1 #t92 = new self::Class1::•() in let final void #t93 = self::Extension1|set#nullable1(new self::Class1::•(), #t92) in #t92 in let final void #t94 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t90{self::Class1}), #t91) in #t91; - let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t95{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t96 = n1 in #t96 == null ?{self::Class1?} null : let final self::Class1 #t97 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t98 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t96{self::Class1}), #t97) in #t97; - let final self::Class1? #t99 = n1 in #t99 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t99{self::Class1}, let final self::Class1? #t100 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t101 = self::Extension1|set#nullable1(new self::Class1::•(), #t100) in #t100); - nullable1 = let final self::Class1? #t102 = n1 in #t102 == null ?{self::Class1?} null : let final self::Class1? #t103 = let final self::Class1? #t104 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t105 = self::Extension1|set#nullable1(new self::Class1::•(), #t104) in #t104 in let final void #t106 = self::Extension1|set#nullable1(#t102{self::Class1}, #t103) in #t103; - let final self::Class1? #t107 = n1 in #t107 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t107{self::Class1}, let final self::Class1 #t108 = let final self::Class1 #t109 = new self::Class1::•() in let final void #t110 = self::Extension1|set#nullable1(new self::Class1::•(), #t109) in #t109 in let final void #t111 = self::Extension1|set#nullable1(new self::Class1::•(), #t108) in #t108); - nullable1 = let final self::Class1? #t112 = n1 in #t112 == null ?{self::Class1?} null : let final self::Class1 #t113 = let final self::Class1 #t114 = let final self::Class1 #t115 = new self::Class1::•() in let final void #t116 = self::Extension1|set#nullable1(new self::Class1::•(), #t115) in #t115 in let final void #t117 = self::Extension1|set#nullable1(new self::Class1::•(), #t114) in #t114 in let final void #t118 = self::Extension1|set#nullable1(#t112{self::Class1}, #t113) in #t113; - let final self::Class1? #t119 = n1 in #t119 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t119{self::Class1}, let final self::Class1 #t120 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t121 = self::Extension1|set#nullable1(new self::Class1::•(), #t120) in #t120); - nullable1 = let final self::Class1? #t122 = n1 in #t122 == null ?{self::Class1?} null : let final self::Class1 #t123 = let final self::Class1 #t124 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t125 = self::Extension1|set#nullable1(new self::Class1::•(), #t124) in #t124 in let final void #t126 = self::Extension1|set#nullable1(#t122{self::Class1}, #t123) in #t123; - let final self::Class1? #t127 = n1 in #t127 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t127{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t128 = n1 in #t128 == null ?{self::Class1?} null : let final self::Class1? #t129 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t130 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t128{self::Class1}), #t129) in #t129; - let final self::Class1? #t131 = n1 in #t131 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t131{self::Class1}), let final self::Class1 #t132 = new self::Class1::•() in let final void #t133 = self::Extension1|set#nullable1(new self::Class1::•(), #t132) in #t132); - nullable1 = let final self::Class1? #t134 = n1 in #t134 == null ?{self::Class1?} null : let final self::Class1 #t135 = let final self::Class1 #t136 = new self::Class1::•() in let final void #t137 = self::Extension1|set#nullable1(new self::Class1::•(), #t136) in #t136 in let final void #t138 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t134{self::Class1}), #t135) in #t135; - let final self::Class1? #t139 = n1 in #t139 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t139{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t140 = n1 in #t140 == null ?{self::Class1?} null : let final self::Class1 #t141 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t142 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t140{self::Class1}), #t141) in #t141; - let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1}))); - let final self::Class1? #t144 = n1 in #t144 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t144{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t145 = n1 in #t145 == null ?{self::Class1?} null : let final self::Class1 #t146 = new self::Class1::•() in let final void #t147 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t145{self::Class1})), #t146) in #t146; - let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t148{self::Class1}))); - let final self::Class1? #t149 = n1 in #t149 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t149{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t150 = n1 in #t150 == null ?{self::Class1?} null : let final self::Class1? #t151 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t152 = self::Extension1|set#nullable1(#t150{self::Class1}, #t151) in #t151; - let final self::Class1? #t153 = n1 in #t153 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t153{self::Class1}, let final self::Class1 #t154 = new self::Class1::•() in let final void #t155 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t154) in #t154); - nullable1 = let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class1?} null : let final self::Class1 #t157 = let final self::Class1 #t158 = new self::Class1::•() in let final void #t159 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t158) in #t158 in let final void #t160 = self::Extension1|set#nullable1(#t156{self::Class1}, #t157) in #t157; - let final self::Class1? #t161 = n1 in #t161 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t161{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t162 = n1 in #t162 == null ?{self::Class1?} null : let final self::Class1 #t163 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t164 = self::Extension1|set#nullable1(#t162{self::Class1}, #t163) in #t163; - let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); - let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t166{self::Class1})), new self::Class1::•()); - let final self::Class1? #t167 = n1 in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t167{self::Class1}))); - let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : let final self::Class1? #t169 = self::Extension1|nonNullable1Method(#t168{self::Class1}) in #t169 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t169{self::Class1}); + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t22{self::Class1}))); + nullable1 = let final self::Class1? #t23 = n1 in #t23 == null ?{self::Class1?} null : let final self::Class1 #t24 = new self::Class1::•() in let final void #t25 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t23{self::Class1}), #t24) in #t24; + nullable1 = let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : let final self::Class1? #t27 = self::Extension1|get#nullable1(#t26{self::Class1}) in #t27 == null ?{self::Class1?} null : let final self::Class1 #t28 = new self::Class1::•() in let final void #t29 = self::Extension1|set#nullable1(#t27{self::Class1}, #t28) in #t28; + nullable1 = let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : let final self::Class1? #t31 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t30{self::Class1})) in #t31 == null ?{self::Class1?} null : let final self::Class1 #t32 = new self::Class1::•() in let final void #t33 = self::Extension1|set#nullable1(#t31{self::Class1}, #t32) in #t32; + let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : let final self::Class1? #t35 = self::Extension1|get#nullable1(#t34{self::Class1}) in #t35 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t35{self::Class1}); + let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t36{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : let final self::Class1? #t38 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t39 = self::Extension1|set#nullable1(#t37{self::Class1}, #t38) in #t38; + let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t40{self::Class1}, let final self::Class1 #t41 = new self::Class1::•() in let final void #t42 = self::Extension1|set#nullable1(new self::Class1::•(), #t41) in #t41); + nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : let final self::Class1 #t44 = let final self::Class1 #t45 = new self::Class1::•() in let final void #t46 = self::Extension1|set#nullable1(new self::Class1::•(), #t45) in #t45 in let final void #t47 = self::Extension1|set#nullable1(#t43{self::Class1}, #t44) in #t44; + let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t48{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : let final self::Class1 #t50 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t51 = self::Extension1|set#nullable1(#t49{self::Class1}, #t50) in #t50; + let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t52{self::Class1})); + let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t53{self::Class1}), new self::Class1::•()); + let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t54{self::Class1})); + let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t55{self::Class1}))); + let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t56{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : let final self::Class1 #t58 = new self::Class1::•() in let final void #t59 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1})), #t58) in #t58; + let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : let final self::Class1? #t61 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t60{self::Class1})) in #t61 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t61{self::Class1}); + let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t62{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : let final self::Class1? #t64 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t65 = self::Extension1|set#nullable1(#t63{self::Class1}, #t64) in #t64; + let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t66{self::Class1}, let final self::Class1 #t67 = new self::Class1::•() in let final void #t68 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t67) in #t67); + nullable1 = let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : let final self::Class1 #t70 = let final self::Class1 #t71 = new self::Class1::•() in let final void #t72 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t71) in #t71 in let final void #t73 = self::Extension1|set#nullable1(#t69{self::Class1}, #t70) in #t70; + let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t74{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : let final self::Class1 #t76 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t77 = self::Extension1|set#nullable1(#t75{self::Class1}, #t76) in #t76; + let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t78{self::Class1}))); + let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t79{self::Class1})), new self::Class1::•()); + let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); + let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t81{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : let final self::Class1? #t83 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t84 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t82{self::Class1}), #t83) in #t83; + let final self::Class1? #t85 = n1 in #t85 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t85{self::Class1}), let final self::Class1 #t86 = new self::Class1::•() in let final void #t87 = self::Extension1|set#nullable1(new self::Class1::•(), #t86) in #t86); + nullable1 = let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : let final self::Class1 #t89 = let final self::Class1 #t90 = new self::Class1::•() in let final void #t91 = self::Extension1|set#nullable1(new self::Class1::•(), #t90) in #t90 in let final void #t92 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t88{self::Class1}), #t89) in #t89; + let final self::Class1? #t93 = n1 in #t93 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t93{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t94 = n1 in #t94 == null ?{self::Class1?} null : let final self::Class1 #t95 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t96 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t94{self::Class1}), #t95) in #t95; + let final self::Class1? #t97 = n1 in #t97 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t97{self::Class1}, let final self::Class1? #t98 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t99 = self::Extension1|set#nullable1(new self::Class1::•(), #t98) in #t98); + nullable1 = let final self::Class1? #t100 = n1 in #t100 == null ?{self::Class1?} null : let final self::Class1? #t101 = let final self::Class1? #t102 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t103 = self::Extension1|set#nullable1(new self::Class1::•(), #t102) in #t102 in let final void #t104 = self::Extension1|set#nullable1(#t100{self::Class1}, #t101) in #t101; + let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t105{self::Class1}, let final self::Class1 #t106 = let final self::Class1 #t107 = new self::Class1::•() in let final void #t108 = self::Extension1|set#nullable1(new self::Class1::•(), #t107) in #t107 in let final void #t109 = self::Extension1|set#nullable1(new self::Class1::•(), #t106) in #t106); + nullable1 = let final self::Class1? #t110 = n1 in #t110 == null ?{self::Class1?} null : let final self::Class1 #t111 = let final self::Class1 #t112 = let final self::Class1 #t113 = new self::Class1::•() in let final void #t114 = self::Extension1|set#nullable1(new self::Class1::•(), #t113) in #t113 in let final void #t115 = self::Extension1|set#nullable1(new self::Class1::•(), #t112) in #t112 in let final void #t116 = self::Extension1|set#nullable1(#t110{self::Class1}, #t111) in #t111; + let final self::Class1? #t117 = n1 in #t117 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t117{self::Class1}, let final self::Class1 #t118 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t119 = self::Extension1|set#nullable1(new self::Class1::•(), #t118) in #t118); + nullable1 = let final self::Class1? #t120 = n1 in #t120 == null ?{self::Class1?} null : let final self::Class1 #t121 = let final self::Class1 #t122 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t123 = self::Extension1|set#nullable1(new self::Class1::•(), #t122) in #t122 in let final void #t124 = self::Extension1|set#nullable1(#t120{self::Class1}, #t121) in #t121; + let final self::Class1? #t125 = n1 in #t125 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t125{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t126 = n1 in #t126 == null ?{self::Class1?} null : let final self::Class1? #t127 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t128 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t126{self::Class1}), #t127) in #t127; + let final self::Class1? #t129 = n1 in #t129 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t129{self::Class1}), let final self::Class1 #t130 = new self::Class1::•() in let final void #t131 = self::Extension1|set#nullable1(new self::Class1::•(), #t130) in #t130); + nullable1 = let final self::Class1? #t132 = n1 in #t132 == null ?{self::Class1?} null : let final self::Class1 #t133 = let final self::Class1 #t134 = new self::Class1::•() in let final void #t135 = self::Extension1|set#nullable1(new self::Class1::•(), #t134) in #t134 in let final void #t136 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t132{self::Class1}), #t133) in #t133; + let final self::Class1? #t137 = n1 in #t137 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t137{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t138 = n1 in #t138 == null ?{self::Class1?} null : let final self::Class1 #t139 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t140 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t138{self::Class1}), #t139) in #t139; + let final self::Class1? #t141 = n1 in #t141 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t141{self::Class1}))); + let final self::Class1? #t142 = n1 in #t142 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t142{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : let final self::Class1 #t144 = new self::Class1::•() in let final void #t145 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1})), #t144) in #t144; + let final self::Class1? #t146 = n1 in #t146 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t146{self::Class1}))); + let final self::Class1? #t147 = n1 in #t147 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t147{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : let final self::Class1? #t149 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t150 = self::Extension1|set#nullable1(#t148{self::Class1}, #t149) in #t149; + let final self::Class1? #t151 = n1 in #t151 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t151{self::Class1}, let final self::Class1 #t152 = new self::Class1::•() in let final void #t153 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t152) in #t152); + nullable1 = let final self::Class1? #t154 = n1 in #t154 == null ?{self::Class1?} null : let final self::Class1 #t155 = let final self::Class1 #t156 = new self::Class1::•() in let final void #t157 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t156) in #t156 in let final void #t158 = self::Extension1|set#nullable1(#t154{self::Class1}, #t155) in #t155; + let final self::Class1? #t159 = n1 in #t159 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t159{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t160 = n1 in #t160 == null ?{self::Class1?} null : let final self::Class1 #t161 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t162 = self::Extension1|set#nullable1(#t160{self::Class1}, #t161) in #t161; + let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t163{self::Class1}))); + let final self::Class1? #t164 = n1 in #t164 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t164{self::Class1})), new self::Class1::•()); + let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); + let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : let final self::Class1? #t167 = self::Extension1|nonNullable1Method(#t166{self::Class1}) in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t167{self::Class1}); } static method indexAccess(self::Class1? n1, self::Class2? n2, self::Class3? n3) → void { self::Class1? nullable1 = n1; self::Class2? nullable2 = n2; self::Class3? nullable3 = n3; - let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : self::Extension1|[](#t170{self::Class1}, nullable1); - let final self::Class1? #t171 = n1 in #t171 == null ?{self::Class1?} null : self::Extension1|[]=(#t171{self::Class1}, nullable1, new self::Class1::•()); - let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : let final self::Class1? #t173 = self::Extension1|[](#t172{self::Class1}, nullable1) in #t173 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t173{self::Class1}); - let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t174{self::Class1}), nullable1); - let final self::Class1? #t175 = n1 in #t175 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t175{self::Class1}), nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t176 = n1 in #t176 == null ?{self::Class1?} null : let final self::Class1 #t177 = self::Extension1|get#nonNullable1(#t176{self::Class1}) in let final self::Class1? #t178 = nullable1 in let final self::Class1 #t179 = new self::Class1::•() in let final void #t180 = self::Extension1|[]=(#t177, #t178, #t179) in #t179; - let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class1?} null : let final self::Class1? #t182 = self::Extension1|[](self::Extension1|get#nonNullable1(#t181{self::Class1}), nullable1) in #t182 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t182{self::Class1}); - let final self::Class1? #t183 = n1 in #t183 == null ?{self::Class2?} null : let final self::Class2 #t184 = self::Extension1|get#nonNullable2(#t183{self::Class1}) in let final self::Class2? #t185 = nullable2 in self::Extension2|[]=(#t184, #t185, self::Extension2|+(self::Extension2|[](#t184, #t185), 0)); - nullable2 = let final self::Class1? #t186 = n1 in #t186 == null ?{self::Class2?} null : let final self::Class2 #t187 = self::Extension1|get#nonNullable2(#t186{self::Class1}) in let final self::Class2? #t188 = nullable2 in let final self::Class2 #t189 = self::Extension2|+(self::Extension2|[](#t187, #t188), 0) in let final void #t190 = self::Extension2|[]=(#t187, #t188, #t189) in #t189; - let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in self::Extension1|[](#t191{self::Class1}, #t192) == null ?{self::Class1?} self::Extension1|[]=(#t191{self::Class1}, #t192, nullable1) : null; - nullable1 = let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = nullable1 in let final self::Class1? #t195 = self::Extension1|[](#t193{self::Class1}, #t194) in #t195 == null ?{self::Class1?} let final self::Class1? #t196 = nullable1 in let final void #t197 = self::Extension1|[]=(#t193{self::Class1}, #t194, #t196) in #t196 : #t195{self::Class1}; - let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in self::Extension2|[]=(#t198{self::Class2}, #t199, self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0)); - nullable2 = let final self::Class2? #t200 = n2 in #t200 == null ?{self::Class2?} null : let final self::Class2? #t201 = nullable2 in let final self::Class2 #t202 = self::Extension2|+(self::Extension2|[](#t200{self::Class2}, #t201), 0) in let final void #t203 = self::Extension2|[]=(#t200{self::Class2}, #t201, #t202) in #t202; - let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in self::Extension2|[]=(#t204{self::Class2}, #t205, self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0)); - nullable2 = let final self::Class2? #t206 = n2 in #t206 == null ?{self::Class2?} null : let final self::Class2? #t207 = nullable2 in let final self::Class2 #t208 = self::Extension2|+(self::Extension2|[](#t206{self::Class2}, #t207), 0) in let final void #t209 = self::Extension2|[]=(#t206{self::Class2}, #t207, #t208) in #t208; - let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(self::Extension2|[](#t210{self::Class2}, #t211), 1)); - nullable2 = let final self::Class2? #t212 = n2 in #t212 == null ?{self::Class2?} null : let final self::Class2? #t213 = nullable2 in let final self::Class2 #t214 = self::Extension2|[](#t212{self::Class2}, #t213) in let final void #t215 = self::Extension2|[]=(#t212{self::Class2}, #t213, self::Extension2|+(#t214, 1)) in #t214; - let final self::Class2? #t216 = n2 in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = nullable2 in let final self::Class2 #t218 = self::Extension2|+(self::Extension2|[](#t216{self::Class2}, #t217), 1) in let final void #t219 = self::Extension2|[]=(#t216{self::Class2}, #t217, #t218) in #t218; - nullable2 = let final self::Class2? #t220 = n2 in #t220 == null ?{self::Class2?} null : let final self::Class2? #t221 = nullable2 in let final self::Class2 #t222 = self::Extension2|+(self::Extension2|[](#t220{self::Class2}, #t221), 1) in let final void #t223 = self::Extension2|[]=(#t220{self::Class2}, #t221, #t222) in #t222; - let final self::Class1? #t224 = n1 in #t224 == null ?{self::Class2?} null : let final self::Class2 #t225 = self::Extension1|get#nonNullable2(#t224{self::Class1}) in let final self::Class2? #t226 = nullable2 in self::Extension2|[]=(#t225, #t226, self::Extension2|+(self::Extension2|[](#t225, #t226), 1)); - nullable2 = let final self::Class1? #t227 = n1 in #t227 == null ?{self::Class2?} null : let final self::Class2 #t228 = self::Extension1|get#nonNullable2(#t227{self::Class1}) in let final self::Class2? #t229 = nullable2 in let final self::Class2 #t230 = self::Extension2|[](#t228, #t229) in let final void #t231 = self::Extension2|[]=(#t228, #t229, self::Extension2|+(#t230, 1)) in #t230; - let final self::Class1? #t232 = n1 in #t232 == null ?{self::Class2?} null : let final self::Class2 #t233 = self::Extension1|get#nonNullable2(#t232{self::Class1}) in let final self::Class2? #t234 = nullable2 in let final self::Class2 #t235 = self::Extension2|+(self::Extension2|[](#t233, #t234), 1) in let final void #t236 = self::Extension2|[]=(#t233, #t234, #t235) in #t235; - nullable2 = let final self::Class1? #t237 = n1 in #t237 == null ?{self::Class2?} null : let final self::Class2 #t238 = self::Extension1|get#nonNullable2(#t237{self::Class1}) in let final self::Class2? #t239 = nullable2 in let final self::Class2 #t240 = self::Extension2|+(self::Extension2|[](#t238, #t239), 1) in let final void #t241 = self::Extension2|[]=(#t238, #t239, #t240) in #t240; - let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2), nullable2); - let final self::Class1? #t243 = n1 in #t243 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t243{self::Class1}), nullable2), nullable2, new self::Class2::•()); - nullable2 = let final self::Class1? #t244 = n1 in #t244 == null ?{self::Class2?} null : let final self::Class2 #t245 = self::Extension2|[](self::Extension1|get#nonNullable2(#t244{self::Class1}), nullable2) in let final self::Class2? #t246 = nullable2 in let final self::Class2 #t247 = new self::Class2::•() in let final void #t248 = self::Extension2|[]=(#t245, #t246, #t247) in #t247; - let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2? #t250 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2), nullable2) in #t250 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t250{self::Class2}); - let final self::Class1? #t251 = n1 in #t251 == null ?{self::Class2?} null : let final self::Class2 #t252 = self::Extension2|[](self::Extension1|get#nonNullable2(#t251{self::Class1}), nullable2) in let final self::Class2? #t253 = nullable2 in self::Extension2|[]=(#t252, #t253, self::Extension2|+(self::Extension2|[](#t252, #t253), 0)); - nullable2 = let final self::Class1? #t254 = n1 in #t254 == null ?{self::Class2?} null : let final self::Class2 #t255 = self::Extension2|[](self::Extension1|get#nonNullable2(#t254{self::Class1}), nullable2) in let final self::Class2? #t256 = nullable2 in let final self::Class2 #t257 = self::Extension2|+(self::Extension2|[](#t255, #t256), 0) in let final void #t258 = self::Extension2|[]=(#t255, #t256, #t257) in #t257; - let final self::Class1? #t259 = n1 in #t259 == null ?{self::Class2?} null : let final self::Class2 #t260 = self::Extension2|[](self::Extension1|get#nonNullable2(#t259{self::Class1}), nullable2) in let final self::Class2? #t261 = nullable2 in self::Extension2|[]=(#t260, #t261, self::Extension2|+(self::Extension2|[](#t260, #t261), 1)); - nullable2 = let final self::Class1? #t262 = n1 in #t262 == null ?{self::Class2?} null : let final self::Class2 #t263 = self::Extension2|[](self::Extension1|get#nonNullable2(#t262{self::Class1}), nullable2) in let final self::Class2? #t264 = nullable2 in let final self::Class2 #t265 = self::Extension2|[](#t263, #t264) in let final void #t266 = self::Extension2|[]=(#t263, #t264, self::Extension2|+(#t265, 1)) in #t265; - let final self::Class1? #t267 = n1 in #t267 == null ?{self::Class2?} null : let final self::Class2 #t268 = self::Extension2|[](self::Extension1|get#nonNullable2(#t267{self::Class1}), nullable2) in let final self::Class2? #t269 = nullable2 in let final self::Class2 #t270 = self::Extension2|+(self::Extension2|[](#t268, #t269), 1) in let final void #t271 = self::Extension2|[]=(#t268, #t269, #t270) in #t270; - nullable2 = let final self::Class1? #t272 = n1 in #t272 == null ?{self::Class2?} null : let final self::Class2 #t273 = self::Extension2|[](self::Extension1|get#nonNullable2(#t272{self::Class1}), nullable2) in let final self::Class2? #t274 = nullable2 in let final self::Class2 #t275 = self::Extension2|+(self::Extension2|[](#t273, #t274), 1) in let final void #t276 = self::Extension2|[]=(#t273, #t274, #t275) in #t275; - let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[](#t278{self::Class1}, nullable1); - let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : self::Extension1|[]=(#t280{self::Class1}, nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t281 = n1 in #t281 == null ?{self::Class1?} null : let final self::Class1? #t282 = self::Extension1|[](#t281{self::Class1}, nullable1) in #t282 == null ?{self::Class1?} null : let final self::Class1? #t283 = nullable1 in let final self::Class1 #t284 = new self::Class1::•() in let final void #t285 = self::Extension1|[]=(#t282{self::Class1}, #t283, #t284) in #t284; - let final self::Class1? #t286 = n1 in #t286 == null ?{self::Class1?} null : let final self::Class1? #t287 = self::Extension1|[](#t286{self::Class1}, nullable1) in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t288{self::Class1}); - nullable1 = let final self::Class1? #t289 = n1 in #t289 == null ?{self::Class1?} null : let final self::Class1? #t290 = self::Extension1|[](#t289{self::Class1}, nullable1) in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t291{self::Class1}); - let final self::Class1? #t292 = n1 in #t292 == null ?{self::Class1?} null : let final self::Class1? #t293 = self::Extension1|[](#t292{self::Class1}, nullable1) in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = nullable1 in self::Extension1|[](#t293{self::Class1}, #t294) == null ?{self::Class1?} self::Extension1|[]=(#t293{self::Class1}, #t294, nullable1) : null; - nullable1 = let final self::Class1? #t295 = n1 in #t295 == null ?{self::Class1?} null : let final self::Class1? #t296 = self::Extension1|[](#t295{self::Class1}, nullable1) in #t296 == null ?{self::Class1?} null : let final self::Class1? #t297 = nullable1 in let final self::Class1? #t298 = self::Extension1|[](#t296{self::Class1}, #t297) in #t298 == null ?{self::Class1?} let final self::Class1? #t299 = nullable1 in let final void #t300 = self::Extension1|[]=(#t296{self::Class1}, #t297, #t299) in #t299 : #t298{self::Class1}; - let final self::Class3? #t301 = n3 in #t301 == null ?{self::Class2?} null : let final self::Class2? #t302 = self::Extension3|[](#t301{self::Class3}, nullable3) in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = nullable2 in self::Extension2|[]=(#t302{self::Class2}, #t303, self::Extension2|+(self::Extension2|[](#t302{self::Class2}, #t303), 0)); - nullable2 = let final self::Class3? #t304 = n3 in #t304 == null ?{self::Class2?} null : let final self::Class2? #t305 = self::Extension3|[](#t304{self::Class3}, nullable3) in #t305 == null ?{self::Class2?} null : let final self::Class2? #t306 = nullable2 in let final self::Class2 #t307 = self::Extension2|+(self::Extension2|[](#t305{self::Class2}, #t306), 0) in let final void #t308 = self::Extension2|[]=(#t305{self::Class2}, #t306, #t307) in #t307; - let final self::Class3? #t309 = n3 in #t309 == null ?{self::Class2?} null : let final self::Class2? #t310 = self::Extension3|[](#t309{self::Class3}, nullable3) in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = nullable2 in self::Extension2|[]=(#t310{self::Class2}, #t311, self::Extension2|+(self::Extension2|[](#t310{self::Class2}, #t311), 1)); - nullable2 = let final self::Class3? #t312 = n3 in #t312 == null ?{self::Class2?} null : let final self::Class2? #t313 = self::Extension3|[](#t312{self::Class3}, nullable3) in #t313 == null ?{self::Class2?} null : let final self::Class2? #t314 = nullable2 in let final self::Class2 #t315 = self::Extension2|[](#t313{self::Class2}, #t314) in let final void #t316 = self::Extension2|[]=(#t313{self::Class2}, #t314, self::Extension2|+(#t315, 1)) in #t315; - let final self::Class3? #t317 = n3 in #t317 == null ?{self::Class2?} null : let final self::Class2? #t318 = self::Extension3|[](#t317{self::Class3}, nullable3) in #t318 == null ?{self::Class2?} null : let final self::Class2? #t319 = nullable2 in let final self::Class2 #t320 = self::Extension2|+(self::Extension2|[](#t318{self::Class2}, #t319), 1) in let final void #t321 = self::Extension2|[]=(#t318{self::Class2}, #t319, #t320) in #t320; - nullable2 = let final self::Class3? #t322 = n3 in #t322 == null ?{self::Class2?} null : let final self::Class2? #t323 = self::Extension3|[](#t322{self::Class3}, nullable3) in #t323 == null ?{self::Class2?} null : let final self::Class2? #t324 = nullable2 in let final self::Class2 #t325 = self::Extension2|+(self::Extension2|[](#t323{self::Class2}, #t324), 1) in let final void #t326 = self::Extension2|[]=(#t323{self::Class2}, #t324, #t325) in #t325; + let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : self::Extension1|[](#t168{self::Class1}, nullable1); + let final self::Class1? #t169 = n1 in #t169 == null ?{self::Class1?} null : self::Extension1|[]=(#t169{self::Class1}, nullable1, new self::Class1::•()); + let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : let final self::Class1? #t171 = self::Extension1|[](#t170{self::Class1}, nullable1) in #t171 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t171{self::Class1}); + let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t172{self::Class1}), nullable1); + let final self::Class1? #t173 = n1 in #t173 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t173{self::Class1}), nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : let final self::Class1 #t175 = self::Extension1|get#nonNullable1(#t174{self::Class1}) in let final self::Class1? #t176 = nullable1 in let final self::Class1 #t177 = new self::Class1::•() in let final void #t178 = self::Extension1|[]=(#t175, #t176, #t177) in #t177; + let final self::Class1? #t179 = n1 in #t179 == null ?{self::Class1?} null : let final self::Class1? #t180 = self::Extension1|[](self::Extension1|get#nonNullable1(#t179{self::Class1}), nullable1) in #t180 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t180{self::Class1}); + let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class2?} null : let final self::Class2 #t182 = self::Extension1|get#nonNullable2(#t181{self::Class1}) in let final self::Class2? #t183 = nullable2 in self::Extension2|[]=(#t182, #t183, self::Extension2|+(self::Extension2|[](#t182, #t183), 0)); + nullable2 = let final self::Class1? #t184 = n1 in #t184 == null ?{self::Class2?} null : let final self::Class2 #t185 = self::Extension1|get#nonNullable2(#t184{self::Class1}) in let final self::Class2? #t186 = nullable2 in let final self::Class2 #t187 = self::Extension2|+(self::Extension2|[](#t185, #t186), 0) in let final void #t188 = self::Extension2|[]=(#t185, #t186, #t187) in #t187; + let final self::Class1? #t189 = n1 in #t189 == null ?{self::Class1?} null : let final self::Class1? #t190 = nullable1 in self::Extension1|[](#t189{self::Class1}, #t190) == null ?{self::Class1?} self::Extension1|[]=(#t189{self::Class1}, #t190, nullable1) : null; + nullable1 = let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in let final self::Class1? #t193 = self::Extension1|[](#t191{self::Class1}, #t192) in #t193 == null ?{self::Class1?} let final self::Class1? #t194 = nullable1 in let final void #t195 = self::Extension1|[]=(#t191{self::Class1}, #t192, #t194) in #t194 : #t193{self::Class1}; + let final self::Class2? #t196 = n2 in #t196 == null ?{self::Class2?} null : let final self::Class2? #t197 = nullable2 in self::Extension2|[]=(#t196{self::Class2}, #t197, self::Extension2|+(self::Extension2|[](#t196{self::Class2}, #t197), 0)); + nullable2 = let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in let final self::Class2 #t200 = self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0) in let final void #t201 = self::Extension2|[]=(#t198{self::Class2}, #t199, #t200) in #t200; + let final self::Class2? #t202 = n2 in #t202 == null ?{self::Class2?} null : let final self::Class2? #t203 = nullable2 in self::Extension2|[]=(#t202{self::Class2}, #t203, self::Extension2|+(self::Extension2|[](#t202{self::Class2}, #t203), 0)); + nullable2 = let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in let final self::Class2 #t206 = self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0) in let final void #t207 = self::Extension2|[]=(#t204{self::Class2}, #t205, #t206) in #t206; + let final self::Class2? #t208 = n2 in #t208 == null ?{self::Class2?} null : let final self::Class2? #t209 = nullable2 in self::Extension2|[]=(#t208{self::Class2}, #t209, self::Extension2|+(self::Extension2|[](#t208{self::Class2}, #t209), 1)); + nullable2 = let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in let final self::Class2 #t212 = self::Extension2|[](#t210{self::Class2}, #t211) in let final void #t213 = self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(#t212, 1)) in #t212; + let final self::Class2? #t214 = n2 in #t214 == null ?{self::Class2?} null : let final self::Class2? #t215 = nullable2 in let final self::Class2 #t216 = self::Extension2|+(self::Extension2|[](#t214{self::Class2}, #t215), 1) in let final void #t217 = self::Extension2|[]=(#t214{self::Class2}, #t215, #t216) in #t216; + nullable2 = let final self::Class2? #t218 = n2 in #t218 == null ?{self::Class2?} null : let final self::Class2? #t219 = nullable2 in let final self::Class2 #t220 = self::Extension2|+(self::Extension2|[](#t218{self::Class2}, #t219), 1) in let final void #t221 = self::Extension2|[]=(#t218{self::Class2}, #t219, #t220) in #t220; + let final self::Class1? #t222 = n1 in #t222 == null ?{self::Class2?} null : let final self::Class2 #t223 = self::Extension1|get#nonNullable2(#t222{self::Class1}) in let final self::Class2? #t224 = nullable2 in self::Extension2|[]=(#t223, #t224, self::Extension2|+(self::Extension2|[](#t223, #t224), 1)); + nullable2 = let final self::Class1? #t225 = n1 in #t225 == null ?{self::Class2?} null : let final self::Class2 #t226 = self::Extension1|get#nonNullable2(#t225{self::Class1}) in let final self::Class2? #t227 = nullable2 in let final self::Class2 #t228 = self::Extension2|[](#t226, #t227) in let final void #t229 = self::Extension2|[]=(#t226, #t227, self::Extension2|+(#t228, 1)) in #t228; + let final self::Class1? #t230 = n1 in #t230 == null ?{self::Class2?} null : let final self::Class2 #t231 = self::Extension1|get#nonNullable2(#t230{self::Class1}) in let final self::Class2? #t232 = nullable2 in let final self::Class2 #t233 = self::Extension2|+(self::Extension2|[](#t231, #t232), 1) in let final void #t234 = self::Extension2|[]=(#t231, #t232, #t233) in #t233; + nullable2 = let final self::Class1? #t235 = n1 in #t235 == null ?{self::Class2?} null : let final self::Class2 #t236 = self::Extension1|get#nonNullable2(#t235{self::Class1}) in let final self::Class2? #t237 = nullable2 in let final self::Class2 #t238 = self::Extension2|+(self::Extension2|[](#t236, #t237), 1) in let final void #t239 = self::Extension2|[]=(#t236, #t237, #t238) in #t238; + let final self::Class1? #t240 = n1 in #t240 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t240{self::Class1}), nullable2), nullable2); + let final self::Class1? #t241 = n1 in #t241 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t241{self::Class1}), nullable2), nullable2, new self::Class2::•()); + nullable2 = let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : let final self::Class2 #t243 = self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2) in let final self::Class2? #t244 = nullable2 in let final self::Class2 #t245 = new self::Class2::•() in let final void #t246 = self::Extension2|[]=(#t243, #t244, #t245) in #t245; + let final self::Class1? #t247 = n1 in #t247 == null ?{self::Class2?} null : let final self::Class2? #t248 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t247{self::Class1}), nullable2), nullable2) in #t248 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t248{self::Class2}); + let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2 #t250 = self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2) in let final self::Class2? #t251 = nullable2 in self::Extension2|[]=(#t250, #t251, self::Extension2|+(self::Extension2|[](#t250, #t251), 0)); + nullable2 = let final self::Class1? #t252 = n1 in #t252 == null ?{self::Class2?} null : let final self::Class2 #t253 = self::Extension2|[](self::Extension1|get#nonNullable2(#t252{self::Class1}), nullable2) in let final self::Class2? #t254 = nullable2 in let final self::Class2 #t255 = self::Extension2|+(self::Extension2|[](#t253, #t254), 0) in let final void #t256 = self::Extension2|[]=(#t253, #t254, #t255) in #t255; + let final self::Class1? #t257 = n1 in #t257 == null ?{self::Class2?} null : let final self::Class2 #t258 = self::Extension2|[](self::Extension1|get#nonNullable2(#t257{self::Class1}), nullable2) in let final self::Class2? #t259 = nullable2 in self::Extension2|[]=(#t258, #t259, self::Extension2|+(self::Extension2|[](#t258, #t259), 1)); + nullable2 = let final self::Class1? #t260 = n1 in #t260 == null ?{self::Class2?} null : let final self::Class2 #t261 = self::Extension2|[](self::Extension1|get#nonNullable2(#t260{self::Class1}), nullable2) in let final self::Class2? #t262 = nullable2 in let final self::Class2 #t263 = self::Extension2|[](#t261, #t262) in let final void #t264 = self::Extension2|[]=(#t261, #t262, self::Extension2|+(#t263, 1)) in #t263; + let final self::Class1? #t265 = n1 in #t265 == null ?{self::Class2?} null : let final self::Class2 #t266 = self::Extension2|[](self::Extension1|get#nonNullable2(#t265{self::Class1}), nullable2) in let final self::Class2? #t267 = nullable2 in let final self::Class2 #t268 = self::Extension2|+(self::Extension2|[](#t266, #t267), 1) in let final void #t269 = self::Extension2|[]=(#t266, #t267, #t268) in #t268; + nullable2 = let final self::Class1? #t270 = n1 in #t270 == null ?{self::Class2?} null : let final self::Class2 #t271 = self::Extension2|[](self::Extension1|get#nonNullable2(#t270{self::Class1}), nullable2) in let final self::Class2? #t272 = nullable2 in let final self::Class2 #t273 = self::Extension2|+(self::Extension2|[](#t271, #t272), 1) in let final void #t274 = self::Extension2|[]=(#t271, #t272, #t273) in #t273; + let final self::Class1? #t275 = n1 in #t275 == null ?{self::Class1?} null : let final self::Class1? #t276 = self::Extension1|[](#t275{self::Class1}, nullable1) in #t276 == null ?{self::Class1?} null : self::Extension1|[](#t276{self::Class1}, nullable1); + let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[]=(#t278{self::Class1}, nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : let final self::Class1? #t281 = nullable1 in let final self::Class1 #t282 = new self::Class1::•() in let final void #t283 = self::Extension1|[]=(#t280{self::Class1}, #t281, #t282) in #t282; + let final self::Class1? #t284 = n1 in #t284 == null ?{self::Class1?} null : let final self::Class1? #t285 = self::Extension1|[](#t284{self::Class1}, nullable1) in #t285 == null ?{self::Class1?} null : let final self::Class1? #t286 = self::Extension1|[](#t285{self::Class1}, nullable1) in #t286 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t286{self::Class1}); + nullable1 = let final self::Class1? #t287 = n1 in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : let final self::Class1? #t289 = self::Extension1|[](#t288{self::Class1}, nullable1) in #t289 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t289{self::Class1}); + let final self::Class1? #t290 = n1 in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : let final self::Class1? #t292 = nullable1 in self::Extension1|[](#t291{self::Class1}, #t292) == null ?{self::Class1?} self::Extension1|[]=(#t291{self::Class1}, #t292, nullable1) : null; + nullable1 = let final self::Class1? #t293 = n1 in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = self::Extension1|[](#t293{self::Class1}, nullable1) in #t294 == null ?{self::Class1?} null : let final self::Class1? #t295 = nullable1 in let final self::Class1? #t296 = self::Extension1|[](#t294{self::Class1}, #t295) in #t296 == null ?{self::Class1?} let final self::Class1? #t297 = nullable1 in let final void #t298 = self::Extension1|[]=(#t294{self::Class1}, #t295, #t297) in #t297 : #t296{self::Class1}; + let final self::Class3? #t299 = n3 in #t299 == null ?{self::Class2?} null : let final self::Class2? #t300 = self::Extension3|[](#t299{self::Class3}, nullable3) in #t300 == null ?{self::Class2?} null : let final self::Class2? #t301 = nullable2 in self::Extension2|[]=(#t300{self::Class2}, #t301, self::Extension2|+(self::Extension2|[](#t300{self::Class2}, #t301), 0)); + nullable2 = let final self::Class3? #t302 = n3 in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = self::Extension3|[](#t302{self::Class3}, nullable3) in #t303 == null ?{self::Class2?} null : let final self::Class2? #t304 = nullable2 in let final self::Class2 #t305 = self::Extension2|+(self::Extension2|[](#t303{self::Class2}, #t304), 0) in let final void #t306 = self::Extension2|[]=(#t303{self::Class2}, #t304, #t305) in #t305; + let final self::Class3? #t307 = n3 in #t307 == null ?{self::Class2?} null : let final self::Class2? #t308 = self::Extension3|[](#t307{self::Class3}, nullable3) in #t308 == null ?{self::Class2?} null : let final self::Class2? #t309 = nullable2 in self::Extension2|[]=(#t308{self::Class2}, #t309, self::Extension2|+(self::Extension2|[](#t308{self::Class2}, #t309), 1)); + nullable2 = let final self::Class3? #t310 = n3 in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = self::Extension3|[](#t310{self::Class3}, nullable3) in #t311 == null ?{self::Class2?} null : let final self::Class2? #t312 = nullable2 in let final self::Class2 #t313 = self::Extension2|[](#t311{self::Class2}, #t312) in let final void #t314 = self::Extension2|[]=(#t311{self::Class2}, #t312, self::Extension2|+(#t313, 1)) in #t313; + let final self::Class3? #t315 = n3 in #t315 == null ?{self::Class2?} null : let final self::Class2? #t316 = self::Extension3|[](#t315{self::Class3}, nullable3) in #t316 == null ?{self::Class2?} null : let final self::Class2? #t317 = nullable2 in let final self::Class2 #t318 = self::Extension2|+(self::Extension2|[](#t316{self::Class2}, #t317), 1) in let final void #t319 = self::Extension2|[]=(#t316{self::Class2}, #t317, #t318) in #t318; + nullable2 = let final self::Class3? #t320 = n3 in #t320 == null ?{self::Class2?} null : let final self::Class2? #t321 = self::Extension3|[](#t320{self::Class3}, nullable3) in #t321 == null ?{self::Class2?} null : let final self::Class2? #t322 = nullable2 in let final self::Class2 #t323 = self::Extension2|+(self::Extension2|[](#t321{self::Class2}, #t322), 1) in let final void #t324 = self::Extension2|[]=(#t321{self::Class2}, #t322, #t323) in #t323; } static method operatorAccess(self::Class1? n1, self::Class2? n2) → void { self::Class2? nullable2 = n2; - self::throws(() → void => let final Never #t327 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:226:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:226:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. throws(() => n1?.nonNullable1 + 0); - ^" in self::Extension1|+(let final self::Class1? #t328 = n1 in #t328 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t328{self::Class1}), 0)); - self::throws(() → void => let final Never #t329 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:227:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. + ^" in self::Extension1|+(let final self::Class1? #t325 = n1 in #t325 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t325{self::Class1}), 0)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:227:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. throws(() => -n1?.nonNullable1); - ^" in self::Extension1|unary-(let final self::Class1? #t330 = n1 in #t330 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t330{self::Class1}))); - let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t331, self::Extension2|+(self::Extension2|get#nonNullable2(#t331), 0)); - nullable2 = let final self::Class2? #t332 = n2 in #t332 == null ?{self::Class2?} null : let final self::Class2 #t333 = self::Extension2|+(self::Extension2|get#nonNullable2(#t332), 0) in let final void #t334 = self::Extension2|set#nonNullable2(#t332, #t333) in #t333; - let final self::Class2? #t335 = n2 in #t335 == null ?{self::Class2?} null : let final self::Class2 #t336 = self::Extension2|get#nonNullable2(#t335{self::Class2}) in self::Extension2|set#nonNullable2(#t336, self::Extension2|+(self::Extension2|get#nonNullable2(#t336), 0)); - nullable2 = let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : let final self::Class2 #t338 = self::Extension2|get#nonNullable2(#t337{self::Class2}) in let final self::Class2 #t339 = self::Extension2|+(self::Extension2|get#nonNullable2(#t338), 0) in let final void #t340 = self::Extension2|set#nonNullable2(#t338, #t339) in #t339; - let final self::Class2? #t341 = n2 in #t341 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t341, self::Extension2|+(self::Extension2|get#nonNullable2(#t341), 1)); - nullable2 = let final self::Class2? #t342 = n2 in #t342 == null ?{self::Class2?} null : let final self::Class2 #t343 = self::Extension2|get#nonNullable2(#t342) in let final void #t344 = self::Extension2|set#nonNullable2(#t342, self::Extension2|+(#t343, 1)) in #t343; - let final self::Class2? #t345 = n2 in #t345 == null ?{self::Class2?} null : let final self::Class2 #t346 = self::Extension2|+(self::Extension2|get#nonNullable2(#t345), 1) in let final void #t347 = self::Extension2|set#nonNullable2(#t345, #t346) in #t346; - nullable2 = let final self::Class2? #t348 = n2 in #t348 == null ?{self::Class2?} null : let final self::Class2 #t349 = self::Extension2|+(self::Extension2|get#nonNullable2(#t348), 1) in let final void #t350 = self::Extension2|set#nonNullable2(#t348, #t349) in #t349; + ^" in self::Extension1|unary-(let final self::Class1? #t326 = n1 in #t326 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t326{self::Class1}))); + let final self::Class2? #t327 = n2 in #t327 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t327, self::Extension2|+(self::Extension2|get#nonNullable2(#t327), 0)); + nullable2 = let final self::Class2? #t328 = n2 in #t328 == null ?{self::Class2?} null : let final self::Class2 #t329 = self::Extension2|+(self::Extension2|get#nonNullable2(#t328), 0) in let final void #t330 = self::Extension2|set#nonNullable2(#t328, #t329) in #t329; + let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : let final self::Class2 #t332 = self::Extension2|get#nonNullable2(#t331{self::Class2}) in self::Extension2|set#nonNullable2(#t332, self::Extension2|+(self::Extension2|get#nonNullable2(#t332), 0)); + nullable2 = let final self::Class2? #t333 = n2 in #t333 == null ?{self::Class2?} null : let final self::Class2 #t334 = self::Extension2|get#nonNullable2(#t333{self::Class2}) in let final self::Class2 #t335 = self::Extension2|+(self::Extension2|get#nonNullable2(#t334), 0) in let final void #t336 = self::Extension2|set#nonNullable2(#t334, #t335) in #t335; + let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t337, self::Extension2|+(self::Extension2|get#nonNullable2(#t337), 1)); + nullable2 = let final self::Class2? #t338 = n2 in #t338 == null ?{self::Class2?} null : let final self::Class2 #t339 = self::Extension2|get#nonNullable2(#t338) in let final void #t340 = self::Extension2|set#nonNullable2(#t338, self::Extension2|+(#t339, 1)) in #t339; + let final self::Class2? #t341 = n2 in #t341 == null ?{self::Class2?} null : let final self::Class2 #t342 = self::Extension2|+(self::Extension2|get#nonNullable2(#t341), 1) in let final void #t343 = self::Extension2|set#nonNullable2(#t341, #t342) in #t342; + nullable2 = let final self::Class2? #t344 = n2 in #t344 == null ?{self::Class2?} null : let final self::Class2 #t345 = self::Extension2|+(self::Extension2|get#nonNullable2(#t344), 1) in let final void #t346 = self::Extension2|set#nonNullable2(#t344, #t345) in #t345; } static method ifNull(self::Class1? n1) → void { self::Class1? nullable1 = n1; - let final self::Class1? #t351 = n1 in #t351 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t351) == null ?{self::Class1} self::Extension1|set#nullable1(#t351, n1{self::Class1}) : null; - n1 = let final self::Class1? #t352 = n1 in #t352 == null ?{self::Class1?} null : let final self::Class1? #t353 = self::Extension1|get#nullable1(#t352) in #t353 == null ?{self::Class1} let final self::Class1 #t354 = n1{self::Class1} in let final void #t355 = self::Extension1|set#nullable1(#t352, #t354) in #t354 : #t353{self::Class1}; - let final self::Class1? #t356 = n1 in #t356 == null ?{self::Class1?} null : let final self::Class1 #t357 = self::Extension1|get#nonNullable1(#t356{self::Class1}) in self::Extension1|get#nullable1(#t357) == null ?{self::Class1} self::Extension1|set#nullable1(#t357, n1{self::Class1}) : null; - n1 = let final self::Class1? #t358 = n1 in #t358 == null ?{self::Class1?} null : let final self::Class1 #t359 = self::Extension1|get#nonNullable1(#t358{self::Class1}) in let final self::Class1? #t360 = self::Extension1|get#nullable1(#t359) in #t360 == null ?{self::Class1} let final self::Class1 #t361 = n1{self::Class1} in let final void #t362 = self::Extension1|set#nullable1(#t359, #t361) in #t361 : #t360{self::Class1}; - let final self::Class1? #t363 = n1 in #t363 == null ?{self::Class1?} null : let final self::Class1 #t364 = self::Extension1|get#nonNullable1(#t363{self::Class1}) in let final self::Class1 #t365 = n1{self::Class1} in self::Extension1|[](#t364, #t365) == null ?{self::Class1} self::Extension1|[]=(#t364, #t365, n1{self::Class1}) : null; - n1 = let final self::Class1? #t366 = n1 in #t366 == null ?{self::Class1?} null : let final self::Class1 #t367 = self::Extension1|get#nonNullable1(#t366{self::Class1}) in let final self::Class1 #t368 = n1{self::Class1} in let final self::Class1? #t369 = self::Extension1|[](#t367, #t368) in #t369 == null ?{self::Class1} let final self::Class1 #t370 = n1{self::Class1} in let final void #t371 = self::Extension1|[]=(#t367, #t368, #t370) in #t370 : #t369{self::Class1}; + let final self::Class1? #t347 = n1 in #t347 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t347) == null ?{self::Class1} self::Extension1|set#nullable1(#t347, n1{self::Class1}) : null; + n1 = let final self::Class1? #t348 = n1 in #t348 == null ?{self::Class1?} null : let final self::Class1? #t349 = self::Extension1|get#nullable1(#t348) in #t349 == null ?{self::Class1} let final self::Class1 #t350 = n1{self::Class1} in let final void #t351 = self::Extension1|set#nullable1(#t348, #t350) in #t350 : #t349{self::Class1}; + let final self::Class1? #t352 = n1 in #t352 == null ?{self::Class1?} null : let final self::Class1 #t353 = self::Extension1|get#nonNullable1(#t352{self::Class1}) in self::Extension1|get#nullable1(#t353) == null ?{self::Class1} self::Extension1|set#nullable1(#t353, n1{self::Class1}) : null; + n1 = let final self::Class1? #t354 = n1 in #t354 == null ?{self::Class1?} null : let final self::Class1 #t355 = self::Extension1|get#nonNullable1(#t354{self::Class1}) in let final self::Class1? #t356 = self::Extension1|get#nullable1(#t355) in #t356 == null ?{self::Class1} let final self::Class1 #t357 = n1{self::Class1} in let final void #t358 = self::Extension1|set#nullable1(#t355, #t357) in #t357 : #t356{self::Class1}; + let final self::Class1? #t359 = n1 in #t359 == null ?{self::Class1?} null : let final self::Class1 #t360 = self::Extension1|get#nonNullable1(#t359{self::Class1}) in let final self::Class1 #t361 = n1{self::Class1} in self::Extension1|[](#t360, #t361) == null ?{self::Class1} self::Extension1|[]=(#t360, #t361, n1{self::Class1}) : null; + n1 = let final self::Class1? #t362 = n1 in #t362 == null ?{self::Class1?} null : let final self::Class1 #t363 = self::Extension1|get#nonNullable1(#t362{self::Class1}) in let final self::Class1 #t364 = n1{self::Class1} in let final self::Class1? #t365 = self::Extension1|[](#t363, #t364) in #t365 == null ?{self::Class1} let final self::Class1 #t366 = n1{self::Class1} in let final void #t367 = self::Extension1|[]=(#t363, #t364, #t366) in #t366 : #t365{self::Class1}; } static method throws(() → void f) → void { try { diff --git a/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.weak.transformed.expect index 38237dc6ce4..954b4c04ca7 100644 --- a/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/null_shorting_extension.dart.weak.transformed.expect @@ -139,153 +139,153 @@ static method propertyAccess(self::Class1? n1) → void { let final self::Class1? #t13 = n1 in #t13 == null ?{self::Class1?} null : let final self::Class1? #t14 = self::Extension1|get#nullable1(#t13{self::Class1}) in #t14 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t14{self::Class1}, new self::Class1::•()); let final self::Class1? #t15 = n1 in #t15 == null ?{self::Class1?} null : let final self::Class1? #t16 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t15{self::Class1})) in #t16 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t16{self::Class1}, new self::Class1::•()); let final self::Class1? #t17 = let final self::Class1? #t18 = n1 in #t18 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t18{self::Class1}) in #t17 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t17{self::Class1}); - self::throws(() → void => let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:93:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:93:47: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. Try accessing using ?. instead. throws(() => (n1?.nullable1 = new Class1()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t20 = n1 in #t20 == null ?{self::Class1?} null : let final self::Class1 #t21 = new self::Class1::•() in let final void #t22 = self::Extension1|set#nullable1(#t20{self::Class1}, #t21) in #t21)); - self::throws(() → void => let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:94:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t19 = n1 in #t19 == null ?{self::Class1?} null : let final self::Class1 #t20 = new self::Class1::•() in let final void #t21 = self::Extension1|set#nullable1(#t19{self::Class1}, #t20) in #t20)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:94:43: Error: Property 'nullable1' cannot be accessed on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. Try accessing using ?. instead. throws(() => (n1?.nonNullable1Method()).nullable1); - ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t24 = n1 in #t24 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t24{self::Class1}))); - nullable1 = let final self::Class1? #t25 = n1 in #t25 == null ?{self::Class1?} null : let final self::Class1 #t26 = new self::Class1::•() in let final void #t27 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t25{self::Class1}), #t26) in #t26; - nullable1 = let final self::Class1? #t28 = n1 in #t28 == null ?{self::Class1?} null : let final self::Class1? #t29 = self::Extension1|get#nullable1(#t28{self::Class1}) in #t29 == null ?{self::Class1?} null : let final self::Class1 #t30 = new self::Class1::•() in let final void #t31 = self::Extension1|set#nullable1(#t29{self::Class1}, #t30) in #t30; - nullable1 = let final self::Class1? #t32 = n1 in #t32 == null ?{self::Class1?} null : let final self::Class1? #t33 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t32{self::Class1})) in #t33 == null ?{self::Class1?} null : let final self::Class1 #t34 = new self::Class1::•() in let final void #t35 = self::Extension1|set#nullable1(#t33{self::Class1}, #t34) in #t34; - let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : let final self::Class1? #t37 = self::Extension1|get#nullable1(#t36{self::Class1}) in #t37 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t37{self::Class1}); - let final self::Class1? #t38 = n1 in #t38 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t38{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t39 = n1 in #t39 == null ?{self::Class1?} null : let final self::Class1? #t40 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t41 = self::Extension1|set#nullable1(#t39{self::Class1}, #t40) in #t40; - let final self::Class1? #t42 = n1 in #t42 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t42{self::Class1}, let final self::Class1 #t43 = new self::Class1::•() in let final void #t44 = self::Extension1|set#nullable1(new self::Class1::•(), #t43) in #t43); - nullable1 = let final self::Class1? #t45 = n1 in #t45 == null ?{self::Class1?} null : let final self::Class1 #t46 = let final self::Class1 #t47 = new self::Class1::•() in let final void #t48 = self::Extension1|set#nullable1(new self::Class1::•(), #t47) in #t47 in let final void #t49 = self::Extension1|set#nullable1(#t45{self::Class1}, #t46) in #t46; - let final self::Class1? #t50 = n1 in #t50 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t50{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t51 = n1 in #t51 == null ?{self::Class1?} null : let final self::Class1 #t52 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t53 = self::Extension1|set#nullable1(#t51{self::Class1}, #t52) in #t52; - let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t54{self::Class1})); - let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t55{self::Class1}), new self::Class1::•()); - let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t56{self::Class1})); - let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1}))); - let final self::Class1? #t58 = n1 in #t58 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t58{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t59 = n1 in #t59 == null ?{self::Class1?} null : let final self::Class1 #t60 = new self::Class1::•() in let final void #t61 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t59{self::Class1})), #t60) in #t60; - let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : let final self::Class1? #t63 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t62{self::Class1})) in #t63 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t63{self::Class1}); - let final self::Class1? #t64 = n1 in #t64 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t64{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t65 = n1 in #t65 == null ?{self::Class1?} null : let final self::Class1? #t66 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t67 = self::Extension1|set#nullable1(#t65{self::Class1}, #t66) in #t66; - let final self::Class1? #t68 = n1 in #t68 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t68{self::Class1}, let final self::Class1 #t69 = new self::Class1::•() in let final void #t70 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t69) in #t69); - nullable1 = let final self::Class1? #t71 = n1 in #t71 == null ?{self::Class1?} null : let final self::Class1 #t72 = let final self::Class1 #t73 = new self::Class1::•() in let final void #t74 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t73) in #t73 in let final void #t75 = self::Extension1|set#nullable1(#t71{self::Class1}, #t72) in #t72; - let final self::Class1? #t76 = n1 in #t76 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t76{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); - nullable1 = let final self::Class1? #t77 = n1 in #t77 == null ?{self::Class1?} null : let final self::Class1 #t78 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t79 = self::Extension1|set#nullable1(#t77{self::Class1}, #t78) in #t78; - let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); - let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t81{self::Class1})), new self::Class1::•()); - let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t82{self::Class1}))); - let final self::Class1? #t83 = n1 in #t83 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t83{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t84 = n1 in #t84 == null ?{self::Class1?} null : let final self::Class1? #t85 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t86 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t84{self::Class1}), #t85) in #t85; - let final self::Class1? #t87 = n1 in #t87 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t87{self::Class1}), let final self::Class1 #t88 = new self::Class1::•() in let final void #t89 = self::Extension1|set#nullable1(new self::Class1::•(), #t88) in #t88); - nullable1 = let final self::Class1? #t90 = n1 in #t90 == null ?{self::Class1?} null : let final self::Class1 #t91 = let final self::Class1 #t92 = new self::Class1::•() in let final void #t93 = self::Extension1|set#nullable1(new self::Class1::•(), #t92) in #t92 in let final void #t94 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t90{self::Class1}), #t91) in #t91; - let final self::Class1? #t95 = n1 in #t95 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t95{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t96 = n1 in #t96 == null ?{self::Class1?} null : let final self::Class1 #t97 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t98 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t96{self::Class1}), #t97) in #t97; - let final self::Class1? #t99 = n1 in #t99 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t99{self::Class1}, let final self::Class1? #t100 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t101 = self::Extension1|set#nullable1(new self::Class1::•(), #t100) in #t100); - nullable1 = let final self::Class1? #t102 = n1 in #t102 == null ?{self::Class1?} null : let final self::Class1? #t103 = let final self::Class1? #t104 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t105 = self::Extension1|set#nullable1(new self::Class1::•(), #t104) in #t104 in let final void #t106 = self::Extension1|set#nullable1(#t102{self::Class1}, #t103) in #t103; - let final self::Class1? #t107 = n1 in #t107 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t107{self::Class1}, let final self::Class1 #t108 = let final self::Class1 #t109 = new self::Class1::•() in let final void #t110 = self::Extension1|set#nullable1(new self::Class1::•(), #t109) in #t109 in let final void #t111 = self::Extension1|set#nullable1(new self::Class1::•(), #t108) in #t108); - nullable1 = let final self::Class1? #t112 = n1 in #t112 == null ?{self::Class1?} null : let final self::Class1 #t113 = let final self::Class1 #t114 = let final self::Class1 #t115 = new self::Class1::•() in let final void #t116 = self::Extension1|set#nullable1(new self::Class1::•(), #t115) in #t115 in let final void #t117 = self::Extension1|set#nullable1(new self::Class1::•(), #t114) in #t114 in let final void #t118 = self::Extension1|set#nullable1(#t112{self::Class1}, #t113) in #t113; - let final self::Class1? #t119 = n1 in #t119 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t119{self::Class1}, let final self::Class1 #t120 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t121 = self::Extension1|set#nullable1(new self::Class1::•(), #t120) in #t120); - nullable1 = let final self::Class1? #t122 = n1 in #t122 == null ?{self::Class1?} null : let final self::Class1 #t123 = let final self::Class1 #t124 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t125 = self::Extension1|set#nullable1(new self::Class1::•(), #t124) in #t124 in let final void #t126 = self::Extension1|set#nullable1(#t122{self::Class1}, #t123) in #t123; - let final self::Class1? #t127 = n1 in #t127 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t127{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); - nullable1 = let final self::Class1? #t128 = n1 in #t128 == null ?{self::Class1?} null : let final self::Class1? #t129 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t130 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t128{self::Class1}), #t129) in #t129; - let final self::Class1? #t131 = n1 in #t131 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t131{self::Class1}), let final self::Class1 #t132 = new self::Class1::•() in let final void #t133 = self::Extension1|set#nullable1(new self::Class1::•(), #t132) in #t132); - nullable1 = let final self::Class1? #t134 = n1 in #t134 == null ?{self::Class1?} null : let final self::Class1 #t135 = let final self::Class1 #t136 = new self::Class1::•() in let final void #t137 = self::Extension1|set#nullable1(new self::Class1::•(), #t136) in #t136 in let final void #t138 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t134{self::Class1}), #t135) in #t135; - let final self::Class1? #t139 = n1 in #t139 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t139{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); - nullable1 = let final self::Class1? #t140 = n1 in #t140 == null ?{self::Class1?} null : let final self::Class1 #t141 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t142 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t140{self::Class1}), #t141) in #t141; - let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1}))); - let final self::Class1? #t144 = n1 in #t144 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t144{self::Class1})), new self::Class1::•()); - nullable1 = let final self::Class1? #t145 = n1 in #t145 == null ?{self::Class1?} null : let final self::Class1 #t146 = new self::Class1::•() in let final void #t147 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t145{self::Class1})), #t146) in #t146; - let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t148{self::Class1}))); - let final self::Class1? #t149 = n1 in #t149 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t149{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t150 = n1 in #t150 == null ?{self::Class1?} null : let final self::Class1? #t151 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t152 = self::Extension1|set#nullable1(#t150{self::Class1}, #t151) in #t151; - let final self::Class1? #t153 = n1 in #t153 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t153{self::Class1}, let final self::Class1 #t154 = new self::Class1::•() in let final void #t155 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t154) in #t154); - nullable1 = let final self::Class1? #t156 = n1 in #t156 == null ?{self::Class1?} null : let final self::Class1 #t157 = let final self::Class1 #t158 = new self::Class1::•() in let final void #t159 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t158) in #t158 in let final void #t160 = self::Extension1|set#nullable1(#t156{self::Class1}, #t157) in #t157; - let final self::Class1? #t161 = n1 in #t161 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t161{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); - nullable1 = let final self::Class1? #t162 = n1 in #t162 == null ?{self::Class1?} null : let final self::Class1 #t163 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t164 = self::Extension1|set#nullable1(#t162{self::Class1}, #t163) in #t163; - let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); - let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t166{self::Class1})), new self::Class1::•()); - let final self::Class1? #t167 = n1 in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t167{self::Class1}))); - let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : let final self::Class1? #t169 = self::Extension1|nonNullable1Method(#t168{self::Class1}) in #t169 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t169{self::Class1}); + ^^^^^^^^^" in self::Extension1|get#nullable1(let final self::Class1? #t22 = n1 in #t22 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t22{self::Class1}))); + nullable1 = let final self::Class1? #t23 = n1 in #t23 == null ?{self::Class1?} null : let final self::Class1 #t24 = new self::Class1::•() in let final void #t25 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t23{self::Class1}), #t24) in #t24; + nullable1 = let final self::Class1? #t26 = n1 in #t26 == null ?{self::Class1?} null : let final self::Class1? #t27 = self::Extension1|get#nullable1(#t26{self::Class1}) in #t27 == null ?{self::Class1?} null : let final self::Class1 #t28 = new self::Class1::•() in let final void #t29 = self::Extension1|set#nullable1(#t27{self::Class1}, #t28) in #t28; + nullable1 = let final self::Class1? #t30 = n1 in #t30 == null ?{self::Class1?} null : let final self::Class1? #t31 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t30{self::Class1})) in #t31 == null ?{self::Class1?} null : let final self::Class1 #t32 = new self::Class1::•() in let final void #t33 = self::Extension1|set#nullable1(#t31{self::Class1}, #t32) in #t32; + let final self::Class1? #t34 = n1 in #t34 == null ?{self::Class1?} null : let final self::Class1? #t35 = self::Extension1|get#nullable1(#t34{self::Class1}) in #t35 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t35{self::Class1}); + let final self::Class1? #t36 = n1 in #t36 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t36{self::Class1}, self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t37 = n1 in #t37 == null ?{self::Class1?} null : let final self::Class1? #t38 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t39 = self::Extension1|set#nullable1(#t37{self::Class1}, #t38) in #t38; + let final self::Class1? #t40 = n1 in #t40 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t40{self::Class1}, let final self::Class1 #t41 = new self::Class1::•() in let final void #t42 = self::Extension1|set#nullable1(new self::Class1::•(), #t41) in #t41); + nullable1 = let final self::Class1? #t43 = n1 in #t43 == null ?{self::Class1?} null : let final self::Class1 #t44 = let final self::Class1 #t45 = new self::Class1::•() in let final void #t46 = self::Extension1|set#nullable1(new self::Class1::•(), #t45) in #t45 in let final void #t47 = self::Extension1|set#nullable1(#t43{self::Class1}, #t44) in #t44; + let final self::Class1? #t48 = n1 in #t48 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t48{self::Class1}, self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t49 = n1 in #t49 == null ?{self::Class1?} null : let final self::Class1 #t50 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t51 = self::Extension1|set#nullable1(#t49{self::Class1}, #t50) in #t50; + let final self::Class1? #t52 = n1 in #t52 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(#t52{self::Class1})); + let final self::Class1? #t53 = n1 in #t53 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t53{self::Class1}), new self::Class1::•()); + let final self::Class1? #t54 = n1 in #t54 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t54{self::Class1})); + let final self::Class1? #t55 = n1 in #t55 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t55{self::Class1}))); + let final self::Class1? #t56 = n1 in #t56 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t56{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t57 = n1 in #t57 == null ?{self::Class1?} null : let final self::Class1 #t58 = new self::Class1::•() in let final void #t59 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|get#nonNullable1(#t57{self::Class1})), #t58) in #t58; + let final self::Class1? #t60 = n1 in #t60 == null ?{self::Class1?} null : let final self::Class1? #t61 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(#t60{self::Class1})) in #t61 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t61{self::Class1}); + let final self::Class1? #t62 = n1 in #t62 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t62{self::Class1}, self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t63 = n1 in #t63 == null ?{self::Class1?} null : let final self::Class1? #t64 = self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t65 = self::Extension1|set#nullable1(#t63{self::Class1}, #t64) in #t64; + let final self::Class1? #t66 = n1 in #t66 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t66{self::Class1}, let final self::Class1 #t67 = new self::Class1::•() in let final void #t68 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t67) in #t67); + nullable1 = let final self::Class1? #t69 = n1 in #t69 == null ?{self::Class1?} null : let final self::Class1 #t70 = let final self::Class1 #t71 = new self::Class1::•() in let final void #t72 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(new self::Class1::•()), #t71) in #t71 in let final void #t73 = self::Extension1|set#nullable1(#t69{self::Class1}, #t70) in #t70; + let final self::Class1? #t74 = n1 in #t74 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t74{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•()))); + nullable1 = let final self::Class1? #t75 = n1 in #t75 == null ?{self::Class1?} null : let final self::Class1 #t76 = self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(new self::Class1::•())) in let final void #t77 = self::Extension1|set#nullable1(#t75{self::Class1}, #t76) in #t76; + let final self::Class1? #t78 = n1 in #t78 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t78{self::Class1}))); + let final self::Class1? #t79 = n1 in #t79 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t79{self::Class1})), new self::Class1::•()); + let final self::Class1? #t80 = n1 in #t80 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(self::Extension1|nonNullable1Method(#t80{self::Class1}))); + let final self::Class1? #t81 = n1 in #t81 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t81{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t82 = n1 in #t82 == null ?{self::Class1?} null : let final self::Class1? #t83 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t84 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t82{self::Class1}), #t83) in #t83; + let final self::Class1? #t85 = n1 in #t85 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t85{self::Class1}), let final self::Class1 #t86 = new self::Class1::•() in let final void #t87 = self::Extension1|set#nullable1(new self::Class1::•(), #t86) in #t86); + nullable1 = let final self::Class1? #t88 = n1 in #t88 == null ?{self::Class1?} null : let final self::Class1 #t89 = let final self::Class1 #t90 = new self::Class1::•() in let final void #t91 = self::Extension1|set#nullable1(new self::Class1::•(), #t90) in #t90 in let final void #t92 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t88{self::Class1}), #t89) in #t89; + let final self::Class1? #t93 = n1 in #t93 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t93{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t94 = n1 in #t94 == null ?{self::Class1?} null : let final self::Class1 #t95 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t96 = self::Extension1|set#nullable1(self::Extension1|get#nonNullable1(#t94{self::Class1}), #t95) in #t95; + let final self::Class1? #t97 = n1 in #t97 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t97{self::Class1}, let final self::Class1? #t98 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t99 = self::Extension1|set#nullable1(new self::Class1::•(), #t98) in #t98); + nullable1 = let final self::Class1? #t100 = n1 in #t100 == null ?{self::Class1?} null : let final self::Class1? #t101 = let final self::Class1? #t102 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t103 = self::Extension1|set#nullable1(new self::Class1::•(), #t102) in #t102 in let final void #t104 = self::Extension1|set#nullable1(#t100{self::Class1}, #t101) in #t101; + let final self::Class1? #t105 = n1 in #t105 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t105{self::Class1}, let final self::Class1 #t106 = let final self::Class1 #t107 = new self::Class1::•() in let final void #t108 = self::Extension1|set#nullable1(new self::Class1::•(), #t107) in #t107 in let final void #t109 = self::Extension1|set#nullable1(new self::Class1::•(), #t106) in #t106); + nullable1 = let final self::Class1? #t110 = n1 in #t110 == null ?{self::Class1?} null : let final self::Class1 #t111 = let final self::Class1 #t112 = let final self::Class1 #t113 = new self::Class1::•() in let final void #t114 = self::Extension1|set#nullable1(new self::Class1::•(), #t113) in #t113 in let final void #t115 = self::Extension1|set#nullable1(new self::Class1::•(), #t112) in #t112 in let final void #t116 = self::Extension1|set#nullable1(#t110{self::Class1}, #t111) in #t111; + let final self::Class1? #t117 = n1 in #t117 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t117{self::Class1}, let final self::Class1 #t118 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t119 = self::Extension1|set#nullable1(new self::Class1::•(), #t118) in #t118); + nullable1 = let final self::Class1? #t120 = n1 in #t120 == null ?{self::Class1?} null : let final self::Class1 #t121 = let final self::Class1 #t122 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t123 = self::Extension1|set#nullable1(new self::Class1::•(), #t122) in #t122 in let final void #t124 = self::Extension1|set#nullable1(#t120{self::Class1}, #t121) in #t121; + let final self::Class1? #t125 = n1 in #t125 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t125{self::Class1}), self::Extension1|get#nullable1(new self::Class1::•())); + nullable1 = let final self::Class1? #t126 = n1 in #t126 == null ?{self::Class1?} null : let final self::Class1? #t127 = self::Extension1|get#nullable1(new self::Class1::•()) in let final void #t128 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t126{self::Class1}), #t127) in #t127; + let final self::Class1? #t129 = n1 in #t129 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t129{self::Class1}), let final self::Class1 #t130 = new self::Class1::•() in let final void #t131 = self::Extension1|set#nullable1(new self::Class1::•(), #t130) in #t130); + nullable1 = let final self::Class1? #t132 = n1 in #t132 == null ?{self::Class1?} null : let final self::Class1 #t133 = let final self::Class1 #t134 = new self::Class1::•() in let final void #t135 = self::Extension1|set#nullable1(new self::Class1::•(), #t134) in #t134 in let final void #t136 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t132{self::Class1}), #t133) in #t133; + let final self::Class1? #t137 = n1 in #t137 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t137{self::Class1}), self::Extension1|nonNullable1Method(new self::Class1::•())); + nullable1 = let final self::Class1? #t138 = n1 in #t138 == null ?{self::Class1?} null : let final self::Class1 #t139 = self::Extension1|nonNullable1Method(new self::Class1::•()) in let final void #t140 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(#t138{self::Class1}), #t139) in #t139; + let final self::Class1? #t141 = n1 in #t141 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t141{self::Class1}))); + let final self::Class1? #t142 = n1 in #t142 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t142{self::Class1})), new self::Class1::•()); + nullable1 = let final self::Class1? #t143 = n1 in #t143 == null ?{self::Class1?} null : let final self::Class1 #t144 = new self::Class1::•() in let final void #t145 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t143{self::Class1})), #t144) in #t144; + let final self::Class1? #t146 = n1 in #t146 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|get#nonNullable1(#t146{self::Class1}))); + let final self::Class1? #t147 = n1 in #t147 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t147{self::Class1}, self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t148 = n1 in #t148 == null ?{self::Class1?} null : let final self::Class1? #t149 = self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t150 = self::Extension1|set#nullable1(#t148{self::Class1}, #t149) in #t149; + let final self::Class1? #t151 = n1 in #t151 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t151{self::Class1}, let final self::Class1 #t152 = new self::Class1::•() in let final void #t153 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t152) in #t152); + nullable1 = let final self::Class1? #t154 = n1 in #t154 == null ?{self::Class1?} null : let final self::Class1 #t155 = let final self::Class1 #t156 = new self::Class1::•() in let final void #t157 = self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(new self::Class1::•()), #t156) in #t156 in let final void #t158 = self::Extension1|set#nullable1(#t154{self::Class1}, #t155) in #t155; + let final self::Class1? #t159 = n1 in #t159 == null ?{self::Class1?} null : self::Extension1|set#nullable1(#t159{self::Class1}, self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•()))); + nullable1 = let final self::Class1? #t160 = n1 in #t160 == null ?{self::Class1?} null : let final self::Class1 #t161 = self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(new self::Class1::•())) in let final void #t162 = self::Extension1|set#nullable1(#t160{self::Class1}, #t161) in #t161; + let final self::Class1? #t163 = n1 in #t163 == null ?{self::Class1?} null : self::Extension1|get#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t163{self::Class1}))); + let final self::Class1? #t164 = n1 in #t164 == null ?{self::Class1?} null : self::Extension1|set#nullable1(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t164{self::Class1})), new self::Class1::•()); + let final self::Class1? #t165 = n1 in #t165 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(self::Extension1|nonNullable1Method(#t165{self::Class1}))); + let final self::Class1? #t166 = n1 in #t166 == null ?{self::Class1?} null : let final self::Class1? #t167 = self::Extension1|nonNullable1Method(#t166{self::Class1}) in #t167 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t167{self::Class1}); } static method indexAccess(self::Class1? n1, self::Class2? n2, self::Class3? n3) → void { self::Class1? nullable1 = n1; self::Class2? nullable2 = n2; self::Class3? nullable3 = n3; - let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : self::Extension1|[](#t170{self::Class1}, nullable1); - let final self::Class1? #t171 = n1 in #t171 == null ?{self::Class1?} null : self::Extension1|[]=(#t171{self::Class1}, nullable1, new self::Class1::•()); - let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : let final self::Class1? #t173 = self::Extension1|[](#t172{self::Class1}, nullable1) in #t173 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t173{self::Class1}); - let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t174{self::Class1}), nullable1); - let final self::Class1? #t175 = n1 in #t175 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t175{self::Class1}), nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t176 = n1 in #t176 == null ?{self::Class1?} null : let final self::Class1 #t177 = self::Extension1|get#nonNullable1(#t176{self::Class1}) in let final self::Class1? #t178 = nullable1 in let final self::Class1 #t179 = new self::Class1::•() in let final void #t180 = self::Extension1|[]=(#t177, #t178, #t179) in #t179; - let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class1?} null : let final self::Class1? #t182 = self::Extension1|[](self::Extension1|get#nonNullable1(#t181{self::Class1}), nullable1) in #t182 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t182{self::Class1}); - let final self::Class1? #t183 = n1 in #t183 == null ?{self::Class2?} null : let final self::Class2 #t184 = self::Extension1|get#nonNullable2(#t183{self::Class1}) in let final self::Class2? #t185 = nullable2 in self::Extension2|[]=(#t184, #t185, self::Extension2|+(self::Extension2|[](#t184, #t185), 0)); - nullable2 = let final self::Class1? #t186 = n1 in #t186 == null ?{self::Class2?} null : let final self::Class2 #t187 = self::Extension1|get#nonNullable2(#t186{self::Class1}) in let final self::Class2? #t188 = nullable2 in let final self::Class2 #t189 = self::Extension2|+(self::Extension2|[](#t187, #t188), 0) in let final void #t190 = self::Extension2|[]=(#t187, #t188, #t189) in #t189; - let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in self::Extension1|[](#t191{self::Class1}, #t192) == null ?{self::Class1?} self::Extension1|[]=(#t191{self::Class1}, #t192, nullable1) : null; - nullable1 = let final self::Class1? #t193 = n1 in #t193 == null ?{self::Class1?} null : let final self::Class1? #t194 = nullable1 in let final self::Class1? #t195 = self::Extension1|[](#t193{self::Class1}, #t194) in #t195 == null ?{self::Class1?} let final self::Class1? #t196 = nullable1 in let final void #t197 = self::Extension1|[]=(#t193{self::Class1}, #t194, #t196) in #t196 : #t195{self::Class1}; - let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in self::Extension2|[]=(#t198{self::Class2}, #t199, self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0)); - nullable2 = let final self::Class2? #t200 = n2 in #t200 == null ?{self::Class2?} null : let final self::Class2? #t201 = nullable2 in let final self::Class2 #t202 = self::Extension2|+(self::Extension2|[](#t200{self::Class2}, #t201), 0) in let final void #t203 = self::Extension2|[]=(#t200{self::Class2}, #t201, #t202) in #t202; - let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in self::Extension2|[]=(#t204{self::Class2}, #t205, self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0)); - nullable2 = let final self::Class2? #t206 = n2 in #t206 == null ?{self::Class2?} null : let final self::Class2? #t207 = nullable2 in let final self::Class2 #t208 = self::Extension2|+(self::Extension2|[](#t206{self::Class2}, #t207), 0) in let final void #t209 = self::Extension2|[]=(#t206{self::Class2}, #t207, #t208) in #t208; - let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(self::Extension2|[](#t210{self::Class2}, #t211), 1)); - nullable2 = let final self::Class2? #t212 = n2 in #t212 == null ?{self::Class2?} null : let final self::Class2? #t213 = nullable2 in let final self::Class2 #t214 = self::Extension2|[](#t212{self::Class2}, #t213) in let final void #t215 = self::Extension2|[]=(#t212{self::Class2}, #t213, self::Extension2|+(#t214, 1)) in #t214; - let final self::Class2? #t216 = n2 in #t216 == null ?{self::Class2?} null : let final self::Class2? #t217 = nullable2 in let final self::Class2 #t218 = self::Extension2|+(self::Extension2|[](#t216{self::Class2}, #t217), 1) in let final void #t219 = self::Extension2|[]=(#t216{self::Class2}, #t217, #t218) in #t218; - nullable2 = let final self::Class2? #t220 = n2 in #t220 == null ?{self::Class2?} null : let final self::Class2? #t221 = nullable2 in let final self::Class2 #t222 = self::Extension2|+(self::Extension2|[](#t220{self::Class2}, #t221), 1) in let final void #t223 = self::Extension2|[]=(#t220{self::Class2}, #t221, #t222) in #t222; - let final self::Class1? #t224 = n1 in #t224 == null ?{self::Class2?} null : let final self::Class2 #t225 = self::Extension1|get#nonNullable2(#t224{self::Class1}) in let final self::Class2? #t226 = nullable2 in self::Extension2|[]=(#t225, #t226, self::Extension2|+(self::Extension2|[](#t225, #t226), 1)); - nullable2 = let final self::Class1? #t227 = n1 in #t227 == null ?{self::Class2?} null : let final self::Class2 #t228 = self::Extension1|get#nonNullable2(#t227{self::Class1}) in let final self::Class2? #t229 = nullable2 in let final self::Class2 #t230 = self::Extension2|[](#t228, #t229) in let final void #t231 = self::Extension2|[]=(#t228, #t229, self::Extension2|+(#t230, 1)) in #t230; - let final self::Class1? #t232 = n1 in #t232 == null ?{self::Class2?} null : let final self::Class2 #t233 = self::Extension1|get#nonNullable2(#t232{self::Class1}) in let final self::Class2? #t234 = nullable2 in let final self::Class2 #t235 = self::Extension2|+(self::Extension2|[](#t233, #t234), 1) in let final void #t236 = self::Extension2|[]=(#t233, #t234, #t235) in #t235; - nullable2 = let final self::Class1? #t237 = n1 in #t237 == null ?{self::Class2?} null : let final self::Class2 #t238 = self::Extension1|get#nonNullable2(#t237{self::Class1}) in let final self::Class2? #t239 = nullable2 in let final self::Class2 #t240 = self::Extension2|+(self::Extension2|[](#t238, #t239), 1) in let final void #t241 = self::Extension2|[]=(#t238, #t239, #t240) in #t240; - let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2), nullable2); - let final self::Class1? #t243 = n1 in #t243 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t243{self::Class1}), nullable2), nullable2, new self::Class2::•()); - nullable2 = let final self::Class1? #t244 = n1 in #t244 == null ?{self::Class2?} null : let final self::Class2 #t245 = self::Extension2|[](self::Extension1|get#nonNullable2(#t244{self::Class1}), nullable2) in let final self::Class2? #t246 = nullable2 in let final self::Class2 #t247 = new self::Class2::•() in let final void #t248 = self::Extension2|[]=(#t245, #t246, #t247) in #t247; - let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2? #t250 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2), nullable2) in #t250 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t250{self::Class2}); - let final self::Class1? #t251 = n1 in #t251 == null ?{self::Class2?} null : let final self::Class2 #t252 = self::Extension2|[](self::Extension1|get#nonNullable2(#t251{self::Class1}), nullable2) in let final self::Class2? #t253 = nullable2 in self::Extension2|[]=(#t252, #t253, self::Extension2|+(self::Extension2|[](#t252, #t253), 0)); - nullable2 = let final self::Class1? #t254 = n1 in #t254 == null ?{self::Class2?} null : let final self::Class2 #t255 = self::Extension2|[](self::Extension1|get#nonNullable2(#t254{self::Class1}), nullable2) in let final self::Class2? #t256 = nullable2 in let final self::Class2 #t257 = self::Extension2|+(self::Extension2|[](#t255, #t256), 0) in let final void #t258 = self::Extension2|[]=(#t255, #t256, #t257) in #t257; - let final self::Class1? #t259 = n1 in #t259 == null ?{self::Class2?} null : let final self::Class2 #t260 = self::Extension2|[](self::Extension1|get#nonNullable2(#t259{self::Class1}), nullable2) in let final self::Class2? #t261 = nullable2 in self::Extension2|[]=(#t260, #t261, self::Extension2|+(self::Extension2|[](#t260, #t261), 1)); - nullable2 = let final self::Class1? #t262 = n1 in #t262 == null ?{self::Class2?} null : let final self::Class2 #t263 = self::Extension2|[](self::Extension1|get#nonNullable2(#t262{self::Class1}), nullable2) in let final self::Class2? #t264 = nullable2 in let final self::Class2 #t265 = self::Extension2|[](#t263, #t264) in let final void #t266 = self::Extension2|[]=(#t263, #t264, self::Extension2|+(#t265, 1)) in #t265; - let final self::Class1? #t267 = n1 in #t267 == null ?{self::Class2?} null : let final self::Class2 #t268 = self::Extension2|[](self::Extension1|get#nonNullable2(#t267{self::Class1}), nullable2) in let final self::Class2? #t269 = nullable2 in let final self::Class2 #t270 = self::Extension2|+(self::Extension2|[](#t268, #t269), 1) in let final void #t271 = self::Extension2|[]=(#t268, #t269, #t270) in #t270; - nullable2 = let final self::Class1? #t272 = n1 in #t272 == null ?{self::Class2?} null : let final self::Class2 #t273 = self::Extension2|[](self::Extension1|get#nonNullable2(#t272{self::Class1}), nullable2) in let final self::Class2? #t274 = nullable2 in let final self::Class2 #t275 = self::Extension2|+(self::Extension2|[](#t273, #t274), 1) in let final void #t276 = self::Extension2|[]=(#t273, #t274, #t275) in #t275; - let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[](#t278{self::Class1}, nullable1); - let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : self::Extension1|[]=(#t280{self::Class1}, nullable1, new self::Class1::•()); - nullable1 = let final self::Class1? #t281 = n1 in #t281 == null ?{self::Class1?} null : let final self::Class1? #t282 = self::Extension1|[](#t281{self::Class1}, nullable1) in #t282 == null ?{self::Class1?} null : let final self::Class1? #t283 = nullable1 in let final self::Class1 #t284 = new self::Class1::•() in let final void #t285 = self::Extension1|[]=(#t282{self::Class1}, #t283, #t284) in #t284; - let final self::Class1? #t286 = n1 in #t286 == null ?{self::Class1?} null : let final self::Class1? #t287 = self::Extension1|[](#t286{self::Class1}, nullable1) in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t288{self::Class1}); - nullable1 = let final self::Class1? #t289 = n1 in #t289 == null ?{self::Class1?} null : let final self::Class1? #t290 = self::Extension1|[](#t289{self::Class1}, nullable1) in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t291{self::Class1}); - let final self::Class1? #t292 = n1 in #t292 == null ?{self::Class1?} null : let final self::Class1? #t293 = self::Extension1|[](#t292{self::Class1}, nullable1) in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = nullable1 in self::Extension1|[](#t293{self::Class1}, #t294) == null ?{self::Class1?} self::Extension1|[]=(#t293{self::Class1}, #t294, nullable1) : null; - nullable1 = let final self::Class1? #t295 = n1 in #t295 == null ?{self::Class1?} null : let final self::Class1? #t296 = self::Extension1|[](#t295{self::Class1}, nullable1) in #t296 == null ?{self::Class1?} null : let final self::Class1? #t297 = nullable1 in let final self::Class1? #t298 = self::Extension1|[](#t296{self::Class1}, #t297) in #t298 == null ?{self::Class1?} let final self::Class1? #t299 = nullable1 in let final void #t300 = self::Extension1|[]=(#t296{self::Class1}, #t297, #t299) in #t299 : #t298{self::Class1}; - let final self::Class3? #t301 = n3 in #t301 == null ?{self::Class2?} null : let final self::Class2? #t302 = self::Extension3|[](#t301{self::Class3}, nullable3) in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = nullable2 in self::Extension2|[]=(#t302{self::Class2}, #t303, self::Extension2|+(self::Extension2|[](#t302{self::Class2}, #t303), 0)); - nullable2 = let final self::Class3? #t304 = n3 in #t304 == null ?{self::Class2?} null : let final self::Class2? #t305 = self::Extension3|[](#t304{self::Class3}, nullable3) in #t305 == null ?{self::Class2?} null : let final self::Class2? #t306 = nullable2 in let final self::Class2 #t307 = self::Extension2|+(self::Extension2|[](#t305{self::Class2}, #t306), 0) in let final void #t308 = self::Extension2|[]=(#t305{self::Class2}, #t306, #t307) in #t307; - let final self::Class3? #t309 = n3 in #t309 == null ?{self::Class2?} null : let final self::Class2? #t310 = self::Extension3|[](#t309{self::Class3}, nullable3) in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = nullable2 in self::Extension2|[]=(#t310{self::Class2}, #t311, self::Extension2|+(self::Extension2|[](#t310{self::Class2}, #t311), 1)); - nullable2 = let final self::Class3? #t312 = n3 in #t312 == null ?{self::Class2?} null : let final self::Class2? #t313 = self::Extension3|[](#t312{self::Class3}, nullable3) in #t313 == null ?{self::Class2?} null : let final self::Class2? #t314 = nullable2 in let final self::Class2 #t315 = self::Extension2|[](#t313{self::Class2}, #t314) in let final void #t316 = self::Extension2|[]=(#t313{self::Class2}, #t314, self::Extension2|+(#t315, 1)) in #t315; - let final self::Class3? #t317 = n3 in #t317 == null ?{self::Class2?} null : let final self::Class2? #t318 = self::Extension3|[](#t317{self::Class3}, nullable3) in #t318 == null ?{self::Class2?} null : let final self::Class2? #t319 = nullable2 in let final self::Class2 #t320 = self::Extension2|+(self::Extension2|[](#t318{self::Class2}, #t319), 1) in let final void #t321 = self::Extension2|[]=(#t318{self::Class2}, #t319, #t320) in #t320; - nullable2 = let final self::Class3? #t322 = n3 in #t322 == null ?{self::Class2?} null : let final self::Class2? #t323 = self::Extension3|[](#t322{self::Class3}, nullable3) in #t323 == null ?{self::Class2?} null : let final self::Class2? #t324 = nullable2 in let final self::Class2 #t325 = self::Extension2|+(self::Extension2|[](#t323{self::Class2}, #t324), 1) in let final void #t326 = self::Extension2|[]=(#t323{self::Class2}, #t324, #t325) in #t325; + let final self::Class1? #t168 = n1 in #t168 == null ?{self::Class1?} null : self::Extension1|[](#t168{self::Class1}, nullable1); + let final self::Class1? #t169 = n1 in #t169 == null ?{self::Class1?} null : self::Extension1|[]=(#t169{self::Class1}, nullable1, new self::Class1::•()); + let final self::Class1? #t170 = n1 in #t170 == null ?{self::Class1?} null : let final self::Class1? #t171 = self::Extension1|[](#t170{self::Class1}, nullable1) in #t171 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t171{self::Class1}); + let final self::Class1? #t172 = n1 in #t172 == null ?{self::Class1?} null : self::Extension1|[](self::Extension1|get#nonNullable1(#t172{self::Class1}), nullable1); + let final self::Class1? #t173 = n1 in #t173 == null ?{self::Class1?} null : self::Extension1|[]=(self::Extension1|get#nonNullable1(#t173{self::Class1}), nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t174 = n1 in #t174 == null ?{self::Class1?} null : let final self::Class1 #t175 = self::Extension1|get#nonNullable1(#t174{self::Class1}) in let final self::Class1? #t176 = nullable1 in let final self::Class1 #t177 = new self::Class1::•() in let final void #t178 = self::Extension1|[]=(#t175, #t176, #t177) in #t177; + let final self::Class1? #t179 = n1 in #t179 == null ?{self::Class1?} null : let final self::Class1? #t180 = self::Extension1|[](self::Extension1|get#nonNullable1(#t179{self::Class1}), nullable1) in #t180 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t180{self::Class1}); + let final self::Class1? #t181 = n1 in #t181 == null ?{self::Class2?} null : let final self::Class2 #t182 = self::Extension1|get#nonNullable2(#t181{self::Class1}) in let final self::Class2? #t183 = nullable2 in self::Extension2|[]=(#t182, #t183, self::Extension2|+(self::Extension2|[](#t182, #t183), 0)); + nullable2 = let final self::Class1? #t184 = n1 in #t184 == null ?{self::Class2?} null : let final self::Class2 #t185 = self::Extension1|get#nonNullable2(#t184{self::Class1}) in let final self::Class2? #t186 = nullable2 in let final self::Class2 #t187 = self::Extension2|+(self::Extension2|[](#t185, #t186), 0) in let final void #t188 = self::Extension2|[]=(#t185, #t186, #t187) in #t187; + let final self::Class1? #t189 = n1 in #t189 == null ?{self::Class1?} null : let final self::Class1? #t190 = nullable1 in self::Extension1|[](#t189{self::Class1}, #t190) == null ?{self::Class1?} self::Extension1|[]=(#t189{self::Class1}, #t190, nullable1) : null; + nullable1 = let final self::Class1? #t191 = n1 in #t191 == null ?{self::Class1?} null : let final self::Class1? #t192 = nullable1 in let final self::Class1? #t193 = self::Extension1|[](#t191{self::Class1}, #t192) in #t193 == null ?{self::Class1?} let final self::Class1? #t194 = nullable1 in let final void #t195 = self::Extension1|[]=(#t191{self::Class1}, #t192, #t194) in #t194 : #t193{self::Class1}; + let final self::Class2? #t196 = n2 in #t196 == null ?{self::Class2?} null : let final self::Class2? #t197 = nullable2 in self::Extension2|[]=(#t196{self::Class2}, #t197, self::Extension2|+(self::Extension2|[](#t196{self::Class2}, #t197), 0)); + nullable2 = let final self::Class2? #t198 = n2 in #t198 == null ?{self::Class2?} null : let final self::Class2? #t199 = nullable2 in let final self::Class2 #t200 = self::Extension2|+(self::Extension2|[](#t198{self::Class2}, #t199), 0) in let final void #t201 = self::Extension2|[]=(#t198{self::Class2}, #t199, #t200) in #t200; + let final self::Class2? #t202 = n2 in #t202 == null ?{self::Class2?} null : let final self::Class2? #t203 = nullable2 in self::Extension2|[]=(#t202{self::Class2}, #t203, self::Extension2|+(self::Extension2|[](#t202{self::Class2}, #t203), 0)); + nullable2 = let final self::Class2? #t204 = n2 in #t204 == null ?{self::Class2?} null : let final self::Class2? #t205 = nullable2 in let final self::Class2 #t206 = self::Extension2|+(self::Extension2|[](#t204{self::Class2}, #t205), 0) in let final void #t207 = self::Extension2|[]=(#t204{self::Class2}, #t205, #t206) in #t206; + let final self::Class2? #t208 = n2 in #t208 == null ?{self::Class2?} null : let final self::Class2? #t209 = nullable2 in self::Extension2|[]=(#t208{self::Class2}, #t209, self::Extension2|+(self::Extension2|[](#t208{self::Class2}, #t209), 1)); + nullable2 = let final self::Class2? #t210 = n2 in #t210 == null ?{self::Class2?} null : let final self::Class2? #t211 = nullable2 in let final self::Class2 #t212 = self::Extension2|[](#t210{self::Class2}, #t211) in let final void #t213 = self::Extension2|[]=(#t210{self::Class2}, #t211, self::Extension2|+(#t212, 1)) in #t212; + let final self::Class2? #t214 = n2 in #t214 == null ?{self::Class2?} null : let final self::Class2? #t215 = nullable2 in let final self::Class2 #t216 = self::Extension2|+(self::Extension2|[](#t214{self::Class2}, #t215), 1) in let final void #t217 = self::Extension2|[]=(#t214{self::Class2}, #t215, #t216) in #t216; + nullable2 = let final self::Class2? #t218 = n2 in #t218 == null ?{self::Class2?} null : let final self::Class2? #t219 = nullable2 in let final self::Class2 #t220 = self::Extension2|+(self::Extension2|[](#t218{self::Class2}, #t219), 1) in let final void #t221 = self::Extension2|[]=(#t218{self::Class2}, #t219, #t220) in #t220; + let final self::Class1? #t222 = n1 in #t222 == null ?{self::Class2?} null : let final self::Class2 #t223 = self::Extension1|get#nonNullable2(#t222{self::Class1}) in let final self::Class2? #t224 = nullable2 in self::Extension2|[]=(#t223, #t224, self::Extension2|+(self::Extension2|[](#t223, #t224), 1)); + nullable2 = let final self::Class1? #t225 = n1 in #t225 == null ?{self::Class2?} null : let final self::Class2 #t226 = self::Extension1|get#nonNullable2(#t225{self::Class1}) in let final self::Class2? #t227 = nullable2 in let final self::Class2 #t228 = self::Extension2|[](#t226, #t227) in let final void #t229 = self::Extension2|[]=(#t226, #t227, self::Extension2|+(#t228, 1)) in #t228; + let final self::Class1? #t230 = n1 in #t230 == null ?{self::Class2?} null : let final self::Class2 #t231 = self::Extension1|get#nonNullable2(#t230{self::Class1}) in let final self::Class2? #t232 = nullable2 in let final self::Class2 #t233 = self::Extension2|+(self::Extension2|[](#t231, #t232), 1) in let final void #t234 = self::Extension2|[]=(#t231, #t232, #t233) in #t233; + nullable2 = let final self::Class1? #t235 = n1 in #t235 == null ?{self::Class2?} null : let final self::Class2 #t236 = self::Extension1|get#nonNullable2(#t235{self::Class1}) in let final self::Class2? #t237 = nullable2 in let final self::Class2 #t238 = self::Extension2|+(self::Extension2|[](#t236, #t237), 1) in let final void #t239 = self::Extension2|[]=(#t236, #t237, #t238) in #t238; + let final self::Class1? #t240 = n1 in #t240 == null ?{self::Class2?} null : self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t240{self::Class1}), nullable2), nullable2); + let final self::Class1? #t241 = n1 in #t241 == null ?{self::Class2?} null : self::Extension2|[]=(self::Extension2|[](self::Extension1|get#nonNullable2(#t241{self::Class1}), nullable2), nullable2, new self::Class2::•()); + nullable2 = let final self::Class1? #t242 = n1 in #t242 == null ?{self::Class2?} null : let final self::Class2 #t243 = self::Extension2|[](self::Extension1|get#nonNullable2(#t242{self::Class1}), nullable2) in let final self::Class2? #t244 = nullable2 in let final self::Class2 #t245 = new self::Class2::•() in let final void #t246 = self::Extension2|[]=(#t243, #t244, #t245) in #t245; + let final self::Class1? #t247 = n1 in #t247 == null ?{self::Class2?} null : let final self::Class2? #t248 = self::Extension2|[](self::Extension2|[](self::Extension1|get#nonNullable2(#t247{self::Class1}), nullable2), nullable2) in #t248 == null ?{self::Class2?} null : self::Extension2|nonNullable2Method(#t248{self::Class2}); + let final self::Class1? #t249 = n1 in #t249 == null ?{self::Class2?} null : let final self::Class2 #t250 = self::Extension2|[](self::Extension1|get#nonNullable2(#t249{self::Class1}), nullable2) in let final self::Class2? #t251 = nullable2 in self::Extension2|[]=(#t250, #t251, self::Extension2|+(self::Extension2|[](#t250, #t251), 0)); + nullable2 = let final self::Class1? #t252 = n1 in #t252 == null ?{self::Class2?} null : let final self::Class2 #t253 = self::Extension2|[](self::Extension1|get#nonNullable2(#t252{self::Class1}), nullable2) in let final self::Class2? #t254 = nullable2 in let final self::Class2 #t255 = self::Extension2|+(self::Extension2|[](#t253, #t254), 0) in let final void #t256 = self::Extension2|[]=(#t253, #t254, #t255) in #t255; + let final self::Class1? #t257 = n1 in #t257 == null ?{self::Class2?} null : let final self::Class2 #t258 = self::Extension2|[](self::Extension1|get#nonNullable2(#t257{self::Class1}), nullable2) in let final self::Class2? #t259 = nullable2 in self::Extension2|[]=(#t258, #t259, self::Extension2|+(self::Extension2|[](#t258, #t259), 1)); + nullable2 = let final self::Class1? #t260 = n1 in #t260 == null ?{self::Class2?} null : let final self::Class2 #t261 = self::Extension2|[](self::Extension1|get#nonNullable2(#t260{self::Class1}), nullable2) in let final self::Class2? #t262 = nullable2 in let final self::Class2 #t263 = self::Extension2|[](#t261, #t262) in let final void #t264 = self::Extension2|[]=(#t261, #t262, self::Extension2|+(#t263, 1)) in #t263; + let final self::Class1? #t265 = n1 in #t265 == null ?{self::Class2?} null : let final self::Class2 #t266 = self::Extension2|[](self::Extension1|get#nonNullable2(#t265{self::Class1}), nullable2) in let final self::Class2? #t267 = nullable2 in let final self::Class2 #t268 = self::Extension2|+(self::Extension2|[](#t266, #t267), 1) in let final void #t269 = self::Extension2|[]=(#t266, #t267, #t268) in #t268; + nullable2 = let final self::Class1? #t270 = n1 in #t270 == null ?{self::Class2?} null : let final self::Class2 #t271 = self::Extension2|[](self::Extension1|get#nonNullable2(#t270{self::Class1}), nullable2) in let final self::Class2? #t272 = nullable2 in let final self::Class2 #t273 = self::Extension2|+(self::Extension2|[](#t271, #t272), 1) in let final void #t274 = self::Extension2|[]=(#t271, #t272, #t273) in #t273; + let final self::Class1? #t275 = n1 in #t275 == null ?{self::Class1?} null : let final self::Class1? #t276 = self::Extension1|[](#t275{self::Class1}, nullable1) in #t276 == null ?{self::Class1?} null : self::Extension1|[](#t276{self::Class1}, nullable1); + let final self::Class1? #t277 = n1 in #t277 == null ?{self::Class1?} null : let final self::Class1? #t278 = self::Extension1|[](#t277{self::Class1}, nullable1) in #t278 == null ?{self::Class1?} null : self::Extension1|[]=(#t278{self::Class1}, nullable1, new self::Class1::•()); + nullable1 = let final self::Class1? #t279 = n1 in #t279 == null ?{self::Class1?} null : let final self::Class1? #t280 = self::Extension1|[](#t279{self::Class1}, nullable1) in #t280 == null ?{self::Class1?} null : let final self::Class1? #t281 = nullable1 in let final self::Class1 #t282 = new self::Class1::•() in let final void #t283 = self::Extension1|[]=(#t280{self::Class1}, #t281, #t282) in #t282; + let final self::Class1? #t284 = n1 in #t284 == null ?{self::Class1?} null : let final self::Class1? #t285 = self::Extension1|[](#t284{self::Class1}, nullable1) in #t285 == null ?{self::Class1?} null : let final self::Class1? #t286 = self::Extension1|[](#t285{self::Class1}, nullable1) in #t286 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t286{self::Class1}); + nullable1 = let final self::Class1? #t287 = n1 in #t287 == null ?{self::Class1?} null : let final self::Class1? #t288 = self::Extension1|[](#t287{self::Class1}, nullable1) in #t288 == null ?{self::Class1?} null : let final self::Class1? #t289 = self::Extension1|[](#t288{self::Class1}, nullable1) in #t289 == null ?{self::Class1?} null : self::Extension1|nonNullable1Method(#t289{self::Class1}); + let final self::Class1? #t290 = n1 in #t290 == null ?{self::Class1?} null : let final self::Class1? #t291 = self::Extension1|[](#t290{self::Class1}, nullable1) in #t291 == null ?{self::Class1?} null : let final self::Class1? #t292 = nullable1 in self::Extension1|[](#t291{self::Class1}, #t292) == null ?{self::Class1?} self::Extension1|[]=(#t291{self::Class1}, #t292, nullable1) : null; + nullable1 = let final self::Class1? #t293 = n1 in #t293 == null ?{self::Class1?} null : let final self::Class1? #t294 = self::Extension1|[](#t293{self::Class1}, nullable1) in #t294 == null ?{self::Class1?} null : let final self::Class1? #t295 = nullable1 in let final self::Class1? #t296 = self::Extension1|[](#t294{self::Class1}, #t295) in #t296 == null ?{self::Class1?} let final self::Class1? #t297 = nullable1 in let final void #t298 = self::Extension1|[]=(#t294{self::Class1}, #t295, #t297) in #t297 : #t296{self::Class1}; + let final self::Class3? #t299 = n3 in #t299 == null ?{self::Class2?} null : let final self::Class2? #t300 = self::Extension3|[](#t299{self::Class3}, nullable3) in #t300 == null ?{self::Class2?} null : let final self::Class2? #t301 = nullable2 in self::Extension2|[]=(#t300{self::Class2}, #t301, self::Extension2|+(self::Extension2|[](#t300{self::Class2}, #t301), 0)); + nullable2 = let final self::Class3? #t302 = n3 in #t302 == null ?{self::Class2?} null : let final self::Class2? #t303 = self::Extension3|[](#t302{self::Class3}, nullable3) in #t303 == null ?{self::Class2?} null : let final self::Class2? #t304 = nullable2 in let final self::Class2 #t305 = self::Extension2|+(self::Extension2|[](#t303{self::Class2}, #t304), 0) in let final void #t306 = self::Extension2|[]=(#t303{self::Class2}, #t304, #t305) in #t305; + let final self::Class3? #t307 = n3 in #t307 == null ?{self::Class2?} null : let final self::Class2? #t308 = self::Extension3|[](#t307{self::Class3}, nullable3) in #t308 == null ?{self::Class2?} null : let final self::Class2? #t309 = nullable2 in self::Extension2|[]=(#t308{self::Class2}, #t309, self::Extension2|+(self::Extension2|[](#t308{self::Class2}, #t309), 1)); + nullable2 = let final self::Class3? #t310 = n3 in #t310 == null ?{self::Class2?} null : let final self::Class2? #t311 = self::Extension3|[](#t310{self::Class3}, nullable3) in #t311 == null ?{self::Class2?} null : let final self::Class2? #t312 = nullable2 in let final self::Class2 #t313 = self::Extension2|[](#t311{self::Class2}, #t312) in let final void #t314 = self::Extension2|[]=(#t311{self::Class2}, #t312, self::Extension2|+(#t313, 1)) in #t313; + let final self::Class3? #t315 = n3 in #t315 == null ?{self::Class2?} null : let final self::Class2? #t316 = self::Extension3|[](#t315{self::Class3}, nullable3) in #t316 == null ?{self::Class2?} null : let final self::Class2? #t317 = nullable2 in let final self::Class2 #t318 = self::Extension2|+(self::Extension2|[](#t316{self::Class2}, #t317), 1) in let final void #t319 = self::Extension2|[]=(#t316{self::Class2}, #t317, #t318) in #t318; + nullable2 = let final self::Class3? #t320 = n3 in #t320 == null ?{self::Class2?} null : let final self::Class2? #t321 = self::Extension3|[](#t320{self::Class3}, nullable3) in #t321 == null ?{self::Class2?} null : let final self::Class2? #t322 = nullable2 in let final self::Class2 #t323 = self::Extension2|+(self::Extension2|[](#t321{self::Class2}, #t322), 1) in let final void #t324 = self::Extension2|[]=(#t321{self::Class2}, #t322, #t323) in #t323; } static method operatorAccess(self::Class1? n1, self::Class2? n2) → void { self::Class2? nullable2 = n2; - self::throws(() → void => let final Never #t327 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:226:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:226:33: Error: Operator '+' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. throws(() => n1?.nonNullable1 + 0); - ^" in self::Extension1|+(let final self::Class1? #t328 = n1 in #t328 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t328{self::Class1}), 0)); - self::throws(() → void => let final Never #t329 = invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:227:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. + ^" in self::Extension1|+(let final self::Class1? #t325 = n1 in #t325 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t325{self::Class1}), 0)); + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/null_shorting_extension.dart:227:16: Error: Operator 'unary-' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/nnbd/null_shorting_extension.dart'. throws(() => -n1?.nonNullable1); - ^" in self::Extension1|unary-(let final self::Class1? #t330 = n1 in #t330 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t330{self::Class1}))); - let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t331, self::Extension2|+(self::Extension2|get#nonNullable2(#t331), 0)); - nullable2 = let final self::Class2? #t332 = n2 in #t332 == null ?{self::Class2?} null : let final self::Class2 #t333 = self::Extension2|+(self::Extension2|get#nonNullable2(#t332), 0) in let final void #t334 = self::Extension2|set#nonNullable2(#t332, #t333) in #t333; - let final self::Class2? #t335 = n2 in #t335 == null ?{self::Class2?} null : let final self::Class2 #t336 = self::Extension2|get#nonNullable2(#t335{self::Class2}) in self::Extension2|set#nonNullable2(#t336, self::Extension2|+(self::Extension2|get#nonNullable2(#t336), 0)); - nullable2 = let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : let final self::Class2 #t338 = self::Extension2|get#nonNullable2(#t337{self::Class2}) in let final self::Class2 #t339 = self::Extension2|+(self::Extension2|get#nonNullable2(#t338), 0) in let final void #t340 = self::Extension2|set#nonNullable2(#t338, #t339) in #t339; - let final self::Class2? #t341 = n2 in #t341 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t341, self::Extension2|+(self::Extension2|get#nonNullable2(#t341), 1)); - nullable2 = let final self::Class2? #t342 = n2 in #t342 == null ?{self::Class2?} null : let final self::Class2 #t343 = self::Extension2|get#nonNullable2(#t342) in let final void #t344 = self::Extension2|set#nonNullable2(#t342, self::Extension2|+(#t343, 1)) in #t343; - let final self::Class2? #t345 = n2 in #t345 == null ?{self::Class2?} null : let final self::Class2 #t346 = self::Extension2|+(self::Extension2|get#nonNullable2(#t345), 1) in let final void #t347 = self::Extension2|set#nonNullable2(#t345, #t346) in #t346; - nullable2 = let final self::Class2? #t348 = n2 in #t348 == null ?{self::Class2?} null : let final self::Class2 #t349 = self::Extension2|+(self::Extension2|get#nonNullable2(#t348), 1) in let final void #t350 = self::Extension2|set#nonNullable2(#t348, #t349) in #t349; + ^" in self::Extension1|unary-(let final self::Class1? #t326 = n1 in #t326 == null ?{self::Class1?} null : self::Extension1|get#nonNullable1(#t326{self::Class1}))); + let final self::Class2? #t327 = n2 in #t327 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t327, self::Extension2|+(self::Extension2|get#nonNullable2(#t327), 0)); + nullable2 = let final self::Class2? #t328 = n2 in #t328 == null ?{self::Class2?} null : let final self::Class2 #t329 = self::Extension2|+(self::Extension2|get#nonNullable2(#t328), 0) in let final void #t330 = self::Extension2|set#nonNullable2(#t328, #t329) in #t329; + let final self::Class2? #t331 = n2 in #t331 == null ?{self::Class2?} null : let final self::Class2 #t332 = self::Extension2|get#nonNullable2(#t331{self::Class2}) in self::Extension2|set#nonNullable2(#t332, self::Extension2|+(self::Extension2|get#nonNullable2(#t332), 0)); + nullable2 = let final self::Class2? #t333 = n2 in #t333 == null ?{self::Class2?} null : let final self::Class2 #t334 = self::Extension2|get#nonNullable2(#t333{self::Class2}) in let final self::Class2 #t335 = self::Extension2|+(self::Extension2|get#nonNullable2(#t334), 0) in let final void #t336 = self::Extension2|set#nonNullable2(#t334, #t335) in #t335; + let final self::Class2? #t337 = n2 in #t337 == null ?{self::Class2?} null : self::Extension2|set#nonNullable2(#t337, self::Extension2|+(self::Extension2|get#nonNullable2(#t337), 1)); + nullable2 = let final self::Class2? #t338 = n2 in #t338 == null ?{self::Class2?} null : let final self::Class2 #t339 = self::Extension2|get#nonNullable2(#t338) in let final void #t340 = self::Extension2|set#nonNullable2(#t338, self::Extension2|+(#t339, 1)) in #t339; + let final self::Class2? #t341 = n2 in #t341 == null ?{self::Class2?} null : let final self::Class2 #t342 = self::Extension2|+(self::Extension2|get#nonNullable2(#t341), 1) in let final void #t343 = self::Extension2|set#nonNullable2(#t341, #t342) in #t342; + nullable2 = let final self::Class2? #t344 = n2 in #t344 == null ?{self::Class2?} null : let final self::Class2 #t345 = self::Extension2|+(self::Extension2|get#nonNullable2(#t344), 1) in let final void #t346 = self::Extension2|set#nonNullable2(#t344, #t345) in #t345; } static method ifNull(self::Class1? n1) → void { self::Class1? nullable1 = n1; - let final self::Class1? #t351 = n1 in #t351 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t351) == null ?{self::Class1} self::Extension1|set#nullable1(#t351, n1{self::Class1}) : null; - n1 = let final self::Class1? #t352 = n1 in #t352 == null ?{self::Class1?} null : let final self::Class1? #t353 = self::Extension1|get#nullable1(#t352) in #t353 == null ?{self::Class1} let final self::Class1 #t354 = n1{self::Class1} in let final void #t355 = self::Extension1|set#nullable1(#t352, #t354) in #t354 : #t353{self::Class1}; - let final self::Class1? #t356 = n1 in #t356 == null ?{self::Class1?} null : let final self::Class1 #t357 = self::Extension1|get#nonNullable1(#t356{self::Class1}) in self::Extension1|get#nullable1(#t357) == null ?{self::Class1} self::Extension1|set#nullable1(#t357, n1{self::Class1}) : null; - n1 = let final self::Class1? #t358 = n1 in #t358 == null ?{self::Class1?} null : let final self::Class1 #t359 = self::Extension1|get#nonNullable1(#t358{self::Class1}) in let final self::Class1? #t360 = self::Extension1|get#nullable1(#t359) in #t360 == null ?{self::Class1} let final self::Class1 #t361 = n1{self::Class1} in let final void #t362 = self::Extension1|set#nullable1(#t359, #t361) in #t361 : #t360{self::Class1}; - let final self::Class1? #t363 = n1 in #t363 == null ?{self::Class1?} null : let final self::Class1 #t364 = self::Extension1|get#nonNullable1(#t363{self::Class1}) in let final self::Class1 #t365 = n1{self::Class1} in self::Extension1|[](#t364, #t365) == null ?{self::Class1} self::Extension1|[]=(#t364, #t365, n1{self::Class1}) : null; - n1 = let final self::Class1? #t366 = n1 in #t366 == null ?{self::Class1?} null : let final self::Class1 #t367 = self::Extension1|get#nonNullable1(#t366{self::Class1}) in let final self::Class1 #t368 = n1{self::Class1} in let final self::Class1? #t369 = self::Extension1|[](#t367, #t368) in #t369 == null ?{self::Class1} let final self::Class1 #t370 = n1{self::Class1} in let final void #t371 = self::Extension1|[]=(#t367, #t368, #t370) in #t370 : #t369{self::Class1}; + let final self::Class1? #t347 = n1 in #t347 == null ?{self::Class1?} null : self::Extension1|get#nullable1(#t347) == null ?{self::Class1} self::Extension1|set#nullable1(#t347, n1{self::Class1}) : null; + n1 = let final self::Class1? #t348 = n1 in #t348 == null ?{self::Class1?} null : let final self::Class1? #t349 = self::Extension1|get#nullable1(#t348) in #t349 == null ?{self::Class1} let final self::Class1 #t350 = n1{self::Class1} in let final void #t351 = self::Extension1|set#nullable1(#t348, #t350) in #t350 : #t349{self::Class1}; + let final self::Class1? #t352 = n1 in #t352 == null ?{self::Class1?} null : let final self::Class1 #t353 = self::Extension1|get#nonNullable1(#t352{self::Class1}) in self::Extension1|get#nullable1(#t353) == null ?{self::Class1} self::Extension1|set#nullable1(#t353, n1{self::Class1}) : null; + n1 = let final self::Class1? #t354 = n1 in #t354 == null ?{self::Class1?} null : let final self::Class1 #t355 = self::Extension1|get#nonNullable1(#t354{self::Class1}) in let final self::Class1? #t356 = self::Extension1|get#nullable1(#t355) in #t356 == null ?{self::Class1} let final self::Class1 #t357 = n1{self::Class1} in let final void #t358 = self::Extension1|set#nullable1(#t355, #t357) in #t357 : #t356{self::Class1}; + let final self::Class1? #t359 = n1 in #t359 == null ?{self::Class1?} null : let final self::Class1 #t360 = self::Extension1|get#nonNullable1(#t359{self::Class1}) in let final self::Class1 #t361 = n1{self::Class1} in self::Extension1|[](#t360, #t361) == null ?{self::Class1} self::Extension1|[]=(#t360, #t361, n1{self::Class1}) : null; + n1 = let final self::Class1? #t362 = n1 in #t362 == null ?{self::Class1?} null : let final self::Class1 #t363 = self::Extension1|get#nonNullable1(#t362{self::Class1}) in let final self::Class1 #t364 = n1{self::Class1} in let final self::Class1? #t365 = self::Extension1|[](#t363, #t364) in #t365 == null ?{self::Class1} let final self::Class1 #t366 = n1{self::Class1} in let final void #t367 = self::Extension1|[]=(#t363, #t364, #t366) in #t366 : #t365{self::Class1}; } static method throws(() → void f) → void { try { diff --git a/pkg/front_end/testcases/nnbd/nullable_access.dart.strong.expect b/pkg/front_end/testcases/nnbd/nullable_access.dart.strong.expect index e0b2ca8d816..c5958c211a7 100644 --- a/pkg/front_end/testcases/nnbd/nullable_access.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/nullable_access.dart.strong.expect @@ -33,13 +33,13 @@ class A extends core::Object /*hasConstConstructor*/ { } static method main() → dynamic { self::Class? c; - self::throws(() → void => let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_access.dart:23:18: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/nullable_access.dart:23:18: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_access.dart'. Try accessing using ?. instead. throws(() => c.nonNullableField); ^^^^^^^^^^^^^^^^" in c.{self::Class::nonNullableField}{}.{self::A}); - self::expect(null, let final self::Class? #t2 = c in #t2 == null ?{self::A?} null : #t2{self::Class}.{self::Class::nonNullableField}{self::A}); - self::expect(null, let final self::Class? #t3 = c in #t3 == null ?{self::A?} null : #t3{self::Class}.{self::Class::nonNullableField}{self::A}.{self::A::nonNullableProperty}{self::A}); + self::expect(null, let final self::Class? #t1 = c in #t1 == null ?{self::A?} null : #t1{self::Class}.{self::Class::nonNullableField}{self::A}); + self::expect(null, let final self::Class? #t2 = c in #t2 == null ?{self::A?} null : #t2{self::Class}.{self::Class::nonNullableField}{self::A}.{self::A::nonNullableProperty}{self::A}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/nnbd/nullable_access.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/nullable_access.dart.strong.transformed.expect index e0b2ca8d816..c5958c211a7 100644 --- a/pkg/front_end/testcases/nnbd/nullable_access.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/nullable_access.dart.strong.transformed.expect @@ -33,13 +33,13 @@ class A extends core::Object /*hasConstConstructor*/ { } static method main() → dynamic { self::Class? c; - self::throws(() → void => let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_access.dart:23:18: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/nullable_access.dart:23:18: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_access.dart'. Try accessing using ?. instead. throws(() => c.nonNullableField); ^^^^^^^^^^^^^^^^" in c.{self::Class::nonNullableField}{}.{self::A}); - self::expect(null, let final self::Class? #t2 = c in #t2 == null ?{self::A?} null : #t2{self::Class}.{self::Class::nonNullableField}{self::A}); - self::expect(null, let final self::Class? #t3 = c in #t3 == null ?{self::A?} null : #t3{self::Class}.{self::Class::nonNullableField}{self::A}.{self::A::nonNullableProperty}{self::A}); + self::expect(null, let final self::Class? #t1 = c in #t1 == null ?{self::A?} null : #t1{self::Class}.{self::Class::nonNullableField}{self::A}); + self::expect(null, let final self::Class? #t2 = c in #t2 == null ?{self::A?} null : #t2{self::Class}.{self::Class::nonNullableField}{self::A}.{self::A::nonNullableProperty}{self::A}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/nnbd/nullable_access.dart.weak.expect b/pkg/front_end/testcases/nnbd/nullable_access.dart.weak.expect index e0b2ca8d816..c5958c211a7 100644 --- a/pkg/front_end/testcases/nnbd/nullable_access.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/nullable_access.dart.weak.expect @@ -33,13 +33,13 @@ class A extends core::Object /*hasConstConstructor*/ { } static method main() → dynamic { self::Class? c; - self::throws(() → void => let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_access.dart:23:18: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/nullable_access.dart:23:18: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_access.dart'. Try accessing using ?. instead. throws(() => c.nonNullableField); ^^^^^^^^^^^^^^^^" in c.{self::Class::nonNullableField}{}.{self::A}); - self::expect(null, let final self::Class? #t2 = c in #t2 == null ?{self::A?} null : #t2{self::Class}.{self::Class::nonNullableField}{self::A}); - self::expect(null, let final self::Class? #t3 = c in #t3 == null ?{self::A?} null : #t3{self::Class}.{self::Class::nonNullableField}{self::A}.{self::A::nonNullableProperty}{self::A}); + self::expect(null, let final self::Class? #t1 = c in #t1 == null ?{self::A?} null : #t1{self::Class}.{self::Class::nonNullableField}{self::A}); + self::expect(null, let final self::Class? #t2 = c in #t2 == null ?{self::A?} null : #t2{self::Class}.{self::Class::nonNullableField}{self::A}.{self::A::nonNullableProperty}{self::A}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/nnbd/nullable_access.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/nullable_access.dart.weak.transformed.expect index e0b2ca8d816..c5958c211a7 100644 --- a/pkg/front_end/testcases/nnbd/nullable_access.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/nullable_access.dart.weak.transformed.expect @@ -33,13 +33,13 @@ class A extends core::Object /*hasConstConstructor*/ { } static method main() → dynamic { self::Class? c; - self::throws(() → void => let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_access.dart:23:18: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. + self::throws(() → void => invalid-expression "pkg/front_end/testcases/nnbd/nullable_access.dart:23:18: Error: Property 'nonNullableField' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_access.dart'. Try accessing using ?. instead. throws(() => c.nonNullableField); ^^^^^^^^^^^^^^^^" in c.{self::Class::nonNullableField}{}.{self::A}); - self::expect(null, let final self::Class? #t2 = c in #t2 == null ?{self::A?} null : #t2{self::Class}.{self::Class::nonNullableField}{self::A}); - self::expect(null, let final self::Class? #t3 = c in #t3 == null ?{self::A?} null : #t3{self::Class}.{self::Class::nonNullableField}{self::A}.{self::A::nonNullableProperty}{self::A}); + self::expect(null, let final self::Class? #t1 = c in #t1 == null ?{self::A?} null : #t1{self::Class}.{self::Class::nonNullableField}{self::A}); + self::expect(null, let final self::Class? #t2 = c in #t2 == null ?{self::A?} null : #t2{self::Class}.{self::Class::nonNullableField}{self::A}.{self::A::nonNullableProperty}{self::A}); } static method expect(dynamic expected, dynamic actual) → dynamic { if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) diff --git a/pkg/front_end/testcases/nnbd/nullable_object_access.dart.strong.expect b/pkg/front_end/testcases/nnbd/nullable_object_access.dart.strong.expect index fd1b424b401..107dba86ff5 100644 --- a/pkg/front_end/testcases/nnbd/nullable_object_access.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/nullable_object_access.dart.strong.expect @@ -76,21 +76,21 @@ static method test(self::Class c1, self::Class? c2, core::Invocation invocation, (self::CustomInvocation) → core::String noSuchMethodTearOff1 = c1.{self::Class::noSuchMethod}{(self::CustomInvocation) → core::String}; (self::CustomInvocation) → core::String noSuchMethodTearOffVariable1 = c1.{self::Class::noSuchMethod}{(self::CustomInvocation) → core::String}; core::String noSuchMethod1a = c1.{self::Class::noSuchMethod}(customInvocation){(self::CustomInvocation) → core::String}; - core::String noSuchMethod1b = c1.{self::Class::noSuchMethod}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:31:43: Error: The argument type 'Invocation' can't be assigned to the parameter type 'CustomInvocation'. + core::String noSuchMethod1b = c1.{self::Class::noSuchMethod}(invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:31:43: Error: The argument type 'Invocation' can't be assigned to the parameter type 'CustomInvocation'. - 'Invocation' is from 'dart:core'. - 'CustomInvocation' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. String noSuchMethod1b = c1.noSuchMethod(invocation); // error ^" in invocation as{TypeError,ForNonNullableByDefault} self::CustomInvocation){(self::CustomInvocation) → core::String}; core::String noSuchMethodVariable1 = c1.{self::Class::noSuchMethod}(customInvocation){(self::CustomInvocation) → core::String}; - c1 =={self::Class::==}{(self::Class) → core::bool} (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:34:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. + c1 =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:34:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. c1 == ''; // error - ^" in "" as{TypeError,ForNonNullableByDefault} self::Class?); + ^" in "" as{TypeError,ForNonNullableByDefault} self::Class?; c1 =={self::Class::==}{(self::Class) → core::bool} c2; ({o: core::Object}) → core::String toStringTearOff1 = c1.{self::Class::toString}{({o: core::Object}) → core::String}; ({o: core::Object}) → core::String toStringTearOffVariable1 = c1.{self::Class::toString}{({o: core::Object}) → core::String}; c1.{self::Class::toString}(o: c1){({o: core::Object}) → core::String}; - self::CustomType runtimeType2 = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:42:32: Error: A value of type 'Type' can't be assigned to a variable of type 'CustomType'. + self::CustomType runtimeType2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:42:32: Error: A value of type 'Type' can't be assigned to a variable of type 'CustomType'. - 'Type' is from 'dart:core'. - 'CustomType' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. CustomType runtimeType2 = c2.runtimeType; // error @@ -99,7 +99,7 @@ static method test(self::Class c1, self::Class? c2, core::Invocation invocation, invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:44:17: Error: 'runtimeType' isn't a function or method and can't be invoked. c2.runtimeType(); // error ^^^^^^^^^^^"; - (self::CustomInvocation) → core::String noSuchMethodTearOff2 = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:47:10: Error: A value of type 'dynamic Function(Invocation)' can't be assigned to a variable of type 'String Function(CustomInvocation)'. + (self::CustomInvocation) → core::String noSuchMethodTearOff2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:47:10: Error: A value of type 'dynamic Function(Invocation)' can't be assigned to a variable of type 'String Function(CustomInvocation)'. - 'Invocation' is from 'dart:core'. - 'CustomInvocation' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. c2.noSuchMethod; // error @@ -107,17 +107,17 @@ static method test(self::Class c1, self::Class? c2, core::Invocation invocation, (core::Invocation) → dynamic noSuchMethodTearOffVariable2 = c2.{core::Object::noSuchMethod}{(core::Invocation) → dynamic}; core::int noSuchMethod2 = c2.{core::Object::noSuchMethod}(invocation){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; dynamic noSuchMethodVariable2 = c2.{core::Object::noSuchMethod}(invocation){(core::Invocation) → dynamic}; - c2 =={self::Class::==}{(self::Class) → core::bool} (let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:56:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. + c2 =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:56:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. c2 == ''; // ok or error? - ^" in "" as{TypeError,ForNonNullableByDefault} self::Class?); + ^" in "" as{TypeError,ForNonNullableByDefault} self::Class?; c2 =={self::Class::==}{(self::Class) → core::bool} c1; - ({o: core::Object}) → core::String toStringTearOff2 = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:59:53: Error: A value of type 'String Function()' can't be assigned to a variable of type 'String Function({Object o})'. + ({o: core::Object}) → core::String toStringTearOff2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:59:53: Error: A value of type 'String Function()' can't be assigned to a variable of type 'String Function({Object o})'. - 'Object' is from 'dart:core'. String Function({Object o}) toStringTearOff2 = c2.toString; // error ^" in c2.{core::Object::toString}{() → core::String} as{TypeError,ForNonNullableByDefault} ({o: core::Object}) → core::String; () → core::String toStringTearOffVariable2 = c2.{core::Object::toString}{() → core::String}; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:62:15: Error: No named parameter with the name 'o'. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:62:15: Error: No named parameter with the name 'o'. c2.toString(o: c1); // error ^" in c2.{core::Object::toString}{}.(o: c1){({o: invalid-type}) → invalid-type}; } diff --git a/pkg/front_end/testcases/nnbd/nullable_object_access.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/nullable_object_access.dart.strong.transformed.expect new file mode 100644 index 00000000000..107dba86ff5 --- /dev/null +++ b/pkg/front_end/testcases/nnbd/nullable_object_access.dart.strong.transformed.expect @@ -0,0 +1,127 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:31:43: Error: The argument type 'Invocation' can't be assigned to the parameter type 'CustomInvocation'. +// - 'Invocation' is from 'dart:core'. +// - 'CustomInvocation' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. +// String noSuchMethod1b = c1.noSuchMethod(invocation); // error +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:34:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. +// c1 == ''; // error +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:42:32: Error: A value of type 'Type' can't be assigned to a variable of type 'CustomType'. +// - 'Type' is from 'dart:core'. +// - 'CustomType' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. +// CustomType runtimeType2 = c2.runtimeType; // error +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:44:17: Error: 'runtimeType' isn't a function or method and can't be invoked. +// c2.runtimeType(); // error +// ^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:47:10: Error: A value of type 'dynamic Function(Invocation)' can't be assigned to a variable of type 'String Function(CustomInvocation)'. +// - 'Invocation' is from 'dart:core'. +// - 'CustomInvocation' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. +// c2.noSuchMethod; // error +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:56:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. +// c2 == ''; // ok or error? +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:59:53: Error: A value of type 'String Function()' can't be assigned to a variable of type 'String Function({Object o})'. +// - 'Object' is from 'dart:core'. +// String Function({Object o}) toStringTearOff2 = c2.toString; // error +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:62:15: Error: No named parameter with the name 'o'. +// c2.toString(o: c1); // error +// ^ +// +import self as self; +import "dart:core" as core; + +abstract class CustomType extends core::Type { + synthetic constructor •() → self::CustomType + : super core::Type::•() + ; + method call() → void {} +} +abstract class CustomInvocation extends core::Object implements core::Invocation { + synthetic constructor •() → self::CustomInvocation + : super core::Object::•() + ; +} +abstract class Class extends core::Object { + synthetic constructor •() → self::Class + : super core::Object::•() + ; + abstract get runtimeType() → self::CustomType; + forwarding-stub forwarding-semi-stub method noSuchMethod(covariant self::CustomInvocation invocation) → core::String + return super.{core::Object::noSuchMethod}(invocation); + forwarding-stub forwarding-semi-stub operator ==(covariant self::Class o) → core::bool + return super.{core::Object::==}(o); + abstract method toString({core::Object o = #C1}) → core::String; +} +static method main() → dynamic {} +static method test(self::Class c1, self::Class? c2, core::Invocation invocation, self::CustomInvocation customInvocation) → void { + self::CustomType runtimeType1 = c1.{self::Class::runtimeType}{self::CustomType}; + self::CustomType runtimeTypeVariable1 = c1.{self::Class::runtimeType}{self::CustomType}; + c1.{self::Class::runtimeType}{self::CustomType}.{self::CustomType::call}(){() → void}; + (self::CustomInvocation) → core::String noSuchMethodTearOff1 = c1.{self::Class::noSuchMethod}{(self::CustomInvocation) → core::String}; + (self::CustomInvocation) → core::String noSuchMethodTearOffVariable1 = c1.{self::Class::noSuchMethod}{(self::CustomInvocation) → core::String}; + core::String noSuchMethod1a = c1.{self::Class::noSuchMethod}(customInvocation){(self::CustomInvocation) → core::String}; + core::String noSuchMethod1b = c1.{self::Class::noSuchMethod}(invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:31:43: Error: The argument type 'Invocation' can't be assigned to the parameter type 'CustomInvocation'. + - 'Invocation' is from 'dart:core'. + - 'CustomInvocation' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. + String noSuchMethod1b = c1.noSuchMethod(invocation); // error + ^" in invocation as{TypeError,ForNonNullableByDefault} self::CustomInvocation){(self::CustomInvocation) → core::String}; + core::String noSuchMethodVariable1 = c1.{self::Class::noSuchMethod}(customInvocation){(self::CustomInvocation) → core::String}; + c1 =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:34:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. + - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. + c1 == ''; // error + ^" in "" as{TypeError,ForNonNullableByDefault} self::Class?; + c1 =={self::Class::==}{(self::Class) → core::bool} c2; + ({o: core::Object}) → core::String toStringTearOff1 = c1.{self::Class::toString}{({o: core::Object}) → core::String}; + ({o: core::Object}) → core::String toStringTearOffVariable1 = c1.{self::Class::toString}{({o: core::Object}) → core::String}; + c1.{self::Class::toString}(o: c1){({o: core::Object}) → core::String}; + self::CustomType runtimeType2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:42:32: Error: A value of type 'Type' can't be assigned to a variable of type 'CustomType'. + - 'Type' is from 'dart:core'. + - 'CustomType' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. + CustomType runtimeType2 = c2.runtimeType; // error + ^" in c2.{core::Object::runtimeType}{core::Type} as{TypeError,ForNonNullableByDefault} self::CustomType; + core::Type runtimeTypeVariable2 = c2.{core::Object::runtimeType}{core::Type}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:44:17: Error: 'runtimeType' isn't a function or method and can't be invoked. + c2.runtimeType(); // error + ^^^^^^^^^^^"; + (self::CustomInvocation) → core::String noSuchMethodTearOff2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:47:10: Error: A value of type 'dynamic Function(Invocation)' can't be assigned to a variable of type 'String Function(CustomInvocation)'. + - 'Invocation' is from 'dart:core'. + - 'CustomInvocation' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. + c2.noSuchMethod; // error + ^" in c2.{core::Object::noSuchMethod}{(core::Invocation) → dynamic} as{TypeError,ForNonNullableByDefault} (self::CustomInvocation) → core::String; + (core::Invocation) → dynamic noSuchMethodTearOffVariable2 = c2.{core::Object::noSuchMethod}{(core::Invocation) → dynamic}; + core::int noSuchMethod2 = c2.{core::Object::noSuchMethod}(invocation){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + dynamic noSuchMethodVariable2 = c2.{core::Object::noSuchMethod}(invocation){(core::Invocation) → dynamic}; + c2 =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:56:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. + - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. + c2 == ''; // ok or error? + ^" in "" as{TypeError,ForNonNullableByDefault} self::Class?; + c2 =={self::Class::==}{(self::Class) → core::bool} c1; + ({o: core::Object}) → core::String toStringTearOff2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:59:53: Error: A value of type 'String Function()' can't be assigned to a variable of type 'String Function({Object o})'. + - 'Object' is from 'dart:core'. + String Function({Object o}) toStringTearOff2 = c2.toString; // error + ^" in c2.{core::Object::toString}{() → core::String} as{TypeError,ForNonNullableByDefault} ({o: core::Object}) → core::String; + () → core::String toStringTearOffVariable2 = c2.{core::Object::toString}{() → core::String}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:62:15: Error: No named parameter with the name 'o'. + c2.toString(o: c1); // error + ^" in c2.{core::Object::toString}{}.(o: c1){({o: invalid-type}) → invalid-type}; +} + +constants { + #C1 = null +} diff --git a/pkg/front_end/testcases/nnbd/nullable_object_access.dart.weak.expect b/pkg/front_end/testcases/nnbd/nullable_object_access.dart.weak.expect index fd1b424b401..107dba86ff5 100644 --- a/pkg/front_end/testcases/nnbd/nullable_object_access.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/nullable_object_access.dart.weak.expect @@ -76,21 +76,21 @@ static method test(self::Class c1, self::Class? c2, core::Invocation invocation, (self::CustomInvocation) → core::String noSuchMethodTearOff1 = c1.{self::Class::noSuchMethod}{(self::CustomInvocation) → core::String}; (self::CustomInvocation) → core::String noSuchMethodTearOffVariable1 = c1.{self::Class::noSuchMethod}{(self::CustomInvocation) → core::String}; core::String noSuchMethod1a = c1.{self::Class::noSuchMethod}(customInvocation){(self::CustomInvocation) → core::String}; - core::String noSuchMethod1b = c1.{self::Class::noSuchMethod}(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:31:43: Error: The argument type 'Invocation' can't be assigned to the parameter type 'CustomInvocation'. + core::String noSuchMethod1b = c1.{self::Class::noSuchMethod}(invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:31:43: Error: The argument type 'Invocation' can't be assigned to the parameter type 'CustomInvocation'. - 'Invocation' is from 'dart:core'. - 'CustomInvocation' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. String noSuchMethod1b = c1.noSuchMethod(invocation); // error ^" in invocation as{TypeError,ForNonNullableByDefault} self::CustomInvocation){(self::CustomInvocation) → core::String}; core::String noSuchMethodVariable1 = c1.{self::Class::noSuchMethod}(customInvocation){(self::CustomInvocation) → core::String}; - c1 =={self::Class::==}{(self::Class) → core::bool} (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:34:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. + c1 =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:34:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. c1 == ''; // error - ^" in "" as{TypeError,ForNonNullableByDefault} self::Class?); + ^" in "" as{TypeError,ForNonNullableByDefault} self::Class?; c1 =={self::Class::==}{(self::Class) → core::bool} c2; ({o: core::Object}) → core::String toStringTearOff1 = c1.{self::Class::toString}{({o: core::Object}) → core::String}; ({o: core::Object}) → core::String toStringTearOffVariable1 = c1.{self::Class::toString}{({o: core::Object}) → core::String}; c1.{self::Class::toString}(o: c1){({o: core::Object}) → core::String}; - self::CustomType runtimeType2 = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:42:32: Error: A value of type 'Type' can't be assigned to a variable of type 'CustomType'. + self::CustomType runtimeType2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:42:32: Error: A value of type 'Type' can't be assigned to a variable of type 'CustomType'. - 'Type' is from 'dart:core'. - 'CustomType' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. CustomType runtimeType2 = c2.runtimeType; // error @@ -99,7 +99,7 @@ static method test(self::Class c1, self::Class? c2, core::Invocation invocation, invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:44:17: Error: 'runtimeType' isn't a function or method and can't be invoked. c2.runtimeType(); // error ^^^^^^^^^^^"; - (self::CustomInvocation) → core::String noSuchMethodTearOff2 = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:47:10: Error: A value of type 'dynamic Function(Invocation)' can't be assigned to a variable of type 'String Function(CustomInvocation)'. + (self::CustomInvocation) → core::String noSuchMethodTearOff2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:47:10: Error: A value of type 'dynamic Function(Invocation)' can't be assigned to a variable of type 'String Function(CustomInvocation)'. - 'Invocation' is from 'dart:core'. - 'CustomInvocation' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. c2.noSuchMethod; // error @@ -107,17 +107,17 @@ static method test(self::Class c1, self::Class? c2, core::Invocation invocation, (core::Invocation) → dynamic noSuchMethodTearOffVariable2 = c2.{core::Object::noSuchMethod}{(core::Invocation) → dynamic}; core::int noSuchMethod2 = c2.{core::Object::noSuchMethod}(invocation){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; dynamic noSuchMethodVariable2 = c2.{core::Object::noSuchMethod}(invocation){(core::Invocation) → dynamic}; - c2 =={self::Class::==}{(self::Class) → core::bool} (let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:56:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. + c2 =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:56:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. c2 == ''; // ok or error? - ^" in "" as{TypeError,ForNonNullableByDefault} self::Class?); + ^" in "" as{TypeError,ForNonNullableByDefault} self::Class?; c2 =={self::Class::==}{(self::Class) → core::bool} c1; - ({o: core::Object}) → core::String toStringTearOff2 = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:59:53: Error: A value of type 'String Function()' can't be assigned to a variable of type 'String Function({Object o})'. + ({o: core::Object}) → core::String toStringTearOff2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:59:53: Error: A value of type 'String Function()' can't be assigned to a variable of type 'String Function({Object o})'. - 'Object' is from 'dart:core'. String Function({Object o}) toStringTearOff2 = c2.toString; // error ^" in c2.{core::Object::toString}{() → core::String} as{TypeError,ForNonNullableByDefault} ({o: core::Object}) → core::String; () → core::String toStringTearOffVariable2 = c2.{core::Object::toString}{() → core::String}; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:62:15: Error: No named parameter with the name 'o'. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:62:15: Error: No named parameter with the name 'o'. c2.toString(o: c1); // error ^" in c2.{core::Object::toString}{}.(o: c1){({o: invalid-type}) → invalid-type}; } diff --git a/pkg/front_end/testcases/nnbd/nullable_object_access.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/nullable_object_access.dart.weak.transformed.expect new file mode 100644 index 00000000000..107dba86ff5 --- /dev/null +++ b/pkg/front_end/testcases/nnbd/nullable_object_access.dart.weak.transformed.expect @@ -0,0 +1,127 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:31:43: Error: The argument type 'Invocation' can't be assigned to the parameter type 'CustomInvocation'. +// - 'Invocation' is from 'dart:core'. +// - 'CustomInvocation' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. +// String noSuchMethod1b = c1.noSuchMethod(invocation); // error +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:34:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. +// c1 == ''; // error +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:42:32: Error: A value of type 'Type' can't be assigned to a variable of type 'CustomType'. +// - 'Type' is from 'dart:core'. +// - 'CustomType' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. +// CustomType runtimeType2 = c2.runtimeType; // error +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:44:17: Error: 'runtimeType' isn't a function or method and can't be invoked. +// c2.runtimeType(); // error +// ^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:47:10: Error: A value of type 'dynamic Function(Invocation)' can't be assigned to a variable of type 'String Function(CustomInvocation)'. +// - 'Invocation' is from 'dart:core'. +// - 'CustomInvocation' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. +// c2.noSuchMethod; // error +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:56:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. +// c2 == ''; // ok or error? +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:59:53: Error: A value of type 'String Function()' can't be assigned to a variable of type 'String Function({Object o})'. +// - 'Object' is from 'dart:core'. +// String Function({Object o}) toStringTearOff2 = c2.toString; // error +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_object_access.dart:62:15: Error: No named parameter with the name 'o'. +// c2.toString(o: c1); // error +// ^ +// +import self as self; +import "dart:core" as core; + +abstract class CustomType extends core::Type { + synthetic constructor •() → self::CustomType + : super core::Type::•() + ; + method call() → void {} +} +abstract class CustomInvocation extends core::Object implements core::Invocation { + synthetic constructor •() → self::CustomInvocation + : super core::Object::•() + ; +} +abstract class Class extends core::Object { + synthetic constructor •() → self::Class + : super core::Object::•() + ; + abstract get runtimeType() → self::CustomType; + forwarding-stub forwarding-semi-stub method noSuchMethod(covariant self::CustomInvocation invocation) → core::String + return super.{core::Object::noSuchMethod}(invocation); + forwarding-stub forwarding-semi-stub operator ==(covariant self::Class o) → core::bool + return super.{core::Object::==}(o); + abstract method toString({core::Object o = #C1}) → core::String; +} +static method main() → dynamic {} +static method test(self::Class c1, self::Class? c2, core::Invocation invocation, self::CustomInvocation customInvocation) → void { + self::CustomType runtimeType1 = c1.{self::Class::runtimeType}{self::CustomType}; + self::CustomType runtimeTypeVariable1 = c1.{self::Class::runtimeType}{self::CustomType}; + c1.{self::Class::runtimeType}{self::CustomType}.{self::CustomType::call}(){() → void}; + (self::CustomInvocation) → core::String noSuchMethodTearOff1 = c1.{self::Class::noSuchMethod}{(self::CustomInvocation) → core::String}; + (self::CustomInvocation) → core::String noSuchMethodTearOffVariable1 = c1.{self::Class::noSuchMethod}{(self::CustomInvocation) → core::String}; + core::String noSuchMethod1a = c1.{self::Class::noSuchMethod}(customInvocation){(self::CustomInvocation) → core::String}; + core::String noSuchMethod1b = c1.{self::Class::noSuchMethod}(invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:31:43: Error: The argument type 'Invocation' can't be assigned to the parameter type 'CustomInvocation'. + - 'Invocation' is from 'dart:core'. + - 'CustomInvocation' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. + String noSuchMethod1b = c1.noSuchMethod(invocation); // error + ^" in invocation as{TypeError,ForNonNullableByDefault} self::CustomInvocation){(self::CustomInvocation) → core::String}; + core::String noSuchMethodVariable1 = c1.{self::Class::noSuchMethod}(customInvocation){(self::CustomInvocation) → core::String}; + c1 =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:34:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. + - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. + c1 == ''; // error + ^" in "" as{TypeError,ForNonNullableByDefault} self::Class?; + c1 =={self::Class::==}{(self::Class) → core::bool} c2; + ({o: core::Object}) → core::String toStringTearOff1 = c1.{self::Class::toString}{({o: core::Object}) → core::String}; + ({o: core::Object}) → core::String toStringTearOffVariable1 = c1.{self::Class::toString}{({o: core::Object}) → core::String}; + c1.{self::Class::toString}(o: c1){({o: core::Object}) → core::String}; + self::CustomType runtimeType2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:42:32: Error: A value of type 'Type' can't be assigned to a variable of type 'CustomType'. + - 'Type' is from 'dart:core'. + - 'CustomType' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. + CustomType runtimeType2 = c2.runtimeType; // error + ^" in c2.{core::Object::runtimeType}{core::Type} as{TypeError,ForNonNullableByDefault} self::CustomType; + core::Type runtimeTypeVariable2 = c2.{core::Object::runtimeType}{core::Type}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:44:17: Error: 'runtimeType' isn't a function or method and can't be invoked. + c2.runtimeType(); // error + ^^^^^^^^^^^"; + (self::CustomInvocation) → core::String noSuchMethodTearOff2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:47:10: Error: A value of type 'dynamic Function(Invocation)' can't be assigned to a variable of type 'String Function(CustomInvocation)'. + - 'Invocation' is from 'dart:core'. + - 'CustomInvocation' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. + c2.noSuchMethod; // error + ^" in c2.{core::Object::noSuchMethod}{(core::Invocation) → dynamic} as{TypeError,ForNonNullableByDefault} (self::CustomInvocation) → core::String; + (core::Invocation) → dynamic noSuchMethodTearOffVariable2 = c2.{core::Object::noSuchMethod}{(core::Invocation) → dynamic}; + core::int noSuchMethod2 = c2.{core::Object::noSuchMethod}(invocation){(core::Invocation) → dynamic} as{TypeError,ForDynamic,ForNonNullableByDefault} core::int; + dynamic noSuchMethodVariable2 = c2.{core::Object::noSuchMethod}(invocation){(core::Invocation) → dynamic}; + c2 =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:56:9: Error: The argument type 'String' can't be assigned to the parameter type 'Class?'. + - 'Class' is from 'pkg/front_end/testcases/nnbd/nullable_object_access.dart'. + c2 == ''; // ok or error? + ^" in "" as{TypeError,ForNonNullableByDefault} self::Class?; + c2 =={self::Class::==}{(self::Class) → core::bool} c1; + ({o: core::Object}) → core::String toStringTearOff2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:59:53: Error: A value of type 'String Function()' can't be assigned to a variable of type 'String Function({Object o})'. + - 'Object' is from 'dart:core'. + String Function({Object o}) toStringTearOff2 = c2.toString; // error + ^" in c2.{core::Object::toString}{() → core::String} as{TypeError,ForNonNullableByDefault} ({o: core::Object}) → core::String; + () → core::String toStringTearOffVariable2 = c2.{core::Object::toString}{() → core::String}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_object_access.dart:62:15: Error: No named parameter with the name 'o'. + c2.toString(o: c1); // error + ^" in c2.{core::Object::toString}{}.(o: c1){({o: invalid-type}) → invalid-type}; +} + +constants { + #C1 = null +} diff --git a/pkg/front_end/testcases/nnbd/nullable_receiver.dart.strong.expect b/pkg/front_end/testcases/nnbd/nullable_receiver.dart.strong.expect index f1e425b0e4e..7274ffbf56b 100644 --- a/pkg/front_end/testcases/nnbd/nullable_receiver.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/nullable_receiver.dart.strong.expect @@ -74,45 +74,45 @@ class B extends core::Object { return super.{core::Object::toString}(); } static method error(core::String? s, self::A? a, self::B? b) → dynamic { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:20:5: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:20:5: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. Try accessing using ?. instead. s.length; ^^^^^^" in s.{core::String::length}{}.{core::int}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:21:5: Error: Method 'substring' cannot be called on 'String?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:21:5: Error: Method 'substring' cannot be called on 'String?' because it is potentially null. Try calling using ?. instead. s.substring(1, 1); ^^^^^^^^^" in s.{core::String::substring}{}.(1, 1){(core::int, [core::int?]) → core::String}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:23:5: Error: Method 'foo' cannot be called on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:23:5: Error: Method 'foo' cannot be called on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. Try calling using ?. instead. a.foo(); ^^^" in a.{self::A::foo}{}.(){() → dynamic}; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:24:5: Error: Property 'bar' cannot be accessed on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:24:5: Error: Property 'bar' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. Try accessing using ?. instead. a.bar; ^^^" in a.{self::A::bar}{}.{core::int}; - let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:25:5: Error: Property 'baz' cannot be accessed on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:25:5: Error: Property 'baz' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. Try accessing using ?. instead. a.baz = 42; ^^^" in a.{self::A::baz}{}. = 42; - let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:26:4: Error: Can't use an expression of type 'A?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:26:4: Error: Can't use an expression of type 'A?' as a function because it's potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. Try calling using ?.call instead. a(); ^" in a.{self::A::call}{}.(){() → void}; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:27:13: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:27:13: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. b.toString(0); ^" in b.{core::Object::toString}{}.(0){(invalid-type) → invalid-type}; - core::Function f1 = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:29:17: Error: Can't tear off method 'call' from a potentially null value. + core::Function f1 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:29:17: Error: Can't tear off method 'call' from a potentially null value. Function f1 = a; ^" in a as{TypeError} core::Function; - () → void f2 = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:30:24: Error: Can't tear off method 'call' from a potentially null value. + () → void f2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:30:24: Error: Can't tear off method 'call' from a potentially null value. void Function() f2 = a; ^" in a as{TypeError} () → void; - () →? void f3 = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:31:25: Error: Can't tear off method 'call' from a potentially null value. + () →? void f3 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:31:25: Error: Can't tear off method 'call' from a potentially null value. void Function()? f3 = a; ^" in a as{TypeError} () →? void; } diff --git a/pkg/front_end/testcases/nnbd/nullable_receiver.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/nullable_receiver.dart.strong.transformed.expect new file mode 100644 index 00000000000..7274ffbf56b --- /dev/null +++ b/pkg/front_end/testcases/nnbd/nullable_receiver.dart.strong.transformed.expect @@ -0,0 +1,161 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:20:5: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. +// Try accessing using ?. instead. +// s.length; +// ^^^^^^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:21:5: Error: Method 'substring' cannot be called on 'String?' because it is potentially null. +// Try calling using ?. instead. +// s.substring(1, 1); +// ^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:23:5: Error: Method 'foo' cannot be called on 'A?' because it is potentially null. +// - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +// Try calling using ?. instead. +// a.foo(); +// ^^^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:24:5: Error: Property 'bar' cannot be accessed on 'A?' because it is potentially null. +// - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +// Try accessing using ?. instead. +// a.bar; +// ^^^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:25:5: Error: Property 'baz' cannot be accessed on 'A?' because it is potentially null. +// - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +// Try accessing using ?. instead. +// a.baz = 42; +// ^^^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:26:4: Error: Can't use an expression of type 'A?' as a function because it's potentially null. +// - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +// Try calling using ?.call instead. +// a(); +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:27:13: Error: Too many positional arguments: 0 allowed, but 1 found. +// Try removing the extra positional arguments. +// b.toString(0); +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:29:17: Error: Can't tear off method 'call' from a potentially null value. +// Function f1 = a; +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:30:24: Error: Can't tear off method 'call' from a potentially null value. +// void Function() f2 = a; +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:31:25: Error: Can't tear off method 'call' from a potentially null value. +// void Function()? f3 = a; +// ^ +// +import self as self; +import "dart:core" as core; + +class A extends core::Object { + synthetic constructor •() → self::A + : super core::Object::•() + ; + method foo() → dynamic {} + get bar() → core::int + return 42; + set baz(core::int value) → void {} + method call() → void {} +} +class B extends core::Object { + synthetic constructor •() → self::B + : super core::Object::•() + ; + method toString([core::int extra = #C1]) → core::String + return super.{core::Object::toString}(); +} +static method error(core::String? s, self::A? a, self::B? b) → dynamic { + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:20:5: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. +Try accessing using ?. instead. + s.length; + ^^^^^^" in s.{core::String::length}{}.{core::int}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:21:5: Error: Method 'substring' cannot be called on 'String?' because it is potentially null. +Try calling using ?. instead. + s.substring(1, 1); + ^^^^^^^^^" in s.{core::String::substring}{}.(1, 1){(core::int, [core::int?]) → core::String}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:23:5: Error: Method 'foo' cannot be called on 'A?' because it is potentially null. + - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +Try calling using ?. instead. + a.foo(); + ^^^" in a.{self::A::foo}{}.(){() → dynamic}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:24:5: Error: Property 'bar' cannot be accessed on 'A?' because it is potentially null. + - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +Try accessing using ?. instead. + a.bar; + ^^^" in a.{self::A::bar}{}.{core::int}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:25:5: Error: Property 'baz' cannot be accessed on 'A?' because it is potentially null. + - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +Try accessing using ?. instead. + a.baz = 42; + ^^^" in a.{self::A::baz}{}. = 42; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:26:4: Error: Can't use an expression of type 'A?' as a function because it's potentially null. + - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +Try calling using ?.call instead. + a(); + ^" in a.{self::A::call}{}.(){() → void}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:27:13: Error: Too many positional arguments: 0 allowed, but 1 found. +Try removing the extra positional arguments. + b.toString(0); + ^" in b.{core::Object::toString}{}.(0){(invalid-type) → invalid-type}; + core::Function f1 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:29:17: Error: Can't tear off method 'call' from a potentially null value. + Function f1 = a; + ^" in a as{TypeError} core::Function; + () → void f2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:30:24: Error: Can't tear off method 'call' from a potentially null value. + void Function() f2 = a; + ^" in a as{TypeError} () → void; + () →? void f3 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:31:25: Error: Can't tear off method 'call' from a potentially null value. + void Function()? f3 = a; + ^" in a as{TypeError} () →? void; +} +static method ok(core::String? s, self::A? a, self::ok::T% t, self::B? b, core::Invocation i) → dynamic { + s =={core::String::==}{(core::Object) → core::bool} s; + a =={core::Object::==}{(core::Object) → core::bool} a; + t =={core::Object::==}{(core::Object) → core::bool} t; + b =={core::Object::==}{(core::Object) → core::bool} b; + s.{core::Object::hashCode}{core::int}; + a.{core::Object::hashCode}{core::int}; + t.{core::Object::hashCode}{core::int}; + b.{core::Object::hashCode}{core::int}; + s.{core::Object::toString}(){() → core::String}; + a.{core::Object::toString}(){() → core::String}; + t.{core::Object::toString}(){() → core::String}; + b.{core::Object::toString}(){() → core::String}; + try { + s.{core::Object::noSuchMethod}(i){(core::Invocation) → dynamic}; + } + on core::Object catch(final core::Object e, final core::StackTrace t) { + } + try { + a.{core::Object::noSuchMethod}(i){(core::Invocation) → dynamic}; + } + on core::Object catch(final core::Object e, final core::StackTrace t) { + } + try { + t.{core::Object::noSuchMethod}(i){(core::Invocation) → dynamic}; + } + on core::Object catch(final core::Object e, final core::StackTrace t) { + } + try { + b.{core::Object::noSuchMethod}(i){(core::Invocation) → dynamic}; + } + on core::Object catch(final core::Object e, final core::StackTrace t) { + } + s.{core::Object::runtimeType}{core::Type}; + a.{core::Object::runtimeType}{core::Type}; + t.{core::Object::runtimeType}{core::Type}; + b.{core::Object::runtimeType}{core::Type}; +} +static method main() → dynamic {} + +constants { + #C1 = 42 +} diff --git a/pkg/front_end/testcases/nnbd/nullable_receiver.dart.weak.expect b/pkg/front_end/testcases/nnbd/nullable_receiver.dart.weak.expect index f1e425b0e4e..7274ffbf56b 100644 --- a/pkg/front_end/testcases/nnbd/nullable_receiver.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/nullable_receiver.dart.weak.expect @@ -74,45 +74,45 @@ class B extends core::Object { return super.{core::Object::toString}(); } static method error(core::String? s, self::A? a, self::B? b) → dynamic { - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:20:5: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:20:5: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. Try accessing using ?. instead. s.length; ^^^^^^" in s.{core::String::length}{}.{core::int}; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:21:5: Error: Method 'substring' cannot be called on 'String?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:21:5: Error: Method 'substring' cannot be called on 'String?' because it is potentially null. Try calling using ?. instead. s.substring(1, 1); ^^^^^^^^^" in s.{core::String::substring}{}.(1, 1){(core::int, [core::int?]) → core::String}; - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:23:5: Error: Method 'foo' cannot be called on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:23:5: Error: Method 'foo' cannot be called on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. Try calling using ?. instead. a.foo(); ^^^" in a.{self::A::foo}{}.(){() → dynamic}; - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:24:5: Error: Property 'bar' cannot be accessed on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:24:5: Error: Property 'bar' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. Try accessing using ?. instead. a.bar; ^^^" in a.{self::A::bar}{}.{core::int}; - let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:25:5: Error: Property 'baz' cannot be accessed on 'A?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:25:5: Error: Property 'baz' cannot be accessed on 'A?' because it is potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. Try accessing using ?. instead. a.baz = 42; ^^^" in a.{self::A::baz}{}. = 42; - let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:26:4: Error: Can't use an expression of type 'A?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:26:4: Error: Can't use an expression of type 'A?' as a function because it's potentially null. - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. Try calling using ?.call instead. a(); ^" in a.{self::A::call}{}.(){() → void}; - let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:27:13: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:27:13: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. b.toString(0); ^" in b.{core::Object::toString}{}.(0){(invalid-type) → invalid-type}; - core::Function f1 = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:29:17: Error: Can't tear off method 'call' from a potentially null value. + core::Function f1 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:29:17: Error: Can't tear off method 'call' from a potentially null value. Function f1 = a; ^" in a as{TypeError} core::Function; - () → void f2 = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:30:24: Error: Can't tear off method 'call' from a potentially null value. + () → void f2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:30:24: Error: Can't tear off method 'call' from a potentially null value. void Function() f2 = a; ^" in a as{TypeError} () → void; - () →? void f3 = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:31:25: Error: Can't tear off method 'call' from a potentially null value. + () →? void f3 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:31:25: Error: Can't tear off method 'call' from a potentially null value. void Function()? f3 = a; ^" in a as{TypeError} () →? void; } diff --git a/pkg/front_end/testcases/nnbd/nullable_receiver.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/nullable_receiver.dart.weak.transformed.expect new file mode 100644 index 00000000000..7274ffbf56b --- /dev/null +++ b/pkg/front_end/testcases/nnbd/nullable_receiver.dart.weak.transformed.expect @@ -0,0 +1,161 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:20:5: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. +// Try accessing using ?. instead. +// s.length; +// ^^^^^^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:21:5: Error: Method 'substring' cannot be called on 'String?' because it is potentially null. +// Try calling using ?. instead. +// s.substring(1, 1); +// ^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:23:5: Error: Method 'foo' cannot be called on 'A?' because it is potentially null. +// - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +// Try calling using ?. instead. +// a.foo(); +// ^^^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:24:5: Error: Property 'bar' cannot be accessed on 'A?' because it is potentially null. +// - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +// Try accessing using ?. instead. +// a.bar; +// ^^^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:25:5: Error: Property 'baz' cannot be accessed on 'A?' because it is potentially null. +// - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +// Try accessing using ?. instead. +// a.baz = 42; +// ^^^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:26:4: Error: Can't use an expression of type 'A?' as a function because it's potentially null. +// - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +// Try calling using ?.call instead. +// a(); +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:27:13: Error: Too many positional arguments: 0 allowed, but 1 found. +// Try removing the extra positional arguments. +// b.toString(0); +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:29:17: Error: Can't tear off method 'call' from a potentially null value. +// Function f1 = a; +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:30:24: Error: Can't tear off method 'call' from a potentially null value. +// void Function() f2 = a; +// ^ +// +// pkg/front_end/testcases/nnbd/nullable_receiver.dart:31:25: Error: Can't tear off method 'call' from a potentially null value. +// void Function()? f3 = a; +// ^ +// +import self as self; +import "dart:core" as core; + +class A extends core::Object { + synthetic constructor •() → self::A + : super core::Object::•() + ; + method foo() → dynamic {} + get bar() → core::int + return 42; + set baz(core::int value) → void {} + method call() → void {} +} +class B extends core::Object { + synthetic constructor •() → self::B + : super core::Object::•() + ; + method toString([core::int extra = #C1]) → core::String + return super.{core::Object::toString}(); +} +static method error(core::String? s, self::A? a, self::B? b) → dynamic { + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:20:5: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. +Try accessing using ?. instead. + s.length; + ^^^^^^" in s.{core::String::length}{}.{core::int}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:21:5: Error: Method 'substring' cannot be called on 'String?' because it is potentially null. +Try calling using ?. instead. + s.substring(1, 1); + ^^^^^^^^^" in s.{core::String::substring}{}.(1, 1){(core::int, [core::int?]) → core::String}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:23:5: Error: Method 'foo' cannot be called on 'A?' because it is potentially null. + - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +Try calling using ?. instead. + a.foo(); + ^^^" in a.{self::A::foo}{}.(){() → dynamic}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:24:5: Error: Property 'bar' cannot be accessed on 'A?' because it is potentially null. + - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +Try accessing using ?. instead. + a.bar; + ^^^" in a.{self::A::bar}{}.{core::int}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:25:5: Error: Property 'baz' cannot be accessed on 'A?' because it is potentially null. + - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +Try accessing using ?. instead. + a.baz = 42; + ^^^" in a.{self::A::baz}{}. = 42; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:26:4: Error: Can't use an expression of type 'A?' as a function because it's potentially null. + - 'A' is from 'pkg/front_end/testcases/nnbd/nullable_receiver.dart'. +Try calling using ?.call instead. + a(); + ^" in a.{self::A::call}{}.(){() → void}; + invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:27:13: Error: Too many positional arguments: 0 allowed, but 1 found. +Try removing the extra positional arguments. + b.toString(0); + ^" in b.{core::Object::toString}{}.(0){(invalid-type) → invalid-type}; + core::Function f1 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:29:17: Error: Can't tear off method 'call' from a potentially null value. + Function f1 = a; + ^" in a as{TypeError} core::Function; + () → void f2 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:30:24: Error: Can't tear off method 'call' from a potentially null value. + void Function() f2 = a; + ^" in a as{TypeError} () → void; + () →? void f3 = invalid-expression "pkg/front_end/testcases/nnbd/nullable_receiver.dart:31:25: Error: Can't tear off method 'call' from a potentially null value. + void Function()? f3 = a; + ^" in a as{TypeError} () →? void; +} +static method ok(core::String? s, self::A? a, self::ok::T% t, self::B? b, core::Invocation i) → dynamic { + s =={core::String::==}{(core::Object) → core::bool} s; + a =={core::Object::==}{(core::Object) → core::bool} a; + t =={core::Object::==}{(core::Object) → core::bool} t; + b =={core::Object::==}{(core::Object) → core::bool} b; + s.{core::Object::hashCode}{core::int}; + a.{core::Object::hashCode}{core::int}; + t.{core::Object::hashCode}{core::int}; + b.{core::Object::hashCode}{core::int}; + s.{core::Object::toString}(){() → core::String}; + a.{core::Object::toString}(){() → core::String}; + t.{core::Object::toString}(){() → core::String}; + b.{core::Object::toString}(){() → core::String}; + try { + s.{core::Object::noSuchMethod}(i){(core::Invocation) → dynamic}; + } + on core::Object catch(final core::Object e, final core::StackTrace t) { + } + try { + a.{core::Object::noSuchMethod}(i){(core::Invocation) → dynamic}; + } + on core::Object catch(final core::Object e, final core::StackTrace t) { + } + try { + t.{core::Object::noSuchMethod}(i){(core::Invocation) → dynamic}; + } + on core::Object catch(final core::Object e, final core::StackTrace t) { + } + try { + b.{core::Object::noSuchMethod}(i){(core::Invocation) → dynamic}; + } + on core::Object catch(final core::Object e, final core::StackTrace t) { + } + s.{core::Object::runtimeType}{core::Type}; + a.{core::Object::runtimeType}{core::Type}; + t.{core::Object::runtimeType}{core::Type}; + b.{core::Object::runtimeType}{core::Type}; +} +static method main() → dynamic {} + +constants { + #C1 = 42 +} diff --git a/pkg/front_end/testcases/nnbd/numbers_inferred.dart.strong.expect b/pkg/front_end/testcases/nnbd/numbers_inferred.dart.strong.expect index 43aba38b60a..7bd94970477 100644 --- a/pkg/front_end/testcases/nnbd/numbers_inferred.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/numbers_inferred.dart.strong.expect @@ -553,501 +553,501 @@ static method f() → self::f::T% return throw "Unsupported"; static method add(core::num n, core::int i, core::double d, self::add::X x, self::add::Y y, self::add::Z z) → dynamic { core::num n_n = n.{core::num::+}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:10:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:10:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X n_x = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:12:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:12:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y n_y = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:13:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:13:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z n_z = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:14:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:14:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::+}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::+}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X i_x = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:19:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:19:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i + f(); ^" in i.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y i_y = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:20:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:20:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i + f(); ^" in i.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z i_z = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:21:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:21:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i + f(); ^" in i.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::+}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:24:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:24:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::+}(self::f()){(core::num) → core::double}; - self::add::X d_x = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:26:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::add::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:26:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y d_y = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:27:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::add::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:27:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z d_z = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:28:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::add::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:28:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::+}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:31:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:31:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X x_x = let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:33:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:33:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y x_y = let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:34:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:34:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z x_z = let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:35:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:35:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::+}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::+}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X y_x = let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:40:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:40:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y + f(); ^" in y.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y y_y = let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:41:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:41:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y + f(); ^" in y.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z y_z = let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:42:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:42:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y + f(); ^" in y.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::+}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:45:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:45:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::+}(self::f()){(core::num) → core::double}; - self::add::X z_x = let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:47:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::add::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:47:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y z_y = let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:48:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::add::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:48:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z z_z = let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:49:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::add::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:49:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method sub(core::num n, core::int i, core::double d, self::sub::X x, self::sub::Y y, self::sub::Z z) → dynamic { core::num n_n = n.{core::num::-}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:55:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:55:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X n_x = let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:57:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:57:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y n_y = let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:58:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:58:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z n_z = let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:59:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:59:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::-}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::-}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X i_x = let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:64:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:64:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i - f(); ^" in i.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y i_y = let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:65:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:65:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i - f(); ^" in i.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z i_z = let final Never #t29 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:66:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:66:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i - f(); ^" in i.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::-}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:69:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:69:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::-}(self::f()){(core::num) → core::double}; - self::sub::X d_x = let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:71:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::sub::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:71:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y d_y = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:72:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::sub::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:72:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z d_z = let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:73:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::sub::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:73:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::-}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:76:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:76:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X x_x = let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:78:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:78:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y x_y = let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:79:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:79:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z x_z = let final Never #t37 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:80:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:80:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::-}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::-}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X y_x = let final Never #t38 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:85:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:85:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y - f(); ^" in y.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y y_y = let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:86:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:86:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y - f(); ^" in y.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z y_z = let final Never #t40 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:87:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:87:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y - f(); ^" in y.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::-}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t41 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:90:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:90:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::-}(self::f()){(core::num) → core::double}; - self::sub::X z_x = let final Never #t42 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:92:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::sub::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:92:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y z_y = let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:93:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::sub::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:93:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z z_z = let final Never #t44 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:94:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::sub::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:94:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method mul(core::num n, core::int i, core::double d, self::mul::X x, self::mul::Y y, self::mul::Z z) → dynamic { core::num n_n = n.{core::num::*}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:100:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:100:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X n_x = let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:102:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:102:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y n_y = let final Never #t47 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:103:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:103:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z n_z = let final Never #t48 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:104:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:104:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::*}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::*}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X i_x = let final Never #t49 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:109:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:109:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i * f(); ^" in i.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y i_y = let final Never #t50 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:110:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:110:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i * f(); ^" in i.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z i_z = let final Never #t51 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:111:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:111:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i * f(); ^" in i.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::*}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t52 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:114:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:114:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::*}(self::f()){(core::num) → core::double}; - self::mul::X d_x = let final Never #t53 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:116:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mul::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:116:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y d_y = let final Never #t54 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:117:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mul::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:117:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z d_z = let final Never #t55 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:118:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mul::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:118:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::*}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t56 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:121:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:121:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X x_x = let final Never #t57 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:123:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:123:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y x_y = let final Never #t58 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:124:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:124:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z x_z = let final Never #t59 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:125:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:125:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::*}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::*}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X y_x = let final Never #t60 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:130:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:130:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y * f(); ^" in y.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y y_y = let final Never #t61 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:131:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:131:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y * f(); ^" in y.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z y_z = let final Never #t62 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:132:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:132:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y * f(); ^" in y.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::*}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t63 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:135:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:135:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::*}(self::f()){(core::num) → core::double}; - self::mul::X z_x = let final Never #t64 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:137:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mul::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:137:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y z_y = let final Never #t65 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:138:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mul::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:138:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z z_z = let final Never #t66 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:139:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mul::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:139:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method mod(core::num n, core::int i, core::double d, self::mod::X x, self::mod::Y y, self::mod::Z z) → dynamic { core::num n_n = n.{core::num::%}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t67 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:145:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:145:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X n_x = let final Never #t68 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:147:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:147:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y n_y = let final Never #t69 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:148:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:148:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z n_z = let final Never #t70 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:149:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:149:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::%}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::%}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X i_x = let final Never #t71 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:154:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:154:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i % f(); ^" in i.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y i_y = let final Never #t72 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:155:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:155:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i % f(); ^" in i.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z i_z = let final Never #t73 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:156:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:156:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i % f(); ^" in i.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::%}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t74 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:159:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:159:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::%}(self::f()){(core::num) → core::double}; - self::mod::X d_x = let final Never #t75 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:161:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mod::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:161:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y d_y = let final Never #t76 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:162:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mod::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:162:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z d_z = let final Never #t77 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:163:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mod::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:163:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::%}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t78 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:166:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:166:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X x_x = let final Never #t79 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:168:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:168:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y x_y = let final Never #t80 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:169:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:169:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z x_z = let final Never #t81 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:170:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:170:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::%}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::%}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X y_x = let final Never #t82 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:175:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:175:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y % f(); ^" in y.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y y_y = let final Never #t83 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:176:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:176:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y % f(); ^" in y.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z y_z = let final Never #t84 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:177:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:177:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y % f(); ^" in y.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::%}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t85 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:180:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:180:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::%}(self::f()){(core::num) → core::double}; - self::mod::X z_x = let final Never #t86 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:182:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mod::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:182:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y z_y = let final Never #t87 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:183:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mod::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:183:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z z_z = let final Never #t88 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:184:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mod::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:184:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method remainder(core::num n, core::int i, core::double d, self::remainder::X x, self::remainder::Y y, self::remainder::Z z) → dynamic { core::num n_n = n.{core::num::remainder}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t89 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:190:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:190:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X n_x = let final Never #t90 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:192:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:192:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y n_y = let final Never #t91 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:193:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:193:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z n_z = let final Never #t92 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:194:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:194:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::remainder}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::remainder}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X i_x = let final Never #t93 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:199:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:199:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i.remainder(f()); ^" in i.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y i_y = let final Never #t94 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:200:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:200:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i.remainder(f()); ^" in i.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z i_z = let final Never #t95 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:201:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:201:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i.remainder(f()); ^" in i.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::double d_n = d.{core::double::remainder}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t96 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:204:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:204:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X d_x = let final Never #t97 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:206:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::remainder::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:206:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y d_y = let final Never #t98 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:207:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::remainder::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:207:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z d_z = let final Never #t99 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:208:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::remainder::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:208:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::remainder}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t100 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:211:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:211:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X x_x = let final Never #t101 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:213:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:213:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y x_y = let final Never #t102 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:214:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:214:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z x_z = let final Never #t103 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:215:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:215:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::remainder}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::remainder}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X y_x = let final Never #t104 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:220:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:220:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y.remainder(f()); ^" in y.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y y_y = let final Never #t105 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:221:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:221:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y.remainder(f()); ^" in y.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z y_z = let final Never #t106 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:222:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:222:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y.remainder(f()); ^" in y.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::double z_n = z.{core::double::remainder}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t107 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:225:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:225:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X z_x = let final Never #t108 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:227:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::remainder::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:227:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y z_y = let final Never #t109 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:228:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::remainder::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:228:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z z_z = let final Never #t110 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:229:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::remainder::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:229:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method clamp(core::num n, core::int i, core::double d, self::clamp::X x, self::clamp::Y y, self::clamp::Z z) → dynamic { core::num n_n = n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int n_i = let final Never #t111 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:235:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:235:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; - core::double n_d = let final Never #t112 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:236:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double n_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:236:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double n_d = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X n_x = let final Never #t113 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:237:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:237:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y n_y = let final Never #t114 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:238:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:238:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z n_z = let final Never #t115 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:239:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:239:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; core::int i_i = i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::int}; - core::double i_d = let final Never #t116 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:243:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double i_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:243:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double i_d = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X i_x = let final Never #t117 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:244:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:244:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y i_y = let final Never #t118 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:245:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:245:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z i_z = let final Never #t119 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:246:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:246:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int d_i = let final Never #t120 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:249:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:249:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int d_i = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::double}; - self::clamp::X d_x = let final Never #t121 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:251:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:251:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X d_x = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y d_y = let final Never #t122 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:252:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:252:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y d_y = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z d_z = let final Never #t123 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:253:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:253:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z d_z = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int x_i = let final Never #t124 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:256:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:256:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; - core::double x_d = let final Never #t125 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:257:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double x_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:257:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double x_d = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X x_x = let final Never #t126 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:258:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:258:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y x_y = let final Never #t127 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:259:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:259:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z x_z = let final Never #t128 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:260:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:260:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; core::int y_i = y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::int}; - core::double y_d = let final Never #t129 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:264:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double y_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:264:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double y_d = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X y_x = let final Never #t130 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:265:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:265:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y y_y = let final Never #t131 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:266:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:266:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z y_z = let final Never #t132 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:267:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:267:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int z_i = let final Never #t133 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:270:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:270:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int z_i = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::double}; - self::clamp::X z_x = let final Never #t134 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:272:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:272:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X z_x = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y z_y = let final Never #t135 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:273:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:273:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y z_y = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z z_z = let final Never #t136 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:274:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:274:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z z_z = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; } diff --git a/pkg/front_end/testcases/nnbd/numbers_inferred.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/numbers_inferred.dart.strong.transformed.expect index 43aba38b60a..7bd94970477 100644 --- a/pkg/front_end/testcases/nnbd/numbers_inferred.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/numbers_inferred.dart.strong.transformed.expect @@ -553,501 +553,501 @@ static method f() → self::f::T% return throw "Unsupported"; static method add(core::num n, core::int i, core::double d, self::add::X x, self::add::Y y, self::add::Z z) → dynamic { core::num n_n = n.{core::num::+}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:10:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:10:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X n_x = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:12:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:12:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y n_y = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:13:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:13:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z n_z = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:14:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:14:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::+}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::+}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X i_x = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:19:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:19:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i + f(); ^" in i.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y i_y = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:20:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:20:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i + f(); ^" in i.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z i_z = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:21:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:21:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i + f(); ^" in i.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::+}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:24:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:24:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::+}(self::f()){(core::num) → core::double}; - self::add::X d_x = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:26:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::add::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:26:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y d_y = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:27:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::add::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:27:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z d_z = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:28:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::add::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:28:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::+}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:31:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:31:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X x_x = let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:33:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:33:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y x_y = let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:34:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:34:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z x_z = let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:35:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:35:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::+}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::+}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X y_x = let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:40:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:40:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y + f(); ^" in y.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y y_y = let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:41:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:41:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y + f(); ^" in y.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z y_z = let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:42:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:42:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y + f(); ^" in y.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::+}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:45:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:45:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::+}(self::f()){(core::num) → core::double}; - self::add::X z_x = let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:47:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::add::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:47:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y z_y = let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:48:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::add::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:48:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z z_z = let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:49:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::add::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:49:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method sub(core::num n, core::int i, core::double d, self::sub::X x, self::sub::Y y, self::sub::Z z) → dynamic { core::num n_n = n.{core::num::-}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:55:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:55:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X n_x = let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:57:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:57:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y n_y = let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:58:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:58:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z n_z = let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:59:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:59:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::-}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::-}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X i_x = let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:64:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:64:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i - f(); ^" in i.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y i_y = let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:65:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:65:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i - f(); ^" in i.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z i_z = let final Never #t29 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:66:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:66:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i - f(); ^" in i.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::-}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:69:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:69:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::-}(self::f()){(core::num) → core::double}; - self::sub::X d_x = let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:71:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::sub::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:71:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y d_y = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:72:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::sub::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:72:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z d_z = let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:73:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::sub::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:73:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::-}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:76:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:76:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X x_x = let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:78:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:78:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y x_y = let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:79:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:79:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z x_z = let final Never #t37 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:80:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:80:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::-}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::-}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X y_x = let final Never #t38 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:85:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:85:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y - f(); ^" in y.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y y_y = let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:86:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:86:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y - f(); ^" in y.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z y_z = let final Never #t40 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:87:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:87:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y - f(); ^" in y.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::-}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t41 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:90:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:90:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::-}(self::f()){(core::num) → core::double}; - self::sub::X z_x = let final Never #t42 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:92:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::sub::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:92:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y z_y = let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:93:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::sub::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:93:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z z_z = let final Never #t44 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:94:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::sub::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:94:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method mul(core::num n, core::int i, core::double d, self::mul::X x, self::mul::Y y, self::mul::Z z) → dynamic { core::num n_n = n.{core::num::*}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:100:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:100:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X n_x = let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:102:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:102:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y n_y = let final Never #t47 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:103:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:103:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z n_z = let final Never #t48 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:104:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:104:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::*}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::*}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X i_x = let final Never #t49 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:109:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:109:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i * f(); ^" in i.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y i_y = let final Never #t50 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:110:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:110:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i * f(); ^" in i.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z i_z = let final Never #t51 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:111:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:111:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i * f(); ^" in i.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::*}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t52 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:114:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:114:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::*}(self::f()){(core::num) → core::double}; - self::mul::X d_x = let final Never #t53 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:116:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mul::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:116:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y d_y = let final Never #t54 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:117:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mul::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:117:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z d_z = let final Never #t55 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:118:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mul::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:118:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::*}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t56 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:121:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:121:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X x_x = let final Never #t57 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:123:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:123:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y x_y = let final Never #t58 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:124:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:124:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z x_z = let final Never #t59 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:125:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:125:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::*}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::*}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X y_x = let final Never #t60 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:130:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:130:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y * f(); ^" in y.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y y_y = let final Never #t61 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:131:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:131:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y * f(); ^" in y.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z y_z = let final Never #t62 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:132:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:132:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y * f(); ^" in y.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::*}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t63 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:135:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:135:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::*}(self::f()){(core::num) → core::double}; - self::mul::X z_x = let final Never #t64 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:137:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mul::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:137:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y z_y = let final Never #t65 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:138:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mul::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:138:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z z_z = let final Never #t66 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:139:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mul::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:139:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method mod(core::num n, core::int i, core::double d, self::mod::X x, self::mod::Y y, self::mod::Z z) → dynamic { core::num n_n = n.{core::num::%}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t67 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:145:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:145:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X n_x = let final Never #t68 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:147:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:147:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y n_y = let final Never #t69 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:148:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:148:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z n_z = let final Never #t70 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:149:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:149:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::%}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::%}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X i_x = let final Never #t71 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:154:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:154:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i % f(); ^" in i.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y i_y = let final Never #t72 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:155:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:155:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i % f(); ^" in i.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z i_z = let final Never #t73 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:156:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:156:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i % f(); ^" in i.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::%}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t74 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:159:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:159:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::%}(self::f()){(core::num) → core::double}; - self::mod::X d_x = let final Never #t75 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:161:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mod::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:161:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y d_y = let final Never #t76 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:162:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mod::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:162:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z d_z = let final Never #t77 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:163:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mod::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:163:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::%}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t78 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:166:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:166:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X x_x = let final Never #t79 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:168:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:168:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y x_y = let final Never #t80 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:169:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:169:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z x_z = let final Never #t81 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:170:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:170:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::%}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::%}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X y_x = let final Never #t82 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:175:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:175:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y % f(); ^" in y.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y y_y = let final Never #t83 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:176:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:176:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y % f(); ^" in y.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z y_z = let final Never #t84 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:177:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:177:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y % f(); ^" in y.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::%}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t85 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:180:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:180:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::%}(self::f()){(core::num) → core::double}; - self::mod::X z_x = let final Never #t86 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:182:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mod::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:182:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y z_y = let final Never #t87 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:183:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mod::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:183:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z z_z = let final Never #t88 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:184:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mod::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:184:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method remainder(core::num n, core::int i, core::double d, self::remainder::X x, self::remainder::Y y, self::remainder::Z z) → dynamic { core::num n_n = n.{core::num::remainder}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t89 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:190:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:190:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X n_x = let final Never #t90 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:192:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:192:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y n_y = let final Never #t91 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:193:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:193:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z n_z = let final Never #t92 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:194:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:194:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::remainder}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::remainder}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X i_x = let final Never #t93 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:199:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:199:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i.remainder(f()); ^" in i.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y i_y = let final Never #t94 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:200:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:200:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i.remainder(f()); ^" in i.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z i_z = let final Never #t95 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:201:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:201:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i.remainder(f()); ^" in i.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::double d_n = d.{core::double::remainder}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t96 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:204:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:204:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X d_x = let final Never #t97 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:206:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::remainder::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:206:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y d_y = let final Never #t98 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:207:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::remainder::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:207:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z d_z = let final Never #t99 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:208:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::remainder::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:208:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::remainder}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t100 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:211:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:211:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X x_x = let final Never #t101 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:213:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:213:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y x_y = let final Never #t102 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:214:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:214:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z x_z = let final Never #t103 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:215:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:215:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::remainder}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::remainder}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X y_x = let final Never #t104 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:220:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:220:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y.remainder(f()); ^" in y.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y y_y = let final Never #t105 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:221:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:221:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y.remainder(f()); ^" in y.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z y_z = let final Never #t106 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:222:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:222:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y.remainder(f()); ^" in y.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::double z_n = z.{core::double::remainder}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t107 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:225:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:225:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X z_x = let final Never #t108 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:227:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::remainder::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:227:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y z_y = let final Never #t109 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:228:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::remainder::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:228:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z z_z = let final Never #t110 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:229:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::remainder::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:229:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method clamp(core::num n, core::int i, core::double d, self::clamp::X x, self::clamp::Y y, self::clamp::Z z) → dynamic { core::num n_n = n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int n_i = let final Never #t111 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:235:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:235:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; - core::double n_d = let final Never #t112 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:236:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double n_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:236:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double n_d = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X n_x = let final Never #t113 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:237:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:237:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y n_y = let final Never #t114 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:238:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:238:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z n_z = let final Never #t115 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:239:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:239:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; core::int i_i = i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::int}; - core::double i_d = let final Never #t116 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:243:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double i_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:243:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double i_d = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X i_x = let final Never #t117 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:244:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:244:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y i_y = let final Never #t118 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:245:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:245:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z i_z = let final Never #t119 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:246:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:246:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int d_i = let final Never #t120 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:249:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:249:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int d_i = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::double}; - self::clamp::X d_x = let final Never #t121 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:251:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:251:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X d_x = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y d_y = let final Never #t122 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:252:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:252:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y d_y = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z d_z = let final Never #t123 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:253:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:253:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z d_z = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int x_i = let final Never #t124 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:256:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:256:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; - core::double x_d = let final Never #t125 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:257:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double x_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:257:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double x_d = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X x_x = let final Never #t126 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:258:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:258:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y x_y = let final Never #t127 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:259:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:259:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z x_z = let final Never #t128 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:260:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:260:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; core::int y_i = y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::int}; - core::double y_d = let final Never #t129 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:264:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double y_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:264:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double y_d = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X y_x = let final Never #t130 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:265:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:265:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y y_y = let final Never #t131 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:266:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:266:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z y_z = let final Never #t132 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:267:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:267:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int z_i = let final Never #t133 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:270:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:270:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int z_i = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::double}; - self::clamp::X z_x = let final Never #t134 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:272:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:272:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X z_x = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y z_y = let final Never #t135 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:273:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:273:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y z_y = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z z_z = let final Never #t136 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:274:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:274:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z z_z = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; } diff --git a/pkg/front_end/testcases/nnbd/numbers_inferred.dart.weak.expect b/pkg/front_end/testcases/nnbd/numbers_inferred.dart.weak.expect index 43aba38b60a..7bd94970477 100644 --- a/pkg/front_end/testcases/nnbd/numbers_inferred.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/numbers_inferred.dart.weak.expect @@ -553,501 +553,501 @@ static method f() → self::f::T% return throw "Unsupported"; static method add(core::num n, core::int i, core::double d, self::add::X x, self::add::Y y, self::add::Z z) → dynamic { core::num n_n = n.{core::num::+}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:10:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:10:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X n_x = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:12:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:12:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y n_y = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:13:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:13:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z n_z = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:14:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:14:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::+}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::+}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X i_x = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:19:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:19:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i + f(); ^" in i.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y i_y = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:20:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:20:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i + f(); ^" in i.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z i_z = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:21:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:21:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i + f(); ^" in i.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::+}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:24:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:24:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::+}(self::f()){(core::num) → core::double}; - self::add::X d_x = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:26:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::add::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:26:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y d_y = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:27:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::add::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:27:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z d_z = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:28:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::add::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:28:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::+}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:31:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:31:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X x_x = let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:33:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:33:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y x_y = let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:34:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:34:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z x_z = let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:35:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:35:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::+}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::+}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X y_x = let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:40:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:40:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y + f(); ^" in y.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y y_y = let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:41:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:41:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y + f(); ^" in y.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z y_z = let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:42:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:42:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y + f(); ^" in y.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::+}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:45:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:45:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::+}(self::f()){(core::num) → core::double}; - self::add::X z_x = let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:47:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::add::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:47:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y z_y = let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:48:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::add::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:48:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z z_z = let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:49:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::add::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:49:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method sub(core::num n, core::int i, core::double d, self::sub::X x, self::sub::Y y, self::sub::Z z) → dynamic { core::num n_n = n.{core::num::-}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:55:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:55:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X n_x = let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:57:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:57:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y n_y = let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:58:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:58:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z n_z = let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:59:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:59:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::-}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::-}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X i_x = let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:64:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:64:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i - f(); ^" in i.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y i_y = let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:65:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:65:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i - f(); ^" in i.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z i_z = let final Never #t29 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:66:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:66:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i - f(); ^" in i.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::-}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:69:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:69:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::-}(self::f()){(core::num) → core::double}; - self::sub::X d_x = let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:71:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::sub::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:71:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y d_y = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:72:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::sub::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:72:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z d_z = let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:73:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::sub::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:73:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::-}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:76:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:76:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X x_x = let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:78:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:78:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y x_y = let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:79:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:79:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z x_z = let final Never #t37 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:80:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:80:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::-}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::-}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X y_x = let final Never #t38 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:85:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:85:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y - f(); ^" in y.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y y_y = let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:86:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:86:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y - f(); ^" in y.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z y_z = let final Never #t40 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:87:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:87:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y - f(); ^" in y.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::-}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t41 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:90:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:90:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::-}(self::f()){(core::num) → core::double}; - self::sub::X z_x = let final Never #t42 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:92:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::sub::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:92:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y z_y = let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:93:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::sub::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:93:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z z_z = let final Never #t44 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:94:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::sub::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:94:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method mul(core::num n, core::int i, core::double d, self::mul::X x, self::mul::Y y, self::mul::Z z) → dynamic { core::num n_n = n.{core::num::*}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:100:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:100:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X n_x = let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:102:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:102:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y n_y = let final Never #t47 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:103:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:103:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z n_z = let final Never #t48 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:104:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:104:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::*}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::*}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X i_x = let final Never #t49 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:109:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:109:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i * f(); ^" in i.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y i_y = let final Never #t50 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:110:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:110:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i * f(); ^" in i.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z i_z = let final Never #t51 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:111:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:111:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i * f(); ^" in i.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::*}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t52 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:114:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:114:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::*}(self::f()){(core::num) → core::double}; - self::mul::X d_x = let final Never #t53 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:116:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mul::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:116:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y d_y = let final Never #t54 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:117:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mul::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:117:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z d_z = let final Never #t55 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:118:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mul::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:118:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::*}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t56 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:121:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:121:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X x_x = let final Never #t57 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:123:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:123:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y x_y = let final Never #t58 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:124:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:124:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z x_z = let final Never #t59 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:125:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:125:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::*}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::*}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X y_x = let final Never #t60 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:130:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:130:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y * f(); ^" in y.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y y_y = let final Never #t61 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:131:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:131:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y * f(); ^" in y.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z y_z = let final Never #t62 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:132:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:132:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y * f(); ^" in y.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::*}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t63 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:135:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:135:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::*}(self::f()){(core::num) → core::double}; - self::mul::X z_x = let final Never #t64 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:137:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mul::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:137:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y z_y = let final Never #t65 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:138:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mul::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:138:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z z_z = let final Never #t66 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:139:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mul::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:139:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method mod(core::num n, core::int i, core::double d, self::mod::X x, self::mod::Y y, self::mod::Z z) → dynamic { core::num n_n = n.{core::num::%}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t67 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:145:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:145:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X n_x = let final Never #t68 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:147:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:147:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y n_y = let final Never #t69 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:148:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:148:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z n_z = let final Never #t70 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:149:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:149:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::%}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::%}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X i_x = let final Never #t71 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:154:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:154:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i % f(); ^" in i.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y i_y = let final Never #t72 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:155:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:155:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i % f(); ^" in i.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z i_z = let final Never #t73 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:156:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:156:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i % f(); ^" in i.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::%}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t74 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:159:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:159:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::%}(self::f()){(core::num) → core::double}; - self::mod::X d_x = let final Never #t75 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:161:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mod::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:161:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y d_y = let final Never #t76 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:162:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mod::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:162:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z d_z = let final Never #t77 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:163:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mod::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:163:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::%}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t78 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:166:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:166:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X x_x = let final Never #t79 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:168:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:168:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y x_y = let final Never #t80 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:169:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:169:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z x_z = let final Never #t81 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:170:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:170:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::%}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::%}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X y_x = let final Never #t82 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:175:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:175:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y % f(); ^" in y.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y y_y = let final Never #t83 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:176:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:176:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y % f(); ^" in y.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z y_z = let final Never #t84 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:177:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:177:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y % f(); ^" in y.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::%}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t85 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:180:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:180:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::%}(self::f()){(core::num) → core::double}; - self::mod::X z_x = let final Never #t86 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:182:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mod::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:182:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y z_y = let final Never #t87 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:183:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mod::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:183:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z z_z = let final Never #t88 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:184:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mod::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:184:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method remainder(core::num n, core::int i, core::double d, self::remainder::X x, self::remainder::Y y, self::remainder::Z z) → dynamic { core::num n_n = n.{core::num::remainder}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t89 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:190:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:190:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X n_x = let final Never #t90 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:192:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:192:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y n_y = let final Never #t91 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:193:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:193:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z n_z = let final Never #t92 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:194:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:194:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::remainder}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::remainder}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X i_x = let final Never #t93 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:199:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:199:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i.remainder(f()); ^" in i.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y i_y = let final Never #t94 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:200:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:200:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i.remainder(f()); ^" in i.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z i_z = let final Never #t95 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:201:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:201:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i.remainder(f()); ^" in i.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::double d_n = d.{core::double::remainder}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t96 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:204:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:204:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X d_x = let final Never #t97 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:206:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::remainder::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:206:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y d_y = let final Never #t98 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:207:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::remainder::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:207:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z d_z = let final Never #t99 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:208:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::remainder::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:208:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::remainder}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t100 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:211:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:211:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X x_x = let final Never #t101 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:213:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:213:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y x_y = let final Never #t102 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:214:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:214:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z x_z = let final Never #t103 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:215:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:215:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::remainder}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::remainder}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X y_x = let final Never #t104 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:220:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:220:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y.remainder(f()); ^" in y.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y y_y = let final Never #t105 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:221:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:221:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y.remainder(f()); ^" in y.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z y_z = let final Never #t106 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:222:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:222:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y.remainder(f()); ^" in y.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::double z_n = z.{core::double::remainder}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t107 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:225:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:225:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X z_x = let final Never #t108 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:227:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::remainder::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:227:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y z_y = let final Never #t109 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:228:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::remainder::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:228:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z z_z = let final Never #t110 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:229:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::remainder::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:229:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method clamp(core::num n, core::int i, core::double d, self::clamp::X x, self::clamp::Y y, self::clamp::Z z) → dynamic { core::num n_n = n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int n_i = let final Never #t111 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:235:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:235:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; - core::double n_d = let final Never #t112 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:236:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double n_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:236:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double n_d = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X n_x = let final Never #t113 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:237:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:237:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y n_y = let final Never #t114 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:238:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:238:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z n_z = let final Never #t115 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:239:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:239:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; core::int i_i = i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::int}; - core::double i_d = let final Never #t116 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:243:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double i_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:243:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double i_d = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X i_x = let final Never #t117 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:244:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:244:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y i_y = let final Never #t118 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:245:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:245:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z i_z = let final Never #t119 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:246:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:246:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int d_i = let final Never #t120 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:249:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:249:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int d_i = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::double}; - self::clamp::X d_x = let final Never #t121 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:251:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:251:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X d_x = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y d_y = let final Never #t122 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:252:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:252:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y d_y = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z d_z = let final Never #t123 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:253:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:253:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z d_z = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int x_i = let final Never #t124 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:256:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:256:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; - core::double x_d = let final Never #t125 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:257:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double x_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:257:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double x_d = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X x_x = let final Never #t126 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:258:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:258:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y x_y = let final Never #t127 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:259:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:259:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z x_z = let final Never #t128 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:260:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:260:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; core::int y_i = y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::int}; - core::double y_d = let final Never #t129 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:264:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double y_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:264:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double y_d = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X y_x = let final Never #t130 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:265:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:265:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y y_y = let final Never #t131 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:266:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:266:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z y_z = let final Never #t132 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:267:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:267:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int z_i = let final Never #t133 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:270:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:270:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int z_i = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::double}; - self::clamp::X z_x = let final Never #t134 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:272:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:272:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X z_x = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y z_y = let final Never #t135 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:273:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:273:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y z_y = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z z_z = let final Never #t136 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:274:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:274:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z z_z = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; } diff --git a/pkg/front_end/testcases/nnbd/numbers_inferred.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/numbers_inferred.dart.weak.transformed.expect index 43aba38b60a..7bd94970477 100644 --- a/pkg/front_end/testcases/nnbd/numbers_inferred.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/numbers_inferred.dart.weak.transformed.expect @@ -553,501 +553,501 @@ static method f() → self::f::T% return throw "Unsupported"; static method add(core::num n, core::int i, core::double d, self::add::X x, self::add::Y y, self::add::Z z) → dynamic { core::num n_n = n.{core::num::+}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:10:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:10:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X n_x = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:12:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:12:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y n_y = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:13:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:13:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z n_z = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:14:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:14:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n + f(); ^" in n.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::+}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::+}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X i_x = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:19:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:19:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i + f(); ^" in i.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y i_y = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:20:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:20:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i + f(); ^" in i.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z i_z = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:21:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:21:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i + f(); ^" in i.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::+}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:24:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:24:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::+}(self::f()){(core::num) → core::double}; - self::add::X d_x = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:26:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::add::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:26:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y d_y = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:27:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::add::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:27:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z d_z = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:28:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::add::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:28:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d + f(); ^" in d.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::+}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:31:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:31:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X x_x = let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:33:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:33:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y x_y = let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:34:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:34:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z x_z = let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:35:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:35:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x + f(); ^" in x.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::+}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::+}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::+}(self::f()){(core::num) → core::double}; - self::add::X y_x = let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:40:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::add::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:40:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y + f(); ^" in y.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y y_y = let final Never #t17 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:41:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::add::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:41:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y + f(); ^" in y.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z y_z = let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:42:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::add::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:42:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y + f(); ^" in y.{core::num::+}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::+}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:45:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:45:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::+}(self::f()){(core::num) → core::double}; - self::add::X z_x = let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:47:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::add::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:47:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Y z_y = let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:48:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::add::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:48:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::add::Z z_z = let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:49:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::add::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:49:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z + f(); ^" in z.{core::double::+}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method sub(core::num n, core::int i, core::double d, self::sub::X x, self::sub::Y y, self::sub::Z z) → dynamic { core::num n_n = n.{core::num::-}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:55:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:55:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X n_x = let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:57:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:57:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y n_y = let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:58:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:58:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z n_z = let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:59:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:59:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n - f(); ^" in n.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::-}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::-}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X i_x = let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:64:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:64:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i - f(); ^" in i.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y i_y = let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:65:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:65:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i - f(); ^" in i.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z i_z = let final Never #t29 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:66:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:66:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i - f(); ^" in i.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::-}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:69:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:69:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::-}(self::f()){(core::num) → core::double}; - self::sub::X d_x = let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:71:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::sub::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:71:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y d_y = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:72:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::sub::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:72:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z d_z = let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:73:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::sub::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:73:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d - f(); ^" in d.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::-}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:76:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:76:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X x_x = let final Never #t35 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:78:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:78:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y x_y = let final Never #t36 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:79:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:79:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z x_z = let final Never #t37 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:80:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:80:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x - f(); ^" in x.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::-}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::-}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::-}(self::f()){(core::num) → core::double}; - self::sub::X y_x = let final Never #t38 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:85:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::sub::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:85:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y - f(); ^" in y.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y y_y = let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:86:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::sub::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:86:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y - f(); ^" in y.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z y_z = let final Never #t40 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:87:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::sub::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:87:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y - f(); ^" in y.{core::num::-}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::-}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t41 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:90:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:90:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::-}(self::f()){(core::num) → core::double}; - self::sub::X z_x = let final Never #t42 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:92:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::sub::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:92:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Y z_y = let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:93:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::sub::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:93:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::sub::Z z_z = let final Never #t44 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:94:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::sub::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:94:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z - f(); ^" in z.{core::double::-}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method mul(core::num n, core::int i, core::double d, self::mul::X x, self::mul::Y y, self::mul::Z z) → dynamic { core::num n_n = n.{core::num::*}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:100:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:100:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X n_x = let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:102:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:102:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y n_y = let final Never #t47 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:103:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:103:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z n_z = let final Never #t48 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:104:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:104:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n * f(); ^" in n.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::*}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::*}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X i_x = let final Never #t49 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:109:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:109:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i * f(); ^" in i.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y i_y = let final Never #t50 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:110:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:110:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i * f(); ^" in i.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z i_z = let final Never #t51 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:111:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:111:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i * f(); ^" in i.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::*}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t52 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:114:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:114:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::*}(self::f()){(core::num) → core::double}; - self::mul::X d_x = let final Never #t53 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:116:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mul::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:116:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y d_y = let final Never #t54 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:117:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mul::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:117:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z d_z = let final Never #t55 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:118:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mul::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:118:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d * f(); ^" in d.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::*}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t56 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:121:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:121:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X x_x = let final Never #t57 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:123:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:123:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y x_y = let final Never #t58 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:124:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:124:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z x_z = let final Never #t59 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:125:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:125:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x * f(); ^" in x.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::*}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::*}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::*}(self::f()){(core::num) → core::double}; - self::mul::X y_x = let final Never #t60 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:130:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mul::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:130:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y * f(); ^" in y.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y y_y = let final Never #t61 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:131:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mul::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:131:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y * f(); ^" in y.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z y_z = let final Never #t62 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:132:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mul::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:132:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y * f(); ^" in y.{core::num::*}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::*}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t63 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:135:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:135:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::*}(self::f()){(core::num) → core::double}; - self::mul::X z_x = let final Never #t64 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:137:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mul::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:137:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Y z_y = let final Never #t65 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:138:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mul::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:138:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mul::Z z_z = let final Never #t66 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:139:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mul::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:139:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z * f(); ^" in z.{core::double::*}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method mod(core::num n, core::int i, core::double d, self::mod::X x, self::mod::Y y, self::mod::Z z) → dynamic { core::num n_n = n.{core::num::%}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t67 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:145:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:145:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X n_x = let final Never #t68 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:147:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:147:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y n_y = let final Never #t69 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:148:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:148:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z n_z = let final Never #t70 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:149:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:149:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n % f(); ^" in n.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::%}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::%}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X i_x = let final Never #t71 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:154:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:154:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i % f(); ^" in i.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y i_y = let final Never #t72 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:155:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:155:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i % f(); ^" in i.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z i_z = let final Never #t73 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:156:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:156:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i % f(); ^" in i.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::double::%}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t74 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:159:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:159:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::%}(self::f()){(core::num) → core::double}; - self::mod::X d_x = let final Never #t75 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:161:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mod::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:161:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y d_y = let final Never #t76 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:162:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mod::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:162:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z d_z = let final Never #t77 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:163:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mod::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:163:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d % f(); ^" in d.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::%}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t78 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:166:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:166:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X x_x = let final Never #t79 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:168:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:168:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y x_y = let final Never #t80 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:169:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:169:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z x_z = let final Never #t81 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:170:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:170:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x % f(); ^" in x.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::%}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::%}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::%}(self::f()){(core::num) → core::double}; - self::mod::X y_x = let final Never #t82 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:175:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::mod::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:175:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y % f(); ^" in y.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y y_y = let final Never #t83 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:176:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::mod::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:176:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y % f(); ^" in y.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z y_z = let final Never #t84 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:177:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::mod::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:177:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y % f(); ^" in y.{core::num::%}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::double::%}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t85 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:180:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:180:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::%}(self::f()){(core::num) → core::double}; - self::mod::X z_x = let final Never #t86 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:182:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::mod::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:182:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Y z_y = let final Never #t87 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:183:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::mod::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:183:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::mod::Z z_z = let final Never #t88 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:184:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::mod::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:184:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z % f(); ^" in z.{core::double::%}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method remainder(core::num n, core::int i, core::double d, self::remainder::X x, self::remainder::Y y, self::remainder::Z z) → dynamic { core::num n_n = n.{core::num::remainder}(self::f()){(core::num) → core::num}; - core::int n_i = let final Never #t89 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:190:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:190:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double n_d = n.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X n_x = let final Never #t90 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:192:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:192:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y n_y = let final Never #t91 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:193:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:193:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z n_z = let final Never #t92 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:194:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:194:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n.remainder(f()); ^" in n.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::remainder}(self::f()){(core::num) → core::num}; core::int i_i = i.{core::num::remainder}(self::f()){(core::num) → core::int}; core::double i_d = i.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X i_x = let final Never #t93 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:199:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:199:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i.remainder(f()); ^" in i.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y i_y = let final Never #t94 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:200:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:200:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i.remainder(f()); ^" in i.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z i_z = let final Never #t95 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:201:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:201:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i.remainder(f()); ^" in i.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::double d_n = d.{core::double::remainder}(self::f()){(core::num) → core::double}; - core::int d_i = let final Never #t96 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:204:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:204:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int d_i = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::double::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X d_x = let final Never #t97 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:206:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::remainder::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:206:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X d_x = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y d_y = let final Never #t98 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:207:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::remainder::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:207:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y d_y = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z d_z = let final Never #t99 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:208:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::remainder::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:208:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z d_z = d.remainder(f()); ^" in d.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::remainder}(self::f()){(core::num) → core::num}; - core::int x_i = let final Never #t100 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:211:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:211:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double x_d = x.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X x_x = let final Never #t101 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:213:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:213:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y x_y = let final Never #t102 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:214:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:214:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z x_z = let final Never #t103 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:215:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:215:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x.remainder(f()); ^" in x.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::remainder}(self::f()){(core::num) → core::num}; core::int y_i = y.{core::num::remainder}(self::f()){(core::num) → core::int}; core::double y_d = y.{core::num::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X y_x = let final Never #t104 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:220:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::remainder::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:220:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y.remainder(f()); ^" in y.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y y_y = let final Never #t105 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:221:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::remainder::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:221:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y.remainder(f()); ^" in y.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z y_z = let final Never #t106 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:222:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::remainder::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:222:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y.remainder(f()); ^" in y.{core::num::remainder}(self::f()){(core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::double z_n = z.{core::double::remainder}(self::f()){(core::num) → core::double}; - core::int z_i = let final Never #t107 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:225:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:225:15: Error: A value of type 'double' can't be assigned to a variable of type 'int'. int z_i = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::double::remainder}(self::f()){(core::num) → core::double}; - self::remainder::X z_x = let final Never #t108 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:227:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. + self::remainder::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:227:13: Error: A value of type 'double' can't be assigned to a variable of type 'X'. X z_x = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Y z_y = let final Never #t109 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:228:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. + self::remainder::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:228:13: Error: A value of type 'double' can't be assigned to a variable of type 'Y'. Y z_y = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; - self::remainder::Z z_z = let final Never #t110 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:229:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. + self::remainder::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:229:13: Error: A value of type 'double' can't be assigned to a variable of type 'Z'. Z z_z = z.remainder(f()); ^" in z.{core::double::remainder}(self::f()){(core::num) → core::double} as{TypeError,ForNonNullableByDefault} Never; } static method clamp(core::num n, core::int i, core::double d, self::clamp::X x, self::clamp::Y y, self::clamp::Z z) → dynamic { core::num n_n = n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int n_i = let final Never #t111 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:235:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int n_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:235:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int n_i = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; - core::double n_d = let final Never #t112 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:236:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double n_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:236:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double n_d = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X n_x = let final Never #t113 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:237:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X n_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:237:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X n_x = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y n_y = let final Never #t114 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:238:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y n_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:238:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y n_y = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z n_z = let final Never #t115 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:239:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z n_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:239:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z n_z = n.clamp(f(), f()); ^" in n.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num i_n = i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; core::int i_i = i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::int}; - core::double i_d = let final Never #t116 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:243:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double i_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:243:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double i_d = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X i_x = let final Never #t117 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:244:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X i_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:244:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X i_x = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y i_y = let final Never #t118 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:245:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y i_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:245:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y i_y = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z i_z = let final Never #t119 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:246:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z i_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:246:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z i_z = i.clamp(f(), f()); ^" in i.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num d_n = d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int d_i = let final Never #t120 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:249:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int d_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:249:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int d_i = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double d_d = d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::double}; - self::clamp::X d_x = let final Never #t121 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:251:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X d_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:251:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X d_x = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y d_y = let final Never #t122 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:252:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y d_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:252:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y d_y = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z d_z = let final Never #t123 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:253:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z d_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:253:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z d_z = d.clamp(f(), f()); ^" in d.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num x_n = x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int x_i = let final Never #t124 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:256:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int x_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:256:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int x_i = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; - core::double x_d = let final Never #t125 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:257:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double x_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:257:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double x_d = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X x_x = let final Never #t126 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:258:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X x_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:258:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X x_x = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y x_y = let final Never #t127 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:259:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y x_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:259:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y x_y = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z x_z = let final Never #t128 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:260:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z x_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:260:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z x_z = x.clamp(f(), f()); ^" in x.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num y_n = y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; core::int y_i = y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::int}; - core::double y_d = let final Never #t129 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:264:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. + core::double y_d = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:264:18: Error: A value of type 'num' can't be assigned to a variable of type 'double'. double y_d = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::double; - self::clamp::X y_x = let final Never #t130 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:265:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X y_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:265:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X y_x = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y y_y = let final Never #t131 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:266:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y y_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:266:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y y_y = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z y_z = let final Never #t132 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:267:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z y_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:267:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z y_z = y.clamp(f(), f()); ^" in y.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; core::num z_n = z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num}; - core::int z_i = let final Never #t133 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:270:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. + core::int z_i = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:270:15: Error: A value of type 'num' can't be assigned to a variable of type 'int'. int z_i = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} core::int; core::double z_d = z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::double}; - self::clamp::X z_x = let final Never #t134 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:272:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. + self::clamp::X z_x = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:272:13: Error: A value of type 'num' can't be assigned to a variable of type 'X'. X z_x = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Y z_y = let final Never #t135 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:273:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. + self::clamp::Y z_y = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:273:13: Error: A value of type 'num' can't be assigned to a variable of type 'Y'. Y z_y = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; - self::clamp::Z z_z = let final Never #t136 = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:274:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. + self::clamp::Z z_z = invalid-expression "pkg/front_end/testcases/nnbd/numbers_inferred.dart:274:13: Error: A value of type 'num' can't be assigned to a variable of type 'Z'. Z z_z = z.clamp(f(), f()); ^" in z.{core::num::clamp}(self::f(), self::f()){(core::num, core::num) → core::num} as{TypeError,ForNonNullableByDefault} Never; } diff --git a/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.strong.expect b/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.strong.expect index 631f443b93f..43849430058 100644 --- a/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.strong.expect @@ -61,7 +61,7 @@ class Class extends core::Object /*hasConstConstructor*/ { constructor constructor(core::int a, test::Class::T b) → test::Class : test::Class::a = a, test::Class::b = b, super core::Object::•() { core::int k; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:17:5: Error: Non-nullable variable 'k' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:17:5: Error: Non-nullable variable 'k' must be assigned before it can be used. k; ^" in k; } @@ -69,14 +69,14 @@ class Class extends core::Object /*hasConstConstructor*/ { constructor patchedConstructor(core::int i, test::Class::T j) → test::Class : test::Class::a = i, test::Class::b = j, super core::Object::•() { core::int k; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:15:5: Error: Non-nullable variable 'k' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:15:5: Error: Non-nullable variable 'k' must be assigned before it can be used. k; ^" in k; } method method(core::int a) → core::int { core::int k; core::int j = a; - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:25:12: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:25:12: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } @@ -84,14 +84,14 @@ class Class extends core::Object /*hasConstConstructor*/ { method /* from org-dartlang-testcase:///patch_lib.dart */ patchedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:22:12: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:22:12: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } method /* from org-dartlang-testcase:///patch_lib.dart */ _injectedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:28:12: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:28:12: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } @@ -99,7 +99,7 @@ class Class extends core::Object /*hasConstConstructor*/ { static method method(core::int a) → core::int { core::int k; core::int j = a; - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:34:10: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:34:10: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } @@ -107,14 +107,14 @@ static method method(core::int a) → core::int { static method /* from org-dartlang-testcase:///patch_lib.dart */ patchedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:36:10: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:36:10: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } static method /* from org-dartlang-testcase:///patch_lib.dart */ _injectedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:42:10: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:42:10: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } diff --git a/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.strong.transformed.expect index 631f443b93f..43849430058 100644 --- a/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.strong.transformed.expect @@ -61,7 +61,7 @@ class Class extends core::Object /*hasConstConstructor*/ { constructor constructor(core::int a, test::Class::T b) → test::Class : test::Class::a = a, test::Class::b = b, super core::Object::•() { core::int k; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:17:5: Error: Non-nullable variable 'k' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:17:5: Error: Non-nullable variable 'k' must be assigned before it can be used. k; ^" in k; } @@ -69,14 +69,14 @@ class Class extends core::Object /*hasConstConstructor*/ { constructor patchedConstructor(core::int i, test::Class::T j) → test::Class : test::Class::a = i, test::Class::b = j, super core::Object::•() { core::int k; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:15:5: Error: Non-nullable variable 'k' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:15:5: Error: Non-nullable variable 'k' must be assigned before it can be used. k; ^" in k; } method method(core::int a) → core::int { core::int k; core::int j = a; - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:25:12: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:25:12: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } @@ -84,14 +84,14 @@ class Class extends core::Object /*hasConstConstructor*/ { method /* from org-dartlang-testcase:///patch_lib.dart */ patchedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:22:12: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:22:12: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } method /* from org-dartlang-testcase:///patch_lib.dart */ _injectedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:28:12: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:28:12: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } @@ -99,7 +99,7 @@ class Class extends core::Object /*hasConstConstructor*/ { static method method(core::int a) → core::int { core::int k; core::int j = a; - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:34:10: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:34:10: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } @@ -107,14 +107,14 @@ static method method(core::int a) → core::int { static method /* from org-dartlang-testcase:///patch_lib.dart */ patchedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:36:10: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:36:10: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } static method /* from org-dartlang-testcase:///patch_lib.dart */ _injectedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:42:10: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:42:10: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } diff --git a/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.weak.expect b/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.weak.expect index 631f443b93f..43849430058 100644 --- a/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.weak.expect @@ -61,7 +61,7 @@ class Class extends core::Object /*hasConstConstructor*/ { constructor constructor(core::int a, test::Class::T b) → test::Class : test::Class::a = a, test::Class::b = b, super core::Object::•() { core::int k; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:17:5: Error: Non-nullable variable 'k' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:17:5: Error: Non-nullable variable 'k' must be assigned before it can be used. k; ^" in k; } @@ -69,14 +69,14 @@ class Class extends core::Object /*hasConstConstructor*/ { constructor patchedConstructor(core::int i, test::Class::T j) → test::Class : test::Class::a = i, test::Class::b = j, super core::Object::•() { core::int k; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:15:5: Error: Non-nullable variable 'k' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:15:5: Error: Non-nullable variable 'k' must be assigned before it can be used. k; ^" in k; } method method(core::int a) → core::int { core::int k; core::int j = a; - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:25:12: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:25:12: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } @@ -84,14 +84,14 @@ class Class extends core::Object /*hasConstConstructor*/ { method /* from org-dartlang-testcase:///patch_lib.dart */ patchedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:22:12: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:22:12: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } method /* from org-dartlang-testcase:///patch_lib.dart */ _injectedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:28:12: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:28:12: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } @@ -99,7 +99,7 @@ class Class extends core::Object /*hasConstConstructor*/ { static method method(core::int a) → core::int { core::int k; core::int j = a; - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:34:10: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:34:10: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } @@ -107,14 +107,14 @@ static method method(core::int a) → core::int { static method /* from org-dartlang-testcase:///patch_lib.dart */ patchedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:36:10: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:36:10: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } static method /* from org-dartlang-testcase:///patch_lib.dart */ _injectedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:42:10: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:42:10: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } diff --git a/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.weak.transformed.expect index 631f443b93f..43849430058 100644 --- a/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/platform_definite_assignment/main.dart.weak.transformed.expect @@ -61,7 +61,7 @@ class Class extends core::Object /*hasConstConstructor*/ { constructor constructor(core::int a, test::Class::T b) → test::Class : test::Class::a = a, test::Class::b = b, super core::Object::•() { core::int k; - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:17:5: Error: Non-nullable variable 'k' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:17:5: Error: Non-nullable variable 'k' must be assigned before it can be used. k; ^" in k; } @@ -69,14 +69,14 @@ class Class extends core::Object /*hasConstConstructor*/ { constructor patchedConstructor(core::int i, test::Class::T j) → test::Class : test::Class::a = i, test::Class::b = j, super core::Object::•() { core::int k; - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:15:5: Error: Non-nullable variable 'k' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:15:5: Error: Non-nullable variable 'k' must be assigned before it can be used. k; ^" in k; } method method(core::int a) → core::int { core::int k; core::int j = a; - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:25:12: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:25:12: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } @@ -84,14 +84,14 @@ class Class extends core::Object /*hasConstConstructor*/ { method /* from org-dartlang-testcase:///patch_lib.dart */ patchedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:22:12: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:22:12: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } method /* from org-dartlang-testcase:///patch_lib.dart */ _injectedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:28:12: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:28:12: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } @@ -99,7 +99,7 @@ class Class extends core::Object /*hasConstConstructor*/ { static method method(core::int a) → core::int { core::int k; core::int j = a; - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:34:10: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/origin_lib.dart:34:10: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } @@ -107,14 +107,14 @@ static method method(core::int a) → core::int { static method /* from org-dartlang-testcase:///patch_lib.dart */ patchedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:36:10: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:36:10: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } static method /* from org-dartlang-testcase:///patch_lib.dart */ _injectedMethod(core::int i) → core::int { core::int k; core::int j = i; - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:42:10: Error: Non-nullable variable 'k' must be assigned before it can be used. + return invalid-expression "pkg/front_end/testcases/nnbd/platform_definite_assignment/patch_lib.dart:42:10: Error: Non-nullable variable 'k' must be assigned before it can be used. return k; ^" in k; } diff --git a/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.strong.expect b/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.strong.expect index d77513d092b..939fe87548d 100644 --- a/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.strong.expect @@ -443,176 +443,176 @@ extension Extension on self::Class { get extensionFunctionTypeGetter = self::Extension|get#extensionFunctionTypeGetter; set extensionProperty = self::Extension|set#extensionProperty; } -static field core::num topLevelBinary = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:37:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. +static field core::num topLevelBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:37:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. var topLevelBinary = nullableInt + 0; ^" in self::nullableInt.{core::num::+}(0){(core::num) → core::num}; -static field core::int topLevelUnary = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:38:21: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. +static field core::int topLevelUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:38:21: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. var topLevelUnary = -nullableInt; ^" in self::nullableInt.{core::int::unary-}(){() → core::int}; -static field dynamic topLevelIndexGet = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:39:35: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. +static field dynamic topLevelIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:39:35: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var topLevelIndexGet = nullableMap[0]; ^" in self::nullableMap.{core::Map::[]}{}.(0){(core::Object?) → dynamic}; -static field core::int topLevelIndexSet = let final core::Map? #t4 = self::nullableMap in let final core::int #t5 = 0 in let final core::int #t6 = 1 in let final void #t7 = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:40:35: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. +static field core::int topLevelIndexSet = let final core::Map? #t1 = self::nullableMap in let final core::int #t2 = 0 in let final core::int #t3 = 1 in let final void #t4 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:40:35: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var topLevelIndexSet = nullableMap[0] = 1; - ^" in #t4.{core::Map::[]=}{}.(#t5, #t6){(dynamic, dynamic) → void} in #t6; -static field dynamic topLevelIndexGetSet = let final core::Map? #t9 = self::nullableMap in let final core::int #t10 = 0 in let final dynamic #t11 = (let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + ^" in #t1.{core::Map::[]=}{}.(#t2, #t3){(dynamic, dynamic) → void} in #t3; +static field dynamic topLevelIndexGetSet = let final core::Map? #t5 = self::nullableMap in let final core::int #t6 = 0 in let final dynamic #t7 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var topLevelIndexGetSet = nullableMap[0] += 1; - ^" in #t9.{core::Map::[]}{}.(#t10){(core::Object?) → dynamic}){dynamic}.+(1) in let final void #t13 = let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + ^" in #t5.{core::Map::[]}{}.(#t6){(core::Object?) → dynamic}{dynamic}.+(1) in let final void #t8 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var topLevelIndexGetSet = nullableMap[0] += 1; - ^" in #t9.{core::Map::[]=}{}.(#t10, #t11){(dynamic, dynamic) → void} in #t11; -static field core::int topLevelPropertyGet = let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:42:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + ^" in #t5.{core::Map::[]=}{}.(#t6, #t7){(dynamic, dynamic) → void} in #t7; +static field core::int topLevelPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:42:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelPropertyGet = nullableClass.property; ^^^^^^^^" in self::nullableClass.{self::Class::property}{}.{core::int}; -static field core::int topLevelPropertySet = let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:43:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +static field core::int topLevelPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:43:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelPropertySet = nullableClass.property = 1; ^^^^^^^^" in self::nullableClass.{self::Class::property}{}. = 1; -static field core::int topLevelPropertyGetSet = let final self::Class? #t17 = self::nullableClass in let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +static field core::int topLevelPropertyGetSet = let final self::Class? #t9 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelPropertyGetSet = nullableClass.property += 1; - ^^^^^^^^" in #t17.{self::Class::property}{}. = (let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^" in #t9.{self::Class::property}{}. = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelPropertyGetSet = nullableClass.property += 1; - ^^^^^^^^" in #t17.{self::Class::property}{}.{core::int}).{core::num::+}(1){(core::num) → core::int}; -static field core::int topLevelMethodInvocation = let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:45:46: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. + ^^^^^^^^" in #t9.{self::Class::property}{}.{core::int}.{core::num::+}(1){(core::num) → core::int}; +static field core::int topLevelMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:45:46: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?. instead. var topLevelMethodInvocation = nullableClass.method(); ^^^^^^" in self::nullableClass.{self::Class::method}{}.(){() → core::int}; -static field () → core::int topLevelMethodTearOff = let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:46:43: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. +static field () → core::int topLevelMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:46:43: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelMethodTearOff = nullableClass.method; ^^^^^^" in self::nullableClass.{self::Class::method}{}.{() → core::int}; -static field dynamic topLevelFunctionImplicitCall = let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:47:52: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. +static field dynamic topLevelFunctionImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:47:52: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. - 'Function' is from 'dart:core'. Try calling using ?.call instead. var topLevelFunctionImplicitCall = nullableFunction(); ^" in self::nullableFunction{}.(); -static field dynamic topLevelFunctionExplicitCall = let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:48:53: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. +static field dynamic topLevelFunctionExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:48:53: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. - 'Function' is from 'dart:core'. Try calling using ?. instead. var topLevelFunctionExplicitCall = nullableFunction.call(); ^^^^" in self::nullableFunction{}.(); -static field core::Function? topLevelFunctionTearOff = let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:49:48: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. +static field core::Function? topLevelFunctionTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:49:48: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. - 'Function' is from 'dart:core'. Try accessing using ?. instead. var topLevelFunctionTearOff = nullableFunction.call; ^^^^" in self::nullableFunction.call; -static field void topLevelFunctionTypeImplicitCall = let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:50:60: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +static field void topLevelFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:50:60: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. var topLevelFunctionTypeImplicitCall = nullableFunctionType(); ^" in self::nullableFunctionType{}.(){() →? void}; -static field void topLevelFunctionTypeExplicitCall = let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:51:61: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. +static field void topLevelFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:51:61: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. Try calling using ?. instead. var topLevelFunctionTypeExplicitCall = nullableFunctionType.call(); ^^^^" in self::nullableFunctionType{}.(){() →? void}; -static field () →? void topLevelFunctionTypeTearOff = let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:52:56: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. +static field () →? void topLevelFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:52:56: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. Try accessing using ?. instead. var topLevelFunctionTypeTearOff = nullableFunctionType.call; ^^^^" in self::nullableFunctionType.call; -static field dynamic topLevelFunctionField = let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:53:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field dynamic topLevelFunctionField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:53:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var topLevelFunctionField = nullableClass.functionField(); ^" in self::nullableClass.{self::Class::functionField}{}.{core::Function}(); -static field void topLevelFunctionTypeField = let final Never #t29 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:54:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field void topLevelFunctionTypeField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:54:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var topLevelFunctionTypeField = nullableClass.functionTypeField(); ^" in self::nullableClass.{self::Class::functionTypeField}{}.{() → void}(){() → void}; -static field dynamic topLevelFunctionGetter = let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:55:44: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field dynamic topLevelFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:55:44: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var topLevelFunctionGetter = nullableClass.functionGetter(); ^" in self::nullableClass.{self::Class::functionGetter}{}.{core::Function}(); -static field void topLevelFunctionTypeGetter = let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:56:48: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field void topLevelFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:56:48: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var topLevelFunctionTypeGetter = nullableClass.functionTypeGetter(); ^" in self::nullableClass.{self::Class::functionTypeGetter}{}.{() → void}(){() → void}; -static field core::int topLevelExtensionBinary = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:58:45: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. +static field core::int topLevelExtensionBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:58:45: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var topLevelExtensionBinary = nullableClass + 0; ^" in self::Extension|+(self::nullableClass, 0); -static field core::int topLevelExtensionUnary = let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:59:30: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. +static field core::int topLevelExtensionUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:59:30: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var topLevelExtensionUnary = -nullableClass; ^" in self::Extension|unary-(self::nullableClass); -static field core::int topLevelExtensionIndexGet = let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:60:46: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. +static field core::int topLevelExtensionIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:60:46: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var topLevelExtensionIndexGet = nullableClass[0]; ^" in self::Extension|[](self::nullableClass, 0); -static field core::int topLevelExtensionIndexSet = let final self::Class? #t35 = self::nullableClass in let final core::int #t36 = 0 in let final core::int #t37 = 1 in let final void #t38 = let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:61:46: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. +static field core::int topLevelExtensionIndexSet = let final self::Class? #t10 = self::nullableClass in let final core::int #t11 = 0 in let final core::int #t12 = 1 in let final void #t13 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:61:46: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var topLevelExtensionIndexSet = nullableClass[0] = 1; - ^" in self::Extension|[]=(#t35, #t36, #t37) in #t37; -static field core::int topLevelExtensionIndexGetSet = let final self::Class? #t40 = self::nullableClass in let final core::int #t41 = 0 in let final core::int #t42 = (let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + ^" in self::Extension|[]=(#t10, #t11, #t12) in #t12; +static field core::int topLevelExtensionIndexGetSet = let final self::Class? #t14 = self::nullableClass in let final core::int #t15 = 0 in let final core::int #t16 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var topLevelExtensionIndexGetSet = nullableClass[0] += 1; - ^" in self::Extension|[](#t40, #t41)).{core::num::+}(1){(core::num) → core::int} in let final void #t44 = let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + ^" in self::Extension|[](#t14, #t15).{core::num::+}(1){(core::num) → core::int} in let final void #t17 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var topLevelExtensionIndexGetSet = nullableClass[0] += 1; - ^" in self::Extension|[]=(#t40, #t41, #t42) in #t42; -static field core::int topLevelExtensionPropertyGet = let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:63:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + ^" in self::Extension|[]=(#t14, #t15, #t16) in #t16; +static field core::int topLevelExtensionPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:63:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelExtensionPropertyGet = nullableClass.extensionProperty; ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(self::nullableClass); -static field core::int topLevelExtensionPropertySet = let final Never #t47 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:64:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +static field core::int topLevelExtensionPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:64:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelExtensionPropertySet = nullableClass.extensionProperty = 1; - ^^^^^^^^^^^^^^^^^" in let final core::int #t48 = 1 in let final void #t49 = self::Extension|set#extensionProperty(self::nullableClass, #t48) in #t48; -static field core::int topLevelExtensionPropertyGetSet = let final self::Class? #t50 = self::nullableClass in let final Never #t51 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^^" in let final core::int #t18 = 1 in let final void #t19 = self::Extension|set#extensionProperty(self::nullableClass, #t18) in #t18; +static field core::int topLevelExtensionPropertyGetSet = let final self::Class? #t20 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelExtensionPropertyGetSet = nullableClass.extensionProperty += 1; - ^^^^^^^^^^^^^^^^^" in let final core::int #t52 = (let final Never #t53 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^^" in let final core::int #t21 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelExtensionPropertyGetSet = nullableClass.extensionProperty += 1; - ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(#t50)).{core::num::+}(1){(core::num) → core::int} in let final void #t54 = self::Extension|set#extensionProperty(#t50, #t52) in #t52; -static field core::int topLevelExtensionMethodInvocation = let final Never #t55 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:66:55: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(#t20).{core::num::+}(1){(core::num) → core::int} in let final void #t22 = self::Extension|set#extensionProperty(#t20, #t21) in #t21; +static field core::int topLevelExtensionMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:66:55: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?. instead. var topLevelExtensionMethodInvocation = nullableClass.extensionMethod(); ^^^^^^^^^^^^^^^" in self::Extension|extensionMethod(self::nullableClass); -static field () → core::int topLevelExtensionMethodTearOff = let final Never #t56 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:67:52: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. +static field () → core::int topLevelExtensionMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:67:52: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelExtensionMethodTearOff = nullableClass.extensionMethod; ^^^^^^^^^^^^^^^" in self::Extension|get#extensionMethod(self::nullableClass); -static field core::int topLevelExtensionFunctionTypeImplicitCall = let final Never #t57 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:68:62: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field core::int topLevelExtensionFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:68:62: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var topLevelExtensionFunctionTypeImplicitCall = nullableClass(); ^" in self::Extension|call(self::nullableClass); -static field core::int topLevelExtensionFunctionTypeExplicitCall = let final Never #t58 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:69:63: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. +static field core::int topLevelExtensionFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:69:63: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?. instead. var topLevelExtensionFunctionTypeExplicitCall = nullableClass.call(); ^^^^" in self::Extension|call(self::nullableClass); -static field () → core::int topLevelExtensionFunctionTypeTearOff = let final Never #t59 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:70:58: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. +static field () → core::int topLevelExtensionFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:70:58: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelExtensionFunctionTypeTearOff = nullableClass.call; ^^^^" in self::Extension|get#call(self::nullableClass); -static field dynamic topLevelExtensionFunctionGetter = let final Never #t60 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:71:53: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field dynamic topLevelExtensionFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:71:53: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var topLevelExtensionFunctionGetter = nullableClass.extensionFunctionGetter(); ^" in self::Extension|get#extensionFunctionGetter(self::nullableClass)(); -static field void topLevelExtensionFunctionTypeGetter = let final Never #t61 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:73:19: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field void topLevelExtensionFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:73:19: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. nullableClass.extensionFunctionTypeGetter(); @@ -650,176 +650,176 @@ static get nullableMap() → core::Map? static get nullableClass() → self::Class? return new self::Class::•(); static method test() → dynamic { - core::num localBinary = let final Never #t62 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:76:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + core::num localBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:76:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. var localBinary = nullableInt + 0; ^" in self::nullableInt.{core::num::+}(0){(core::num) → core::num}; - core::int localUnary = let final Never #t63 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:77:20: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + core::int localUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:77:20: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. var localUnary = -nullableInt; ^" in self::nullableInt.{core::int::unary-}(){() → core::int}; - dynamic localIndexGet = let final Never #t64 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:78:34: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + dynamic localIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:78:34: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var localIndexGet = nullableMap[0]; ^" in self::nullableMap.{core::Map::[]}{}.(0){(core::Object?) → dynamic}; - core::int localIndexSet = let final core::Map? #t65 = self::nullableMap in let final core::int #t66 = 0 in let final core::int #t67 = 1 in let final void #t68 = let final Never #t69 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:79:34: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + core::int localIndexSet = let final core::Map? #t23 = self::nullableMap in let final core::int #t24 = 0 in let final core::int #t25 = 1 in let final void #t26 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:79:34: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var localIndexSet = nullableMap[0] = 1; - ^" in #t65.{core::Map::[]=}{}.(#t66, #t67){(dynamic, dynamic) → void} in #t67; - dynamic localIndexGetSet = let final core::Map? #t70 = self::nullableMap in let final core::int #t71 = 0 in let final dynamic #t72 = (let final Never #t73 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + ^" in #t23.{core::Map::[]=}{}.(#t24, #t25){(dynamic, dynamic) → void} in #t25; + dynamic localIndexGetSet = let final core::Map? #t27 = self::nullableMap in let final core::int #t28 = 0 in let final dynamic #t29 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var localIndexGetSet = nullableMap[0] += 1; - ^" in #t70.{core::Map::[]}{}.(#t71){(core::Object?) → dynamic}){dynamic}.+(1) in let final void #t74 = let final Never #t75 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + ^" in #t27.{core::Map::[]}{}.(#t28){(core::Object?) → dynamic}{dynamic}.+(1) in let final void #t30 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var localIndexGetSet = nullableMap[0] += 1; - ^" in #t70.{core::Map::[]=}{}.(#t71, #t72){(dynamic, dynamic) → void} in #t72; - core::int localPropertyGet = let final Never #t76 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:81:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + ^" in #t27.{core::Map::[]=}{}.(#t28, #t29){(dynamic, dynamic) → void} in #t29; + core::int localPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:81:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localPropertyGet = nullableClass.property; ^^^^^^^^" in self::nullableClass.{self::Class::property}{}.{core::int}; - core::int localPropertySet = let final Never #t77 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:82:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + core::int localPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:82:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localPropertySet = nullableClass.property = 1; ^^^^^^^^" in self::nullableClass.{self::Class::property}{}. = 1; - core::int localPropertyGetSet = let final self::Class? #t78 = self::nullableClass in let final Never #t79 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + core::int localPropertyGetSet = let final self::Class? #t31 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localPropertyGetSet = nullableClass.property += 1; - ^^^^^^^^" in #t78.{self::Class::property}{}. = (let final Never #t80 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^" in #t31.{self::Class::property}{}. = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localPropertyGetSet = nullableClass.property += 1; - ^^^^^^^^" in #t78.{self::Class::property}{}.{core::int}).{core::num::+}(1){(core::num) → core::int}; - core::int localMethodInvocation = let final Never #t81 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:84:45: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. + ^^^^^^^^" in #t31.{self::Class::property}{}.{core::int}.{core::num::+}(1){(core::num) → core::int}; + core::int localMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:84:45: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?. instead. var localMethodInvocation = nullableClass.method(); ^^^^^^" in self::nullableClass.{self::Class::method}{}.(){() → core::int}; - () → core::int localMethodTearOff = let final Never #t82 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:85:42: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. + () → core::int localMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:85:42: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localMethodTearOff = nullableClass.method; ^^^^^^" in self::nullableClass.{self::Class::method}{}.{() → core::int}; - dynamic localFunctionImplicitCall = let final Never #t83 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:86:51: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + dynamic localFunctionImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:86:51: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. - 'Function' is from 'dart:core'. Try calling using ?.call instead. var localFunctionImplicitCall = nullableFunction(); ^" in self::nullableFunction{}.(); - dynamic localFunctionExplicitCall = let final Never #t84 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:87:52: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. + dynamic localFunctionExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:87:52: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. - 'Function' is from 'dart:core'. Try calling using ?. instead. var localFunctionExplicitCall = nullableFunction.call(); ^^^^" in self::nullableFunction{}.(); - core::Function? localFunctionTearOff = let final Never #t85 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:88:47: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. + core::Function? localFunctionTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:88:47: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. - 'Function' is from 'dart:core'. Try accessing using ?. instead. var localFunctionTearOff = nullableFunction.call; ^^^^" in self::nullableFunction.call; - void localFunctionTypeImplicitCall = let final Never #t86 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:89:59: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + void localFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:89:59: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. var localFunctionTypeImplicitCall = nullableFunctionType(); ^" in self::nullableFunctionType{}.(){() →? void}; - void localFunctionTypeExplicitCall = let final Never #t87 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:90:60: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. + void localFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:90:60: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. Try calling using ?. instead. var localFunctionTypeExplicitCall = nullableFunctionType.call(); ^^^^" in self::nullableFunctionType{}.(){() →? void}; - () →? void localFunctionTypeTearOff = let final Never #t88 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:91:55: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. + () →? void localFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:91:55: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. Try accessing using ?. instead. var localFunctionTypeTearOff = nullableFunctionType.call; ^^^^" in self::nullableFunctionType.call; - dynamic localFunctionField = let final Never #t89 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:92:42: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + dynamic localFunctionField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:92:42: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var localFunctionField = nullableClass.functionField(); ^" in self::nullableClass.{self::Class::functionField}{}.{core::Function}(); - void localFunctionTypeField = let final Never #t90 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:93:46: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + void localFunctionTypeField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:93:46: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var localFunctionTypeField = nullableClass.functionTypeField(); ^" in self::nullableClass.{self::Class::functionTypeField}{}.{() → void}(){() → void}; - dynamic localFunctionGetter = let final Never #t91 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:94:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + dynamic localFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:94:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var localFunctionGetter = nullableClass.functionGetter(); ^" in self::nullableClass.{self::Class::functionGetter}{}.{core::Function}(); - void localFunctionTypeGetter = let final Never #t92 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:95:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + void localFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:95:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var localFunctionTypeGetter = nullableClass.functionTypeGetter(); ^" in self::nullableClass.{self::Class::functionTypeGetter}{}.{() → void}(){() → void}; - core::int localExtensionBinary = let final Never #t93 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:97:44: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. + core::int localExtensionBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:97:44: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var localExtensionBinary = nullableClass + 0; ^" in self::Extension|+(self::nullableClass, 0); - core::int localExtensionUnary = let final Never #t94 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:98:29: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. + core::int localExtensionUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:98:29: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var localExtensionUnary = -nullableClass; ^" in self::Extension|unary-(self::nullableClass); - core::int localExtensionIndexGet = let final Never #t95 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:99:45: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + core::int localExtensionIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:99:45: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var localExtensionIndexGet = nullableClass[0]; ^" in self::Extension|[](self::nullableClass, 0); - core::int localExtensionIndexSet = let final self::Class? #t96 = self::nullableClass in let final core::int #t97 = 0 in let final core::int #t98 = 1 in let final void #t99 = let final Never #t100 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:100:45: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + core::int localExtensionIndexSet = let final self::Class? #t32 = self::nullableClass in let final core::int #t33 = 0 in let final core::int #t34 = 1 in let final void #t35 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:100:45: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var localExtensionIndexSet = nullableClass[0] = 1; - ^" in self::Extension|[]=(#t96, #t97, #t98) in #t98; - core::int localExtensionIndexGetSet = let final self::Class? #t101 = self::nullableClass in let final core::int #t102 = 0 in let final core::int #t103 = (let final Never #t104 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + ^" in self::Extension|[]=(#t32, #t33, #t34) in #t34; + core::int localExtensionIndexGetSet = let final self::Class? #t36 = self::nullableClass in let final core::int #t37 = 0 in let final core::int #t38 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var localExtensionIndexGetSet = nullableClass[0] += 1; - ^" in self::Extension|[](#t101, #t102)).{core::num::+}(1){(core::num) → core::int} in let final void #t105 = let final Never #t106 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + ^" in self::Extension|[](#t36, #t37).{core::num::+}(1){(core::num) → core::int} in let final void #t39 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var localExtensionIndexGetSet = nullableClass[0] += 1; - ^" in self::Extension|[]=(#t101, #t102, #t103) in #t103; - core::int localExtensionPropertyGet = let final Never #t107 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:102:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + ^" in self::Extension|[]=(#t36, #t37, #t38) in #t38; + core::int localExtensionPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:102:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localExtensionPropertyGet = nullableClass.extensionProperty; ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(self::nullableClass); - core::int localExtensionPropertySet = let final Never #t108 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:103:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + core::int localExtensionPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:103:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localExtensionPropertySet = nullableClass.extensionProperty = 1; - ^^^^^^^^^^^^^^^^^" in let final core::int #t109 = 1 in let final void #t110 = self::Extension|set#extensionProperty(self::nullableClass, #t109) in #t109; - core::int localExtensionPropertyGetSet = let final self::Class? #t111 = self::nullableClass in let final Never #t112 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^^" in let final core::int #t40 = 1 in let final void #t41 = self::Extension|set#extensionProperty(self::nullableClass, #t40) in #t40; + core::int localExtensionPropertyGetSet = let final self::Class? #t42 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localExtensionPropertyGetSet = nullableClass.extensionProperty += 1; - ^^^^^^^^^^^^^^^^^" in let final core::int #t113 = (let final Never #t114 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^^" in let final core::int #t43 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localExtensionPropertyGetSet = nullableClass.extensionProperty += 1; - ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(#t111)).{core::num::+}(1){(core::num) → core::int} in let final void #t115 = self::Extension|set#extensionProperty(#t111, #t113) in #t113; - core::int localExtensionMethodInvocation = let final Never #t116 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:105:54: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(#t42).{core::num::+}(1){(core::num) → core::int} in let final void #t44 = self::Extension|set#extensionProperty(#t42, #t43) in #t43; + core::int localExtensionMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:105:54: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?. instead. var localExtensionMethodInvocation = nullableClass.extensionMethod(); ^^^^^^^^^^^^^^^" in self::Extension|extensionMethod(self::nullableClass); - () → core::int localExtensionMethodTearOff = let final Never #t117 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:106:51: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. + () → core::int localExtensionMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:106:51: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localExtensionMethodTearOff = nullableClass.extensionMethod; ^^^^^^^^^^^^^^^" in self::Extension|get#extensionMethod(self::nullableClass); - core::int localExtensionFunctionTypeImplicitCall = let final Never #t118 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:107:61: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + core::int localExtensionFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:107:61: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var localExtensionFunctionTypeImplicitCall = nullableClass(); ^" in self::Extension|call(self::nullableClass); - core::int localExtensionFunctionTypeExplicitCall = let final Never #t119 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:108:62: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. + core::int localExtensionFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:108:62: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?. instead. var localExtensionFunctionTypeExplicitCall = nullableClass.call(); ^^^^" in self::Extension|call(self::nullableClass); - () → core::int localExtensionFunctionTypeTearOff = let final Never #t120 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:109:57: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. + () → core::int localExtensionFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:109:57: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localExtensionFunctionTypeTearOff = nullableClass.call; ^^^^" in self::Extension|get#call(self::nullableClass); - dynamic localExtensionFunctionGetter = let final Never #t121 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:110:52: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + dynamic localExtensionFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:110:52: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var localExtensionFunctionGetter = nullableClass.extensionFunctionGetter(); ^" in self::Extension|get#extensionFunctionGetter(self::nullableClass)(); - void localExtensionFunctionTypeGetter = let final Never #t122 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:112:21: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + void localExtensionFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:112:21: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. nullableClass.extensionFunctionTypeGetter(); diff --git a/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.strong.transformed.expect new file mode 100644 index 00000000000..74aa2006c05 --- /dev/null +++ b/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.strong.transformed.expect @@ -0,0 +1,836 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:37:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. +// var topLevelBinary = nullableInt + 0; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:38:21: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. +// var topLevelUnary = -nullableInt; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:39:35: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var topLevelIndexGet = nullableMap[0]; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:40:35: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var topLevelIndexSet = nullableMap[0] = 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var topLevelIndexGetSet = nullableMap[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var topLevelIndexGetSet = nullableMap[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:42:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelPropertyGet = nullableClass.property; +// ^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:43:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelPropertySet = nullableClass.property = 1; +// ^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelPropertyGetSet = nullableClass.property += 1; +// ^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:45:46: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?. instead. +// var topLevelMethodInvocation = nullableClass.method(); +// ^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:46:43: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelMethodTearOff = nullableClass.method; +// ^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:47:52: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?.call instead. +// var topLevelFunctionImplicitCall = nullableFunction(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:48:53: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?. instead. +// var topLevelFunctionExplicitCall = nullableFunction.call(); +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:49:48: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. +// - 'Function' is from 'dart:core'. +// Try accessing using ?. instead. +// var topLevelFunctionTearOff = nullableFunction.call; +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:50:60: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +// Try calling using ?.call instead. +// var topLevelFunctionTypeImplicitCall = nullableFunctionType(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:51:61: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. +// Try calling using ?. instead. +// var topLevelFunctionTypeExplicitCall = nullableFunctionType.call(); +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:52:56: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. +// Try accessing using ?. instead. +// var topLevelFunctionTypeTearOff = nullableFunctionType.call; +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:53:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var topLevelFunctionField = nullableClass.functionField(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:54:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var topLevelFunctionTypeField = nullableClass.functionTypeField(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:55:44: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var topLevelFunctionGetter = nullableClass.functionGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:56:48: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var topLevelFunctionTypeGetter = nullableClass.functionTypeGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:58:45: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var topLevelExtensionBinary = nullableClass + 0; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:59:30: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var topLevelExtensionUnary = -nullableClass; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:60:46: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var topLevelExtensionIndexGet = nullableClass[0]; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:61:46: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var topLevelExtensionIndexSet = nullableClass[0] = 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var topLevelExtensionIndexGetSet = nullableClass[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var topLevelExtensionIndexGetSet = nullableClass[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:63:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelExtensionPropertyGet = nullableClass.extensionProperty; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:64:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelExtensionPropertySet = nullableClass.extensionProperty = 1; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelExtensionPropertyGetSet = nullableClass.extensionProperty += 1; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:66:55: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?. instead. +// var topLevelExtensionMethodInvocation = nullableClass.extensionMethod(); +// ^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:67:52: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelExtensionMethodTearOff = nullableClass.extensionMethod; +// ^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:68:62: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var topLevelExtensionFunctionTypeImplicitCall = nullableClass(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:69:63: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?. instead. +// var topLevelExtensionFunctionTypeExplicitCall = nullableClass.call(); +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:70:58: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelExtensionFunctionTypeTearOff = nullableClass.call; +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:71:53: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var topLevelExtensionFunctionGetter = nullableClass.extensionFunctionGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:73:19: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// nullableClass.extensionFunctionTypeGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:76:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. +// var localBinary = nullableInt + 0; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:77:20: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. +// var localUnary = -nullableInt; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:78:34: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var localIndexGet = nullableMap[0]; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:79:34: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var localIndexSet = nullableMap[0] = 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var localIndexGetSet = nullableMap[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var localIndexGetSet = nullableMap[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:81:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localPropertyGet = nullableClass.property; +// ^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:82:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localPropertySet = nullableClass.property = 1; +// ^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localPropertyGetSet = nullableClass.property += 1; +// ^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:84:45: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?. instead. +// var localMethodInvocation = nullableClass.method(); +// ^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:85:42: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localMethodTearOff = nullableClass.method; +// ^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:86:51: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?.call instead. +// var localFunctionImplicitCall = nullableFunction(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:87:52: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?. instead. +// var localFunctionExplicitCall = nullableFunction.call(); +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:88:47: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. +// - 'Function' is from 'dart:core'. +// Try accessing using ?. instead. +// var localFunctionTearOff = nullableFunction.call; +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:89:59: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +// Try calling using ?.call instead. +// var localFunctionTypeImplicitCall = nullableFunctionType(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:90:60: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. +// Try calling using ?. instead. +// var localFunctionTypeExplicitCall = nullableFunctionType.call(); +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:91:55: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. +// Try accessing using ?. instead. +// var localFunctionTypeTearOff = nullableFunctionType.call; +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:92:42: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var localFunctionField = nullableClass.functionField(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:93:46: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var localFunctionTypeField = nullableClass.functionTypeField(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:94:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var localFunctionGetter = nullableClass.functionGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:95:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var localFunctionTypeGetter = nullableClass.functionTypeGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:97:44: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var localExtensionBinary = nullableClass + 0; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:98:29: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var localExtensionUnary = -nullableClass; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:99:45: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var localExtensionIndexGet = nullableClass[0]; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:100:45: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var localExtensionIndexSet = nullableClass[0] = 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var localExtensionIndexGetSet = nullableClass[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var localExtensionIndexGetSet = nullableClass[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:102:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localExtensionPropertyGet = nullableClass.extensionProperty; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:103:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localExtensionPropertySet = nullableClass.extensionProperty = 1; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localExtensionPropertyGetSet = nullableClass.extensionProperty += 1; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:105:54: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?. instead. +// var localExtensionMethodInvocation = nullableClass.extensionMethod(); +// ^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:106:51: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localExtensionMethodTearOff = nullableClass.extensionMethod; +// ^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:107:61: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var localExtensionFunctionTypeImplicitCall = nullableClass(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:108:62: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?. instead. +// var localExtensionFunctionTypeExplicitCall = nullableClass.call(); +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:109:57: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localExtensionFunctionTypeTearOff = nullableClass.call; +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:110:52: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var localExtensionFunctionGetter = nullableClass.extensionFunctionGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:112:21: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// nullableClass.extensionFunctionTypeGetter(); +// ^ +// +import self as self; +import "dart:core" as core; + +class Class extends core::Object { + field core::int property = 0; + field core::Function functionField = () → Null {}; + field () → void functionTypeField = () → void {}; + synthetic constructor •() → self::Class + : super core::Object::•() + ; + method method() → core::int + return 0; + get functionGetter() → core::Function + return () → Null {}; + get functionTypeGetter() → () → void + return () → void {}; +} +extension Extension on self::Class { + operator + = self::Extension|+; + operator unary- = self::Extension|unary-; + operator [] = self::Extension|[]; + operator []= = self::Extension|[]=; + method call = self::Extension|call; + tearoff call = self::Extension|get#call; + get extensionProperty = self::Extension|get#extensionProperty; + method extensionMethod = self::Extension|extensionMethod; + tearoff extensionMethod = self::Extension|get#extensionMethod; + get extensionFunctionGetter = self::Extension|get#extensionFunctionGetter; + get extensionFunctionTypeGetter = self::Extension|get#extensionFunctionTypeGetter; + set extensionProperty = self::Extension|set#extensionProperty; +} +static field core::num topLevelBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:37:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. +var topLevelBinary = nullableInt + 0; + ^" in self::nullableInt.{core::num::+}(0){(core::num) → core::num}; +static field core::int topLevelUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:38:21: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. +var topLevelUnary = -nullableInt; + ^" in self::nullableInt.{core::int::unary-}(){() → core::int}; +static field dynamic topLevelIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:39:35: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. +var topLevelIndexGet = nullableMap[0]; + ^" in self::nullableMap.{core::Map::[]}{}.(0){(core::Object?) → dynamic}; +static field core::int topLevelIndexSet = let final core::Map? #t1 = self::nullableMap in let final core::int #t2 = 0 in let final core::int #t3 = 1 in let final void #t4 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:40:35: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. +var topLevelIndexSet = nullableMap[0] = 1; + ^" in #t1.{core::Map::[]=}{}.(#t2, #t3){(dynamic, dynamic) → void} in #t3; +static field dynamic topLevelIndexGetSet = let final core::Map? #t5 = self::nullableMap in let final core::int #t6 = 0 in let final dynamic #t7 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. +var topLevelIndexGetSet = nullableMap[0] += 1; + ^" in #t5.{core::Map::[]}{}.(#t6){(core::Object?) → dynamic}{dynamic}.+(1) in let final void #t8 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. +var topLevelIndexGetSet = nullableMap[0] += 1; + ^" in #t5.{core::Map::[]=}{}.(#t6, #t7){(dynamic, dynamic) → void} in #t7; +static field core::int topLevelPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:42:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelPropertyGet = nullableClass.property; + ^^^^^^^^" in self::nullableClass.{self::Class::property}{}.{core::int}; +static field core::int topLevelPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:43:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelPropertySet = nullableClass.property = 1; + ^^^^^^^^" in self::nullableClass.{self::Class::property}{}. = 1; +static field core::int topLevelPropertyGetSet = let final self::Class? #t9 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelPropertyGetSet = nullableClass.property += 1; + ^^^^^^^^" in #t9.{self::Class::property}{}. = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelPropertyGetSet = nullableClass.property += 1; + ^^^^^^^^" in #t9.{self::Class::property}{}.{core::int}.{core::num::+}(1){(core::num) → core::int}; +static field core::int topLevelMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:45:46: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?. instead. +var topLevelMethodInvocation = nullableClass.method(); + ^^^^^^" in self::nullableClass.{self::Class::method}{}.(){() → core::int}; +static field () → core::int topLevelMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:46:43: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelMethodTearOff = nullableClass.method; + ^^^^^^" in self::nullableClass.{self::Class::method}{}.{() → core::int}; +static field dynamic topLevelFunctionImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:47:52: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?.call instead. +var topLevelFunctionImplicitCall = nullableFunction(); + ^" in self::nullableFunction{}.(); +static field dynamic topLevelFunctionExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:48:53: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?. instead. +var topLevelFunctionExplicitCall = nullableFunction.call(); + ^^^^" in self::nullableFunction{}.(); +static field core::Function? topLevelFunctionTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:49:48: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. + - 'Function' is from 'dart:core'. +Try accessing using ?. instead. +var topLevelFunctionTearOff = nullableFunction.call; + ^^^^" in self::nullableFunction.call; +static field void topLevelFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:50:60: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +Try calling using ?.call instead. +var topLevelFunctionTypeImplicitCall = nullableFunctionType(); + ^" in self::nullableFunctionType{}.(){() →? void}; +static field void topLevelFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:51:61: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. +Try calling using ?. instead. +var topLevelFunctionTypeExplicitCall = nullableFunctionType.call(); + ^^^^" in self::nullableFunctionType{}.(){() →? void}; +static field () →? void topLevelFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:52:56: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. +Try accessing using ?. instead. +var topLevelFunctionTypeTearOff = nullableFunctionType.call; + ^^^^" in self::nullableFunctionType.call; +static field dynamic topLevelFunctionField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:53:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. +var topLevelFunctionField = nullableClass.functionField(); + ^" in self::nullableClass.{self::Class::functionField}{}.{core::Function}(); +static field void topLevelFunctionTypeField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:54:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. +var topLevelFunctionTypeField = nullableClass.functionTypeField(); + ^" in self::nullableClass.{self::Class::functionTypeField}{}.{() → void}(){() → void}; +static field dynamic topLevelFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:55:44: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. +var topLevelFunctionGetter = nullableClass.functionGetter(); + ^" in self::nullableClass.{self::Class::functionGetter}{}.{core::Function}(); +static field void topLevelFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:56:48: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. +var topLevelFunctionTypeGetter = nullableClass.functionTypeGetter(); + ^" in self::nullableClass.{self::Class::functionTypeGetter}{}.{() → void}(){() → void}; +static field core::int topLevelExtensionBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:58:45: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +var topLevelExtensionBinary = nullableClass + 0; + ^" in self::Extension|+(self::nullableClass, 0); +static field core::int topLevelExtensionUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:59:30: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +var topLevelExtensionUnary = -nullableClass; + ^" in self::Extension|unary-(self::nullableClass); +static field core::int topLevelExtensionIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:60:46: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +var topLevelExtensionIndexGet = nullableClass[0]; + ^" in self::Extension|[](self::nullableClass, 0); +static field core::int topLevelExtensionIndexSet = let final self::Class? #t10 = self::nullableClass in let final core::int #t11 = 0 in let final core::int #t12 = 1 in let final void #t13 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:61:46: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +var topLevelExtensionIndexSet = nullableClass[0] = 1; + ^" in self::Extension|[]=(#t10, #t11, #t12) in #t12; +static field core::int topLevelExtensionIndexGetSet = let final self::Class? #t14 = self::nullableClass in let final core::int #t15 = 0 in let final core::int #t16 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +var topLevelExtensionIndexGetSet = nullableClass[0] += 1; + ^" in self::Extension|[](#t14, #t15).{core::num::+}(1){(core::num) → core::int} in let final void #t17 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +var topLevelExtensionIndexGetSet = nullableClass[0] += 1; + ^" in self::Extension|[]=(#t14, #t15, #t16) in #t16; +static field core::int topLevelExtensionPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:63:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelExtensionPropertyGet = nullableClass.extensionProperty; + ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(self::nullableClass); +static field core::int topLevelExtensionPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:64:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelExtensionPropertySet = nullableClass.extensionProperty = 1; + ^^^^^^^^^^^^^^^^^" in let final core::int #t18 = 1 in let final void #t19 = self::Extension|set#extensionProperty(self::nullableClass, #t18) in #t18; +static field core::int topLevelExtensionPropertyGetSet = let final self::Class? #t20 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelExtensionPropertyGetSet = nullableClass.extensionProperty += 1; + ^^^^^^^^^^^^^^^^^" in let final core::int #t21 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelExtensionPropertyGetSet = nullableClass.extensionProperty += 1; + ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(#t20).{core::num::+}(1){(core::num) → core::int} in let final void #t22 = self::Extension|set#extensionProperty(#t20, #t21) in #t21; +static field core::int topLevelExtensionMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:66:55: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?. instead. +var topLevelExtensionMethodInvocation = nullableClass.extensionMethod(); + ^^^^^^^^^^^^^^^" in self::Extension|extensionMethod(self::nullableClass); +static field () → core::int topLevelExtensionMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:67:52: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelExtensionMethodTearOff = nullableClass.extensionMethod; + ^^^^^^^^^^^^^^^" in self::Extension|get#extensionMethod(self::nullableClass); +static field core::int topLevelExtensionFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:68:62: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. +var topLevelExtensionFunctionTypeImplicitCall = nullableClass(); + ^" in self::Extension|call(self::nullableClass); +static field core::int topLevelExtensionFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:69:63: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?. instead. +var topLevelExtensionFunctionTypeExplicitCall = nullableClass.call(); + ^^^^" in self::Extension|call(self::nullableClass); +static field () → core::int topLevelExtensionFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:70:58: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelExtensionFunctionTypeTearOff = nullableClass.call; + ^^^^" in self::Extension|get#call(self::nullableClass); +static field dynamic topLevelExtensionFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:71:53: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. +var topLevelExtensionFunctionGetter = nullableClass.extensionFunctionGetter(); + ^" in self::Extension|get#extensionFunctionGetter(self::nullableClass)(); +static field void topLevelExtensionFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:73:19: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + nullableClass.extensionFunctionTypeGetter(); + ^" in self::Extension|get#extensionFunctionTypeGetter(self::nullableClass)(){() → void}; +static method Extension|+(lowered final self::Class #this, core::int value) → core::int + return 0; +static method Extension|unary-(lowered final self::Class #this) → core::int + return 0; +static method Extension|[](lowered final self::Class #this, core::int index) → core::int + return 0; +static method Extension|[]=(lowered final self::Class #this, core::int index, core::int value) → void {} +static method Extension|call(lowered final self::Class #this) → core::int + return 0; +static method Extension|get#call(lowered final self::Class #this) → () → core::int + return () → core::int => self::Extension|call(#this); +static method Extension|get#extensionProperty(lowered final self::Class #this) → core::int + return 0; +static method Extension|set#extensionProperty(lowered final self::Class #this, core::int value) → void {} +static method Extension|extensionMethod(lowered final self::Class #this) → core::int + return 0; +static method Extension|get#extensionMethod(lowered final self::Class #this) → () → core::int + return () → core::int => self::Extension|extensionMethod(#this); +static method Extension|get#extensionFunctionGetter(lowered final self::Class #this) → core::Function + return () → Null {}; +static method Extension|get#extensionFunctionTypeGetter(lowered final self::Class #this) → () → void + return () → void {}; +static get nullableFunction() → core::Function? + return () → Null {}; +static get nullableFunctionType() → () →? void + return () → void {}; +static get nullableInt() → core::int? + return 0; +static get nullableMap() → core::Map? + return {}; +static get nullableClass() → self::Class? + return new self::Class::•(); +static method test() → dynamic { + core::num localBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:76:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + var localBinary = nullableInt + 0; + ^" in self::nullableInt.{core::num::+}(0){(core::num) → core::num}; + core::int localUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:77:20: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + var localUnary = -nullableInt; + ^" in self::nullableInt.{core::int::unary-}(){() → core::int}; + dynamic localIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:78:34: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. + var localIndexGet = nullableMap[0]; + ^" in self::nullableMap.{core::Map::[]}{}.(0){(core::Object?) → dynamic}; + core::int localIndexSet = let final core::Map? #t23 = self::nullableMap in let final core::int #t24 = 0 in let final core::int #t25 = 1 in let final void #t26 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:79:34: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. + var localIndexSet = nullableMap[0] = 1; + ^" in #t23.{core::Map::[]=}{}.(#t24, #t25){(dynamic, dynamic) → void} in #t25; + dynamic localIndexGetSet = let final core::Map? #t27 = self::nullableMap in let final core::int #t28 = 0 in let final dynamic #t29 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. + var localIndexGetSet = nullableMap[0] += 1; + ^" in #t27.{core::Map::[]}{}.(#t28){(core::Object?) → dynamic}{dynamic}.+(1) in let final void #t30 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. + var localIndexGetSet = nullableMap[0] += 1; + ^" in #t27.{core::Map::[]=}{}.(#t28, #t29){(dynamic, dynamic) → void} in #t29; + core::int localPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:81:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localPropertyGet = nullableClass.property; + ^^^^^^^^" in self::nullableClass.{self::Class::property}{}.{core::int}; + core::int localPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:82:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localPropertySet = nullableClass.property = 1; + ^^^^^^^^" in self::nullableClass.{self::Class::property}{}. = 1; + core::int localPropertyGetSet = let final self::Class? #t31 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localPropertyGetSet = nullableClass.property += 1; + ^^^^^^^^" in #t31.{self::Class::property}{}. = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localPropertyGetSet = nullableClass.property += 1; + ^^^^^^^^" in #t31.{self::Class::property}{}.{core::int}.{core::num::+}(1){(core::num) → core::int}; + core::int localMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:84:45: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?. instead. + var localMethodInvocation = nullableClass.method(); + ^^^^^^" in self::nullableClass.{self::Class::method}{}.(){() → core::int}; + () → core::int localMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:85:42: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localMethodTearOff = nullableClass.method; + ^^^^^^" in self::nullableClass.{self::Class::method}{}.{() → core::int}; + dynamic localFunctionImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:86:51: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?.call instead. + var localFunctionImplicitCall = nullableFunction(); + ^" in self::nullableFunction{}.(); + dynamic localFunctionExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:87:52: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?. instead. + var localFunctionExplicitCall = nullableFunction.call(); + ^^^^" in self::nullableFunction{}.(); + core::Function? localFunctionTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:88:47: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. + - 'Function' is from 'dart:core'. +Try accessing using ?. instead. + var localFunctionTearOff = nullableFunction.call; + ^^^^" in self::nullableFunction.call; + void localFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:89:59: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +Try calling using ?.call instead. + var localFunctionTypeImplicitCall = nullableFunctionType(); + ^" in self::nullableFunctionType{}.(){() →? void}; + void localFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:90:60: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. +Try calling using ?. instead. + var localFunctionTypeExplicitCall = nullableFunctionType.call(); + ^^^^" in self::nullableFunctionType{}.(){() →? void}; + () →? void localFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:91:55: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. +Try accessing using ?. instead. + var localFunctionTypeTearOff = nullableFunctionType.call; + ^^^^" in self::nullableFunctionType.call; + dynamic localFunctionField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:92:42: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + var localFunctionField = nullableClass.functionField(); + ^" in self::nullableClass.{self::Class::functionField}{}.{core::Function}(); + void localFunctionTypeField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:93:46: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + var localFunctionTypeField = nullableClass.functionTypeField(); + ^" in self::nullableClass.{self::Class::functionTypeField}{}.{() → void}(){() → void}; + dynamic localFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:94:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + var localFunctionGetter = nullableClass.functionGetter(); + ^" in self::nullableClass.{self::Class::functionGetter}{}.{core::Function}(); + void localFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:95:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + var localFunctionTypeGetter = nullableClass.functionTypeGetter(); + ^" in self::nullableClass.{self::Class::functionTypeGetter}{}.{() → void}(){() → void}; + core::int localExtensionBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:97:44: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. + var localExtensionBinary = nullableClass + 0; + ^" in self::Extension|+(self::nullableClass, 0); + core::int localExtensionUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:98:29: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. + var localExtensionUnary = -nullableClass; + ^" in self::Extension|unary-(self::nullableClass); + core::int localExtensionIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:99:45: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. + var localExtensionIndexGet = nullableClass[0]; + ^" in self::Extension|[](self::nullableClass, 0); + core::int localExtensionIndexSet = let final self::Class? #t32 = self::nullableClass in let final core::int #t33 = 0 in let final core::int #t34 = 1 in let final void #t35 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:100:45: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. + var localExtensionIndexSet = nullableClass[0] = 1; + ^" in self::Extension|[]=(#t32, #t33, #t34) in #t34; + core::int localExtensionIndexGetSet = let final self::Class? #t36 = self::nullableClass in let final core::int #t37 = 0 in let final core::int #t38 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. + var localExtensionIndexGetSet = nullableClass[0] += 1; + ^" in self::Extension|[](#t36, #t37).{core::num::+}(1){(core::num) → core::int} in let final void #t39 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. + var localExtensionIndexGetSet = nullableClass[0] += 1; + ^" in self::Extension|[]=(#t36, #t37, #t38) in #t38; + core::int localExtensionPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:102:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localExtensionPropertyGet = nullableClass.extensionProperty; + ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(self::nullableClass); + core::int localExtensionPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:103:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localExtensionPropertySet = nullableClass.extensionProperty = 1; + ^^^^^^^^^^^^^^^^^" in let final core::int #t40 = 1 in let final void #t41 = self::Extension|set#extensionProperty(self::nullableClass, #t40) in #t40; + core::int localExtensionPropertyGetSet = let final self::Class? #t42 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localExtensionPropertyGetSet = nullableClass.extensionProperty += 1; + ^^^^^^^^^^^^^^^^^" in let final core::int #t43 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localExtensionPropertyGetSet = nullableClass.extensionProperty += 1; + ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(#t42).{core::num::+}(1){(core::num) → core::int} in let final void #t44 = self::Extension|set#extensionProperty(#t42, #t43) in #t43; + core::int localExtensionMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:105:54: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?. instead. + var localExtensionMethodInvocation = nullableClass.extensionMethod(); + ^^^^^^^^^^^^^^^" in self::Extension|extensionMethod(self::nullableClass); + () → core::int localExtensionMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:106:51: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localExtensionMethodTearOff = nullableClass.extensionMethod; + ^^^^^^^^^^^^^^^" in self::Extension|get#extensionMethod(self::nullableClass); + core::int localExtensionFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:107:61: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + var localExtensionFunctionTypeImplicitCall = nullableClass(); + ^" in self::Extension|call(self::nullableClass); + core::int localExtensionFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:108:62: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?. instead. + var localExtensionFunctionTypeExplicitCall = nullableClass.call(); + ^^^^" in self::Extension|call(self::nullableClass); + () → core::int localExtensionFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:109:57: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localExtensionFunctionTypeTearOff = nullableClass.call; + ^^^^" in self::Extension|get#call(self::nullableClass); + dynamic localExtensionFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:110:52: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + var localExtensionFunctionGetter = nullableClass.extensionFunctionGetter(); + ^" in self::Extension|get#extensionFunctionGetter(self::nullableClass)(); + void localExtensionFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:112:21: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + nullableClass.extensionFunctionTypeGetter(); + ^" in self::Extension|get#extensionFunctionTypeGetter(self::nullableClass)(){() → void}; +} +static method main() → dynamic {} + + +Extra constant evaluation status: +Evaluated: VariableGet @ org-dartlang-testcase:///potentially_nullable_access.dart:79:40 -> IntConstant(1) +Evaluated: VariableGet @ org-dartlang-testcase:///potentially_nullable_access.dart:100:51 -> IntConstant(1) +Evaluated: VariableGet @ org-dartlang-testcase:///potentially_nullable_access.dart:40:41 -> IntConstant(1) +Evaluated: VariableGet @ org-dartlang-testcase:///potentially_nullable_access.dart:61:52 -> IntConstant(1) +Extra constant evaluation: evaluated: 76, effectively constant: 4 diff --git a/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.weak.expect b/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.weak.expect index d77513d092b..939fe87548d 100644 --- a/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.weak.expect @@ -443,176 +443,176 @@ extension Extension on self::Class { get extensionFunctionTypeGetter = self::Extension|get#extensionFunctionTypeGetter; set extensionProperty = self::Extension|set#extensionProperty; } -static field core::num topLevelBinary = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:37:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. +static field core::num topLevelBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:37:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. var topLevelBinary = nullableInt + 0; ^" in self::nullableInt.{core::num::+}(0){(core::num) → core::num}; -static field core::int topLevelUnary = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:38:21: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. +static field core::int topLevelUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:38:21: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. var topLevelUnary = -nullableInt; ^" in self::nullableInt.{core::int::unary-}(){() → core::int}; -static field dynamic topLevelIndexGet = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:39:35: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. +static field dynamic topLevelIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:39:35: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var topLevelIndexGet = nullableMap[0]; ^" in self::nullableMap.{core::Map::[]}{}.(0){(core::Object?) → dynamic}; -static field core::int topLevelIndexSet = let final core::Map? #t4 = self::nullableMap in let final core::int #t5 = 0 in let final core::int #t6 = 1 in let final void #t7 = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:40:35: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. +static field core::int topLevelIndexSet = let final core::Map? #t1 = self::nullableMap in let final core::int #t2 = 0 in let final core::int #t3 = 1 in let final void #t4 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:40:35: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var topLevelIndexSet = nullableMap[0] = 1; - ^" in #t4.{core::Map::[]=}{}.(#t5, #t6){(dynamic, dynamic) → void} in #t6; -static field dynamic topLevelIndexGetSet = let final core::Map? #t9 = self::nullableMap in let final core::int #t10 = 0 in let final dynamic #t11 = (let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + ^" in #t1.{core::Map::[]=}{}.(#t2, #t3){(dynamic, dynamic) → void} in #t3; +static field dynamic topLevelIndexGetSet = let final core::Map? #t5 = self::nullableMap in let final core::int #t6 = 0 in let final dynamic #t7 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var topLevelIndexGetSet = nullableMap[0] += 1; - ^" in #t9.{core::Map::[]}{}.(#t10){(core::Object?) → dynamic}){dynamic}.+(1) in let final void #t13 = let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + ^" in #t5.{core::Map::[]}{}.(#t6){(core::Object?) → dynamic}{dynamic}.+(1) in let final void #t8 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var topLevelIndexGetSet = nullableMap[0] += 1; - ^" in #t9.{core::Map::[]=}{}.(#t10, #t11){(dynamic, dynamic) → void} in #t11; -static field core::int topLevelPropertyGet = let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:42:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + ^" in #t5.{core::Map::[]=}{}.(#t6, #t7){(dynamic, dynamic) → void} in #t7; +static field core::int topLevelPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:42:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelPropertyGet = nullableClass.property; ^^^^^^^^" in self::nullableClass.{self::Class::property}{}.{core::int}; -static field core::int topLevelPropertySet = let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:43:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +static field core::int topLevelPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:43:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelPropertySet = nullableClass.property = 1; ^^^^^^^^" in self::nullableClass.{self::Class::property}{}. = 1; -static field core::int topLevelPropertyGetSet = let final self::Class? #t17 = self::nullableClass in let final Never #t18 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +static field core::int topLevelPropertyGetSet = let final self::Class? #t9 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelPropertyGetSet = nullableClass.property += 1; - ^^^^^^^^" in #t17.{self::Class::property}{}. = (let final Never #t19 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^" in #t9.{self::Class::property}{}. = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelPropertyGetSet = nullableClass.property += 1; - ^^^^^^^^" in #t17.{self::Class::property}{}.{core::int}).{core::num::+}(1){(core::num) → core::int}; -static field core::int topLevelMethodInvocation = let final Never #t20 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:45:46: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. + ^^^^^^^^" in #t9.{self::Class::property}{}.{core::int}.{core::num::+}(1){(core::num) → core::int}; +static field core::int topLevelMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:45:46: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?. instead. var topLevelMethodInvocation = nullableClass.method(); ^^^^^^" in self::nullableClass.{self::Class::method}{}.(){() → core::int}; -static field () → core::int topLevelMethodTearOff = let final Never #t21 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:46:43: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. +static field () → core::int topLevelMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:46:43: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelMethodTearOff = nullableClass.method; ^^^^^^" in self::nullableClass.{self::Class::method}{}.{() → core::int}; -static field dynamic topLevelFunctionImplicitCall = let final Never #t22 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:47:52: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. +static field dynamic topLevelFunctionImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:47:52: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. - 'Function' is from 'dart:core'. Try calling using ?.call instead. var topLevelFunctionImplicitCall = nullableFunction(); ^" in self::nullableFunction{}.(); -static field dynamic topLevelFunctionExplicitCall = let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:48:53: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. +static field dynamic topLevelFunctionExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:48:53: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. - 'Function' is from 'dart:core'. Try calling using ?. instead. var topLevelFunctionExplicitCall = nullableFunction.call(); ^^^^" in self::nullableFunction{}.(); -static field core::Function? topLevelFunctionTearOff = let final Never #t24 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:49:48: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. +static field core::Function? topLevelFunctionTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:49:48: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. - 'Function' is from 'dart:core'. Try accessing using ?. instead. var topLevelFunctionTearOff = nullableFunction.call; ^^^^" in self::nullableFunction.call; -static field void topLevelFunctionTypeImplicitCall = let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:50:60: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +static field void topLevelFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:50:60: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. var topLevelFunctionTypeImplicitCall = nullableFunctionType(); ^" in self::nullableFunctionType{}.(){() →? void}; -static field void topLevelFunctionTypeExplicitCall = let final Never #t26 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:51:61: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. +static field void topLevelFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:51:61: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. Try calling using ?. instead. var topLevelFunctionTypeExplicitCall = nullableFunctionType.call(); ^^^^" in self::nullableFunctionType{}.(){() →? void}; -static field () →? void topLevelFunctionTypeTearOff = let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:52:56: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. +static field () →? void topLevelFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:52:56: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. Try accessing using ?. instead. var topLevelFunctionTypeTearOff = nullableFunctionType.call; ^^^^" in self::nullableFunctionType.call; -static field dynamic topLevelFunctionField = let final Never #t28 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:53:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field dynamic topLevelFunctionField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:53:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var topLevelFunctionField = nullableClass.functionField(); ^" in self::nullableClass.{self::Class::functionField}{}.{core::Function}(); -static field void topLevelFunctionTypeField = let final Never #t29 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:54:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field void topLevelFunctionTypeField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:54:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var topLevelFunctionTypeField = nullableClass.functionTypeField(); ^" in self::nullableClass.{self::Class::functionTypeField}{}.{() → void}(){() → void}; -static field dynamic topLevelFunctionGetter = let final Never #t30 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:55:44: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field dynamic topLevelFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:55:44: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var topLevelFunctionGetter = nullableClass.functionGetter(); ^" in self::nullableClass.{self::Class::functionGetter}{}.{core::Function}(); -static field void topLevelFunctionTypeGetter = let final Never #t31 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:56:48: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field void topLevelFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:56:48: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var topLevelFunctionTypeGetter = nullableClass.functionTypeGetter(); ^" in self::nullableClass.{self::Class::functionTypeGetter}{}.{() → void}(){() → void}; -static field core::int topLevelExtensionBinary = let final Never #t32 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:58:45: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. +static field core::int topLevelExtensionBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:58:45: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var topLevelExtensionBinary = nullableClass + 0; ^" in self::Extension|+(self::nullableClass, 0); -static field core::int topLevelExtensionUnary = let final Never #t33 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:59:30: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. +static field core::int topLevelExtensionUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:59:30: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var topLevelExtensionUnary = -nullableClass; ^" in self::Extension|unary-(self::nullableClass); -static field core::int topLevelExtensionIndexGet = let final Never #t34 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:60:46: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. +static field core::int topLevelExtensionIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:60:46: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var topLevelExtensionIndexGet = nullableClass[0]; ^" in self::Extension|[](self::nullableClass, 0); -static field core::int topLevelExtensionIndexSet = let final self::Class? #t35 = self::nullableClass in let final core::int #t36 = 0 in let final core::int #t37 = 1 in let final void #t38 = let final Never #t39 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:61:46: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. +static field core::int topLevelExtensionIndexSet = let final self::Class? #t10 = self::nullableClass in let final core::int #t11 = 0 in let final core::int #t12 = 1 in let final void #t13 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:61:46: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var topLevelExtensionIndexSet = nullableClass[0] = 1; - ^" in self::Extension|[]=(#t35, #t36, #t37) in #t37; -static field core::int topLevelExtensionIndexGetSet = let final self::Class? #t40 = self::nullableClass in let final core::int #t41 = 0 in let final core::int #t42 = (let final Never #t43 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + ^" in self::Extension|[]=(#t10, #t11, #t12) in #t12; +static field core::int topLevelExtensionIndexGetSet = let final self::Class? #t14 = self::nullableClass in let final core::int #t15 = 0 in let final core::int #t16 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var topLevelExtensionIndexGetSet = nullableClass[0] += 1; - ^" in self::Extension|[](#t40, #t41)).{core::num::+}(1){(core::num) → core::int} in let final void #t44 = let final Never #t45 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + ^" in self::Extension|[](#t14, #t15).{core::num::+}(1){(core::num) → core::int} in let final void #t17 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var topLevelExtensionIndexGetSet = nullableClass[0] += 1; - ^" in self::Extension|[]=(#t40, #t41, #t42) in #t42; -static field core::int topLevelExtensionPropertyGet = let final Never #t46 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:63:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + ^" in self::Extension|[]=(#t14, #t15, #t16) in #t16; +static field core::int topLevelExtensionPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:63:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelExtensionPropertyGet = nullableClass.extensionProperty; ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(self::nullableClass); -static field core::int topLevelExtensionPropertySet = let final Never #t47 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:64:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +static field core::int topLevelExtensionPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:64:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelExtensionPropertySet = nullableClass.extensionProperty = 1; - ^^^^^^^^^^^^^^^^^" in let final core::int #t48 = 1 in let final void #t49 = self::Extension|set#extensionProperty(self::nullableClass, #t48) in #t48; -static field core::int topLevelExtensionPropertyGetSet = let final self::Class? #t50 = self::nullableClass in let final Never #t51 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^^" in let final core::int #t18 = 1 in let final void #t19 = self::Extension|set#extensionProperty(self::nullableClass, #t18) in #t18; +static field core::int topLevelExtensionPropertyGetSet = let final self::Class? #t20 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelExtensionPropertyGetSet = nullableClass.extensionProperty += 1; - ^^^^^^^^^^^^^^^^^" in let final core::int #t52 = (let final Never #t53 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^^" in let final core::int #t21 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelExtensionPropertyGetSet = nullableClass.extensionProperty += 1; - ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(#t50)).{core::num::+}(1){(core::num) → core::int} in let final void #t54 = self::Extension|set#extensionProperty(#t50, #t52) in #t52; -static field core::int topLevelExtensionMethodInvocation = let final Never #t55 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:66:55: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(#t20).{core::num::+}(1){(core::num) → core::int} in let final void #t22 = self::Extension|set#extensionProperty(#t20, #t21) in #t21; +static field core::int topLevelExtensionMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:66:55: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?. instead. var topLevelExtensionMethodInvocation = nullableClass.extensionMethod(); ^^^^^^^^^^^^^^^" in self::Extension|extensionMethod(self::nullableClass); -static field () → core::int topLevelExtensionMethodTearOff = let final Never #t56 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:67:52: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. +static field () → core::int topLevelExtensionMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:67:52: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelExtensionMethodTearOff = nullableClass.extensionMethod; ^^^^^^^^^^^^^^^" in self::Extension|get#extensionMethod(self::nullableClass); -static field core::int topLevelExtensionFunctionTypeImplicitCall = let final Never #t57 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:68:62: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field core::int topLevelExtensionFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:68:62: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var topLevelExtensionFunctionTypeImplicitCall = nullableClass(); ^" in self::Extension|call(self::nullableClass); -static field core::int topLevelExtensionFunctionTypeExplicitCall = let final Never #t58 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:69:63: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. +static field core::int topLevelExtensionFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:69:63: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?. instead. var topLevelExtensionFunctionTypeExplicitCall = nullableClass.call(); ^^^^" in self::Extension|call(self::nullableClass); -static field () → core::int topLevelExtensionFunctionTypeTearOff = let final Never #t59 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:70:58: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. +static field () → core::int topLevelExtensionFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:70:58: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var topLevelExtensionFunctionTypeTearOff = nullableClass.call; ^^^^" in self::Extension|get#call(self::nullableClass); -static field dynamic topLevelExtensionFunctionGetter = let final Never #t60 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:71:53: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field dynamic topLevelExtensionFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:71:53: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var topLevelExtensionFunctionGetter = nullableClass.extensionFunctionGetter(); ^" in self::Extension|get#extensionFunctionGetter(self::nullableClass)(); -static field void topLevelExtensionFunctionTypeGetter = let final Never #t61 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:73:19: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +static field void topLevelExtensionFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:73:19: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. nullableClass.extensionFunctionTypeGetter(); @@ -650,176 +650,176 @@ static get nullableMap() → core::Map? static get nullableClass() → self::Class? return new self::Class::•(); static method test() → dynamic { - core::num localBinary = let final Never #t62 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:76:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + core::num localBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:76:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. var localBinary = nullableInt + 0; ^" in self::nullableInt.{core::num::+}(0){(core::num) → core::num}; - core::int localUnary = let final Never #t63 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:77:20: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + core::int localUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:77:20: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. var localUnary = -nullableInt; ^" in self::nullableInt.{core::int::unary-}(){() → core::int}; - dynamic localIndexGet = let final Never #t64 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:78:34: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + dynamic localIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:78:34: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var localIndexGet = nullableMap[0]; ^" in self::nullableMap.{core::Map::[]}{}.(0){(core::Object?) → dynamic}; - core::int localIndexSet = let final core::Map? #t65 = self::nullableMap in let final core::int #t66 = 0 in let final core::int #t67 = 1 in let final void #t68 = let final Never #t69 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:79:34: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + core::int localIndexSet = let final core::Map? #t23 = self::nullableMap in let final core::int #t24 = 0 in let final core::int #t25 = 1 in let final void #t26 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:79:34: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var localIndexSet = nullableMap[0] = 1; - ^" in #t65.{core::Map::[]=}{}.(#t66, #t67){(dynamic, dynamic) → void} in #t67; - dynamic localIndexGetSet = let final core::Map? #t70 = self::nullableMap in let final core::int #t71 = 0 in let final dynamic #t72 = (let final Never #t73 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + ^" in #t23.{core::Map::[]=}{}.(#t24, #t25){(dynamic, dynamic) → void} in #t25; + dynamic localIndexGetSet = let final core::Map? #t27 = self::nullableMap in let final core::int #t28 = 0 in let final dynamic #t29 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var localIndexGetSet = nullableMap[0] += 1; - ^" in #t70.{core::Map::[]}{}.(#t71){(core::Object?) → dynamic}){dynamic}.+(1) in let final void #t74 = let final Never #t75 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + ^" in #t27.{core::Map::[]}{}.(#t28){(core::Object?) → dynamic}{dynamic}.+(1) in let final void #t30 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. - 'Map' is from 'dart:core'. var localIndexGetSet = nullableMap[0] += 1; - ^" in #t70.{core::Map::[]=}{}.(#t71, #t72){(dynamic, dynamic) → void} in #t72; - core::int localPropertyGet = let final Never #t76 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:81:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + ^" in #t27.{core::Map::[]=}{}.(#t28, #t29){(dynamic, dynamic) → void} in #t29; + core::int localPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:81:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localPropertyGet = nullableClass.property; ^^^^^^^^" in self::nullableClass.{self::Class::property}{}.{core::int}; - core::int localPropertySet = let final Never #t77 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:82:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + core::int localPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:82:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localPropertySet = nullableClass.property = 1; ^^^^^^^^" in self::nullableClass.{self::Class::property}{}. = 1; - core::int localPropertyGetSet = let final self::Class? #t78 = self::nullableClass in let final Never #t79 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + core::int localPropertyGetSet = let final self::Class? #t31 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localPropertyGetSet = nullableClass.property += 1; - ^^^^^^^^" in #t78.{self::Class::property}{}. = (let final Never #t80 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^" in #t31.{self::Class::property}{}. = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localPropertyGetSet = nullableClass.property += 1; - ^^^^^^^^" in #t78.{self::Class::property}{}.{core::int}).{core::num::+}(1){(core::num) → core::int}; - core::int localMethodInvocation = let final Never #t81 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:84:45: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. + ^^^^^^^^" in #t31.{self::Class::property}{}.{core::int}.{core::num::+}(1){(core::num) → core::int}; + core::int localMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:84:45: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?. instead. var localMethodInvocation = nullableClass.method(); ^^^^^^" in self::nullableClass.{self::Class::method}{}.(){() → core::int}; - () → core::int localMethodTearOff = let final Never #t82 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:85:42: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. + () → core::int localMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:85:42: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localMethodTearOff = nullableClass.method; ^^^^^^" in self::nullableClass.{self::Class::method}{}.{() → core::int}; - dynamic localFunctionImplicitCall = let final Never #t83 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:86:51: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + dynamic localFunctionImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:86:51: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. - 'Function' is from 'dart:core'. Try calling using ?.call instead. var localFunctionImplicitCall = nullableFunction(); ^" in self::nullableFunction{}.(); - dynamic localFunctionExplicitCall = let final Never #t84 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:87:52: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. + dynamic localFunctionExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:87:52: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. - 'Function' is from 'dart:core'. Try calling using ?. instead. var localFunctionExplicitCall = nullableFunction.call(); ^^^^" in self::nullableFunction{}.(); - core::Function? localFunctionTearOff = let final Never #t85 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:88:47: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. + core::Function? localFunctionTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:88:47: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. - 'Function' is from 'dart:core'. Try accessing using ?. instead. var localFunctionTearOff = nullableFunction.call; ^^^^" in self::nullableFunction.call; - void localFunctionTypeImplicitCall = let final Never #t86 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:89:59: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + void localFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:89:59: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. var localFunctionTypeImplicitCall = nullableFunctionType(); ^" in self::nullableFunctionType{}.(){() →? void}; - void localFunctionTypeExplicitCall = let final Never #t87 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:90:60: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. + void localFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:90:60: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. Try calling using ?. instead. var localFunctionTypeExplicitCall = nullableFunctionType.call(); ^^^^" in self::nullableFunctionType{}.(){() →? void}; - () →? void localFunctionTypeTearOff = let final Never #t88 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:91:55: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. + () →? void localFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:91:55: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. Try accessing using ?. instead. var localFunctionTypeTearOff = nullableFunctionType.call; ^^^^" in self::nullableFunctionType.call; - dynamic localFunctionField = let final Never #t89 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:92:42: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + dynamic localFunctionField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:92:42: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var localFunctionField = nullableClass.functionField(); ^" in self::nullableClass.{self::Class::functionField}{}.{core::Function}(); - void localFunctionTypeField = let final Never #t90 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:93:46: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + void localFunctionTypeField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:93:46: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var localFunctionTypeField = nullableClass.functionTypeField(); ^" in self::nullableClass.{self::Class::functionTypeField}{}.{() → void}(){() → void}; - dynamic localFunctionGetter = let final Never #t91 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:94:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + dynamic localFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:94:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var localFunctionGetter = nullableClass.functionGetter(); ^" in self::nullableClass.{self::Class::functionGetter}{}.{core::Function}(); - void localFunctionTypeGetter = let final Never #t92 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:95:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + void localFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:95:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var localFunctionTypeGetter = nullableClass.functionTypeGetter(); ^" in self::nullableClass.{self::Class::functionTypeGetter}{}.{() → void}(){() → void}; - core::int localExtensionBinary = let final Never #t93 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:97:44: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. + core::int localExtensionBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:97:44: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var localExtensionBinary = nullableClass + 0; ^" in self::Extension|+(self::nullableClass, 0); - core::int localExtensionUnary = let final Never #t94 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:98:29: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. + core::int localExtensionUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:98:29: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var localExtensionUnary = -nullableClass; ^" in self::Extension|unary-(self::nullableClass); - core::int localExtensionIndexGet = let final Never #t95 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:99:45: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + core::int localExtensionIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:99:45: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var localExtensionIndexGet = nullableClass[0]; ^" in self::Extension|[](self::nullableClass, 0); - core::int localExtensionIndexSet = let final self::Class? #t96 = self::nullableClass in let final core::int #t97 = 0 in let final core::int #t98 = 1 in let final void #t99 = let final Never #t100 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:100:45: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + core::int localExtensionIndexSet = let final self::Class? #t32 = self::nullableClass in let final core::int #t33 = 0 in let final core::int #t34 = 1 in let final void #t35 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:100:45: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var localExtensionIndexSet = nullableClass[0] = 1; - ^" in self::Extension|[]=(#t96, #t97, #t98) in #t98; - core::int localExtensionIndexGetSet = let final self::Class? #t101 = self::nullableClass in let final core::int #t102 = 0 in let final core::int #t103 = (let final Never #t104 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + ^" in self::Extension|[]=(#t32, #t33, #t34) in #t34; + core::int localExtensionIndexGetSet = let final self::Class? #t36 = self::nullableClass in let final core::int #t37 = 0 in let final core::int #t38 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var localExtensionIndexGetSet = nullableClass[0] += 1; - ^" in self::Extension|[](#t101, #t102)).{core::num::+}(1){(core::num) → core::int} in let final void #t105 = let final Never #t106 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + ^" in self::Extension|[](#t36, #t37).{core::num::+}(1){(core::num) → core::int} in let final void #t39 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. var localExtensionIndexGetSet = nullableClass[0] += 1; - ^" in self::Extension|[]=(#t101, #t102, #t103) in #t103; - core::int localExtensionPropertyGet = let final Never #t107 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:102:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + ^" in self::Extension|[]=(#t36, #t37, #t38) in #t38; + core::int localExtensionPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:102:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localExtensionPropertyGet = nullableClass.extensionProperty; ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(self::nullableClass); - core::int localExtensionPropertySet = let final Never #t108 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:103:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + core::int localExtensionPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:103:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localExtensionPropertySet = nullableClass.extensionProperty = 1; - ^^^^^^^^^^^^^^^^^" in let final core::int #t109 = 1 in let final void #t110 = self::Extension|set#extensionProperty(self::nullableClass, #t109) in #t109; - core::int localExtensionPropertyGetSet = let final self::Class? #t111 = self::nullableClass in let final Never #t112 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^^" in let final core::int #t40 = 1 in let final void #t41 = self::Extension|set#extensionProperty(self::nullableClass, #t40) in #t40; + core::int localExtensionPropertyGetSet = let final self::Class? #t42 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localExtensionPropertyGetSet = nullableClass.extensionProperty += 1; - ^^^^^^^^^^^^^^^^^" in let final core::int #t113 = (let final Never #t114 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^^" in let final core::int #t43 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localExtensionPropertyGetSet = nullableClass.extensionProperty += 1; - ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(#t111)).{core::num::+}(1){(core::num) → core::int} in let final void #t115 = self::Extension|set#extensionProperty(#t111, #t113) in #t113; - core::int localExtensionMethodInvocation = let final Never #t116 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:105:54: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. + ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(#t42).{core::num::+}(1){(core::num) → core::int} in let final void #t44 = self::Extension|set#extensionProperty(#t42, #t43) in #t43; + core::int localExtensionMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:105:54: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?. instead. var localExtensionMethodInvocation = nullableClass.extensionMethod(); ^^^^^^^^^^^^^^^" in self::Extension|extensionMethod(self::nullableClass); - () → core::int localExtensionMethodTearOff = let final Never #t117 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:106:51: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. + () → core::int localExtensionMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:106:51: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localExtensionMethodTearOff = nullableClass.extensionMethod; ^^^^^^^^^^^^^^^" in self::Extension|get#extensionMethod(self::nullableClass); - core::int localExtensionFunctionTypeImplicitCall = let final Never #t118 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:107:61: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + core::int localExtensionFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:107:61: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var localExtensionFunctionTypeImplicitCall = nullableClass(); ^" in self::Extension|call(self::nullableClass); - core::int localExtensionFunctionTypeExplicitCall = let final Never #t119 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:108:62: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. + core::int localExtensionFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:108:62: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?. instead. var localExtensionFunctionTypeExplicitCall = nullableClass.call(); ^^^^" in self::Extension|call(self::nullableClass); - () → core::int localExtensionFunctionTypeTearOff = let final Never #t120 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:109:57: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. + () → core::int localExtensionFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:109:57: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try accessing using ?. instead. var localExtensionFunctionTypeTearOff = nullableClass.call; ^^^^" in self::Extension|get#call(self::nullableClass); - dynamic localExtensionFunctionGetter = let final Never #t121 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:110:52: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + dynamic localExtensionFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:110:52: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. var localExtensionFunctionGetter = nullableClass.extensionFunctionGetter(); ^" in self::Extension|get#extensionFunctionGetter(self::nullableClass)(); - void localExtensionFunctionTypeGetter = let final Never #t122 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:112:21: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + void localExtensionFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:112:21: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. Try calling using ?.call instead. nullableClass.extensionFunctionTypeGetter(); diff --git a/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.weak.transformed.expect new file mode 100644 index 00000000000..74aa2006c05 --- /dev/null +++ b/pkg/front_end/testcases/nnbd/potentially_nullable_access.dart.weak.transformed.expect @@ -0,0 +1,836 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:37:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. +// var topLevelBinary = nullableInt + 0; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:38:21: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. +// var topLevelUnary = -nullableInt; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:39:35: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var topLevelIndexGet = nullableMap[0]; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:40:35: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var topLevelIndexSet = nullableMap[0] = 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var topLevelIndexGetSet = nullableMap[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var topLevelIndexGetSet = nullableMap[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:42:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelPropertyGet = nullableClass.property; +// ^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:43:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelPropertySet = nullableClass.property = 1; +// ^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelPropertyGetSet = nullableClass.property += 1; +// ^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:45:46: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?. instead. +// var topLevelMethodInvocation = nullableClass.method(); +// ^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:46:43: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelMethodTearOff = nullableClass.method; +// ^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:47:52: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?.call instead. +// var topLevelFunctionImplicitCall = nullableFunction(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:48:53: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?. instead. +// var topLevelFunctionExplicitCall = nullableFunction.call(); +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:49:48: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. +// - 'Function' is from 'dart:core'. +// Try accessing using ?. instead. +// var topLevelFunctionTearOff = nullableFunction.call; +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:50:60: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +// Try calling using ?.call instead. +// var topLevelFunctionTypeImplicitCall = nullableFunctionType(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:51:61: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. +// Try calling using ?. instead. +// var topLevelFunctionTypeExplicitCall = nullableFunctionType.call(); +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:52:56: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. +// Try accessing using ?. instead. +// var topLevelFunctionTypeTearOff = nullableFunctionType.call; +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:53:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var topLevelFunctionField = nullableClass.functionField(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:54:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var topLevelFunctionTypeField = nullableClass.functionTypeField(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:55:44: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var topLevelFunctionGetter = nullableClass.functionGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:56:48: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var topLevelFunctionTypeGetter = nullableClass.functionTypeGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:58:45: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var topLevelExtensionBinary = nullableClass + 0; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:59:30: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var topLevelExtensionUnary = -nullableClass; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:60:46: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var topLevelExtensionIndexGet = nullableClass[0]; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:61:46: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var topLevelExtensionIndexSet = nullableClass[0] = 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var topLevelExtensionIndexGetSet = nullableClass[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var topLevelExtensionIndexGetSet = nullableClass[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:63:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelExtensionPropertyGet = nullableClass.extensionProperty; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:64:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelExtensionPropertySet = nullableClass.extensionProperty = 1; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelExtensionPropertyGetSet = nullableClass.extensionProperty += 1; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:66:55: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?. instead. +// var topLevelExtensionMethodInvocation = nullableClass.extensionMethod(); +// ^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:67:52: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelExtensionMethodTearOff = nullableClass.extensionMethod; +// ^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:68:62: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var topLevelExtensionFunctionTypeImplicitCall = nullableClass(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:69:63: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?. instead. +// var topLevelExtensionFunctionTypeExplicitCall = nullableClass.call(); +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:70:58: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var topLevelExtensionFunctionTypeTearOff = nullableClass.call; +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:71:53: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var topLevelExtensionFunctionGetter = nullableClass.extensionFunctionGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:73:19: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// nullableClass.extensionFunctionTypeGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:76:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. +// var localBinary = nullableInt + 0; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:77:20: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. +// var localUnary = -nullableInt; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:78:34: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var localIndexGet = nullableMap[0]; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:79:34: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var localIndexSet = nullableMap[0] = 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var localIndexGetSet = nullableMap[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. +// - 'Map' is from 'dart:core'. +// var localIndexGetSet = nullableMap[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:81:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localPropertyGet = nullableClass.property; +// ^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:82:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localPropertySet = nullableClass.property = 1; +// ^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localPropertyGetSet = nullableClass.property += 1; +// ^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:84:45: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?. instead. +// var localMethodInvocation = nullableClass.method(); +// ^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:85:42: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localMethodTearOff = nullableClass.method; +// ^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:86:51: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?.call instead. +// var localFunctionImplicitCall = nullableFunction(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:87:52: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?. instead. +// var localFunctionExplicitCall = nullableFunction.call(); +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:88:47: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. +// - 'Function' is from 'dart:core'. +// Try accessing using ?. instead. +// var localFunctionTearOff = nullableFunction.call; +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:89:59: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +// Try calling using ?.call instead. +// var localFunctionTypeImplicitCall = nullableFunctionType(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:90:60: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. +// Try calling using ?. instead. +// var localFunctionTypeExplicitCall = nullableFunctionType.call(); +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:91:55: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. +// Try accessing using ?. instead. +// var localFunctionTypeTearOff = nullableFunctionType.call; +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:92:42: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var localFunctionField = nullableClass.functionField(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:93:46: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var localFunctionTypeField = nullableClass.functionTypeField(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:94:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var localFunctionGetter = nullableClass.functionGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:95:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var localFunctionTypeGetter = nullableClass.functionTypeGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:97:44: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var localExtensionBinary = nullableClass + 0; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:98:29: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var localExtensionUnary = -nullableClass; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:99:45: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var localExtensionIndexGet = nullableClass[0]; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:100:45: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var localExtensionIndexSet = nullableClass[0] = 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var localExtensionIndexGetSet = nullableClass[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// var localExtensionIndexGetSet = nullableClass[0] += 1; +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:102:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localExtensionPropertyGet = nullableClass.extensionProperty; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:103:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localExtensionPropertySet = nullableClass.extensionProperty = 1; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localExtensionPropertyGetSet = nullableClass.extensionProperty += 1; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:105:54: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?. instead. +// var localExtensionMethodInvocation = nullableClass.extensionMethod(); +// ^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:106:51: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localExtensionMethodTearOff = nullableClass.extensionMethod; +// ^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:107:61: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var localExtensionFunctionTypeImplicitCall = nullableClass(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:108:62: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?. instead. +// var localExtensionFunctionTypeExplicitCall = nullableClass.call(); +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:109:57: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try accessing using ?. instead. +// var localExtensionFunctionTypeTearOff = nullableClass.call; +// ^^^^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:110:52: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// var localExtensionFunctionGetter = nullableClass.extensionFunctionGetter(); +// ^ +// +// pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:112:21: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. +// - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +// Try calling using ?.call instead. +// nullableClass.extensionFunctionTypeGetter(); +// ^ +// +import self as self; +import "dart:core" as core; + +class Class extends core::Object { + field core::int property = 0; + field core::Function functionField = () → Null {}; + field () → void functionTypeField = () → void {}; + synthetic constructor •() → self::Class + : super core::Object::•() + ; + method method() → core::int + return 0; + get functionGetter() → core::Function + return () → Null {}; + get functionTypeGetter() → () → void + return () → void {}; +} +extension Extension on self::Class { + operator + = self::Extension|+; + operator unary- = self::Extension|unary-; + operator [] = self::Extension|[]; + operator []= = self::Extension|[]=; + method call = self::Extension|call; + tearoff call = self::Extension|get#call; + get extensionProperty = self::Extension|get#extensionProperty; + method extensionMethod = self::Extension|extensionMethod; + tearoff extensionMethod = self::Extension|get#extensionMethod; + get extensionFunctionGetter = self::Extension|get#extensionFunctionGetter; + get extensionFunctionTypeGetter = self::Extension|get#extensionFunctionTypeGetter; + set extensionProperty = self::Extension|set#extensionProperty; +} +static field core::num topLevelBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:37:34: Error: Operator '+' cannot be called on 'int?' because it is potentially null. +var topLevelBinary = nullableInt + 0; + ^" in self::nullableInt.{core::num::+}(0){(core::num) → core::num}; +static field core::int topLevelUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:38:21: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. +var topLevelUnary = -nullableInt; + ^" in self::nullableInt.{core::int::unary-}(){() → core::int}; +static field dynamic topLevelIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:39:35: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. +var topLevelIndexGet = nullableMap[0]; + ^" in self::nullableMap.{core::Map::[]}{}.(0){(core::Object?) → dynamic}; +static field core::int topLevelIndexSet = let final core::Map? #t1 = self::nullableMap in let final core::int #t2 = 0 in let final core::int #t3 = 1 in let final void #t4 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:40:35: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. +var topLevelIndexSet = nullableMap[0] = 1; + ^" in #t1.{core::Map::[]=}{}.(#t2, #t3){(dynamic, dynamic) → void} in #t3; +static field dynamic topLevelIndexGetSet = let final core::Map? #t5 = self::nullableMap in let final core::int #t6 = 0 in let final dynamic #t7 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. +var topLevelIndexGetSet = nullableMap[0] += 1; + ^" in #t5.{core::Map::[]}{}.(#t6){(core::Object?) → dynamic}{dynamic}.+(1) in let final void #t8 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:41:38: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. +var topLevelIndexGetSet = nullableMap[0] += 1; + ^" in #t5.{core::Map::[]=}{}.(#t6, #t7){(dynamic, dynamic) → void} in #t7; +static field core::int topLevelPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:42:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelPropertyGet = nullableClass.property; + ^^^^^^^^" in self::nullableClass.{self::Class::property}{}.{core::int}; +static field core::int topLevelPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:43:41: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelPropertySet = nullableClass.property = 1; + ^^^^^^^^" in self::nullableClass.{self::Class::property}{}. = 1; +static field core::int topLevelPropertyGetSet = let final self::Class? #t9 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelPropertyGetSet = nullableClass.property += 1; + ^^^^^^^^" in #t9.{self::Class::property}{}. = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:44:44: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelPropertyGetSet = nullableClass.property += 1; + ^^^^^^^^" in #t9.{self::Class::property}{}.{core::int}.{core::num::+}(1){(core::num) → core::int}; +static field core::int topLevelMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:45:46: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?. instead. +var topLevelMethodInvocation = nullableClass.method(); + ^^^^^^" in self::nullableClass.{self::Class::method}{}.(){() → core::int}; +static field () → core::int topLevelMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:46:43: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelMethodTearOff = nullableClass.method; + ^^^^^^" in self::nullableClass.{self::Class::method}{}.{() → core::int}; +static field dynamic topLevelFunctionImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:47:52: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?.call instead. +var topLevelFunctionImplicitCall = nullableFunction(); + ^" in self::nullableFunction{}.(); +static field dynamic topLevelFunctionExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:48:53: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?. instead. +var topLevelFunctionExplicitCall = nullableFunction.call(); + ^^^^" in self::nullableFunction{}.(); +static field core::Function? topLevelFunctionTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:49:48: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. + - 'Function' is from 'dart:core'. +Try accessing using ?. instead. +var topLevelFunctionTearOff = nullableFunction.call; + ^^^^" in self::nullableFunction.call; +static field void topLevelFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:50:60: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +Try calling using ?.call instead. +var topLevelFunctionTypeImplicitCall = nullableFunctionType(); + ^" in self::nullableFunctionType{}.(){() →? void}; +static field void topLevelFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:51:61: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. +Try calling using ?. instead. +var topLevelFunctionTypeExplicitCall = nullableFunctionType.call(); + ^^^^" in self::nullableFunctionType{}.(){() →? void}; +static field () →? void topLevelFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:52:56: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. +Try accessing using ?. instead. +var topLevelFunctionTypeTearOff = nullableFunctionType.call; + ^^^^" in self::nullableFunctionType.call; +static field dynamic topLevelFunctionField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:53:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. +var topLevelFunctionField = nullableClass.functionField(); + ^" in self::nullableClass.{self::Class::functionField}{}.{core::Function}(); +static field void topLevelFunctionTypeField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:54:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. +var topLevelFunctionTypeField = nullableClass.functionTypeField(); + ^" in self::nullableClass.{self::Class::functionTypeField}{}.{() → void}(){() → void}; +static field dynamic topLevelFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:55:44: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. +var topLevelFunctionGetter = nullableClass.functionGetter(); + ^" in self::nullableClass.{self::Class::functionGetter}{}.{core::Function}(); +static field void topLevelFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:56:48: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. +var topLevelFunctionTypeGetter = nullableClass.functionTypeGetter(); + ^" in self::nullableClass.{self::Class::functionTypeGetter}{}.{() → void}(){() → void}; +static field core::int topLevelExtensionBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:58:45: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +var topLevelExtensionBinary = nullableClass + 0; + ^" in self::Extension|+(self::nullableClass, 0); +static field core::int topLevelExtensionUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:59:30: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +var topLevelExtensionUnary = -nullableClass; + ^" in self::Extension|unary-(self::nullableClass); +static field core::int topLevelExtensionIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:60:46: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +var topLevelExtensionIndexGet = nullableClass[0]; + ^" in self::Extension|[](self::nullableClass, 0); +static field core::int topLevelExtensionIndexSet = let final self::Class? #t10 = self::nullableClass in let final core::int #t11 = 0 in let final core::int #t12 = 1 in let final void #t13 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:61:46: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +var topLevelExtensionIndexSet = nullableClass[0] = 1; + ^" in self::Extension|[]=(#t10, #t11, #t12) in #t12; +static field core::int topLevelExtensionIndexGetSet = let final self::Class? #t14 = self::nullableClass in let final core::int #t15 = 0 in let final core::int #t16 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +var topLevelExtensionIndexGetSet = nullableClass[0] += 1; + ^" in self::Extension|[](#t14, #t15).{core::num::+}(1){(core::num) → core::int} in let final void #t17 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:62:49: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +var topLevelExtensionIndexGetSet = nullableClass[0] += 1; + ^" in self::Extension|[]=(#t14, #t15, #t16) in #t16; +static field core::int topLevelExtensionPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:63:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelExtensionPropertyGet = nullableClass.extensionProperty; + ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(self::nullableClass); +static field core::int topLevelExtensionPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:64:50: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelExtensionPropertySet = nullableClass.extensionProperty = 1; + ^^^^^^^^^^^^^^^^^" in let final core::int #t18 = 1 in let final void #t19 = self::Extension|set#extensionProperty(self::nullableClass, #t18) in #t18; +static field core::int topLevelExtensionPropertyGetSet = let final self::Class? #t20 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelExtensionPropertyGetSet = nullableClass.extensionProperty += 1; + ^^^^^^^^^^^^^^^^^" in let final core::int #t21 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:65:53: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelExtensionPropertyGetSet = nullableClass.extensionProperty += 1; + ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(#t20).{core::num::+}(1){(core::num) → core::int} in let final void #t22 = self::Extension|set#extensionProperty(#t20, #t21) in #t21; +static field core::int topLevelExtensionMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:66:55: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?. instead. +var topLevelExtensionMethodInvocation = nullableClass.extensionMethod(); + ^^^^^^^^^^^^^^^" in self::Extension|extensionMethod(self::nullableClass); +static field () → core::int topLevelExtensionMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:67:52: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelExtensionMethodTearOff = nullableClass.extensionMethod; + ^^^^^^^^^^^^^^^" in self::Extension|get#extensionMethod(self::nullableClass); +static field core::int topLevelExtensionFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:68:62: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. +var topLevelExtensionFunctionTypeImplicitCall = nullableClass(); + ^" in self::Extension|call(self::nullableClass); +static field core::int topLevelExtensionFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:69:63: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?. instead. +var topLevelExtensionFunctionTypeExplicitCall = nullableClass.call(); + ^^^^" in self::Extension|call(self::nullableClass); +static field () → core::int topLevelExtensionFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:70:58: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. +var topLevelExtensionFunctionTypeTearOff = nullableClass.call; + ^^^^" in self::Extension|get#call(self::nullableClass); +static field dynamic topLevelExtensionFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:71:53: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. +var topLevelExtensionFunctionGetter = nullableClass.extensionFunctionGetter(); + ^" in self::Extension|get#extensionFunctionGetter(self::nullableClass)(); +static field void topLevelExtensionFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:73:19: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + nullableClass.extensionFunctionTypeGetter(); + ^" in self::Extension|get#extensionFunctionTypeGetter(self::nullableClass)(){() → void}; +static method Extension|+(lowered final self::Class #this, core::int value) → core::int + return 0; +static method Extension|unary-(lowered final self::Class #this) → core::int + return 0; +static method Extension|[](lowered final self::Class #this, core::int index) → core::int + return 0; +static method Extension|[]=(lowered final self::Class #this, core::int index, core::int value) → void {} +static method Extension|call(lowered final self::Class #this) → core::int + return 0; +static method Extension|get#call(lowered final self::Class #this) → () → core::int + return () → core::int => self::Extension|call(#this); +static method Extension|get#extensionProperty(lowered final self::Class #this) → core::int + return 0; +static method Extension|set#extensionProperty(lowered final self::Class #this, core::int value) → void {} +static method Extension|extensionMethod(lowered final self::Class #this) → core::int + return 0; +static method Extension|get#extensionMethod(lowered final self::Class #this) → () → core::int + return () → core::int => self::Extension|extensionMethod(#this); +static method Extension|get#extensionFunctionGetter(lowered final self::Class #this) → core::Function + return () → Null {}; +static method Extension|get#extensionFunctionTypeGetter(lowered final self::Class #this) → () → void + return () → void {}; +static get nullableFunction() → core::Function? + return () → Null {}; +static get nullableFunctionType() → () →? void + return () → void {}; +static get nullableInt() → core::int? + return 0; +static get nullableMap() → core::Map? + return {}; +static get nullableClass() → self::Class? + return new self::Class::•(); +static method test() → dynamic { + core::num localBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:76:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + var localBinary = nullableInt + 0; + ^" in self::nullableInt.{core::num::+}(0){(core::num) → core::num}; + core::int localUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:77:20: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + var localUnary = -nullableInt; + ^" in self::nullableInt.{core::int::unary-}(){() → core::int}; + dynamic localIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:78:34: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. + var localIndexGet = nullableMap[0]; + ^" in self::nullableMap.{core::Map::[]}{}.(0){(core::Object?) → dynamic}; + core::int localIndexSet = let final core::Map? #t23 = self::nullableMap in let final core::int #t24 = 0 in let final core::int #t25 = 1 in let final void #t26 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:79:34: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. + var localIndexSet = nullableMap[0] = 1; + ^" in #t23.{core::Map::[]=}{}.(#t24, #t25){(dynamic, dynamic) → void} in #t25; + dynamic localIndexGetSet = let final core::Map? #t27 = self::nullableMap in let final core::int #t28 = 0 in let final dynamic #t29 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. + var localIndexGetSet = nullableMap[0] += 1; + ^" in #t27.{core::Map::[]}{}.(#t28){(core::Object?) → dynamic}{dynamic}.+(1) in let final void #t30 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:80:37: Error: Operator '[]=' cannot be called on 'Map?' because it is potentially null. + - 'Map' is from 'dart:core'. + var localIndexGetSet = nullableMap[0] += 1; + ^" in #t27.{core::Map::[]=}{}.(#t28, #t29){(dynamic, dynamic) → void} in #t29; + core::int localPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:81:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localPropertyGet = nullableClass.property; + ^^^^^^^^" in self::nullableClass.{self::Class::property}{}.{core::int}; + core::int localPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:82:40: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localPropertySet = nullableClass.property = 1; + ^^^^^^^^" in self::nullableClass.{self::Class::property}{}. = 1; + core::int localPropertyGetSet = let final self::Class? #t31 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localPropertyGetSet = nullableClass.property += 1; + ^^^^^^^^" in #t31.{self::Class::property}{}. = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:83:43: Error: Property 'property' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localPropertyGetSet = nullableClass.property += 1; + ^^^^^^^^" in #t31.{self::Class::property}{}.{core::int}.{core::num::+}(1){(core::num) → core::int}; + core::int localMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:84:45: Error: Method 'method' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?. instead. + var localMethodInvocation = nullableClass.method(); + ^^^^^^" in self::nullableClass.{self::Class::method}{}.(){() → core::int}; + () → core::int localMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:85:42: Error: Property 'method' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localMethodTearOff = nullableClass.method; + ^^^^^^" in self::nullableClass.{self::Class::method}{}.{() → core::int}; + dynamic localFunctionImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:86:51: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?.call instead. + var localFunctionImplicitCall = nullableFunction(); + ^" in self::nullableFunction{}.(); + dynamic localFunctionExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:87:52: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?. instead. + var localFunctionExplicitCall = nullableFunction.call(); + ^^^^" in self::nullableFunction{}.(); + core::Function? localFunctionTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:88:47: Error: Property 'call' cannot be accessed on 'Function?' because it is potentially null. + - 'Function' is from 'dart:core'. +Try accessing using ?. instead. + var localFunctionTearOff = nullableFunction.call; + ^^^^" in self::nullableFunction.call; + void localFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:89:59: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +Try calling using ?.call instead. + var localFunctionTypeImplicitCall = nullableFunctionType(); + ^" in self::nullableFunctionType{}.(){() →? void}; + void localFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:90:60: Error: Method 'call' cannot be called on 'void Function()?' because it is potentially null. +Try calling using ?. instead. + var localFunctionTypeExplicitCall = nullableFunctionType.call(); + ^^^^" in self::nullableFunctionType{}.(){() →? void}; + () →? void localFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:91:55: Error: Property 'call' cannot be accessed on 'void Function()?' because it is potentially null. +Try accessing using ?. instead. + var localFunctionTypeTearOff = nullableFunctionType.call; + ^^^^" in self::nullableFunctionType.call; + dynamic localFunctionField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:92:42: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + var localFunctionField = nullableClass.functionField(); + ^" in self::nullableClass.{self::Class::functionField}{}.{core::Function}(); + void localFunctionTypeField = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:93:46: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + var localFunctionTypeField = nullableClass.functionTypeField(); + ^" in self::nullableClass.{self::Class::functionTypeField}{}.{() → void}(){() → void}; + dynamic localFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:94:43: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + var localFunctionGetter = nullableClass.functionGetter(); + ^" in self::nullableClass.{self::Class::functionGetter}{}.{core::Function}(); + void localFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:95:47: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + var localFunctionTypeGetter = nullableClass.functionTypeGetter(); + ^" in self::nullableClass.{self::Class::functionTypeGetter}{}.{() → void}(){() → void}; + core::int localExtensionBinary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:97:44: Error: Operator '+' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. + var localExtensionBinary = nullableClass + 0; + ^" in self::Extension|+(self::nullableClass, 0); + core::int localExtensionUnary = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:98:29: Error: Operator 'unary-' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. + var localExtensionUnary = -nullableClass; + ^" in self::Extension|unary-(self::nullableClass); + core::int localExtensionIndexGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:99:45: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. + var localExtensionIndexGet = nullableClass[0]; + ^" in self::Extension|[](self::nullableClass, 0); + core::int localExtensionIndexSet = let final self::Class? #t32 = self::nullableClass in let final core::int #t33 = 0 in let final core::int #t34 = 1 in let final void #t35 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:100:45: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. + var localExtensionIndexSet = nullableClass[0] = 1; + ^" in self::Extension|[]=(#t32, #t33, #t34) in #t34; + core::int localExtensionIndexGetSet = let final self::Class? #t36 = self::nullableClass in let final core::int #t37 = 0 in let final core::int #t38 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. + var localExtensionIndexGetSet = nullableClass[0] += 1; + ^" in self::Extension|[](#t36, #t37).{core::num::+}(1){(core::num) → core::int} in let final void #t39 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:101:48: Error: Operator '[]=' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. + var localExtensionIndexGetSet = nullableClass[0] += 1; + ^" in self::Extension|[]=(#t36, #t37, #t38) in #t38; + core::int localExtensionPropertyGet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:102:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localExtensionPropertyGet = nullableClass.extensionProperty; + ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(self::nullableClass); + core::int localExtensionPropertySet = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:103:49: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localExtensionPropertySet = nullableClass.extensionProperty = 1; + ^^^^^^^^^^^^^^^^^" in let final core::int #t40 = 1 in let final void #t41 = self::Extension|set#extensionProperty(self::nullableClass, #t40) in #t40; + core::int localExtensionPropertyGetSet = let final self::Class? #t42 = self::nullableClass in invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localExtensionPropertyGetSet = nullableClass.extensionProperty += 1; + ^^^^^^^^^^^^^^^^^" in let final core::int #t43 = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:104:52: Error: Property 'extensionProperty' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localExtensionPropertyGetSet = nullableClass.extensionProperty += 1; + ^^^^^^^^^^^^^^^^^" in self::Extension|get#extensionProperty(#t42).{core::num::+}(1){(core::num) → core::int} in let final void #t44 = self::Extension|set#extensionProperty(#t42, #t43) in #t43; + core::int localExtensionMethodInvocation = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:105:54: Error: Method 'extensionMethod' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?. instead. + var localExtensionMethodInvocation = nullableClass.extensionMethod(); + ^^^^^^^^^^^^^^^" in self::Extension|extensionMethod(self::nullableClass); + () → core::int localExtensionMethodTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:106:51: Error: Property 'extensionMethod' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localExtensionMethodTearOff = nullableClass.extensionMethod; + ^^^^^^^^^^^^^^^" in self::Extension|get#extensionMethod(self::nullableClass); + core::int localExtensionFunctionTypeImplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:107:61: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + var localExtensionFunctionTypeImplicitCall = nullableClass(); + ^" in self::Extension|call(self::nullableClass); + core::int localExtensionFunctionTypeExplicitCall = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:108:62: Error: Method 'call' cannot be called on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?. instead. + var localExtensionFunctionTypeExplicitCall = nullableClass.call(); + ^^^^" in self::Extension|call(self::nullableClass); + () → core::int localExtensionFunctionTypeTearOff = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:109:57: Error: Property 'call' cannot be accessed on 'Class?' because it is potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try accessing using ?. instead. + var localExtensionFunctionTypeTearOff = nullableClass.call; + ^^^^" in self::Extension|get#call(self::nullableClass); + dynamic localExtensionFunctionGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:110:52: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + var localExtensionFunctionGetter = nullableClass.extensionFunctionGetter(); + ^" in self::Extension|get#extensionFunctionGetter(self::nullableClass)(); + void localExtensionFunctionTypeGetter = invalid-expression "pkg/front_end/testcases/nnbd/potentially_nullable_access.dart:112:21: Error: Can't use an expression of type 'Class?' as a function because it's potentially null. + - 'Class' is from 'pkg/front_end/testcases/nnbd/potentially_nullable_access.dart'. +Try calling using ?.call instead. + nullableClass.extensionFunctionTypeGetter(); + ^" in self::Extension|get#extensionFunctionTypeGetter(self::nullableClass)(){() → void}; +} +static method main() → dynamic {} + + +Extra constant evaluation status: +Evaluated: VariableGet @ org-dartlang-testcase:///potentially_nullable_access.dart:79:40 -> IntConstant(1) +Evaluated: VariableGet @ org-dartlang-testcase:///potentially_nullable_access.dart:100:51 -> IntConstant(1) +Evaluated: VariableGet @ org-dartlang-testcase:///potentially_nullable_access.dart:40:41 -> IntConstant(1) +Evaluated: VariableGet @ org-dartlang-testcase:///potentially_nullable_access.dart:61:52 -> IntConstant(1) +Extra constant evaluation: evaluated: 76, effectively constant: 4 diff --git a/pkg/front_end/testcases/nnbd/return_null.dart.strong.expect b/pkg/front_end/testcases/nnbd/return_null.dart.strong.expect index 2c50f0de6f7..a6d86954bbe 100644 --- a/pkg/front_end/testcases/nnbd/return_null.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/return_null.dart.strong.expect @@ -72,31 +72,31 @@ class Enum extends core::Object implements core::Enum /*isEnum*/ { } static method returnImplicit() → core::String { core::print("foo"); - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:7:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:7:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnImplicit() /*error*/ { ^" in null; } static method returnExplicit() → core::String { core::print("foo"); - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:13:10: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:13:10: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error ^" in null as{TypeError,ForNonNullableByDefault} core::String; } static method returnMixed(core::bool b) → core::String { if(b) { core::print("foo"); - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:19:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:19:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error ^" in null as{TypeError,ForNonNullableByDefault} core::String; } - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:16:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:16:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnMixed(bool b) /*error*/ { ^" in null; } static method returnAsync1() → asy::Future async {} static method returnAsync2() → FutureOr async {} static method returnAsync3() → FutureOr async { - return let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:27:15: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:27:15: Error: A non-null value must be returned since the return type 'int' doesn't allow null. FutureOr returnAsync3() async {} // error ^" in null; } @@ -133,7 +133,7 @@ static method caseReturn2(self::Enum e) → self::Enum { default: {} } - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:54:6: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:54:6: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. - 'Enum' is from 'pkg/front_end/testcases/nnbd/return_null.dart'. Enum caseReturn2(Enum e) /* error */ { ^" in null; @@ -141,31 +141,31 @@ Enum caseReturn2(Enum e) /* error */ { static method localFunctions() → dynamic { function returnImplicit() → core::String { core::print("foo"); - return let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:63:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:63:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnImplicit() /* error */ { ^" in null; } function returnExplicit() → core::String { core::print("foo"); - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:69:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:69:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error ^" in null as{TypeError,ForNonNullableByDefault} core::String; } function returnMixed(core::bool b) → core::String { if(b) { core::print("foo"); - return let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:75:14: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:75:14: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error ^" in null as{TypeError,ForNonNullableByDefault} core::String; } - return let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:72:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:72:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnMixed(bool b) /* error */ { ^" in null; } function returnAsync1() → asy::Future async {} function returnAsync2() → FutureOr async {} function returnAsync3() → FutureOr async { - return let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:83:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:83:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. FutureOr returnAsync3() async {} // error ^" in null; } @@ -202,7 +202,7 @@ static method localFunctions() → dynamic { default: {} } - return let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:108:3: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:108:3: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. - 'Enum' is from 'pkg/front_end/testcases/nnbd/return_null.dart'. Enum caseReturn2(Enum e) /* error */ { ^" in null; diff --git a/pkg/front_end/testcases/nnbd/return_null.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/return_null.dart.strong.transformed.expect index 0aaa16bef60..027a6aaba9a 100644 --- a/pkg/front_end/testcases/nnbd/return_null.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/return_null.dart.strong.transformed.expect @@ -72,24 +72,24 @@ class Enum extends core::Object implements core::Enum /*isEnum*/ { } static method returnImplicit() → core::String { core::print("foo"); - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:7:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:7:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnImplicit() /*error*/ { ^" in null; } static method returnExplicit() → core::String { core::print("foo"); - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:13:10: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:13:10: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error - ^" in let Null #t3 = null in #t3 == null ?{core::String} #t3 as{TypeError,ForNonNullableByDefault} core::String : #t3{core::String}; + ^" in let Null #t1 = null in #t1 == null ?{core::String} #t1 as{TypeError,ForNonNullableByDefault} core::String : #t1{core::String}; } static method returnMixed(core::bool b) → core::String { if(b) { core::print("foo"); - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:19:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:19:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error - ^" in let Null #t5 = null in #t5 == null ?{core::String} #t5 as{TypeError,ForNonNullableByDefault} core::String : #t5{core::String}; + ^" in let Null #t2 = null in #t2 == null ?{core::String} #t2 as{TypeError,ForNonNullableByDefault} core::String : #t2{core::String}; } - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:16:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:16:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnMixed(bool b) /*error*/ { ^" in null; } @@ -153,7 +153,7 @@ static method returnAsync3() → FutureOr /* originally async */ { try { #L3: { - :return_value = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:27:15: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:27:15: Error: A non-null value must be returned since the return type 'int' doesn't allow null. FutureOr returnAsync3() async {} // error ^" in null; break #L3; @@ -332,7 +332,7 @@ static method caseReturn2(self::Enum e) → self::Enum { default: {} } - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:54:6: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:54:6: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. - 'Enum' is from 'pkg/front_end/testcases/nnbd/return_null.dart'. Enum caseReturn2(Enum e) /* error */ { ^" in null; @@ -340,24 +340,24 @@ Enum caseReturn2(Enum e) /* error */ { static method localFunctions() → dynamic { function returnImplicit() → core::String { core::print("foo"); - return let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:63:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:63:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnImplicit() /* error */ { ^" in null; } function returnExplicit() → core::String { core::print("foo"); - return let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:69:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:69:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error - ^" in let Null #t11 = null in #t11 == null ?{core::String} #t11 as{TypeError,ForNonNullableByDefault} core::String : #t11{core::String}; + ^" in let Null #t3 = null in #t3 == null ?{core::String} #t3 as{TypeError,ForNonNullableByDefault} core::String : #t3{core::String}; } function returnMixed(core::bool b) → core::String { if(b) { core::print("foo"); - return let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:75:14: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:75:14: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error - ^" in let Null #t13 = null in #t13 == null ?{core::String} #t13 as{TypeError,ForNonNullableByDefault} core::String : #t13{core::String}; + ^" in let Null #t4 = null in #t4 == null ?{core::String} #t4 as{TypeError,ForNonNullableByDefault} core::String : #t4{core::String}; } - return let final Never #t14 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:72:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:72:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnMixed(bool b) /* error */ { ^" in null; } @@ -421,7 +421,7 @@ static method localFunctions() → dynamic { try { #L15: { - :return_value = let final Never #t15 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:83:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:83:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. FutureOr returnAsync3() async {} // error ^" in null; break #L15; @@ -600,7 +600,7 @@ static method localFunctions() → dynamic { default: {} } - return let final Never #t16 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:108:3: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:108:3: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. - 'Enum' is from 'pkg/front_end/testcases/nnbd/return_null.dart'. Enum caseReturn2(Enum e) /* error */ { ^" in null; @@ -629,21 +629,6 @@ constants { #C7 = [#C3, #C6] } -Extra constant evaluation status: -Evaluated: EqualsNull @ org-dartlang-testcase:///return_null.dart:13:10 -> BoolConstant(true) -Evaluated: VariableGet @ org-dartlang-testcase:///return_null.dart:13:10 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///return_null.dart:13:10 -> NullConstant(null) -Evaluated: EqualsNull @ org-dartlang-testcase:///return_null.dart:19:12 -> BoolConstant(true) -Evaluated: VariableGet @ org-dartlang-testcase:///return_null.dart:19:12 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///return_null.dart:19:12 -> NullConstant(null) -Evaluated: EqualsNull @ org-dartlang-testcase:///return_null.dart:69:12 -> BoolConstant(true) -Evaluated: VariableGet @ org-dartlang-testcase:///return_null.dart:69:12 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///return_null.dart:69:12 -> NullConstant(null) -Evaluated: EqualsNull @ org-dartlang-testcase:///return_null.dart:75:14 -> BoolConstant(true) -Evaluated: VariableGet @ org-dartlang-testcase:///return_null.dart:75:14 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///return_null.dart:75:14 -> NullConstant(null) -Extra constant evaluation: evaluated: 380, effectively constant: 12 - Constructor coverage from constants: org-dartlang-testcase:///return_null.dart: diff --git a/pkg/front_end/testcases/nnbd/return_null.dart.weak.expect b/pkg/front_end/testcases/nnbd/return_null.dart.weak.expect index d2df46ebc43..cb0d622dfb7 100644 --- a/pkg/front_end/testcases/nnbd/return_null.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/return_null.dart.weak.expect @@ -73,31 +73,31 @@ class Enum extends core::Object implements core::Enum /*isEnum*/ { } static method returnImplicit() → core::String { core::print("foo"); - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:7:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:7:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnImplicit() /*error*/ { ^" in null; } static method returnExplicit() → core::String { core::print("foo"); - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:13:10: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:13:10: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error ^" in null as{TypeError,ForNonNullableByDefault} core::String; } static method returnMixed(core::bool b) → core::String { if(b) { core::print("foo"); - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:19:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:19:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error ^" in null as{TypeError,ForNonNullableByDefault} core::String; } - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:16:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:16:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnMixed(bool b) /*error*/ { ^" in null; } static method returnAsync1() → asy::Future async {} static method returnAsync2() → FutureOr async {} static method returnAsync3() → FutureOr async { - return let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:27:15: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:27:15: Error: A non-null value must be returned since the return type 'int' doesn't allow null. FutureOr returnAsync3() async {} // error ^" in null; } @@ -137,7 +137,7 @@ static method caseReturn2(self::Enum e) → self::Enum { default: {} } - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:54:6: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:54:6: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. - 'Enum' is from 'pkg/front_end/testcases/nnbd/return_null.dart'. Enum caseReturn2(Enum e) /* error */ { ^" in null; @@ -145,31 +145,31 @@ Enum caseReturn2(Enum e) /* error */ { static method localFunctions() → dynamic { function returnImplicit() → core::String { core::print("foo"); - return let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:63:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:63:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnImplicit() /* error */ { ^" in null; } function returnExplicit() → core::String { core::print("foo"); - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:69:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:69:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error ^" in null as{TypeError,ForNonNullableByDefault} core::String; } function returnMixed(core::bool b) → core::String { if(b) { core::print("foo"); - return let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:75:14: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:75:14: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error ^" in null as{TypeError,ForNonNullableByDefault} core::String; } - return let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:72:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:72:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnMixed(bool b) /* error */ { ^" in null; } function returnAsync1() → asy::Future async {} function returnAsync2() → FutureOr async {} function returnAsync3() → FutureOr async { - return let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:83:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:83:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. FutureOr returnAsync3() async {} // error ^" in null; } @@ -209,7 +209,7 @@ static method localFunctions() → dynamic { default: {} } - return let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:108:3: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:108:3: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. - 'Enum' is from 'pkg/front_end/testcases/nnbd/return_null.dart'. Enum caseReturn2(Enum e) /* error */ { ^" in null; diff --git a/pkg/front_end/testcases/nnbd/return_null.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/return_null.dart.weak.transformed.expect index b0fa47ad540..96616e8abe6 100644 --- a/pkg/front_end/testcases/nnbd/return_null.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/return_null.dart.weak.transformed.expect @@ -73,24 +73,24 @@ class Enum extends core::Object implements core::Enum /*isEnum*/ { } static method returnImplicit() → core::String { core::print("foo"); - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:7:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:7:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnImplicit() /*error*/ { ^" in null; } static method returnExplicit() → core::String { core::print("foo"); - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:13:10: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:13:10: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error ^" in null; } static method returnMixed(core::bool b) → core::String { if(b) { core::print("foo"); - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:19:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:19:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error ^" in null; } - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:16:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:16:8: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnMixed(bool b) /*error*/ { ^" in null; } @@ -154,7 +154,7 @@ static method returnAsync3() → FutureOr /* originally async */ { try { #L3: { - :return_value = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:27:15: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:27:15: Error: A non-null value must be returned since the return type 'int' doesn't allow null. FutureOr returnAsync3() async {} // error ^" in null; break #L3; @@ -336,7 +336,7 @@ static method caseReturn2(self::Enum e) → self::Enum { default: {} } - return let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:54:6: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:54:6: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. - 'Enum' is from 'pkg/front_end/testcases/nnbd/return_null.dart'. Enum caseReturn2(Enum e) /* error */ { ^" in null; @@ -344,24 +344,24 @@ Enum caseReturn2(Enum e) /* error */ { static method localFunctions() → dynamic { function returnImplicit() → core::String { core::print("foo"); - return let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:63:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:63:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnImplicit() /* error */ { ^" in null; } function returnExplicit() → core::String { core::print("foo"); - return let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:69:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:69:12: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error ^" in null; } function returnMixed(core::bool b) → core::String { if(b) { core::print("foo"); - return let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:75:14: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:75:14: Error: The value 'null' can't be returned from a function with return type 'String' because 'String' is not nullable. return null; // error ^" in null; } - return let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:72:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:72:3: Error: A non-null value must be returned since the return type 'String' doesn't allow null. String returnMixed(bool b) /* error */ { ^" in null; } @@ -425,7 +425,7 @@ static method localFunctions() → dynamic { try { #L16: { - :return_value = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:83:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + :return_value = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:83:3: Error: A non-null value must be returned since the return type 'int' doesn't allow null. FutureOr returnAsync3() async {} // error ^" in null; break #L16; @@ -607,7 +607,7 @@ static method localFunctions() → dynamic { default: {} } - return let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:108:3: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/return_null.dart:108:3: Error: A non-null value must be returned since the return type 'Enum' doesn't allow null. - 'Enum' is from 'pkg/front_end/testcases/nnbd/return_null.dart'. Enum caseReturn2(Enum e) /* error */ { ^" in null; diff --git a/pkg/front_end/testcases/nnbd/shorting_stop.dart.strong.expect b/pkg/front_end/testcases/nnbd/shorting_stop.dart.strong.expect index 5fd4921535d..0e344465ce5 100644 --- a/pkg/front_end/testcases/nnbd/shorting_stop.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/shorting_stop.dart.strong.expect @@ -54,36 +54,36 @@ static method main() → dynamic { } static method test(self::Class? c) → dynamic { let final self::Class? #t1 = c in #t1 == null ?{core::int?} null : #t1{self::Class}.{self::Class::next}{self::Class}.{self::Class::field}{core::int}; - self::throwsInStrong(() → void => let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:18:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:18:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => c?.field + 2); // error - ^" in (let final self::Class? #t3 = c in #t3 == null ?{core::int?} null : #t3{self::Class}.{self::Class::field}{core::int}).{core::num::+}(2){(core::num) → core::num}); - let final self::Class? #t4 = c in #t4 == null ?{core::int?} null : let final core::int #t5 = #t4.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t6 = #t4.{self::Class::field} = #t5 in #t5; - let final self::Class? #t7 = c in #t7 == null ?{core::int?} null : #t7.{self::Class::field} = #t7.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int}; - self::throwsInStrong(() → void => let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:21:34: Error: Property 'field' cannot be accessed on 'Class?' because it is potentially null. + ^" in (let final self::Class? #t2 = c in #t2 == null ?{core::int?} null : #t2{self::Class}.{self::Class::field}{core::int}).{core::num::+}(2){(core::num) → core::num}); + let final self::Class? #t3 = c in #t3 == null ?{core::int?} null : let final core::int #t4 = #t3.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t5 = #t3.{self::Class::field} = #t4 in #t4; + let final self::Class? #t6 = c in #t6 == null ?{core::int?} null : #t6.{self::Class::field} = #t6.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int}; + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:21:34: Error: Property 'field' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/shorting_stop.dart'. Try accessing using ?. instead. throwsInStrong(() => (c?.next).field); // error - ^^^^^" in (let final self::Class? #t9 = c in #t9 == null ?{self::Class?} null : #t9{self::Class}.{self::Class::next}{self::Class}).{self::Class::field}{}.{core::int}); - self::throwsInStrong(() → void => let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:22:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + ^^^^^" in (let final self::Class? #t7 = c in #t7 == null ?{self::Class?} null : #t7{self::Class}.{self::Class::next}{self::Class}).{self::Class::field}{}.{core::int}); + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:22:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => -c?.field); // error - ^" in (let final self::Class? #t11 = c in #t11 == null ?{core::int?} null : #t11{self::Class}.{self::Class::field}{core::int}).{core::int::unary-}(){() → core::int}); - let final self::Class? #t12 = c in #t12 == null ?{core::bool?} null : #t12{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}.{core::int::isEven}{core::bool}; - self::throwsInStrong(() → void => let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:25:35: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + ^" in (let final self::Class? #t8 = c in #t8 == null ?{core::int?} null : #t8{self::Class}.{self::Class::field}{core::int}).{core::int::unary-}(){() → core::int}); + let final self::Class? #t9 = c in #t9 == null ?{core::bool?} null : #t9{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}.{core::int::isEven}{core::bool}; + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:25:35: Error: Operator '+' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => c?.next[0] + 2); // error - ^" in (let final self::Class? #t14 = c in #t14 == null ?{core::int?} null : #t14{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::num::+}(2){(core::num) → core::num}); - let final self::Class? #t15 = c in #t15 == null ?{core::int?} null : let final self::Class #t16 = #t15{self::Class}.{self::Class::next}{self::Class} in let final core::int #t17 = 0 in let final core::int #t18 = #t16.{self::Class::[]}(#t17){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t19 = #t16.{self::Class::[]=}(#t17, #t18){(core::int, core::int) → void} in #t18; - let final self::Class? #t20 = c in #t20 == null ?{core::int?} null : let final self::Class #t21 = #t20{self::Class}.{self::Class::next}{self::Class} in let final core::int #t22 = 0 in #t21.{self::Class::[]=}(#t22, #t21.{self::Class::[]}(#t22){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int}){(core::int, core::int) → void}; - self::throwsInStrong(() → void => let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:28:37: Error: Property 'isEven' cannot be accessed on 'int?' because it is potentially null. + ^" in (let final self::Class? #t10 = c in #t10 == null ?{core::int?} null : #t10{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::num::+}(2){(core::num) → core::num}); + let final self::Class? #t11 = c in #t11 == null ?{core::int?} null : let final self::Class #t12 = #t11{self::Class}.{self::Class::next}{self::Class} in let final core::int #t13 = 0 in let final core::int #t14 = #t12.{self::Class::[]}(#t13){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t15 = #t12.{self::Class::[]=}(#t13, #t14){(core::int, core::int) → void} in #t14; + let final self::Class? #t16 = c in #t16 == null ?{core::int?} null : let final self::Class #t17 = #t16{self::Class}.{self::Class::next}{self::Class} in let final core::int #t18 = 0 in #t17.{self::Class::[]=}(#t18, #t17.{self::Class::[]}(#t18){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int}){(core::int, core::int) → void}; + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:28:37: Error: Property 'isEven' cannot be accessed on 'int?' because it is potentially null. Try accessing using ?. instead. throwsInStrong(() => (c?.next[0]).isEven); // error - ^^^^^^" in (let final self::Class? #t24 = c in #t24 == null ?{core::int?} null : #t24{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::isEven}{}.{core::bool}); - self::throwsInStrong(() → void => let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:29:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + ^^^^^^" in (let final self::Class? #t19 = c in #t19 == null ?{core::int?} null : #t19{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::isEven}{}.{core::bool}); + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:29:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => -c?.next[0]); // error - ^" in (let final self::Class? #t26 = c in #t26 == null ?{core::int?} null : #t26{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::unary-}(){() → core::int}); + ^" in (let final self::Class? #t20 = c in #t20 == null ?{core::int?} null : #t20{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::unary-}(){() → core::int}); } static method _inStrongMode() → core::bool { (core::String?) → Null f = (core::String? s) → Null { - let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:36:7: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:36:7: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. Try accessing using ?. instead. s.length; // This will be an invalid expression in strong mode. ^^^^^^" in s.{core::String::length}{}.{core::int}; diff --git a/pkg/front_end/testcases/nnbd/shorting_stop.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/shorting_stop.dart.strong.transformed.expect index 6c0eabef455..d3a152c5d02 100644 --- a/pkg/front_end/testcases/nnbd/shorting_stop.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/shorting_stop.dart.strong.transformed.expect @@ -54,36 +54,36 @@ static method main() → dynamic { } static method test(self::Class? c) → dynamic { let final self::Class? #t1 = c in #t1 == null ?{core::int?} null : #t1{self::Class}.{self::Class::next}{self::Class}.{self::Class::field}{core::int}; - self::throwsInStrong(() → void => let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:18:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:18:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => c?.field + 2); // error - ^" in (let final self::Class? #t3 = c in #t3 == null ?{core::int?} null : #t3{self::Class}.{self::Class::field}{core::int}).{core::num::+}(2){(core::num) → core::num}); - let final self::Class? #t4 = c in #t4 == null ?{core::int?} null : let final core::int #t5 = #t4.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t6 = #t4.{self::Class::field} = #t5 in #t5; - let final self::Class? #t7 = c in #t7 == null ?{core::int?} null : #t7.{self::Class::field} = #t7.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int}; - self::throwsInStrong(() → void => let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:21:34: Error: Property 'field' cannot be accessed on 'Class?' because it is potentially null. + ^" in (let final self::Class? #t2 = c in #t2 == null ?{core::int?} null : #t2{self::Class}.{self::Class::field}{core::int}).{core::num::+}(2){(core::num) → core::num}); + let final self::Class? #t3 = c in #t3 == null ?{core::int?} null : let final core::int #t4 = #t3.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t5 = #t3.{self::Class::field} = #t4 in #t4; + let final self::Class? #t6 = c in #t6 == null ?{core::int?} null : #t6.{self::Class::field} = #t6.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int}; + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:21:34: Error: Property 'field' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/shorting_stop.dart'. Try accessing using ?. instead. throwsInStrong(() => (c?.next).field); // error - ^^^^^" in (let final self::Class? #t9 = c in #t9 == null ?{self::Class?} null : #t9{self::Class}.{self::Class::next}{self::Class}).{self::Class::field}{}.{core::int}); - self::throwsInStrong(() → void => let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:22:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + ^^^^^" in (let final self::Class? #t7 = c in #t7 == null ?{self::Class?} null : #t7{self::Class}.{self::Class::next}{self::Class}).{self::Class::field}{}.{core::int}); + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:22:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => -c?.field); // error - ^" in (let final self::Class? #t11 = c in #t11 == null ?{core::int?} null : #t11{self::Class}.{self::Class::field}{core::int}).{core::int::unary-}(){() → core::int}); - let final self::Class? #t12 = c in #t12 == null ?{core::bool?} null : #t12{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}.{core::int::isEven}{core::bool}; - self::throwsInStrong(() → void => let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:25:35: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + ^" in (let final self::Class? #t8 = c in #t8 == null ?{core::int?} null : #t8{self::Class}.{self::Class::field}{core::int}).{core::int::unary-}(){() → core::int}); + let final self::Class? #t9 = c in #t9 == null ?{core::bool?} null : #t9{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}.{core::int::isEven}{core::bool}; + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:25:35: Error: Operator '+' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => c?.next[0] + 2); // error - ^" in (let final self::Class? #t14 = c in #t14 == null ?{core::int?} null : #t14{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::num::+}(2){(core::num) → core::num}); - let final self::Class? #t15 = c in #t15 == null ?{core::int?} null : let final self::Class #t16 = #t15{self::Class}.{self::Class::next}{self::Class} in let final core::int #t17 = 0 in let final core::int #t18 = #t16.{self::Class::[]}(#t17){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t19 = #t16.{self::Class::[]=}(#t17, #t18){(core::int, core::int) → void} in #t18; - let final self::Class? #t20 = c in #t20 == null ?{core::int?} null : let final self::Class #t21 = #t20{self::Class}.{self::Class::next}{self::Class} in let final core::int #t22 = 0 in #t21.{self::Class::[]=}(#t22, #t21.{self::Class::[]}(#t22){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int}){(core::int, core::int) → void}; - self::throwsInStrong(() → void => let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:28:37: Error: Property 'isEven' cannot be accessed on 'int?' because it is potentially null. + ^" in (let final self::Class? #t10 = c in #t10 == null ?{core::int?} null : #t10{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::num::+}(2){(core::num) → core::num}); + let final self::Class? #t11 = c in #t11 == null ?{core::int?} null : let final self::Class #t12 = #t11{self::Class}.{self::Class::next}{self::Class} in let final core::int #t13 = 0 in let final core::int #t14 = #t12.{self::Class::[]}(#t13){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t15 = #t12.{self::Class::[]=}(#t13, #t14){(core::int, core::int) → void} in #t14; + let final self::Class? #t16 = c in #t16 == null ?{core::int?} null : let final self::Class #t17 = #t16{self::Class}.{self::Class::next}{self::Class} in let final core::int #t18 = 0 in #t17.{self::Class::[]=}(#t18, #t17.{self::Class::[]}(#t18){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int}){(core::int, core::int) → void}; + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:28:37: Error: Property 'isEven' cannot be accessed on 'int?' because it is potentially null. Try accessing using ?. instead. throwsInStrong(() => (c?.next[0]).isEven); // error - ^^^^^^" in (let final self::Class? #t24 = c in #t24 == null ?{core::int?} null : #t24{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::isEven}{}.{core::bool}); - self::throwsInStrong(() → void => let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:29:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + ^^^^^^" in (let final self::Class? #t19 = c in #t19 == null ?{core::int?} null : #t19{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::isEven}{}.{core::bool}); + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:29:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => -c?.next[0]); // error - ^" in (let final self::Class? #t26 = c in #t26 == null ?{core::int?} null : #t26{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::unary-}(){() → core::int}); + ^" in (let final self::Class? #t20 = c in #t20 == null ?{core::int?} null : #t20{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::unary-}(){() → core::int}); } static method _inStrongMode() → core::bool { (core::String?) → Null f = (core::String? s) → Null { - let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:36:7: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:36:7: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. Try accessing using ?. instead. s.length; // This will be an invalid expression in strong mode. ^^^^^^" in s.{core::String::length}{}.{core::int}; @@ -118,4 +118,4 @@ Evaluated: VariableGet @ org-dartlang-testcase:///shorting_stop.dart:26:13 -> In Evaluated: VariableGet @ org-dartlang-testcase:///shorting_stop.dart:26:13 -> IntConstant(0) Evaluated: VariableGet @ org-dartlang-testcase:///shorting_stop.dart:27:11 -> IntConstant(0) Evaluated: VariableGet @ org-dartlang-testcase:///shorting_stop.dart:27:11 -> IntConstant(0) -Extra constant evaluation: evaluated: 165, effectively constant: 4 +Extra constant evaluation: evaluated: 105, effectively constant: 4 diff --git a/pkg/front_end/testcases/nnbd/shorting_stop.dart.weak.expect b/pkg/front_end/testcases/nnbd/shorting_stop.dart.weak.expect index 5fd4921535d..0e344465ce5 100644 --- a/pkg/front_end/testcases/nnbd/shorting_stop.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/shorting_stop.dart.weak.expect @@ -54,36 +54,36 @@ static method main() → dynamic { } static method test(self::Class? c) → dynamic { let final self::Class? #t1 = c in #t1 == null ?{core::int?} null : #t1{self::Class}.{self::Class::next}{self::Class}.{self::Class::field}{core::int}; - self::throwsInStrong(() → void => let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:18:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:18:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => c?.field + 2); // error - ^" in (let final self::Class? #t3 = c in #t3 == null ?{core::int?} null : #t3{self::Class}.{self::Class::field}{core::int}).{core::num::+}(2){(core::num) → core::num}); - let final self::Class? #t4 = c in #t4 == null ?{core::int?} null : let final core::int #t5 = #t4.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t6 = #t4.{self::Class::field} = #t5 in #t5; - let final self::Class? #t7 = c in #t7 == null ?{core::int?} null : #t7.{self::Class::field} = #t7.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int}; - self::throwsInStrong(() → void => let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:21:34: Error: Property 'field' cannot be accessed on 'Class?' because it is potentially null. + ^" in (let final self::Class? #t2 = c in #t2 == null ?{core::int?} null : #t2{self::Class}.{self::Class::field}{core::int}).{core::num::+}(2){(core::num) → core::num}); + let final self::Class? #t3 = c in #t3 == null ?{core::int?} null : let final core::int #t4 = #t3.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t5 = #t3.{self::Class::field} = #t4 in #t4; + let final self::Class? #t6 = c in #t6 == null ?{core::int?} null : #t6.{self::Class::field} = #t6.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int}; + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:21:34: Error: Property 'field' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/shorting_stop.dart'. Try accessing using ?. instead. throwsInStrong(() => (c?.next).field); // error - ^^^^^" in (let final self::Class? #t9 = c in #t9 == null ?{self::Class?} null : #t9{self::Class}.{self::Class::next}{self::Class}).{self::Class::field}{}.{core::int}); - self::throwsInStrong(() → void => let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:22:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + ^^^^^" in (let final self::Class? #t7 = c in #t7 == null ?{self::Class?} null : #t7{self::Class}.{self::Class::next}{self::Class}).{self::Class::field}{}.{core::int}); + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:22:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => -c?.field); // error - ^" in (let final self::Class? #t11 = c in #t11 == null ?{core::int?} null : #t11{self::Class}.{self::Class::field}{core::int}).{core::int::unary-}(){() → core::int}); - let final self::Class? #t12 = c in #t12 == null ?{core::bool?} null : #t12{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}.{core::int::isEven}{core::bool}; - self::throwsInStrong(() → void => let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:25:35: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + ^" in (let final self::Class? #t8 = c in #t8 == null ?{core::int?} null : #t8{self::Class}.{self::Class::field}{core::int}).{core::int::unary-}(){() → core::int}); + let final self::Class? #t9 = c in #t9 == null ?{core::bool?} null : #t9{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}.{core::int::isEven}{core::bool}; + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:25:35: Error: Operator '+' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => c?.next[0] + 2); // error - ^" in (let final self::Class? #t14 = c in #t14 == null ?{core::int?} null : #t14{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::num::+}(2){(core::num) → core::num}); - let final self::Class? #t15 = c in #t15 == null ?{core::int?} null : let final self::Class #t16 = #t15{self::Class}.{self::Class::next}{self::Class} in let final core::int #t17 = 0 in let final core::int #t18 = #t16.{self::Class::[]}(#t17){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t19 = #t16.{self::Class::[]=}(#t17, #t18){(core::int, core::int) → void} in #t18; - let final self::Class? #t20 = c in #t20 == null ?{core::int?} null : let final self::Class #t21 = #t20{self::Class}.{self::Class::next}{self::Class} in let final core::int #t22 = 0 in #t21.{self::Class::[]=}(#t22, #t21.{self::Class::[]}(#t22){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int}){(core::int, core::int) → void}; - self::throwsInStrong(() → void => let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:28:37: Error: Property 'isEven' cannot be accessed on 'int?' because it is potentially null. + ^" in (let final self::Class? #t10 = c in #t10 == null ?{core::int?} null : #t10{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::num::+}(2){(core::num) → core::num}); + let final self::Class? #t11 = c in #t11 == null ?{core::int?} null : let final self::Class #t12 = #t11{self::Class}.{self::Class::next}{self::Class} in let final core::int #t13 = 0 in let final core::int #t14 = #t12.{self::Class::[]}(#t13){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t15 = #t12.{self::Class::[]=}(#t13, #t14){(core::int, core::int) → void} in #t14; + let final self::Class? #t16 = c in #t16 == null ?{core::int?} null : let final self::Class #t17 = #t16{self::Class}.{self::Class::next}{self::Class} in let final core::int #t18 = 0 in #t17.{self::Class::[]=}(#t18, #t17.{self::Class::[]}(#t18){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int}){(core::int, core::int) → void}; + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:28:37: Error: Property 'isEven' cannot be accessed on 'int?' because it is potentially null. Try accessing using ?. instead. throwsInStrong(() => (c?.next[0]).isEven); // error - ^^^^^^" in (let final self::Class? #t24 = c in #t24 == null ?{core::int?} null : #t24{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::isEven}{}.{core::bool}); - self::throwsInStrong(() → void => let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:29:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + ^^^^^^" in (let final self::Class? #t19 = c in #t19 == null ?{core::int?} null : #t19{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::isEven}{}.{core::bool}); + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:29:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => -c?.next[0]); // error - ^" in (let final self::Class? #t26 = c in #t26 == null ?{core::int?} null : #t26{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::unary-}(){() → core::int}); + ^" in (let final self::Class? #t20 = c in #t20 == null ?{core::int?} null : #t20{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::unary-}(){() → core::int}); } static method _inStrongMode() → core::bool { (core::String?) → Null f = (core::String? s) → Null { - let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:36:7: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:36:7: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. Try accessing using ?. instead. s.length; // This will be an invalid expression in strong mode. ^^^^^^" in s.{core::String::length}{}.{core::int}; diff --git a/pkg/front_end/testcases/nnbd/shorting_stop.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/shorting_stop.dart.weak.transformed.expect index 6c0eabef455..d3a152c5d02 100644 --- a/pkg/front_end/testcases/nnbd/shorting_stop.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/shorting_stop.dart.weak.transformed.expect @@ -54,36 +54,36 @@ static method main() → dynamic { } static method test(self::Class? c) → dynamic { let final self::Class? #t1 = c in #t1 == null ?{core::int?} null : #t1{self::Class}.{self::Class::next}{self::Class}.{self::Class::field}{core::int}; - self::throwsInStrong(() → void => let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:18:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:18:33: Error: Operator '+' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => c?.field + 2); // error - ^" in (let final self::Class? #t3 = c in #t3 == null ?{core::int?} null : #t3{self::Class}.{self::Class::field}{core::int}).{core::num::+}(2){(core::num) → core::num}); - let final self::Class? #t4 = c in #t4 == null ?{core::int?} null : let final core::int #t5 = #t4.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t6 = #t4.{self::Class::field} = #t5 in #t5; - let final self::Class? #t7 = c in #t7 == null ?{core::int?} null : #t7.{self::Class::field} = #t7.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int}; - self::throwsInStrong(() → void => let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:21:34: Error: Property 'field' cannot be accessed on 'Class?' because it is potentially null. + ^" in (let final self::Class? #t2 = c in #t2 == null ?{core::int?} null : #t2{self::Class}.{self::Class::field}{core::int}).{core::num::+}(2){(core::num) → core::num}); + let final self::Class? #t3 = c in #t3 == null ?{core::int?} null : let final core::int #t4 = #t3.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t5 = #t3.{self::Class::field} = #t4 in #t4; + let final self::Class? #t6 = c in #t6 == null ?{core::int?} null : #t6.{self::Class::field} = #t6.{self::Class::field}{core::int}.{core::num::+}(1){(core::num) → core::int}; + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:21:34: Error: Property 'field' cannot be accessed on 'Class?' because it is potentially null. - 'Class' is from 'pkg/front_end/testcases/nnbd/shorting_stop.dart'. Try accessing using ?. instead. throwsInStrong(() => (c?.next).field); // error - ^^^^^" in (let final self::Class? #t9 = c in #t9 == null ?{self::Class?} null : #t9{self::Class}.{self::Class::next}{self::Class}).{self::Class::field}{}.{core::int}); - self::throwsInStrong(() → void => let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:22:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + ^^^^^" in (let final self::Class? #t7 = c in #t7 == null ?{self::Class?} null : #t7{self::Class}.{self::Class::next}{self::Class}).{self::Class::field}{}.{core::int}); + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:22:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => -c?.field); // error - ^" in (let final self::Class? #t11 = c in #t11 == null ?{core::int?} null : #t11{self::Class}.{self::Class::field}{core::int}).{core::int::unary-}(){() → core::int}); - let final self::Class? #t12 = c in #t12 == null ?{core::bool?} null : #t12{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}.{core::int::isEven}{core::bool}; - self::throwsInStrong(() → void => let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:25:35: Error: Operator '+' cannot be called on 'int?' because it is potentially null. + ^" in (let final self::Class? #t8 = c in #t8 == null ?{core::int?} null : #t8{self::Class}.{self::Class::field}{core::int}).{core::int::unary-}(){() → core::int}); + let final self::Class? #t9 = c in #t9 == null ?{core::bool?} null : #t9{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}.{core::int::isEven}{core::bool}; + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:25:35: Error: Operator '+' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => c?.next[0] + 2); // error - ^" in (let final self::Class? #t14 = c in #t14 == null ?{core::int?} null : #t14{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::num::+}(2){(core::num) → core::num}); - let final self::Class? #t15 = c in #t15 == null ?{core::int?} null : let final self::Class #t16 = #t15{self::Class}.{self::Class::next}{self::Class} in let final core::int #t17 = 0 in let final core::int #t18 = #t16.{self::Class::[]}(#t17){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t19 = #t16.{self::Class::[]=}(#t17, #t18){(core::int, core::int) → void} in #t18; - let final self::Class? #t20 = c in #t20 == null ?{core::int?} null : let final self::Class #t21 = #t20{self::Class}.{self::Class::next}{self::Class} in let final core::int #t22 = 0 in #t21.{self::Class::[]=}(#t22, #t21.{self::Class::[]}(#t22){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int}){(core::int, core::int) → void}; - self::throwsInStrong(() → void => let final Never #t23 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:28:37: Error: Property 'isEven' cannot be accessed on 'int?' because it is potentially null. + ^" in (let final self::Class? #t10 = c in #t10 == null ?{core::int?} null : #t10{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::num::+}(2){(core::num) → core::num}); + let final self::Class? #t11 = c in #t11 == null ?{core::int?} null : let final self::Class #t12 = #t11{self::Class}.{self::Class::next}{self::Class} in let final core::int #t13 = 0 in let final core::int #t14 = #t12.{self::Class::[]}(#t13){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int} in let final void #t15 = #t12.{self::Class::[]=}(#t13, #t14){(core::int, core::int) → void} in #t14; + let final self::Class? #t16 = c in #t16 == null ?{core::int?} null : let final self::Class #t17 = #t16{self::Class}.{self::Class::next}{self::Class} in let final core::int #t18 = 0 in #t17.{self::Class::[]=}(#t18, #t17.{self::Class::[]}(#t18){(core::int) → core::int}.{core::num::+}(1){(core::num) → core::int}){(core::int, core::int) → void}; + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:28:37: Error: Property 'isEven' cannot be accessed on 'int?' because it is potentially null. Try accessing using ?. instead. throwsInStrong(() => (c?.next[0]).isEven); // error - ^^^^^^" in (let final self::Class? #t24 = c in #t24 == null ?{core::int?} null : #t24{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::isEven}{}.{core::bool}); - self::throwsInStrong(() → void => let final Never #t25 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:29:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. + ^^^^^^" in (let final self::Class? #t19 = c in #t19 == null ?{core::int?} null : #t19{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::isEven}{}.{core::bool}); + self::throwsInStrong(() → void => invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:29:24: Error: Operator 'unary-' cannot be called on 'int?' because it is potentially null. throwsInStrong(() => -c?.next[0]); // error - ^" in (let final self::Class? #t26 = c in #t26 == null ?{core::int?} null : #t26{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::unary-}(){() → core::int}); + ^" in (let final self::Class? #t20 = c in #t20 == null ?{core::int?} null : #t20{self::Class}.{self::Class::next}{self::Class}.{self::Class::[]}(0){(core::int) → core::int}).{core::int::unary-}(){() → core::int}); } static method _inStrongMode() → core::bool { (core::String?) → Null f = (core::String? s) → Null { - let final Never #t27 = invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:36:7: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/nnbd/shorting_stop.dart:36:7: Error: Property 'length' cannot be accessed on 'String?' because it is potentially null. Try accessing using ?. instead. s.length; // This will be an invalid expression in strong mode. ^^^^^^" in s.{core::String::length}{}.{core::int}; @@ -118,4 +118,4 @@ Evaluated: VariableGet @ org-dartlang-testcase:///shorting_stop.dart:26:13 -> In Evaluated: VariableGet @ org-dartlang-testcase:///shorting_stop.dart:26:13 -> IntConstant(0) Evaluated: VariableGet @ org-dartlang-testcase:///shorting_stop.dart:27:11 -> IntConstant(0) Evaluated: VariableGet @ org-dartlang-testcase:///shorting_stop.dart:27:11 -> IntConstant(0) -Extra constant evaluation: evaluated: 165, effectively constant: 4 +Extra constant evaluation: evaluated: 105, effectively constant: 4 diff --git a/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.strong.expect b/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.strong.expect index 3435d06f7f6..199a6cb76da 100644 --- a/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.strong.expect @@ -30,7 +30,7 @@ static method method1(self::Enum? e) → core::int { return 0; } } - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/switch_nullable_enum.dart:7:5: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/switch_nullable_enum.dart:7:5: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int method1(Enum? e) { ^" in null; } diff --git a/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.strong.transformed.expect index 3435d06f7f6..199a6cb76da 100644 --- a/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.strong.transformed.expect @@ -30,7 +30,7 @@ static method method1(self::Enum? e) → core::int { return 0; } } - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/switch_nullable_enum.dart:7:5: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/switch_nullable_enum.dart:7:5: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int method1(Enum? e) { ^" in null; } diff --git a/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.weak.expect b/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.weak.expect index 6d0b4f2efd7..f73e2a78a3a 100644 --- a/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.weak.expect @@ -31,7 +31,7 @@ static method method1(self::Enum? e) → core::int { return 0; } } - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/switch_nullable_enum.dart:7:5: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/switch_nullable_enum.dart:7:5: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int method1(Enum? e) { ^" in null; } diff --git a/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.weak.transformed.expect index 6d0b4f2efd7..f73e2a78a3a 100644 --- a/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/switch_nullable_enum.dart.weak.transformed.expect @@ -31,7 +31,7 @@ static method method1(self::Enum? e) → core::int { return 0; } } - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/switch_nullable_enum.dart:7:5: Error: A non-null value must be returned since the return type 'int' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd/switch_nullable_enum.dart:7:5: Error: A non-null value must be returned since the return type 'int' doesn't allow null. int method1(Enum? e) { ^" in null; } diff --git a/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.strong.expect b/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.strong.expect index 9cbfdf45589..ad453ca10fa 100644 --- a/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.strong.expect @@ -55,38 +55,38 @@ class C extends core::Object { static method functionContext(() → core::int f) → dynamic {} static method nullableFunctionContext(() →? core::int f) → dynamic {} static method foo(self::C? c, self::foo::T% t, self::foo::T? nt) → dynamic { - self::functionContext(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:14:24: Error: Can't tear off method 'call' from a potentially null value. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:14:24: Error: Can't tear off method 'call' from a potentially null value. functionContext(null as C?); // Error. ^" in (null as{ForNonNullableByDefault} self::C?) as{TypeError} () → core::int); - self::nullableFunctionContext(let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:15:32: Error: Can't tear off method 'call' from a potentially null value. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:15:32: Error: Can't tear off method 'call' from a potentially null value. nullableFunctionContext(null as C?); // Error. ^" in (null as{ForNonNullableByDefault} self::C?) as{TypeError} () →? core::int); - self::functionContext(let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:16:19: Error: Can't tear off method 'call' from a potentially null value. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:16:19: Error: Can't tear off method 'call' from a potentially null value. functionContext(c); // Error. ^" in c as{TypeError} () → core::int); - self::nullableFunctionContext(let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:17:27: Error: Can't tear off method 'call' from a potentially null value. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:17:27: Error: Can't tear off method 'call' from a potentially null value. nullableFunctionContext(c); // Error. ^" in c as{TypeError} () →? core::int); - self::functionContext(let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:18:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:18:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. functionContext(t); // Error. ^" in t as{TypeError,ForNonNullableByDefault} () → core::int); - self::nullableFunctionContext(let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:19:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:19:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. nullableFunctionContext(t); // Error. ^" in t as{TypeError,ForNonNullableByDefault} () →? core::int); - self::functionContext(let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:20:19: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()'. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:20:19: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()'. functionContext(nt); // Error. ^" in nt as{TypeError,ForNonNullableByDefault} () → core::int); - self::nullableFunctionContext(let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:21:27: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()?'. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:21:27: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()?'. nullableFunctionContext(nt); // Error. ^" in nt as{TypeError,ForNonNullableByDefault} () →? core::int); } static method bar(self::C c, self::bar::T t) → dynamic { - self::functionContext(let final self::C #t9 = c in #t9 == null ?{() → core::int} null : #t9.{self::C::call}{() → core::int}); - self::nullableFunctionContext(let final self::C #t10 = c in #t10 == null ?{() → core::int} null : #t10.{self::C::call}{() → core::int}); - self::functionContext(let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:27:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. + self::functionContext(let final self::C #t1 = c in #t1 == null ?{() → core::int} null : #t1.{self::C::call}{() → core::int}); + self::nullableFunctionContext(let final self::C #t2 = c in #t2 == null ?{() → core::int} null : #t2.{self::C::call}{() → core::int}); + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:27:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. functionContext(t); // Shouldn't result in a compile-time error. ^" in t as{TypeError,ForNonNullableByDefault} () → core::int); - self::nullableFunctionContext(let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:28:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:28:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. nullableFunctionContext(t); // Shouldn't result in a compile-time error. ^" in t as{TypeError,ForNonNullableByDefault} () →? core::int); } diff --git a/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.strong.transformed.expect index 99736f9cc79..b42d02f890b 100644 --- a/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.strong.transformed.expect @@ -55,46 +55,39 @@ class C extends core::Object { static method functionContext(() → core::int f) → dynamic {} static method nullableFunctionContext(() →? core::int f) → dynamic {} static method foo(self::C? c, self::foo::T% t, self::foo::T? nt) → dynamic { - self::functionContext(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:14:24: Error: Can't tear off method 'call' from a potentially null value. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:14:24: Error: Can't tear off method 'call' from a potentially null value. functionContext(null as C?); // Error. - ^" in let Null #t2 = null in #t2 == null ?{() → core::int} #t2 as{TypeError} () → core::int : #t2{() → core::int}); - self::nullableFunctionContext(let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:15:32: Error: Can't tear off method 'call' from a potentially null value. + ^" in let Null #t1 = null in #t1 == null ?{() → core::int} #t1 as{TypeError} () → core::int : #t1{() → core::int}); + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:15:32: Error: Can't tear off method 'call' from a potentially null value. nullableFunctionContext(null as C?); // Error. ^" in null); - self::functionContext(let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:16:19: Error: Can't tear off method 'call' from a potentially null value. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:16:19: Error: Can't tear off method 'call' from a potentially null value. functionContext(c); // Error. ^" in c as{TypeError} () → core::int); - self::nullableFunctionContext(let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:17:27: Error: Can't tear off method 'call' from a potentially null value. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:17:27: Error: Can't tear off method 'call' from a potentially null value. nullableFunctionContext(c); // Error. ^" in c as{TypeError} () →? core::int); - self::functionContext(let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:18:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:18:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. functionContext(t); // Error. ^" in t as{TypeError,ForNonNullableByDefault} () → core::int); - self::nullableFunctionContext(let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:19:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:19:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. nullableFunctionContext(t); // Error. ^" in t as{TypeError,ForNonNullableByDefault} () →? core::int); - self::functionContext(let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:20:19: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()'. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:20:19: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()'. functionContext(nt); // Error. ^" in nt as{TypeError,ForNonNullableByDefault} () → core::int); - self::nullableFunctionContext(let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:21:27: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()?'. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:21:27: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()?'. nullableFunctionContext(nt); // Error. ^" in nt as{TypeError,ForNonNullableByDefault} () →? core::int); } static method bar(self::C c, self::bar::T t) → dynamic { - self::functionContext(let final self::C #t10 = c in #t10 == null ?{() → core::int} null : #t10.{self::C::call}{() → core::int}); - self::nullableFunctionContext(let final self::C #t11 = c in #t11 == null ?{() → core::int} null : #t11.{self::C::call}{() → core::int}); - self::functionContext(let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:27:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. + self::functionContext(let final self::C #t2 = c in #t2 == null ?{() → core::int} null : #t2.{self::C::call}{() → core::int}); + self::nullableFunctionContext(let final self::C #t3 = c in #t3 == null ?{() → core::int} null : #t3.{self::C::call}{() → core::int}); + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:27:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. functionContext(t); // Shouldn't result in a compile-time error. ^" in t as{TypeError,ForNonNullableByDefault} () → core::int); - self::nullableFunctionContext(let final Never #t13 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:28:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:28:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. nullableFunctionContext(t); // Shouldn't result in a compile-time error. ^" in t as{TypeError,ForNonNullableByDefault} () →? core::int); } static method main() → dynamic {} - - -Extra constant evaluation status: -Evaluated: EqualsNull @ org-dartlang-testcase:///tearoff_from_nullable_receiver.dart:14:24 -> BoolConstant(true) -Evaluated: VariableGet @ org-dartlang-testcase:///tearoff_from_nullable_receiver.dart:14:24 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///tearoff_from_nullable_receiver.dart:14:24 -> NullConstant(null) -Extra constant evaluation: evaluated: 58, effectively constant: 3 diff --git a/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.weak.expect b/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.weak.expect index 9cbfdf45589..ad453ca10fa 100644 --- a/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.weak.expect @@ -55,38 +55,38 @@ class C extends core::Object { static method functionContext(() → core::int f) → dynamic {} static method nullableFunctionContext(() →? core::int f) → dynamic {} static method foo(self::C? c, self::foo::T% t, self::foo::T? nt) → dynamic { - self::functionContext(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:14:24: Error: Can't tear off method 'call' from a potentially null value. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:14:24: Error: Can't tear off method 'call' from a potentially null value. functionContext(null as C?); // Error. ^" in (null as{ForNonNullableByDefault} self::C?) as{TypeError} () → core::int); - self::nullableFunctionContext(let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:15:32: Error: Can't tear off method 'call' from a potentially null value. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:15:32: Error: Can't tear off method 'call' from a potentially null value. nullableFunctionContext(null as C?); // Error. ^" in (null as{ForNonNullableByDefault} self::C?) as{TypeError} () →? core::int); - self::functionContext(let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:16:19: Error: Can't tear off method 'call' from a potentially null value. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:16:19: Error: Can't tear off method 'call' from a potentially null value. functionContext(c); // Error. ^" in c as{TypeError} () → core::int); - self::nullableFunctionContext(let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:17:27: Error: Can't tear off method 'call' from a potentially null value. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:17:27: Error: Can't tear off method 'call' from a potentially null value. nullableFunctionContext(c); // Error. ^" in c as{TypeError} () →? core::int); - self::functionContext(let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:18:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:18:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. functionContext(t); // Error. ^" in t as{TypeError,ForNonNullableByDefault} () → core::int); - self::nullableFunctionContext(let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:19:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:19:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. nullableFunctionContext(t); // Error. ^" in t as{TypeError,ForNonNullableByDefault} () →? core::int); - self::functionContext(let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:20:19: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()'. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:20:19: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()'. functionContext(nt); // Error. ^" in nt as{TypeError,ForNonNullableByDefault} () → core::int); - self::nullableFunctionContext(let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:21:27: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()?'. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:21:27: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()?'. nullableFunctionContext(nt); // Error. ^" in nt as{TypeError,ForNonNullableByDefault} () →? core::int); } static method bar(self::C c, self::bar::T t) → dynamic { - self::functionContext(let final self::C #t9 = c in #t9 == null ?{() → core::int} null : #t9.{self::C::call}{() → core::int}); - self::nullableFunctionContext(let final self::C #t10 = c in #t10 == null ?{() → core::int} null : #t10.{self::C::call}{() → core::int}); - self::functionContext(let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:27:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. + self::functionContext(let final self::C #t1 = c in #t1 == null ?{() → core::int} null : #t1.{self::C::call}{() → core::int}); + self::nullableFunctionContext(let final self::C #t2 = c in #t2 == null ?{() → core::int} null : #t2.{self::C::call}{() → core::int}); + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:27:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. functionContext(t); // Shouldn't result in a compile-time error. ^" in t as{TypeError,ForNonNullableByDefault} () → core::int); - self::nullableFunctionContext(let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:28:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:28:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. nullableFunctionContext(t); // Shouldn't result in a compile-time error. ^" in t as{TypeError,ForNonNullableByDefault} () →? core::int); } diff --git a/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.weak.transformed.expect index 3f2deb73fcf..dbe9c132a06 100644 --- a/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart.weak.transformed.expect @@ -55,38 +55,38 @@ class C extends core::Object { static method functionContext(() → core::int f) → dynamic {} static method nullableFunctionContext(() →? core::int f) → dynamic {} static method foo(self::C? c, self::foo::T% t, self::foo::T? nt) → dynamic { - self::functionContext(let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:14:24: Error: Can't tear off method 'call' from a potentially null value. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:14:24: Error: Can't tear off method 'call' from a potentially null value. functionContext(null as C?); // Error. ^" in null); - self::nullableFunctionContext(let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:15:32: Error: Can't tear off method 'call' from a potentially null value. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:15:32: Error: Can't tear off method 'call' from a potentially null value. nullableFunctionContext(null as C?); // Error. ^" in null); - self::functionContext(let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:16:19: Error: Can't tear off method 'call' from a potentially null value. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:16:19: Error: Can't tear off method 'call' from a potentially null value. functionContext(c); // Error. ^" in c as{TypeError} () → core::int); - self::nullableFunctionContext(let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:17:27: Error: Can't tear off method 'call' from a potentially null value. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:17:27: Error: Can't tear off method 'call' from a potentially null value. nullableFunctionContext(c); // Error. ^" in c as{TypeError} () →? core::int); - self::functionContext(let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:18:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:18:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. functionContext(t); // Error. ^" in t as{TypeError,ForNonNullableByDefault} () → core::int); - self::nullableFunctionContext(let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:19:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:19:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. nullableFunctionContext(t); // Error. ^" in t as{TypeError,ForNonNullableByDefault} () →? core::int); - self::functionContext(let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:20:19: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()'. + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:20:19: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()'. functionContext(nt); // Error. ^" in nt as{TypeError,ForNonNullableByDefault} () → core::int); - self::nullableFunctionContext(let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:21:27: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()?'. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:21:27: Error: The argument type 'T?' can't be assigned to the parameter type 'int Function()?'. nullableFunctionContext(nt); // Error. ^" in nt as{TypeError,ForNonNullableByDefault} () →? core::int); } static method bar(self::C c, self::bar::T t) → dynamic { - self::functionContext(let final self::C #t9 = c in #t9 == null ?{() → core::int} null : #t9.{self::C::call}{() → core::int}); - self::nullableFunctionContext(let final self::C #t10 = c in #t10 == null ?{() → core::int} null : #t10.{self::C::call}{() → core::int}); - self::functionContext(let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:27:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. + self::functionContext(let final self::C #t1 = c in #t1 == null ?{() → core::int} null : #t1.{self::C::call}{() → core::int}); + self::nullableFunctionContext(let final self::C #t2 = c in #t2 == null ?{() → core::int} null : #t2.{self::C::call}{() → core::int}); + self::functionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:27:19: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()'. functionContext(t); // Shouldn't result in a compile-time error. ^" in t as{TypeError,ForNonNullableByDefault} () → core::int); - self::nullableFunctionContext(let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:28:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. + self::nullableFunctionContext(invalid-expression "pkg/front_end/testcases/nnbd/tearoff_from_nullable_receiver.dart:28:27: Error: The argument type 'T' can't be assigned to the parameter type 'int Function()?'. nullableFunctionContext(t); // Shouldn't result in a compile-time error. ^" in t as{TypeError,ForNonNullableByDefault} () →? core::int); } diff --git a/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.strong.expect b/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.strong.expect index aa5cbbde8e4..b10539b912d 100644 --- a/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.strong.expect @@ -19,7 +19,7 @@ static method check(self::C(new self::C::•>((core::List x) → void {})); - core::String s = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart:15:14: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String s = invalid-expression "pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart:15:14: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String s = x; // Should be an error, `T` should be int. ^" in x as{TypeError,ForNonNullableByDefault} core::String; } diff --git a/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.strong.transformed.expect index 680f4365dd0..4bf9d54f271 100644 --- a/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.strong.transformed.expect @@ -19,7 +19,7 @@ static method check(self::C(new self::C::•>((core::List x) → void {})); - core::String s = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart:15:14: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String s = invalid-expression "pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart:15:14: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String s = x; // Should be an error, `T` should be int. ^" in x as{TypeError,ForNonNullableByDefault} core::String; } @@ -30,4 +30,4 @@ Extra constant evaluation status: Evaluated: EqualsNull @ org-dartlang-testcase:///type_constraint_solving_closures_in_upper_and_lower_bounds.dart:10:3 -> BoolConstant(true) Evaluated: VariableGet @ org-dartlang-testcase:///type_constraint_solving_closures_in_upper_and_lower_bounds.dart:10:15 -> NullConstant(null) Evaluated: VariableGet @ org-dartlang-testcase:///type_constraint_solving_closures_in_upper_and_lower_bounds.dart:10:3 -> NullConstant(null) -Extra constant evaluation: evaluated: 12, effectively constant: 3 +Extra constant evaluation: evaluated: 9, effectively constant: 3 diff --git a/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.weak.expect b/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.weak.expect index aa5cbbde8e4..b10539b912d 100644 --- a/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.weak.expect @@ -19,7 +19,7 @@ static method check(self::C(new self::C::•>((core::List x) → void {})); - core::String s = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart:15:14: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String s = invalid-expression "pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart:15:14: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String s = x; // Should be an error, `T` should be int. ^" in x as{TypeError,ForNonNullableByDefault} core::String; } diff --git a/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.weak.transformed.expect index abbe6b19f12..2b87acdad7e 100644 --- a/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart.weak.transformed.expect @@ -19,7 +19,7 @@ static method check(self::C(new self::C::•>((core::List x) → void {})); - core::String s = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart:15:14: Error: A value of type 'int' can't be assigned to a variable of type 'String'. + core::String s = invalid-expression "pkg/front_end/testcases/nnbd/type_constraint_solving_closures_in_upper_and_lower_bounds.dart:15:14: Error: A value of type 'int' can't be assigned to a variable of type 'String'. String s = x; // Should be an error, `T` should be int. ^" in x as{TypeError,ForNonNullableByDefault} core::String; } diff --git a/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart.weak.expect index d78b5876b93..d345541017a 100644 --- a/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart.weak.expect @@ -110,7 +110,7 @@ class Class extends in_::LegacyClass implements in_2::SuperQ { i = super.{in_2::Super::nullabilityMethod}(null); i = this.{in_::LegacyClass::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; i = super.{in_2::Super::optionalArgumentsMethod}(null); - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:21:34: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:21:34: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.optionalArgumentsMethod(null, null); // error ^" in super.{in_2::Super::optionalArgumentsMethod}(null, null); @@ -142,13 +142,13 @@ class ClassQ extends in_::LegacyClassQ implements in_2::Super { i = super.{in_2::SuperQ::nullabilityMethod}(null); i = this.{in_::LegacyClassQ::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; i = super.{in_2::SuperQ::optionalArgumentsMethod}(null); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:46:34: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:46:34: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.optionalArgumentsMethod(null, null); // error ^" in super.{in_2::SuperQ::optionalArgumentsMethod}(null, null); i = this.{self::ClassQ::nullabilityGetter}{core::int}; i = super.{in_2::SuperQ::nullabilityGetter}; - this.{self::ClassQ::nullabilitySetter} = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:52:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. + this.{self::ClassQ::nullabilitySetter} = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:52:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. nullabilitySetter = null; // error ^" in null as{TypeError,ForNonNullableByDefault} core::int; super.{in_2::SuperQ::nullabilitySetter} = null; @@ -171,13 +171,13 @@ class ClassMixedIn extends in_::LegacyMixedIn implements in_2::SuperQ { ; method test() → dynamic { core::int i; - invalid-type v1 = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:63:31: Error: Required named parameter 'j' must be provided. + invalid-type v1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:63:31: Error: Required named parameter 'j' must be provided. var v1 = nullabilityMethod(null); // ok ^" in this.{in_::_LegacyMixedIn&Object&Super::nullabilityMethod}{}.(null){(invalid-type) → invalid-type}; i = super.{in_::_LegacyMixedIn&Object&Super::nullabilityMethod}(null); i = this.{in_::LegacyMixedIn::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; i = super.{in_::_LegacyMixedIn&Object&Super::optionalArgumentsMethod}(null); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:71:34: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:71:34: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.optionalArgumentsMethod(null, null); // error ^" in super.{in_::_LegacyMixedIn&Object&Super::optionalArgumentsMethod}(null, null); @@ -207,7 +207,7 @@ class ClassMixedInQ extends in_::LegacyMixedInQ implements in_2::Super { i = super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilityMethod}(null); i = this.{in_::LegacyMixedInQ::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; i = super.{in_::_LegacyMixedInQ&Object&SuperQ::optionalArgumentsMethod}(null); - let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:96:34: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:96:34: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.optionalArgumentsMethod(null, null); // error ^" in super.{in_::_LegacyMixedInQ&Object&SuperQ::optionalArgumentsMethod}(null, null); diff --git a/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart.weak.transformed.expect new file mode 100644 index 00000000000..f10d07368b6 --- /dev/null +++ b/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart.weak.transformed.expect @@ -0,0 +1,372 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:9:7: Error: The implementation of 'optionalArgumentsMethod' in the non-abstract class 'Class' does not conform to its interface. +// class Class /* error */ extends LegacyClass implements SuperQ { +// ^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in_lib1.dart:9:7: Context: The method 'Super.optionalArgumentsMethod' has fewer positional arguments than those of overridden method 'SuperExtra.optionalArgumentsMethod'. +// int optionalArgumentsMethod(int i) => i; +// ^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in_lib1.dart:13:7: Context: This is the overridden method ('optionalArgumentsMethod'). +// int optionalArgumentsMethod(int i, [int? j]) => i; +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:34:7: Error: The implementation of 'optionalArgumentsMethod' in the non-abstract class 'ClassQ' does not conform to its interface. +// class ClassQ /* error */ extends LegacyClassQ implements Super { +// ^^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in_lib1.dart:20:8: Context: The method 'SuperQ.optionalArgumentsMethod' has fewer positional arguments than those of overridden method 'SuperExtra.optionalArgumentsMethod'. +// int? optionalArgumentsMethod(int? i) => i; +// ^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in_lib1.dart:13:7: Context: This is the overridden method ('optionalArgumentsMethod'). +// int optionalArgumentsMethod(int i, [int? j]) => i; +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:59:7: Error: The implementation of 'optionalArgumentsMethod' in the non-abstract class 'ClassMixedIn' does not conform to its interface. +// class ClassMixedIn /* error */ extends LegacyMixedIn implements SuperQ { +// ^^^^^^^^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in_lib1.dart:9:7: Context: The method 'Object with Super.optionalArgumentsMethod' has fewer positional arguments than those of overridden method 'SuperExtra.optionalArgumentsMethod'. +// int optionalArgumentsMethod(int i) => i; +// ^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in_lib1.dart:13:7: Context: This is the overridden method ('optionalArgumentsMethod'). +// int optionalArgumentsMethod(int i, [int? j]) => i; +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:59:7: Error: Class 'ClassMixedIn' inherits multiple members named 'nullabilityMethod' with incompatible signatures. +// Try adding a declaration of 'nullabilityMethod' to 'ClassMixedIn'. +// class ClassMixedIn /* error */ extends LegacyMixedIn implements SuperQ { +// ^^^^^^^^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in_lib1.dart:6:7: Context: This is one of the overridden members. +// int nullabilityMethod(int i, {required int j}) => i; +// ^^^^^^^^^^^^^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in_lib1.dart:17:8: Context: This is one of the overridden members. +// int? nullabilityMethod(int? i, {int? j}) => i; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:84:7: Error: The implementation of 'optionalArgumentsMethod' in the non-abstract class 'ClassMixedInQ' does not conform to its interface. +// class ClassMixedInQ /* error */ extends LegacyMixedInQ implements Super { +// ^^^^^^^^^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in_lib1.dart:20:8: Context: The method 'Object with SuperQ.optionalArgumentsMethod' has fewer positional arguments than those of overridden method 'SuperExtra.optionalArgumentsMethod'. +// int? optionalArgumentsMethod(int? i) => i; +// ^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in_lib1.dart:13:7: Context: This is the overridden method ('optionalArgumentsMethod'). +// int optionalArgumentsMethod(int i, [int? j]) => i; +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:84:7: Error: Class 'ClassMixedInQ' inherits multiple members named 'nullabilityMethod' with incompatible signatures. +// Try adding a declaration of 'nullabilityMethod' to 'ClassMixedInQ'. +// class ClassMixedInQ /* error */ extends LegacyMixedInQ implements Super { +// ^^^^^^^^^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in_lib1.dart:17:8: Context: This is one of the overridden members. +// int? nullabilityMethod(int? i, {int? j}) => i; +// ^^^^^^^^^^^^^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in_lib1.dart:6:7: Context: This is one of the overridden members. +// int nullabilityMethod(int i, {required int j}) => i; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:21:34: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// super.optionalArgumentsMethod(null, null); // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:46:34: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// super.optionalArgumentsMethod(null, null); // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:52:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. +// nullabilitySetter = null; // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:63:31: Error: Required named parameter 'j' must be provided. +// var v1 = nullabilityMethod(null); // ok +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:71:34: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// super.optionalArgumentsMethod(null, null); // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:96:34: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// super.optionalArgumentsMethod(null, null); // error +// ^ +// +import self as self; +import "in_out_in_lib2.dart" as in_; +import "in_out_in_lib1.dart" as in_2; +import "dart:core" as core; + +import "org-dartlang-testcase:///in_out_in_lib1.dart"; +import "org-dartlang-testcase:///in_out_in_lib2.dart"; + +class Class extends in_::LegacyClass implements in_2::SuperQ { + synthetic constructor •() → self::Class + : super in_::LegacyClass::•() + ; + method test() → dynamic { + core::int i; + core::int? v1 = this.{self::Class::nullabilityMethod}(null){(core::int?, {j: core::int?}) → core::int?}; + i = super.{in_2::Super::nullabilityMethod}(null); + i = this.{in_::LegacyClass::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; + i = super.{in_2::Super::optionalArgumentsMethod}(null); + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:21:34: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + super.optionalArgumentsMethod(null, null); // error + ^" in super.{in_2::Super::optionalArgumentsMethod}(null, null); + core::int? v2 = this.{self::Class::nullabilityGetter}{core::int?}; + i = super.{in_2::Super::nullabilityGetter}; + this.{self::Class::nullabilitySetter} = null; + super.{in_2::Super::nullabilitySetter} = null; + } + abstract member-signature method nullabilityMethod(core::int? i, {core::int? j = #C1}) → core::int?; -> in_2::Super::nullabilityMethod + abstract member-signature get nullabilityGetter() → core::int?; -> in_2::Super::nullabilityGetter + abstract member-signature get _identityHashCode() → core::int; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfFalse + abstract member-signature get hashCode() → core::int; -> core::Object::hashCode + abstract member-signature method toString() → core::String; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int? value) → void; -> in_2::Super::nullabilitySetter +} +class ClassQ extends in_::LegacyClassQ implements in_2::Super { + synthetic constructor •() → self::ClassQ + : super in_::LegacyClassQ::•() + ; + method test() → dynamic { + core::int i; + this.{in_::LegacyClassQ::nullabilityMethod}(null){(core::int*, {j: core::int*}) →* core::int*}; + i = super.{in_2::SuperQ::nullabilityMethod}(null); + i = this.{in_::LegacyClassQ::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; + i = super.{in_2::SuperQ::optionalArgumentsMethod}(null); + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:46:34: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + super.optionalArgumentsMethod(null, null); // error + ^" in super.{in_2::SuperQ::optionalArgumentsMethod}(null, null); + i = this.{self::ClassQ::nullabilityGetter}{core::int}; + i = super.{in_2::SuperQ::nullabilityGetter}; + this.{self::ClassQ::nullabilitySetter} = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:52:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. + nullabilitySetter = null; // error + ^" in null; + super.{in_2::SuperQ::nullabilitySetter} = null; + } + abstract member-signature get nullabilityGetter() → core::int; -> in_2::SuperQ::nullabilityGetter + abstract member-signature get _identityHashCode() → core::int; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfFalse + abstract member-signature get hashCode() → core::int; -> core::Object::hashCode + abstract member-signature method toString() → core::String; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int value) → void; -> in_2::SuperQ::nullabilitySetter +} +class ClassMixedIn extends in_::LegacyMixedIn implements in_2::SuperQ { + synthetic constructor •() → self::ClassMixedIn + : super in_::LegacyMixedIn::•() + ; + method test() → dynamic { + core::int i; + invalid-type v1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:63:31: Error: Required named parameter 'j' must be provided. + var v1 = nullabilityMethod(null); // ok + ^" in this.{in_::_LegacyMixedIn&Object&Super::nullabilityMethod}{}.(null){(invalid-type) → invalid-type}; + i = super.{in_::_LegacyMixedIn&Object&Super::nullabilityMethod}(null); + i = this.{in_::LegacyMixedIn::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; + i = super.{in_::_LegacyMixedIn&Object&Super::optionalArgumentsMethod}(null); + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:71:34: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + super.optionalArgumentsMethod(null, null); // error + ^" in super.{in_::_LegacyMixedIn&Object&Super::optionalArgumentsMethod}(null, null); + core::int v2 = this.{in_::_LegacyMixedIn&Object&Super::nullabilityGetter}{core::int}; + i = super.{in_::_LegacyMixedIn&Object&Super::nullabilityGetter}; + this.{self::ClassMixedIn::nullabilitySetter} = null; + super.{in_::_LegacyMixedIn&Object&Super::nullabilitySetter} = null; + } + abstract member-signature get _identityHashCode() → core::int; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfFalse + abstract member-signature get hashCode() → core::int; -> core::Object::hashCode + abstract member-signature method toString() → core::String; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int? value) → void; -> in_2::SuperQ::nullabilitySetter +} +class ClassMixedInQ extends in_::LegacyMixedInQ implements in_2::Super { + synthetic constructor •() → self::ClassMixedInQ + : super in_::LegacyMixedInQ::•() + ; + method test() → dynamic { + core::int i; + this.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilityMethod}(null){(core::int?, {j: core::int?}) →* core::int?}; + i = super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilityMethod}(null); + i = this.{in_::LegacyMixedInQ::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; + i = super.{in_::_LegacyMixedInQ&Object&SuperQ::optionalArgumentsMethod}(null); + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_dill_out_in/in_out_in.dart:96:34: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + super.optionalArgumentsMethod(null, null); // error + ^" in super.{in_::_LegacyMixedInQ&Object&SuperQ::optionalArgumentsMethod}(null, null); + i = this.{self::ClassMixedInQ::nullabilityGetter}{core::int}; + i = super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilityGetter}; + this.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilitySetter} = null; + super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilitySetter} = null; + } + abstract member-signature get nullabilityGetter() → core::int; -> in_2::Super::nullabilityGetter + abstract member-signature get _identityHashCode() → core::int; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfFalse + abstract member-signature get hashCode() → core::int; -> core::Object::hashCode + abstract member-signature method toString() → core::String; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type; -> core::Object::runtimeType +} +static method main() → dynamic {} + +library /*isNonNullableByDefault*/; +import self as in_2; +import "dart:core" as core; + +class Super extends core::Object { + synthetic constructor •() → in_2::Super + : super core::Object::•() + ; + method nullabilityMethod(core::int i, {required core::int j = #C1}) → core::int + return i; + get nullabilityGetter() → core::int + return 0; + set nullabilitySetter(core::int value) → void {} + method optionalArgumentsMethod(core::int i) → core::int + return i; +} +abstract class SuperExtra extends core::Object { + synthetic constructor •() → in_2::SuperExtra + : super core::Object::•() + ; + method optionalArgumentsMethod(core::int i, [core::int? j = #C1]) → core::int + return i; +} +abstract class SuperQ extends core::Object { + synthetic constructor •() → in_2::SuperQ + : super core::Object::•() + ; + method nullabilityMethod(core::int? i, {core::int? j = #C1}) → core::int? + return i; + get nullabilityGetter() → core::int? + return null; + set nullabilitySetter(core::int? value) → void {} + method optionalArgumentsMethod(core::int? i) → core::int? + return i; +} + +library; +import self as in_; +import "in_out_in_lib1.dart" as in_2; +import "dart:core" as core; + +import "org-dartlang-testcase:///in_out_in_lib1.dart"; + +abstract class LegacyClass extends in_2::Super implements in_2::SuperExtra { + synthetic constructor •() → in_::LegacyClass* + : super in_2::Super::•() + ; + abstract member-signature method nullabilityMethod(core::int* i, {core::int* j = #C1}) → core::int*; -> in_2::Super::nullabilityMethod + abstract member-signature get nullabilityGetter() → core::int*; -> in_2::Super::nullabilityGetter + abstract member-signature method optionalArgumentsMethod(core::int* i, [core::int* j = #C1]) → core::int*; -> in_2::SuperExtra::optionalArgumentsMethod + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int* value) → void; -> in_2::Super::nullabilitySetter +} +abstract class LegacyClassQ extends in_2::SuperQ implements in_2::SuperExtra { + synthetic constructor •() → in_::LegacyClassQ* + : super in_2::SuperQ::•() + ; + abstract member-signature method nullabilityMethod(core::int* i, {core::int* j = #C1}) → core::int*; -> in_2::SuperQ::nullabilityMethod + abstract member-signature get nullabilityGetter() → core::int*; -> in_2::SuperQ::nullabilityGetter + abstract member-signature method optionalArgumentsMethod(core::int* i, [core::int* j = #C1]) → core::int*; -> in_2::SuperExtra::optionalArgumentsMethod + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int* value) → void; -> in_2::SuperQ::nullabilitySetter +} +abstract class _LegacyMixedIn&Object&Super extends core::Object implements in_2::Super /*isAnonymousMixin,isEliminatedMixin,hasConstConstructor*/ { + const synthetic constructor •() → in_::_LegacyMixedIn&Object&Super* + : super core::Object::•() + ; + method /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilityMethod(core::int i, {required core::int j = #C1}) → core::int + return i; + get /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilityGetter() → core::int + return 0; + method /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ optionalArgumentsMethod(core::int i) → core::int + return i; + set /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilitySetter(core::int value) → void {} + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +abstract class LegacyMixedIn extends in_::_LegacyMixedIn&Object&Super implements in_2::SuperExtra { + synthetic constructor •() → in_::LegacyMixedIn* + : super in_::_LegacyMixedIn&Object&Super::•() + ; + abstract member-signature method optionalArgumentsMethod(core::int* i, [core::int* j = #C1]) → core::int*; -> in_2::SuperExtra::optionalArgumentsMethod +} +abstract class _LegacyMixedInQ&Object&SuperQ extends core::Object implements in_2::SuperQ /*isAnonymousMixin,isEliminatedMixin,hasConstConstructor*/ { + const synthetic constructor •() → in_::_LegacyMixedInQ&Object&SuperQ* + : super core::Object::•() + ; + method /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilityMethod(core::int? i, {core::int? j = #C1}) → core::int? + return i; + get /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilityGetter() → core::int? + return null; + method /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ optionalArgumentsMethod(core::int? i) → core::int? + return i; + set /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilitySetter(core::int? value) → void {} + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +abstract class LegacyMixedInQ extends in_::_LegacyMixedInQ&Object&SuperQ implements in_2::SuperExtra { + synthetic constructor •() → in_::LegacyMixedInQ* + : super in_::_LegacyMixedInQ&Object&SuperQ::•() + ; + abstract member-signature method optionalArgumentsMethod(core::int* i, [core::int* j = #C1]) → core::int*; -> in_2::SuperExtra::optionalArgumentsMethod +} + +constants { + #C1 = null +} diff --git a/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart.weak.expect index a532ea2db6a..4d404a1d565 100644 --- a/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart.weak.expect @@ -88,7 +88,7 @@ class Class extends in_::LegacyClass implements in_2::SuperQ { i = super.{in_2::Super::nullabilityMethod}(null); i = this.{in_::LegacyClass::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; i = super.{in_2::Super::optionalArgumentsMethod}(null); - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:21:34: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:21:34: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.optionalArgumentsMethod(null, null); // error ^" in super.{in_2::Super::optionalArgumentsMethod}(null, null); @@ -120,13 +120,13 @@ class ClassQ extends in_::LegacyClassQ implements in_2::Super { i = super.{in_2::SuperQ::nullabilityMethod}(null); i = this.{in_::LegacyClassQ::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; i = super.{in_2::SuperQ::optionalArgumentsMethod}(null); - let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:46:34: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:46:34: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.optionalArgumentsMethod(null, null); // error ^" in super.{in_2::SuperQ::optionalArgumentsMethod}(null, null); i = this.{self::ClassQ::nullabilityGetter}{core::int}; i = super.{in_2::SuperQ::nullabilityGetter}; - this.{self::ClassQ::nullabilitySetter} = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:52:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. + this.{self::ClassQ::nullabilitySetter} = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:52:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. nullabilitySetter = null; // error ^" in null as{TypeError,ForNonNullableByDefault} core::int; super.{in_2::SuperQ::nullabilitySetter} = null; @@ -153,7 +153,7 @@ class ClassMixedIn extends in_::LegacyMixedIn implements in_2::SuperQ { i = super.{in_::_LegacyMixedIn&Object&Super::nullabilityMethod}(null); i = this.{in_::LegacyMixedIn::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; i = super.{in_::_LegacyMixedIn&Object&Super::optionalArgumentsMethod}(null); - let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:71:34: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:71:34: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.optionalArgumentsMethod(null, null); // error ^" in super.{in_::_LegacyMixedIn&Object&Super::optionalArgumentsMethod}(null, null); @@ -185,13 +185,13 @@ class ClassMixedInQ extends in_::LegacyMixedInQ implements in_2::Super { i = super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilityMethod}(null); i = this.{in_::LegacyMixedInQ::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; i = super.{in_::_LegacyMixedInQ&Object&SuperQ::optionalArgumentsMethod}(null); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:96:34: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:96:34: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.optionalArgumentsMethod(null, null); // error ^" in super.{in_::_LegacyMixedInQ&Object&SuperQ::optionalArgumentsMethod}(null, null); i = this.{self::ClassMixedInQ::nullabilityGetter}{core::int}; i = super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilityGetter}; - this.{self::ClassMixedInQ::nullabilitySetter} = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:102:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. + this.{self::ClassMixedInQ::nullabilitySetter} = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:102:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. nullabilitySetter = null; // error ^" in null as{TypeError,ForNonNullableByDefault} core::int; super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilitySetter} = null; diff --git a/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart.weak.transformed.expect new file mode 100644 index 00000000000..b2f64e9201b --- /dev/null +++ b/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart.weak.transformed.expect @@ -0,0 +1,353 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:9:7: Error: The implementation of 'optionalArgumentsMethod' in the non-abstract class 'Class' does not conform to its interface. +// class Class /* error */ extends LegacyClass implements SuperQ { +// ^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in_lib1.dart:9:7: Context: The method 'Super.optionalArgumentsMethod' has fewer positional arguments than those of overridden method 'SuperExtra.optionalArgumentsMethod'. +// int optionalArgumentsMethod(int i) => i; +// ^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in_lib1.dart:13:7: Context: This is the overridden method ('optionalArgumentsMethod'). +// int optionalArgumentsMethod(int i, [int? j]) => i; +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:34:7: Error: The implementation of 'optionalArgumentsMethod' in the non-abstract class 'ClassQ' does not conform to its interface. +// class ClassQ /* error */ extends LegacyClassQ implements Super { +// ^^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in_lib1.dart:20:8: Context: The method 'SuperQ.optionalArgumentsMethod' has fewer positional arguments than those of overridden method 'SuperExtra.optionalArgumentsMethod'. +// int? optionalArgumentsMethod(int? i) => i; +// ^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in_lib1.dart:13:7: Context: This is the overridden method ('optionalArgumentsMethod'). +// int optionalArgumentsMethod(int i, [int? j]) => i; +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:59:7: Error: The implementation of 'optionalArgumentsMethod' in the non-abstract class 'ClassMixedIn' does not conform to its interface. +// class ClassMixedIn /* error */ extends LegacyMixedIn implements SuperQ { +// ^^^^^^^^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in_lib2.dart:13:16: Context: The method 'Object with Super.optionalArgumentsMethod' has fewer positional arguments than those of overridden method 'SuperExtra.optionalArgumentsMethod'. +// abstract class LegacyMixedIn with Super implements SuperExtra {} +// ^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in_lib1.dart:13:7: Context: This is the overridden method ('optionalArgumentsMethod'). +// int optionalArgumentsMethod(int i, [int? j]) => i; +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:84:7: Error: The implementation of 'optionalArgumentsMethod' in the non-abstract class 'ClassMixedInQ' does not conform to its interface. +// class ClassMixedInQ /* error */ extends LegacyMixedInQ implements Super { +// ^^^^^^^^^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in_lib2.dart:15:16: Context: The method 'Object with SuperQ.optionalArgumentsMethod' has fewer positional arguments than those of overridden method 'SuperExtra.optionalArgumentsMethod'. +// abstract class LegacyMixedInQ with SuperQ implements SuperExtra {} +// ^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in_lib1.dart:13:7: Context: This is the overridden method ('optionalArgumentsMethod'). +// int optionalArgumentsMethod(int i, [int? j]) => i; +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:21:34: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// super.optionalArgumentsMethod(null, null); // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:46:34: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// super.optionalArgumentsMethod(null, null); // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:52:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. +// nullabilitySetter = null; // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:71:34: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// super.optionalArgumentsMethod(null, null); // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:96:34: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// super.optionalArgumentsMethod(null, null); // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:102:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. +// nullabilitySetter = null; // error +// ^ +// +import self as self; +import "in_out_in_lib2.dart" as in_; +import "in_out_in_lib1.dart" as in_2; +import "dart:core" as core; + +import "org-dartlang-testcase:///in_out_in_lib1.dart"; +import "org-dartlang-testcase:///in_out_in_lib2.dart"; + +class Class extends in_::LegacyClass implements in_2::SuperQ { + synthetic constructor •() → self::Class + : super in_::LegacyClass::•() + ; + method test() → dynamic { + core::int i; + core::int? v1 = this.{self::Class::nullabilityMethod}(null){(core::int?, {j: core::int?}) → core::int?}; + i = super.{in_2::Super::nullabilityMethod}(null); + i = this.{in_::LegacyClass::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; + i = super.{in_2::Super::optionalArgumentsMethod}(null); + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:21:34: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + super.optionalArgumentsMethod(null, null); // error + ^" in super.{in_2::Super::optionalArgumentsMethod}(null, null); + core::int? v2 = this.{self::Class::nullabilityGetter}{core::int?}; + i = super.{in_2::Super::nullabilityGetter}; + this.{self::Class::nullabilitySetter} = null; + super.{in_2::Super::nullabilitySetter} = null; + } + abstract member-signature method nullabilityMethod(core::int? i, {core::int? j}) → core::int?; -> in_2::Super::nullabilityMethod + abstract member-signature get nullabilityGetter() → core::int?; -> in_2::Super::nullabilityGetter + abstract member-signature get _identityHashCode() → core::int; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfFalse + abstract member-signature get hashCode() → core::int; -> core::Object::hashCode + abstract member-signature method toString() → core::String; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int? value) → void; -> in_2::Super::nullabilitySetter +} +class ClassQ extends in_::LegacyClassQ implements in_2::Super { + synthetic constructor •() → self::ClassQ + : super in_::LegacyClassQ::•() + ; + method test() → dynamic { + core::int i; + this.{in_::LegacyClassQ::nullabilityMethod}(null){(core::int*, {j: core::int*}) →* core::int*}; + i = super.{in_2::SuperQ::nullabilityMethod}(null); + i = this.{in_::LegacyClassQ::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; + i = super.{in_2::SuperQ::optionalArgumentsMethod}(null); + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:46:34: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + super.optionalArgumentsMethod(null, null); // error + ^" in super.{in_2::SuperQ::optionalArgumentsMethod}(null, null); + i = this.{self::ClassQ::nullabilityGetter}{core::int}; + i = super.{in_2::SuperQ::nullabilityGetter}; + this.{self::ClassQ::nullabilitySetter} = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:52:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. + nullabilitySetter = null; // error + ^" in null; + super.{in_2::SuperQ::nullabilitySetter} = null; + } + abstract member-signature get nullabilityGetter() → core::int; -> in_2::SuperQ::nullabilityGetter + abstract member-signature get _identityHashCode() → core::int; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfFalse + abstract member-signature get hashCode() → core::int; -> core::Object::hashCode + abstract member-signature method toString() → core::String; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int value) → void; -> in_2::SuperQ::nullabilitySetter +} +class ClassMixedIn extends in_::LegacyMixedIn implements in_2::SuperQ { + synthetic constructor •() → self::ClassMixedIn + : super in_::LegacyMixedIn::•() + ; + method test() → dynamic { + core::int i; + core::int? v1 = this.{self::ClassMixedIn::nullabilityMethod}(null){(core::int?, {j: core::int?}) → core::int?}; + i = super.{in_::_LegacyMixedIn&Object&Super::nullabilityMethod}(null); + i = this.{in_::LegacyMixedIn::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; + i = super.{in_::_LegacyMixedIn&Object&Super::optionalArgumentsMethod}(null); + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:71:34: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + super.optionalArgumentsMethod(null, null); // error + ^" in super.{in_::_LegacyMixedIn&Object&Super::optionalArgumentsMethod}(null, null); + core::int? v2 = this.{self::ClassMixedIn::nullabilityGetter}{core::int?}; + i = super.{in_::_LegacyMixedIn&Object&Super::nullabilityGetter}; + this.{self::ClassMixedIn::nullabilitySetter} = null; + super.{in_::_LegacyMixedIn&Object&Super::nullabilitySetter} = null; + } + abstract member-signature method nullabilityMethod(core::int? i, {core::int? j}) → core::int?; -> in_::_LegacyMixedIn&Object&Super::nullabilityMethod + abstract member-signature get nullabilityGetter() → core::int?; -> in_::_LegacyMixedIn&Object&Super::nullabilityGetter + abstract member-signature get _identityHashCode() → core::int; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfFalse + abstract member-signature get hashCode() → core::int; -> core::Object::hashCode + abstract member-signature method toString() → core::String; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int? value) → void; -> in_::_LegacyMixedIn&Object&Super::nullabilitySetter +} +class ClassMixedInQ extends in_::LegacyMixedInQ implements in_2::Super { + synthetic constructor •() → self::ClassMixedInQ + : super in_::LegacyMixedInQ::•() + ; + method test() → dynamic { + core::int i; + this.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilityMethod}(null){(core::int*, {j: core::int*}) →* core::int*}; + i = super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilityMethod}(null); + i = this.{in_::LegacyMixedInQ::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; + i = super.{in_::_LegacyMixedInQ&Object&SuperQ::optionalArgumentsMethod}(null); + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:96:34: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + super.optionalArgumentsMethod(null, null); // error + ^" in super.{in_::_LegacyMixedInQ&Object&SuperQ::optionalArgumentsMethod}(null, null); + i = this.{self::ClassMixedInQ::nullabilityGetter}{core::int}; + i = super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilityGetter}; + this.{self::ClassMixedInQ::nullabilitySetter} = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_dill_in/in_out_in.dart:102:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. + nullabilitySetter = null; // error + ^" in null; + super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilitySetter} = null; + } + abstract member-signature get nullabilityGetter() → core::int; -> in_::_LegacyMixedInQ&Object&SuperQ::nullabilityGetter + abstract member-signature get _identityHashCode() → core::int; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfFalse + abstract member-signature get hashCode() → core::int; -> core::Object::hashCode + abstract member-signature method toString() → core::String; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int value) → void; -> in_::_LegacyMixedInQ&Object&SuperQ::nullabilitySetter +} +static method main() → dynamic {} + +library; +import self as in_; +import "in_out_in_lib1.dart" as in_2; +import "dart:core" as core; + +import "org-dartlang-testcase:///in_out_in_lib1.dart"; + +abstract class LegacyClass extends in_2::Super implements in_2::SuperExtra { + synthetic constructor •() → in_::LegacyClass* + : super in_2::Super::•() + ; + abstract member-signature method nullabilityMethod(core::int* i, {core::int* j = #C1}) → core::int*; -> in_2::Super::nullabilityMethod + abstract member-signature get nullabilityGetter() → core::int*; -> in_2::Super::nullabilityGetter + abstract member-signature method optionalArgumentsMethod(core::int* i, [core::int* j = #C1]) → core::int*; -> in_2::SuperExtra::optionalArgumentsMethod + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int* value) → void; -> in_2::Super::nullabilitySetter +} +abstract class LegacyClassQ extends in_2::SuperQ implements in_2::SuperExtra { + synthetic constructor •() → in_::LegacyClassQ* + : super in_2::SuperQ::•() + ; + abstract member-signature method nullabilityMethod(core::int* i, {core::int* j = #C1}) → core::int*; -> in_2::SuperQ::nullabilityMethod + abstract member-signature get nullabilityGetter() → core::int*; -> in_2::SuperQ::nullabilityGetter + abstract member-signature method optionalArgumentsMethod(core::int* i, [core::int* j = #C1]) → core::int*; -> in_2::SuperExtra::optionalArgumentsMethod + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int* value) → void; -> in_2::SuperQ::nullabilitySetter +} +abstract class _LegacyMixedIn&Object&Super extends core::Object implements in_2::Super /*isAnonymousMixin,isEliminatedMixin,hasConstConstructor*/ { + const synthetic constructor •() → in_::_LegacyMixedIn&Object&Super* + : super core::Object::•() + ; + method /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilityMethod(core::int i, {required core::int j = #C1}) → core::int + return i; + get /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilityGetter() → core::int + return 0; + method /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ optionalArgumentsMethod(core::int i) → core::int + return i; + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType + set /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilitySetter(core::int value) → void {} +} +abstract class LegacyMixedIn extends in_::_LegacyMixedIn&Object&Super implements in_2::SuperExtra { + synthetic constructor •() → in_::LegacyMixedIn* + : super in_::_LegacyMixedIn&Object&Super::•() + ; + abstract member-signature method optionalArgumentsMethod(core::int* i, [core::int* j = #C1]) → core::int*; -> in_2::SuperExtra::optionalArgumentsMethod +} +abstract class _LegacyMixedInQ&Object&SuperQ extends core::Object implements in_2::SuperQ /*isAnonymousMixin,isEliminatedMixin,hasConstConstructor*/ { + const synthetic constructor •() → in_::_LegacyMixedInQ&Object&SuperQ* + : super core::Object::•() + ; + method /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilityMethod(core::int? i, {core::int? j = #C1}) → core::int? + return i; + get /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilityGetter() → core::int? + return null; + method /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ optionalArgumentsMethod(core::int? i) → core::int? + return i; + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType + set /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilitySetter(core::int? value) → void {} +} +abstract class LegacyMixedInQ extends in_::_LegacyMixedInQ&Object&SuperQ implements in_2::SuperExtra { + synthetic constructor •() → in_::LegacyMixedInQ* + : super in_::_LegacyMixedInQ&Object&SuperQ::•() + ; + abstract member-signature method optionalArgumentsMethod(core::int* i, [core::int* j = #C1]) → core::int*; -> in_2::SuperExtra::optionalArgumentsMethod +} + +library /*isNonNullableByDefault*/; +import self as in_2; +import "dart:core" as core; + +class Super extends core::Object { + synthetic constructor •() → in_2::Super + : super core::Object::•() + ; + method nullabilityMethod(core::int i, {required core::int j = #C1}) → core::int + return i; + get nullabilityGetter() → core::int + return 0; + set nullabilitySetter(core::int value) → void {} + method optionalArgumentsMethod(core::int i) → core::int + return i; +} +abstract class SuperExtra extends core::Object { + synthetic constructor •() → in_2::SuperExtra + : super core::Object::•() + ; + method optionalArgumentsMethod(core::int i, [core::int? j = #C1]) → core::int + return i; +} +abstract class SuperQ extends core::Object { + synthetic constructor •() → in_2::SuperQ + : super core::Object::•() + ; + method nullabilityMethod(core::int? i, {core::int? j = #C1}) → core::int? + return i; + get nullabilityGetter() → core::int? + return null; + set nullabilitySetter(core::int? value) → void {} + method optionalArgumentsMethod(core::int? i) → core::int? + return i; +} + +constants { + #C1 = null +} diff --git a/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart.weak.expect index 3e98cba6bd3..a4ccce24b08 100644 --- a/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart.weak.expect @@ -96,7 +96,7 @@ class Class extends in_::LegacyClass implements in_2::SuperQ { i = super.{in_2::Super::nullabilityMethod}(null); i = this.{in_::LegacyClass::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; i = super.{in_2::Super::optionalArgumentsMethod}(null); - let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:21:34: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:21:34: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.optionalArgumentsMethod(null, null); // error ^" in super.{in_2::Super::optionalArgumentsMethod}(null, null); @@ -124,19 +124,19 @@ class ClassQ extends in_::LegacyClassQ implements in_2::Super { ; method test() → dynamic { core::int i; - this.{self::ClassQ::nullabilityMethod}(let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:38:23: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. + this.{self::ClassQ::nullabilityMethod}(invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:38:23: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. nullabilityMethod(null); // error ^" in null as{TypeError,ForNonNullableByDefault} core::int){(core::int) → core::int}; i = super.{in_2::SuperQ::nullabilityMethod}(null); i = this.{in_::LegacyClassQ::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; i = super.{in_2::SuperQ::optionalArgumentsMethod}(null); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:46:34: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:46:34: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.optionalArgumentsMethod(null, null); // error ^" in super.{in_2::SuperQ::optionalArgumentsMethod}(null, null); i = this.{self::ClassQ::nullabilityGetter}{core::int}; i = super.{in_2::SuperQ::nullabilityGetter}; - this.{self::ClassQ::nullabilitySetter} = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:52:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. + this.{self::ClassQ::nullabilitySetter} = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:52:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. nullabilitySetter = null; // error ^" in null as{TypeError,ForNonNullableByDefault} core::int; super.{in_2::SuperQ::nullabilitySetter} = null; @@ -164,7 +164,7 @@ class ClassMixedIn extends in_::LegacyMixedIn implements in_2::SuperQ { i = super.{in_::_LegacyMixedIn&Object&Super::nullabilityMethod}(null); i = this.{in_::LegacyMixedIn::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; i = super.{in_::_LegacyMixedIn&Object&Super::optionalArgumentsMethod}(null); - let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:71:34: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:71:34: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.optionalArgumentsMethod(null, null); // error ^" in super.{in_::_LegacyMixedIn&Object&Super::optionalArgumentsMethod}(null, null); @@ -192,19 +192,19 @@ class ClassMixedInQ extends in_::LegacyMixedInQ implements in_2::Super { ; method test() → dynamic { core::int i; - this.{self::ClassMixedInQ::nullabilityMethod}(let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:88:23: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. + this.{self::ClassMixedInQ::nullabilityMethod}(invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:88:23: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. nullabilityMethod(null); // error ^" in null as{TypeError,ForNonNullableByDefault} core::int){(core::int) → core::int}; i = super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilityMethod}(null); i = this.{in_::LegacyMixedInQ::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; i = super.{in_::_LegacyMixedInQ&Object&SuperQ::optionalArgumentsMethod}(null); - let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:96:34: Error: Too many positional arguments: 1 allowed, but 2 found. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:96:34: Error: Too many positional arguments: 1 allowed, but 2 found. Try removing the extra positional arguments. super.optionalArgumentsMethod(null, null); // error ^" in super.{in_::_LegacyMixedInQ&Object&SuperQ::optionalArgumentsMethod}(null, null); i = this.{self::ClassMixedInQ::nullabilityGetter}{core::int}; i = super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilityGetter}; - this.{self::ClassMixedInQ::nullabilitySetter} = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:102:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. + this.{self::ClassMixedInQ::nullabilitySetter} = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:102:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. nullabilitySetter = null; // error ^" in null as{TypeError,ForNonNullableByDefault} core::int; super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilitySetter} = null; diff --git a/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart.weak.transformed.expect new file mode 100644 index 00000000000..628d26331de --- /dev/null +++ b/pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart.weak.transformed.expect @@ -0,0 +1,367 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:9:7: Error: The implementation of 'optionalArgumentsMethod' in the non-abstract class 'Class' does not conform to its interface. +// class Class /* error */ extends LegacyClass implements SuperQ { +// ^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in_lib1.dart:9:7: Context: The method 'Super.optionalArgumentsMethod' has fewer positional arguments than those of overridden method 'SuperExtra.optionalArgumentsMethod'. +// int optionalArgumentsMethod(int i) => i; +// ^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in_lib1.dart:13:7: Context: This is the overridden method ('optionalArgumentsMethod'). +// int optionalArgumentsMethod(int i, [int? j]) => i; +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:34:7: Error: The implementation of 'optionalArgumentsMethod' in the non-abstract class 'ClassQ' does not conform to its interface. +// class ClassQ /* error */ extends LegacyClassQ implements Super { +// ^^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in_lib1.dart:20:8: Context: The method 'SuperQ.optionalArgumentsMethod' has fewer positional arguments than those of overridden method 'SuperExtra.optionalArgumentsMethod'. +// int? optionalArgumentsMethod(int? i) => i; +// ^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in_lib1.dart:13:7: Context: This is the overridden method ('optionalArgumentsMethod'). +// int optionalArgumentsMethod(int i, [int? j]) => i; +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:59:7: Error: The implementation of 'optionalArgumentsMethod' in the non-abstract class 'ClassMixedIn' does not conform to its interface. +// class ClassMixedIn /* error */ extends LegacyMixedIn implements SuperQ { +// ^^^^^^^^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in_lib2.dart:13:16: Context: The method 'Object with Super.optionalArgumentsMethod' has fewer positional arguments than those of overridden method 'SuperExtra.optionalArgumentsMethod'. +// abstract class LegacyMixedIn with Super implements SuperExtra {} +// ^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in_lib1.dart:13:7: Context: This is the overridden method ('optionalArgumentsMethod'). +// int optionalArgumentsMethod(int i, [int? j]) => i; +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:84:7: Error: The implementation of 'optionalArgumentsMethod' in the non-abstract class 'ClassMixedInQ' does not conform to its interface. +// class ClassMixedInQ /* error */ extends LegacyMixedInQ implements Super { +// ^^^^^^^^^^^^^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in_lib2.dart:15:16: Context: The method 'Object with SuperQ.optionalArgumentsMethod' has fewer positional arguments than those of overridden method 'SuperExtra.optionalArgumentsMethod'. +// abstract class LegacyMixedInQ with SuperQ implements SuperExtra {} +// ^ +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in_lib1.dart:13:7: Context: This is the overridden method ('optionalArgumentsMethod'). +// int optionalArgumentsMethod(int i, [int? j]) => i; +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:21:34: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// super.optionalArgumentsMethod(null, null); // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:38:23: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. +// nullabilityMethod(null); // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:46:34: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// super.optionalArgumentsMethod(null, null); // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:52:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. +// nullabilitySetter = null; // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:71:34: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// super.optionalArgumentsMethod(null, null); // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:88:23: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. +// nullabilityMethod(null); // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:96:34: Error: Too many positional arguments: 1 allowed, but 2 found. +// Try removing the extra positional arguments. +// super.optionalArgumentsMethod(null, null); // error +// ^ +// +// pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:102:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. +// nullabilitySetter = null; // error +// ^ +// +import self as self; +import "in_out_in_lib2.dart" as in_; +import "in_out_in_lib1.dart" as in_2; +import "dart:core" as core; + +import "org-dartlang-testcase:///in_out_in_lib1.dart"; +import "org-dartlang-testcase:///in_out_in_lib2.dart"; + +class Class extends in_::LegacyClass implements in_2::SuperQ { + synthetic constructor •() → self::Class + : super in_::LegacyClass::•() + ; + method test() → dynamic { + core::int i; + core::int? v1 = this.{self::Class::nullabilityMethod}(null){(core::int?) → core::int?}; + i = super.{in_2::Super::nullabilityMethod}(null); + i = this.{in_::LegacyClass::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; + i = super.{in_2::Super::optionalArgumentsMethod}(null); + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:21:34: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + super.optionalArgumentsMethod(null, null); // error + ^" in super.{in_2::Super::optionalArgumentsMethod}(null, null); + core::int? v2 = this.{self::Class::nullabilityGetter}{core::int?}; + i = super.{in_2::Super::nullabilityGetter}; + this.{self::Class::nullabilitySetter} = null; + super.{in_2::Super::nullabilitySetter} = null; + } + abstract member-signature method nullabilityMethod(core::int? i) → core::int?; -> in_2::Super::nullabilityMethod + abstract member-signature get nullabilityGetter() → core::int?; -> in_2::Super::nullabilityGetter + abstract member-signature get _identityHashCode() → core::int; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfFalse + abstract member-signature get hashCode() → core::int; -> core::Object::hashCode + abstract member-signature method toString() → core::String; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int? value) → void; -> in_2::Super::nullabilitySetter +} +class ClassQ extends in_::LegacyClassQ implements in_2::Super { + synthetic constructor •() → self::ClassQ + : super in_::LegacyClassQ::•() + ; + method test() → dynamic { + core::int i; + this.{self::ClassQ::nullabilityMethod}(invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:38:23: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. + nullabilityMethod(null); // error + ^" in null){(core::int) → core::int}; + i = super.{in_2::SuperQ::nullabilityMethod}(null); + i = this.{in_::LegacyClassQ::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; + i = super.{in_2::SuperQ::optionalArgumentsMethod}(null); + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:46:34: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + super.optionalArgumentsMethod(null, null); // error + ^" in super.{in_2::SuperQ::optionalArgumentsMethod}(null, null); + i = this.{self::ClassQ::nullabilityGetter}{core::int}; + i = super.{in_2::SuperQ::nullabilityGetter}; + this.{self::ClassQ::nullabilitySetter} = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:52:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. + nullabilitySetter = null; // error + ^" in null; + super.{in_2::SuperQ::nullabilitySetter} = null; + } + abstract member-signature method nullabilityMethod(core::int i) → core::int; -> in_2::SuperQ::nullabilityMethod + abstract member-signature get nullabilityGetter() → core::int; -> in_2::SuperQ::nullabilityGetter + abstract member-signature get _identityHashCode() → core::int; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfFalse + abstract member-signature get hashCode() → core::int; -> core::Object::hashCode + abstract member-signature method toString() → core::String; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int value) → void; -> in_2::SuperQ::nullabilitySetter +} +class ClassMixedIn extends in_::LegacyMixedIn implements in_2::SuperQ { + synthetic constructor •() → self::ClassMixedIn + : super in_::LegacyMixedIn::•() + ; + method test() → dynamic { + core::int i; + core::int? v1 = this.{self::ClassMixedIn::nullabilityMethod}(null){(core::int?) → core::int?}; + i = super.{in_::_LegacyMixedIn&Object&Super::nullabilityMethod}(null); + i = this.{in_::LegacyMixedIn::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; + i = super.{in_::_LegacyMixedIn&Object&Super::optionalArgumentsMethod}(null); + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:71:34: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + super.optionalArgumentsMethod(null, null); // error + ^" in super.{in_::_LegacyMixedIn&Object&Super::optionalArgumentsMethod}(null, null); + core::int? v2 = this.{self::ClassMixedIn::nullabilityGetter}{core::int?}; + i = super.{in_::_LegacyMixedIn&Object&Super::nullabilityGetter}; + this.{self::ClassMixedIn::nullabilitySetter} = null; + super.{in_::_LegacyMixedIn&Object&Super::nullabilitySetter} = null; + } + abstract member-signature method nullabilityMethod(core::int? i) → core::int?; -> in_::_LegacyMixedIn&Object&Super::nullabilityMethod + abstract member-signature get nullabilityGetter() → core::int?; -> in_::_LegacyMixedIn&Object&Super::nullabilityGetter + abstract member-signature get _identityHashCode() → core::int; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfFalse + abstract member-signature get hashCode() → core::int; -> core::Object::hashCode + abstract member-signature method toString() → core::String; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int? value) → void; -> in_::_LegacyMixedIn&Object&Super::nullabilitySetter +} +class ClassMixedInQ extends in_::LegacyMixedInQ implements in_2::Super { + synthetic constructor •() → self::ClassMixedInQ + : super in_::LegacyMixedInQ::•() + ; + method test() → dynamic { + core::int i; + this.{self::ClassMixedInQ::nullabilityMethod}(invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:88:23: Error: The value 'null' can't be assigned to the parameter type 'int' because 'int' is not nullable. + nullabilityMethod(null); // error + ^" in null){(core::int) → core::int}; + i = super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilityMethod}(null); + i = this.{in_::LegacyMixedInQ::optionalArgumentsMethod}(null, null){(core::int*, [core::int*]) →* core::int*}; + i = super.{in_::_LegacyMixedInQ&Object&SuperQ::optionalArgumentsMethod}(null); + invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:96:34: Error: Too many positional arguments: 1 allowed, but 2 found. +Try removing the extra positional arguments. + super.optionalArgumentsMethod(null, null); // error + ^" in super.{in_::_LegacyMixedInQ&Object&SuperQ::optionalArgumentsMethod}(null, null); + i = this.{self::ClassMixedInQ::nullabilityGetter}{core::int}; + i = super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilityGetter}; + this.{self::ClassMixedInQ::nullabilitySetter} = invalid-expression "pkg/front_end/testcases/nnbd_mixed/hierarchy/in_out_in.dart:102:25: Error: The value 'null' can't be assigned to a variable of type 'int' because 'int' is not nullable. + nullabilitySetter = null; // error + ^" in null; + super.{in_::_LegacyMixedInQ&Object&SuperQ::nullabilitySetter} = null; + } + abstract member-signature method nullabilityMethod(core::int i) → core::int; -> in_::_LegacyMixedInQ&Object&SuperQ::nullabilityMethod + abstract member-signature get nullabilityGetter() → core::int; -> in_::_LegacyMixedInQ&Object&SuperQ::nullabilityGetter + abstract member-signature get _identityHashCode() → core::int; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool; -> core::Object::_simpleInstanceOfFalse + abstract member-signature get hashCode() → core::int; -> core::Object::hashCode + abstract member-signature method toString() → core::String; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int value) → void; -> in_::_LegacyMixedInQ&Object&SuperQ::nullabilitySetter +} +static method main() → dynamic {} + +library /*isNonNullableByDefault*/; +import self as in_2; +import "dart:core" as core; + +class Super extends core::Object { + synthetic constructor •() → in_2::Super + : super core::Object::•() + ; + method nullabilityMethod(core::int i) → core::int + return i; + get nullabilityGetter() → core::int + return 0; + set nullabilitySetter(core::int value) → void {} + method optionalArgumentsMethod(core::int i) → core::int + return i; +} +abstract class SuperExtra extends core::Object { + synthetic constructor •() → in_2::SuperExtra + : super core::Object::•() + ; + method optionalArgumentsMethod(core::int i, [core::int? j = #C1]) → core::int + return i; +} +abstract class SuperQ extends core::Object { + synthetic constructor •() → in_2::SuperQ + : super core::Object::•() + ; + method nullabilityMethod(core::int? i) → core::int? + return i; + get nullabilityGetter() → core::int? + return null; + set nullabilitySetter(core::int? value) → void {} + method optionalArgumentsMethod(core::int? i) → core::int? + return i; +} + +library; +import self as in_; +import "in_out_in_lib1.dart" as in_2; +import "dart:core" as core; + +import "org-dartlang-testcase:///in_out_in_lib1.dart"; + +abstract class LegacyClass extends in_2::Super implements in_2::SuperExtra { + synthetic constructor •() → in_::LegacyClass* + : super in_2::Super::•() + ; + abstract member-signature method nullabilityMethod(core::int* i) → core::int*; -> in_2::Super::nullabilityMethod + abstract member-signature get nullabilityGetter() → core::int*; -> in_2::Super::nullabilityGetter + abstract member-signature method optionalArgumentsMethod(core::int* i, [core::int* j = #C1]) → core::int*; -> in_2::SuperExtra::optionalArgumentsMethod + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int* value) → void; -> in_2::Super::nullabilitySetter +} +abstract class LegacyClassQ extends in_2::SuperQ implements in_2::SuperExtra { + synthetic constructor •() → in_::LegacyClassQ* + : super in_2::SuperQ::•() + ; + abstract member-signature method nullabilityMethod(core::int* i) → core::int*; -> in_2::SuperQ::nullabilityMethod + abstract member-signature get nullabilityGetter() → core::int*; -> in_2::SuperQ::nullabilityGetter + abstract member-signature method optionalArgumentsMethod(core::int* i, [core::int* j = #C1]) → core::int*; -> in_2::SuperExtra::optionalArgumentsMethod + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType + abstract member-signature set nullabilitySetter(core::int* value) → void; -> in_2::SuperQ::nullabilitySetter +} +abstract class _LegacyMixedIn&Object&Super extends core::Object implements in_2::Super /*isAnonymousMixin,isEliminatedMixin,hasConstConstructor*/ { + const synthetic constructor •() → in_::_LegacyMixedIn&Object&Super* + : super core::Object::•() + ; + method /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilityMethod(core::int i) → core::int + return i; + get /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilityGetter() → core::int + return 0; + method /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ optionalArgumentsMethod(core::int i) → core::int + return i; + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType + set /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilitySetter(core::int value) → void {} +} +abstract class LegacyMixedIn extends in_::_LegacyMixedIn&Object&Super implements in_2::SuperExtra { + synthetic constructor •() → in_::LegacyMixedIn* + : super in_::_LegacyMixedIn&Object&Super::•() + ; + abstract member-signature method optionalArgumentsMethod(core::int* i, [core::int* j = #C1]) → core::int*; -> in_2::SuperExtra::optionalArgumentsMethod +} +abstract class _LegacyMixedInQ&Object&SuperQ extends core::Object implements in_2::SuperQ /*isAnonymousMixin,isEliminatedMixin,hasConstConstructor*/ { + const synthetic constructor •() → in_::_LegacyMixedInQ&Object&SuperQ* + : super core::Object::•() + ; + method /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilityMethod(core::int? i) → core::int? + return i; + get /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilityGetter() → core::int? + return null; + method /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ optionalArgumentsMethod(core::int? i) → core::int? + return i; + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType + set /*isNonNullableByDefault, from org-dartlang-testcase:///in_out_in_lib1.dart */ nullabilitySetter(core::int? value) → void {} +} +abstract class LegacyMixedInQ extends in_::_LegacyMixedInQ&Object&SuperQ implements in_2::SuperExtra { + synthetic constructor •() → in_::LegacyMixedInQ* + : super in_::_LegacyMixedInQ&Object&SuperQ::•() + ; + abstract member-signature method optionalArgumentsMethod(core::int* i, [core::int* j = #C1]) → core::int*; -> in_2::SuperExtra::optionalArgumentsMethod +} + +constants { + #C1 = null +} diff --git a/pkg/front_end/testcases/nnbd_mixed/issue41498.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/issue41498.dart.weak.expect index e5721c45c00..ebb0722d826 100644 --- a/pkg/front_end/testcases/nnbd_mixed/issue41498.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/issue41498.dart.weak.expect @@ -29,27 +29,27 @@ class C extends core::Object { ; static method test() → void { () → void f; - (let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:11:5: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:11:5: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; } method test2() → void { () → void f; - (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:17:5: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:17:5: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; } } static method test() → dynamic { () → void f; - (let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:24:3: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:24:3: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; core::Function foo = () → Null { () → void f; - (let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:29:5: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:29:5: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; }; self::C::test(); new self::C::•().{self::C::test2}(){() → void}; diff --git a/pkg/front_end/testcases/nnbd_mixed/issue41498.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd_mixed/issue41498.dart.weak.transformed.expect index e5721c45c00..ebb0722d826 100644 --- a/pkg/front_end/testcases/nnbd_mixed/issue41498.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd_mixed/issue41498.dart.weak.transformed.expect @@ -29,27 +29,27 @@ class C extends core::Object { ; static method test() → void { () → void f; - (let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:11:5: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:11:5: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; } method test2() → void { () → void f; - (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:17:5: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:17:5: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; } } static method test() → dynamic { () → void f; - (let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:24:3: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:24:3: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; core::Function foo = () → Null { () → void f; - (let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:29:5: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498.dart:29:5: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; }; self::C::test(); new self::C::•().{self::C::test2}(){() → void}; diff --git a/pkg/front_end/testcases/nnbd_mixed/issue41498b.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/issue41498b.dart.weak.expect index 4f9e4bae86c..3af3c217402 100644 --- a/pkg/front_end/testcases/nnbd_mixed/issue41498b.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/issue41498b.dart.weak.expect @@ -74,27 +74,27 @@ class C extends core::Object { ; static method test() → void { () → void f; - (let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:11:5: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:11:5: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; } method test2() → void { () → void f; - (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:17:5: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:17:5: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; } } static method test() → dynamic { () → void f; - (let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:24:3: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:24:3: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; core::Function foo = () → Null { () → void f; - (let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:29:5: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:29:5: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; }; iss::C::test(); new iss::C::•().{iss::C::test2}(){() → void}; diff --git a/pkg/front_end/testcases/nnbd_mixed/issue41498b.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd_mixed/issue41498b.dart.weak.transformed.expect index 4f9e4bae86c..3af3c217402 100644 --- a/pkg/front_end/testcases/nnbd_mixed/issue41498b.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd_mixed/issue41498b.dart.weak.transformed.expect @@ -74,27 +74,27 @@ class C extends core::Object { ; static method test() → void { () → void f; - (let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:11:5: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:11:5: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; } method test2() → void { () → void f; - (let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:17:5: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:17:5: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; } } static method test() → dynamic { () → void f; - (let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:24:3: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:24:3: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; core::Function foo = () → Null { () → void f; - (let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:29:5: Error: Non-nullable variable 'f' must be assigned before it can be used. + invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41498b_lib.dart:29:5: Error: Non-nullable variable 'f' must be assigned before it can be used. f.toString(); // error - ^" in f).{core::Object::toString}(){() → core::String}; + ^" in f.{core::Object::toString}(){() → core::String}; }; iss::C::test(); new iss::C::•().{iss::C::test2}(){() → void}; diff --git a/pkg/front_end/testcases/nnbd_mixed/issue41499.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/issue41499.dart.weak.expect index 91ceff1d7e6..63d713b08d5 100644 --- a/pkg/front_end/testcases/nnbd_mixed/issue41499.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/issue41499.dart.weak.expect @@ -28,23 +28,23 @@ class C extends core::Object { : super core::Object::•() ; static method sTest() → () → void { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:8:20: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:8:20: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. static LegacyFoo sTest() {} ^" in null; } method mTest() → () → void { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:10:13: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:10:13: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. LegacyFoo mTest() {} ^" in null; } get gTest() → () → void { - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:12:17: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:12:17: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. LegacyFoo get gTest {} ^" in null; } } static method test() → () → void { - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:15:11: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:15:11: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. LegacyFoo test() {} ^" in null; } diff --git a/pkg/front_end/testcases/nnbd_mixed/issue41499.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd_mixed/issue41499.dart.weak.transformed.expect index 91ceff1d7e6..63d713b08d5 100644 --- a/pkg/front_end/testcases/nnbd_mixed/issue41499.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd_mixed/issue41499.dart.weak.transformed.expect @@ -28,23 +28,23 @@ class C extends core::Object { : super core::Object::•() ; static method sTest() → () → void { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:8:20: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:8:20: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. static LegacyFoo sTest() {} ^" in null; } method mTest() → () → void { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:10:13: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:10:13: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. LegacyFoo mTest() {} ^" in null; } get gTest() → () → void { - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:12:17: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:12:17: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. LegacyFoo get gTest {} ^" in null; } } static method test() → () → void { - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:15:11: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499.dart:15:11: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. LegacyFoo test() {} ^" in null; } diff --git a/pkg/front_end/testcases/nnbd_mixed/issue41499b.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/issue41499b.dart.weak.expect index 860b48b174e..e46d2e6fbf8 100644 --- a/pkg/front_end/testcases/nnbd_mixed/issue41499b.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/issue41499b.dart.weak.expect @@ -37,23 +37,23 @@ class C extends core::Object { : super core::Object::•() ; static method sTest() → () → void { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:8:20: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:8:20: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. static LegacyFoo sTest() {} ^" in null; } method mTest() → () → void { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:10:13: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:10:13: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. LegacyFoo mTest() {} ^" in null; } get gTest() → () → void { - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:12:17: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:12:17: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. LegacyFoo get gTest {} ^" in null; } } static method test() → () → void { - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:15:11: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:15:11: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. LegacyFoo test() {} ^" in null; } diff --git a/pkg/front_end/testcases/nnbd_mixed/issue41499b.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd_mixed/issue41499b.dart.weak.transformed.expect index 860b48b174e..e46d2e6fbf8 100644 --- a/pkg/front_end/testcases/nnbd_mixed/issue41499b.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd_mixed/issue41499b.dart.weak.transformed.expect @@ -37,23 +37,23 @@ class C extends core::Object { : super core::Object::•() ; static method sTest() → () → void { - return let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:8:20: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:8:20: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. static LegacyFoo sTest() {} ^" in null; } method mTest() → () → void { - return let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:10:13: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:10:13: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. LegacyFoo mTest() {} ^" in null; } get gTest() → () → void { - return let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:12:17: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:12:17: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. LegacyFoo get gTest {} ^" in null; } } static method test() → () → void { - return let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:15:11: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. + return invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41499b_lib.dart:15:11: Error: A non-null value must be returned since the return type 'void Function()' doesn't allow null. LegacyFoo test() {} ^" in null; } diff --git a/pkg/front_end/testcases/nnbd_mixed/issue41597.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/issue41597.dart.weak.expect index d1b585c4617..017867489a3 100644 --- a/pkg/front_end/testcases/nnbd_mixed/issue41597.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/issue41597.dart.weak.expect @@ -62,9 +62,9 @@ static method errors() → dynamic { core::print(invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41597.dart:12:9: Error: Can't use 'x' because it is declared more than once. print(x!); ^"!); - core::print(!(invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41597.dart:13:10: Error: Can't use 'x' because it is declared more than once. + core::print(!invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41597.dart:13:10: Error: Can't use 'x' because it is declared more than once. print(!x); - ^" as{TypeError,ForDynamic,ForNonNullableByDefault} core::bool)); + ^"); } static method main() → dynamic {} @@ -111,19 +111,18 @@ library; // ^^^^^^^^^^^^ // import self as self2; -import "dart:core" as core; static method errors(dynamic c) → dynamic { invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:8:6: Error: Expected an identifier, but got ''. Try inserting an identifier before ''. c?..f; - ^"{dynamic}.f; - !(invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:9:7: Error: Expected an identifier, but got ''. + ^"{}.f; + !invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:9:7: Error: Expected an identifier, but got ''. Try inserting an identifier before ''. !c?..f; - ^"{dynamic}.f as{TypeError,ForDynamic} core::bool*); + ^"{}.f; invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:10:6: Error: Expected an identifier, but got ''. Try inserting an identifier before ''. c?..f!; - ^"{dynamic}.f!; + ^"{}.f!; } diff --git a/pkg/front_end/testcases/nnbd_mixed/issue41597.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd_mixed/issue41597.dart.weak.transformed.expect index d81d0348ca4..017867489a3 100644 --- a/pkg/front_end/testcases/nnbd_mixed/issue41597.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd_mixed/issue41597.dart.weak.transformed.expect @@ -111,19 +111,18 @@ library; // ^^^^^^^^^^^^ // import self as self2; -import "dart:core" as core; static method errors(dynamic c) → dynamic { invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:8:6: Error: Expected an identifier, but got ''. Try inserting an identifier before ''. c?..f; - ^"{dynamic}.f; - !(invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:9:7: Error: Expected an identifier, but got ''. + ^"{}.f; + !invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:9:7: Error: Expected an identifier, but got ''. Try inserting an identifier before ''. !c?..f; - ^"{dynamic}.f as{TypeError,ForDynamic} core::bool*); + ^"{}.f; invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue41597_lib.dart:10:6: Error: Expected an identifier, but got ''. Try inserting an identifier before ''. c?..f!; - ^"{dynamic}.f!; + ^"{}.f!; } diff --git a/pkg/front_end/testcases/nnbd_mixed/issue42181.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/issue42181.dart.weak.expect index 9f64aae4a91..8e2527a9aaa 100644 --- a/pkg/front_end/testcases/nnbd_mixed/issue42181.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/issue42181.dart.weak.expect @@ -14,7 +14,7 @@ import "org-dartlang-testcase:///issue42181_lib.dart"; static method f1(core::int x) → core::int? return x; static method test() → void { - (core::int*) → core::int* f = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue42181.dart:10:9: Error: The value 'null' can't be assigned to a variable of type 'int Function(int)' because 'int Function(int)' is not nullable. + (core::int*) → core::int* f = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue42181.dart:10:9: Error: The value 'null' can't be assigned to a variable of type 'int Function(int)' because 'int Function(int)' is not nullable. F f = null; // Static error ^" in null as{TypeError,ForNonNullableByDefault} (core::int*) → core::int*; f = #C1; diff --git a/pkg/front_end/testcases/nnbd_mixed/issue42181.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd_mixed/issue42181.dart.weak.transformed.expect index c2af5e9daf6..9f4a447d577 100644 --- a/pkg/front_end/testcases/nnbd_mixed/issue42181.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd_mixed/issue42181.dart.weak.transformed.expect @@ -14,7 +14,7 @@ import "org-dartlang-testcase:///issue42181_lib.dart"; static method f1(core::int x) → core::int? return x; static method test() → void { - (core::int*) → core::int* f = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue42181.dart:10:9: Error: The value 'null' can't be assigned to a variable of type 'int Function(int)' because 'int Function(int)' is not nullable. + (core::int*) → core::int* f = invalid-expression "pkg/front_end/testcases/nnbd_mixed/issue42181.dart:10:9: Error: The value 'null' can't be assigned to a variable of type 'int Function(int)' because 'int Function(int)' is not nullable. F f = null; // Static error ^" in null; f = #C1; diff --git a/pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart.weak.expect index e1b083901b3..33ff6720b55 100644 --- a/pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart.weak.expect @@ -106,22 +106,22 @@ class SubOutIn extends mes::SuperOut { static field () →? core::int nullableVar = () → core::int => 3; static field core::double nonNullableVar = 4.0; static method testOptIn() → dynamic { - self::nullableVar = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:32:17: Error: A value of type 'double' can't be assigned to a variable of type 'int Function()?'. + self::nullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:32:17: Error: A value of type 'double' can't be assigned to a variable of type 'int Function()?'. nullableVar = nonNullableVar; ^" in self::nonNullableVar as{TypeError,ForNonNullableByDefault} () →? core::int; - self::nonNullableVar = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:33:20: Error: A value of type 'int Function()?' can't be assigned to a variable of type 'double'. + self::nonNullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:33:20: Error: A value of type 'int Function()?' can't be assigned to a variable of type 'double'. nonNullableVar = nullableVar; ^" in self::nullableVar as{TypeError,ForNonNullableByDefault} core::double; - mes::legacyVar = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:34:15: Error: A value of type 'int Function()?' can't be assigned to a variable of type 'String'. + mes::legacyVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:34:15: Error: A value of type 'int Function()?' can't be assigned to a variable of type 'String'. legacyVar = nullableVar; ^" in self::nullableVar as{TypeError,ForNonNullableByDefault} core::String*; - self::nullableVar = let final Never #t4 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:35:17: Error: A value of type 'String' can't be assigned to a variable of type 'int Function()?'. + self::nullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:35:17: Error: A value of type 'String' can't be assigned to a variable of type 'int Function()?'. nullableVar = legacyVar; ^" in mes::legacyVar as{TypeError,ForNonNullableByDefault} () →? core::int; - self::nonNullableVar = let final Never #t5 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:36:20: Error: A value of type 'String' can't be assigned to a variable of type 'double'. + self::nonNullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:36:20: Error: A value of type 'String' can't be assigned to a variable of type 'double'. nonNullableVar = legacyVar; ^" in mes::legacyVar as{TypeError,ForNonNullableByDefault} core::double; - mes::legacyVar = let final Never #t6 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:37:15: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + mes::legacyVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:37:15: Error: A value of type 'double' can't be assigned to a variable of type 'String'. legacyVar = nonNullableVar; ^" in self::nonNullableVar as{TypeError,ForNonNullableByDefault} core::String*; } @@ -253,22 +253,22 @@ class SubInOut extends self::SuperIn { } static field core::String* legacyVar = "legacy"; static method testOptOut() → dynamic { - self::nullableVar = let final Never* #t7 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:33:17: Error: A value of type 'double' can't be assigned to a variable of type 'int Function()'. + self::nullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:33:17: Error: A value of type 'double' can't be assigned to a variable of type 'int Function()'. nullableVar = nonNullableVar; ^" in self::nonNullableVar as{TypeError} () →? core::int; - self::nonNullableVar = let final Never* #t8 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:34:20: Error: A value of type 'int Function()' can't be assigned to a variable of type 'double'. + self::nonNullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:34:20: Error: A value of type 'int Function()' can't be assigned to a variable of type 'double'. nonNullableVar = nullableVar; ^" in self::nullableVar as{TypeError} core::double; - mes::legacyVar = let final Never* #t9 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:35:15: Error: A value of type 'int Function()' can't be assigned to a variable of type 'String'. + mes::legacyVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:35:15: Error: A value of type 'int Function()' can't be assigned to a variable of type 'String'. legacyVar = nullableVar; ^" in self::nullableVar as{TypeError} core::String*; - self::nullableVar = let final Never* #t10 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:36:17: Error: A value of type 'String' can't be assigned to a variable of type 'int Function()'. + self::nullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:36:17: Error: A value of type 'String' can't be assigned to a variable of type 'int Function()'. nullableVar = legacyVar; ^" in mes::legacyVar as{TypeError} () →? core::int; - self::nonNullableVar = let final Never* #t11 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:37:20: Error: A value of type 'String' can't be assigned to a variable of type 'double'. + self::nonNullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:37:20: Error: A value of type 'String' can't be assigned to a variable of type 'double'. nonNullableVar = legacyVar; ^" in mes::legacyVar as{TypeError} core::double; - mes::legacyVar = let final Never* #t12 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:38:15: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + mes::legacyVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:38:15: Error: A value of type 'double' can't be assigned to a variable of type 'String'. legacyVar = nonNullableVar; ^" in self::nonNullableVar as{TypeError} core::String*; } diff --git a/pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart.weak.expect index 52e12c513d7..8a877f1be81 100644 --- a/pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart.weak.expect @@ -125,22 +125,22 @@ class SubInOut extends mes::SuperIn { } static field core::String* legacyVar = "legacy"; static method testOptOut() → dynamic { - mes::nullableVar = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:33:17: Error: A value of type 'double' can't be assigned to a variable of type 'int Function()'. + mes::nullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:33:17: Error: A value of type 'double' can't be assigned to a variable of type 'int Function()'. nullableVar = nonNullableVar; ^" in mes::nonNullableVar as{TypeError} () →? core::int; - mes::nonNullableVar = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:34:20: Error: A value of type 'int Function()' can't be assigned to a variable of type 'double'. + mes::nonNullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:34:20: Error: A value of type 'int Function()' can't be assigned to a variable of type 'double'. nonNullableVar = nullableVar; ^" in mes::nullableVar as{TypeError} core::double; - self::legacyVar = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:35:15: Error: A value of type 'int Function()' can't be assigned to a variable of type 'String'. + self::legacyVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:35:15: Error: A value of type 'int Function()' can't be assigned to a variable of type 'String'. legacyVar = nullableVar; ^" in mes::nullableVar as{TypeError} core::String*; - mes::nullableVar = let final Never* #t4 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:36:17: Error: A value of type 'String' can't be assigned to a variable of type 'int Function()'. + mes::nullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:36:17: Error: A value of type 'String' can't be assigned to a variable of type 'int Function()'. nullableVar = legacyVar; ^" in self::legacyVar as{TypeError} () →? core::int; - mes::nonNullableVar = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:37:20: Error: A value of type 'String' can't be assigned to a variable of type 'double'. + mes::nonNullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:37:20: Error: A value of type 'String' can't be assigned to a variable of type 'double'. nonNullableVar = legacyVar; ^" in self::legacyVar as{TypeError} core::double; - self::legacyVar = let final Never* #t6 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:38:15: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + self::legacyVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_out.dart:38:15: Error: A value of type 'double' can't be assigned to a variable of type 'String'. legacyVar = nonNullableVar; ^" in mes::nonNullableVar as{TypeError} core::String*; } @@ -253,22 +253,22 @@ class SubOutIn extends self::SuperOut { static field () →? core::int nullableVar = () → core::int => 3; static field core::double nonNullableVar = 4.0; static method testOptIn() → dynamic { - mes::nullableVar = let final Never #t7 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:32:17: Error: A value of type 'double' can't be assigned to a variable of type 'int Function()?'. + mes::nullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:32:17: Error: A value of type 'double' can't be assigned to a variable of type 'int Function()?'. nullableVar = nonNullableVar; ^" in mes::nonNullableVar as{TypeError,ForNonNullableByDefault} () →? core::int; - mes::nonNullableVar = let final Never #t8 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:33:20: Error: A value of type 'int Function()?' can't be assigned to a variable of type 'double'. + mes::nonNullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:33:20: Error: A value of type 'int Function()?' can't be assigned to a variable of type 'double'. nonNullableVar = nullableVar; ^" in mes::nullableVar as{TypeError,ForNonNullableByDefault} core::double; - self::legacyVar = let final Never #t9 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:34:15: Error: A value of type 'int Function()?' can't be assigned to a variable of type 'String'. + self::legacyVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:34:15: Error: A value of type 'int Function()?' can't be assigned to a variable of type 'String'. legacyVar = nullableVar; ^" in mes::nullableVar as{TypeError,ForNonNullableByDefault} core::String*; - mes::nullableVar = let final Never #t10 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:35:17: Error: A value of type 'String' can't be assigned to a variable of type 'int Function()?'. + mes::nullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:35:17: Error: A value of type 'String' can't be assigned to a variable of type 'int Function()?'. nullableVar = legacyVar; ^" in self::legacyVar as{TypeError,ForNonNullableByDefault} () →? core::int; - mes::nonNullableVar = let final Never #t11 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:36:20: Error: A value of type 'String' can't be assigned to a variable of type 'double'. + mes::nonNullableVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:36:20: Error: A value of type 'String' can't be assigned to a variable of type 'double'. nonNullableVar = legacyVar; ^" in self::legacyVar as{TypeError,ForNonNullableByDefault} core::double; - self::legacyVar = let final Never #t12 = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:37:15: Error: A value of type 'double' can't be assigned to a variable of type 'String'. + self::legacyVar = invalid-expression "pkg/front_end/testcases/nnbd_mixed/messages_with_types_opt_in.dart:37:15: Error: A value of type 'double' can't be assigned to a variable of type 'String'. legacyVar = nonNullableVar; ^" in mes::nonNullableVar as{TypeError,ForNonNullableByDefault} core::String*; } diff --git a/pkg/front_end/testcases/nnbd_mixed/opt_out.dart.weak.expect b/pkg/front_end/testcases/nnbd_mixed/opt_out.dart.weak.expect index 6bba1696b36..6e0d3ceb448 100644 --- a/pkg/front_end/testcases/nnbd_mixed/opt_out.dart.weak.expect +++ b/pkg/front_end/testcases/nnbd_mixed/opt_out.dart.weak.expect @@ -172,7 +172,7 @@ static method errors() → dynamic { invalid-expression "pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:36:6: Error: Expected an identifier, but got ''. Try inserting an identifier before ''. c?..f; - ^"{dynamic}.f; + ^"{}.f; let final dynamic #t3 = c in #t3 == null ?{dynamic} null : #t3{dynamic}.[](0); } diff --git a/pkg/front_end/testcases/nnbd_mixed/opt_out.dart.weak.transformed.expect b/pkg/front_end/testcases/nnbd_mixed/opt_out.dart.weak.transformed.expect index 59b31edd54a..37d38389ecd 100644 --- a/pkg/front_end/testcases/nnbd_mixed/opt_out.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nnbd_mixed/opt_out.dart.weak.transformed.expect @@ -172,7 +172,7 @@ static method errors() → dynamic { invalid-expression "pkg/front_end/testcases/nnbd_mixed/opt_out_lib.dart:36:6: Error: Expected an identifier, but got ''. Try inserting an identifier before ''. c?..f; - ^"{dynamic}.f; + ^"{}.f; let final dynamic #t3 = c in #t3 == null ?{dynamic} null : #t3{dynamic}.[](0); } diff --git a/pkg/front_end/testcases/none/equals.dart.strong.expect b/pkg/front_end/testcases/none/equals.dart.strong.expect index daaf5db8a32..4aec5046974 100644 --- a/pkg/front_end/testcases/none/equals.dart.strong.expect +++ b/pkg/front_end/testcases/none/equals.dart.strong.expect @@ -194,18 +194,18 @@ static method test}.(){() → invalid-type}) == null; - !((let final Never #t2 = invalid-expression "pkg/front_end/testcases/none/equals.dart:116:26: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:116:26: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass.method() != null; - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) == null); - (let final Never #t3 = invalid-expression "pkg/front_end/testcases/none/equals.dart:117:34: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); + invalid-expression "pkg/front_end/testcases/none/equals.dart:117:34: Error: Too few positional arguments: 1 required, 0 given. null == nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) == null; - !((let final Never #t4 = invalid-expression "pkg/front_end/testcases/none/equals.dart:118:34: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:118:34: Error: Too few positional arguments: 1 required, 0 given. null != nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) == null); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); core::print("EqualsNull (constant null)"); (#C1) == null; !((#C1) == null); @@ -217,28 +217,28 @@ static method test) → core::bool} (let final Never #t5 = invalid-expression "pkg/front_end/testcases/none/equals.dart:134:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:134:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nonNullableClass == nullValue; - ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?); - !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t6 = invalid-expression "pkg/front_end/testcases/none/equals.dart:135:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?; + !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:135:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nonNullableClass != nullValue; - ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?)); + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?); nonNullableClass == null; !(nonNullableClass == null); - nullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t7 = invalid-expression "pkg/front_end/testcases/none/equals.dart:139:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:139:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nullableClass == nullValue; - ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?); - !(nullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t8 = invalid-expression "pkg/front_end/testcases/none/equals.dart:140:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?; + !(nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:140:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nullableClass != nullValue; - ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?)); + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?); nullableClass == null; !(nullableClass == null); dyn == null; @@ -289,18 +289,18 @@ static method test}.(){() → invalid-type}) == null; - !((let final Never #t10 = invalid-expression "pkg/front_end/testcases/none/equals.dart:205:26: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:205:26: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass.method() != nullValue; - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) == null); - (let final Never #t11 = invalid-expression "pkg/front_end/testcases/none/equals.dart:206:39: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); + invalid-expression "pkg/front_end/testcases/none/equals.dart:206:39: Error: Too few positional arguments: 1 required, 0 given. nullValue == nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) == null; - !((let final Never #t12 = invalid-expression "pkg/front_end/testcases/none/equals.dart:207:39: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:207:39: Error: Too few positional arguments: 1 required, 0 given. nullValue != nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) == null); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); core::print("EqualsCall"); nonNullableObject =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; !(nonNullableObject =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); @@ -322,32 +322,32 @@ static method test) → core::bool} nullTypedValue); nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableClass; !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableClass); - nonNullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t13 = invalid-expression "pkg/front_end/testcases/none/equals.dart:233:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:233:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nonNullableClass == o; - ^" in o as{TypeError,ForNonNullableByDefault} self::Class?); - !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t14 = invalid-expression "pkg/front_end/testcases/none/equals.dart:234:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?; + !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:234:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nonNullableClass != o; - ^" in o as{TypeError,ForNonNullableByDefault} self::Class?)); + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?); o =={core::Object::==}{(core::Object) → core::bool} nonNullableClass; !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableClass); nullableClass =={self::Class::==}{(self::Class) → core::bool} nullTypedValue; !(nullableClass =={self::Class::==}{(self::Class) → core::bool} nullTypedValue); nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableClass; !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableClass); - nullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t15 = invalid-expression "pkg/front_end/testcases/none/equals.dart:242:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:242:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nullableClass == o; - ^" in o as{TypeError,ForNonNullableByDefault} self::Class?); - !(nullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t16 = invalid-expression "pkg/front_end/testcases/none/equals.dart:243:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?; + !(nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:243:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nullableClass != o; - ^" in o as{TypeError,ForNonNullableByDefault} self::Class?)); + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?); o =={core::Object::==}{(core::Object) → core::bool} nullableClass; !(o =={core::Object::==}{(core::Object) → core::bool} nullableClass); dyn =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; @@ -446,30 +446,30 @@ static method test}.(){() → invalid-type}) =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; - !((let final Never #t18 = invalid-expression "pkg/front_end/testcases/none/equals.dart:356:26: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:356:26: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass.method() != nullTypedValue; - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); - nullTypedValue =={core::Object::==}{(core::Object) → core::bool} (let final Never #t19 = invalid-expression "pkg/front_end/testcases/none/equals.dart:357:44: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:357:44: Error: Too few positional arguments: 1 required, 0 given. nullTypedValue == nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}); - !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} (let final Never #t20 = invalid-expression "pkg/front_end/testcases/none/equals.dart:358:44: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:358:44: Error: Too few positional arguments: 1 required, 0 given. nullTypedValue != nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type})); - (let final Never #t21 = invalid-expression "pkg/front_end/testcases/none/equals.dart:359:26: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}); + invalid-expression "pkg/front_end/testcases/none/equals.dart:359:26: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass.method() == o; - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) =={core::Object::==}{(core::Object) → core::bool} o; - !((let final Never #t22 = invalid-expression "pkg/front_end/testcases/none/equals.dart:360:26: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} o; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:360:26: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass.method() != o; - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) =={core::Object::==}{(core::Object) → core::bool} o); - o =={core::Object::==}{(core::Object) → core::bool} (let final Never #t23 = invalid-expression "pkg/front_end/testcases/none/equals.dart:361:31: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:361:31: Error: Too few positional arguments: 1 required, 0 given. o == nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}); - !(o =={core::Object::==}{(core::Object) → core::bool} (let final Never #t24 = invalid-expression "pkg/front_end/testcases/none/equals.dart:362:31: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}; + !(o =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:362:31: Error: Too few positional arguments: 1 required, 0 given. o != nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type})); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}); } static method nullEqualsIndexGet(core::Map map) → dynamic { map.{core::Map::[]}(0){(core::Object?) → core::String?} == null; diff --git a/pkg/front_end/testcases/none/equals.dart.strong.transformed.expect b/pkg/front_end/testcases/none/equals.dart.strong.transformed.expect new file mode 100644 index 00000000000..6c3c0a7bf76 --- /dev/null +++ b/pkg/front_end/testcases/none/equals.dart.strong.transformed.expect @@ -0,0 +1,489 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/none/equals.dart:115:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() == null; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:116:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() != null; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:117:34: Error: Too few positional arguments: 1 required, 0 given. +// null == nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:118:34: Error: Too few positional arguments: 1 required, 0 given. +// null != nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:134:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nonNullableClass == nullValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:135:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nonNullableClass != nullValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:139:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nullableClass == nullValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:140:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nullableClass != nullValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:204:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() == nullValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:205:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() != nullValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:206:39: Error: Too few positional arguments: 1 required, 0 given. +// nullValue == nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:207:39: Error: Too few positional arguments: 1 required, 0 given. +// nullValue != nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:233:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nonNullableClass == o; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:234:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nonNullableClass != o; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:242:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nullableClass == o; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:243:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nullableClass != o; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:355:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() == nullTypedValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:356:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() != nullTypedValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:357:44: Error: Too few positional arguments: 1 required, 0 given. +// nullTypedValue == nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:358:44: Error: Too few positional arguments: 1 required, 0 given. +// nullTypedValue != nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:359:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() == o; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:360:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() != o; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:361:31: Error: Too few positional arguments: 1 required, 0 given. +// o == nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:362:31: Error: Too few positional arguments: 1 required, 0 given. +// o != nonNullableClass.method(); +// ^ +// +import self as self; +import "dart:core" as core; + +class Class extends core::Object { + synthetic constructor •() → self::Class + : super core::Object::•() + ; + operator ==(covariant generic-covariant-impl self::Class other) → core::bool + return true; + method method(dynamic o) → dynamic {} +} +static const field core::Object? nullValue = #C1; +static method test(core::Object o, core::Object nonNullableObject, core::Object? nullableObject, self::Class nonNullableClass, self::Class? nullableClass, dynamic dyn, Never never, Never? nullableNever, Null nullTypedValue, core::Function nonNullableFunction, core::Function? nullableFunction, (core::int) → core::int nonNullableFunctionType, (core::int) →? core::int nullableFunctionType, self::test::T1 nonNullableTypeVariable1, self::test::T1? nullableTypeVariable1, self::test::T2 nonNullableTypeVariable2, self::test::T2? nullableTypeVariable2) → dynamic { + core::print("EqualsNull (literal null)"); + null == null; + !(null == null); + nonNullableObject == null; + !(nonNullableObject == null); + nonNullableObject == null; + !(nonNullableObject == null); + nullableObject == null; + !(nullableObject == null); + nullableObject == null; + !(nullableObject == null); + nullableClass == null; + !(nullableClass == null); + nullableClass == null; + !(nullableClass == null); + nonNullableClass == null; + !(nonNullableClass == null); + nonNullableClass == null; + !(nonNullableClass == null); + dyn == null; + !(dyn == null); + dyn == null; + !(dyn == null); + never == null; + !(never == null); + never == null; + !(never == null); + nullableNever == null; + !(nullableNever == null); + nullableNever == null; + !(nullableNever == null); + nullTypedValue == null; + !(nullTypedValue == null); + nullTypedValue == null; + !(nullTypedValue == null); + nonNullableFunction == null; + !(nonNullableFunction == null); + nonNullableFunction == null; + !(nonNullableFunction == null); + nullableFunction == null; + !(nullableFunction == null); + nullableFunction == null; + !(nullableFunction == null); + nonNullableFunctionType == null; + !(nonNullableFunctionType == null); + nonNullableFunctionType == null; + !(nonNullableFunctionType == null); + nullableFunctionType == null; + !(nullableFunctionType == null); + nullableFunctionType == null; + !(nullableFunctionType == null); + nonNullableTypeVariable1 == null; + !(nonNullableTypeVariable1 == null); + nonNullableTypeVariable1 == null; + !(nonNullableTypeVariable1 == null); + nullableTypeVariable1 == null; + !(nullableTypeVariable1 == null); + nullableTypeVariable1 == null; + !(nullableTypeVariable1 == null); + nonNullableTypeVariable2 == null; + !(nonNullableTypeVariable2 == null); + nonNullableTypeVariable2 == null; + !(nonNullableTypeVariable2 == null); + nullableTypeVariable2 == null; + !(nullableTypeVariable2 == null); + nullableTypeVariable2 == null; + !(nullableTypeVariable2 == null); + invalid-expression "pkg/front_end/testcases/none/equals.dart:115:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() == null; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:116:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() != null; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); + invalid-expression "pkg/front_end/testcases/none/equals.dart:117:34: Error: Too few positional arguments: 1 required, 0 given. + null == nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:118:34: Error: Too few positional arguments: 1 required, 0 given. + null != nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); + core::print("EqualsNull (constant null)"); + (#C1) == null; + !((#C1) == null); + nonNullableObject == null; + !(nonNullableObject == null); + nonNullableObject == null; + !(nonNullableObject == null); + nullableObject == null; + !(nullableObject == null); + nullableObject == null; + !(nullableObject == null); + nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:134:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nonNullableClass == nullValue; + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?; + !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:135:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nonNullableClass != nullValue; + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?); + nonNullableClass == null; + !(nonNullableClass == null); + nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:139:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nullableClass == nullValue; + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?; + !(nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:140:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nullableClass != nullValue; + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?); + nullableClass == null; + !(nullableClass == null); + dyn == null; + !(dyn == null); + dyn == null; + !(dyn == null); + never == null; + !(never == null); + never == null; + !(never == null); + nullableNever == null; + !(nullableNever == null); + nullableNever == null; + !(nullableNever == null); + nullTypedValue == null; + !(nullTypedValue == null); + nullTypedValue == null; + !(nullTypedValue == null); + nonNullableFunction == null; + !(nonNullableFunction == null); + nonNullableFunction == null; + !(nonNullableFunction == null); + nullableFunction == null; + !(nullableFunction == null); + nullableFunction == null; + !(nullableFunction == null); + nonNullableFunctionType == null; + !(nonNullableFunctionType == null); + nonNullableFunctionType == null; + !(nonNullableFunctionType == null); + nullableFunctionType == null; + !(nullableFunctionType == null); + nullableFunctionType == null; + !(nullableFunctionType == null); + nonNullableTypeVariable1 == null; + !(nonNullableTypeVariable1 == null); + nonNullableTypeVariable1 == null; + !(nonNullableTypeVariable1 == null); + nullableTypeVariable1 == null; + !(nullableTypeVariable1 == null); + nullableTypeVariable1 == null; + !(nullableTypeVariable1 == null); + nonNullableTypeVariable2 == null; + !(nonNullableTypeVariable2 == null); + nonNullableTypeVariable2 == null; + !(nonNullableTypeVariable2 == null); + nullableTypeVariable2 == null; + !(nullableTypeVariable2 == null); + nullableTypeVariable2 == null; + !(nullableTypeVariable2 == null); + invalid-expression "pkg/front_end/testcases/none/equals.dart:204:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() == nullValue; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:205:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() != nullValue; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); + invalid-expression "pkg/front_end/testcases/none/equals.dart:206:39: Error: Too few positional arguments: 1 required, 0 given. + nullValue == nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:207:39: Error: Too few positional arguments: 1 required, 0 given. + nullValue != nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); + core::print("EqualsCall"); + nonNullableObject =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nonNullableObject =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableObject; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableObject); + nonNullableObject =={core::Object::==}{(core::Object) → core::bool} o; + !(nonNullableObject =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nonNullableObject; + !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableObject); + nullableObject =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nullableObject =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableObject; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableObject); + nullableObject =={core::Object::==}{(core::Object) → core::bool} o; + !(nullableObject =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullableObject; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableObject); + nonNullableClass =={self::Class::==}{(self::Class) → core::bool} nullTypedValue; + !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableClass; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableClass); + nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:233:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nonNullableClass == o; + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?; + !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:234:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nonNullableClass != o; + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?); + o =={core::Object::==}{(core::Object) → core::bool} nonNullableClass; + !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableClass); + nullableClass =={self::Class::==}{(self::Class) → core::bool} nullTypedValue; + !(nullableClass =={self::Class::==}{(self::Class) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableClass; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableClass); + nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:242:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nullableClass == o; + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?; + !(nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:243:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nullableClass != o; + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?); + o =={core::Object::==}{(core::Object) → core::bool} nullableClass; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableClass); + dyn =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(dyn =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} dyn; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} dyn); + dyn =={core::Object::==}{(core::Object) → core::bool} o; + !(dyn =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} dyn; + !(o =={core::Object::==}{(core::Object) → core::bool} dyn); + never =={core::Object::==}{(dynamic) → Never} nullTypedValue; + !(never =={core::Object::==}{(dynamic) → Never} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} never; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} never); + never =={core::Object::==}{(dynamic) → Never} o; + !(never =={core::Object::==}{(dynamic) → Never} o); + o =={core::Object::==}{(core::Object) → core::bool} never; + !(o =={core::Object::==}{(core::Object) → core::bool} never); + nullableNever =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nullableNever =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableNever; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableNever); + nullableNever =={core::Object::==}{(core::Object) → core::bool} o; + !(nullableNever =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullableNever; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableNever); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} o; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(o =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nonNullableFunction =={core::Function::==}{(core::Object) → core::bool} nullTypedValue; + !(nonNullableFunction =={core::Function::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableFunction; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableFunction); + nonNullableFunction =={core::Function::==}{(core::Object) → core::bool} o; + !(nonNullableFunction =={core::Function::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nonNullableFunction; + !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableFunction); + nullableFunction =={core::Function::==}{(core::Object) → core::bool} nullTypedValue; + !(nullableFunction =={core::Function::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableFunction; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableFunction); + nullableFunction =={core::Function::==}{(core::Object) → core::bool} o; + !(nullableFunction =={core::Function::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullableFunction; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableFunction); + nonNullableFunctionType =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nonNullableFunctionType =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableFunctionType; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableFunctionType); + nonNullableFunctionType =={core::Object::==}{(core::Object) → core::bool} o; + !(nonNullableFunctionType =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nonNullableFunctionType; + !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableFunctionType); + nullableFunctionType =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nullableFunctionType =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableFunctionType; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableFunctionType); + nullableFunctionType =={core::Object::==}{(core::Object) → core::bool} o; + !(nullableFunctionType =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullableFunctionType; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableFunctionType); + nonNullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} nullTypedValue; + !(nonNullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable1; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable1); + nonNullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} o; + !(nonNullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable1; + !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable1); + nullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} nullTypedValue; + !(nullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable1; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable1); + nullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} o; + !(nullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable1; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable1); + nonNullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nonNullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable2; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable2); + nonNullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} o; + !(nonNullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable2; + !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable2); + nullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable2; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable2); + nullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} o; + !(nullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable2; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable2); + invalid-expression "pkg/front_end/testcases/none/equals.dart:355:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() == nullTypedValue; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:356:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() != nullTypedValue; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:357:44: Error: Too few positional arguments: 1 required, 0 given. + nullTypedValue == nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:358:44: Error: Too few positional arguments: 1 required, 0 given. + nullTypedValue != nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}); + invalid-expression "pkg/front_end/testcases/none/equals.dart:359:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() == o; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} o; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:360:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() != o; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:361:31: Error: Too few positional arguments: 1 required, 0 given. + o == nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}; + !(o =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:362:31: Error: Too few positional arguments: 1 required, 0 given. + o != nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}); +} +static method nullEqualsIndexGet(core::Map map) → dynamic { + map.{core::Map::[]}(0){(core::Object?) → core::String?} == null; + map.{core::Map::[]}(0){(core::Object?) → core::String?} == null; +} +static method main() → dynamic {} + +constants { + #C1 = null +} + +Extra constant evaluation status: +Evaluated: EqualsNull @ org-dartlang-testcase:///equals.dart:32:8 -> BoolConstant(true) +Evaluated: Not @ org-dartlang-testcase:///equals.dart:33:8 -> BoolConstant(false) +Evaluated: EqualsNull @ org-dartlang-testcase:///equals.dart:121:13 -> BoolConstant(true) +Evaluated: Not @ org-dartlang-testcase:///equals.dart:122:13 -> BoolConstant(false) +Extra constant evaluation: evaluated: 809, effectively constant: 4 diff --git a/pkg/front_end/testcases/none/equals.dart.weak.expect b/pkg/front_end/testcases/none/equals.dart.weak.expect index 5b4129e72f4..fa1f1e019ee 100644 --- a/pkg/front_end/testcases/none/equals.dart.weak.expect +++ b/pkg/front_end/testcases/none/equals.dart.weak.expect @@ -195,18 +195,18 @@ static method test}.(){() → invalid-type}) == null; - !((let final Never #t6 = invalid-expression "pkg/front_end/testcases/none/equals.dart:116:26: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:116:26: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass.method() != null; - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) == null); - (let final Never #t7 = invalid-expression "pkg/front_end/testcases/none/equals.dart:117:34: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); + invalid-expression "pkg/front_end/testcases/none/equals.dart:117:34: Error: Too few positional arguments: 1 required, 0 given. null == nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) == null; - !((let final Never #t8 = invalid-expression "pkg/front_end/testcases/none/equals.dart:118:34: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:118:34: Error: Too few positional arguments: 1 required, 0 given. null != nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) == null); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); core::print("EqualsNull (constant null)"); (#C1) == null; !((#C1) == null); @@ -218,38 +218,38 @@ static method test) → core::bool} (let final Never #t9 = invalid-expression "pkg/front_end/testcases/none/equals.dart:134:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:134:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nonNullableClass == nullValue; - ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?); - !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t10 = invalid-expression "pkg/front_end/testcases/none/equals.dart:135:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?; + !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:135:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nonNullableClass != nullValue; - ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?)); + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?); nonNullableClass == null; !(nonNullableClass == null); - nullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t11 = invalid-expression "pkg/front_end/testcases/none/equals.dart:139:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:139:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nullableClass == nullValue; - ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?); - !(nullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t12 = invalid-expression "pkg/front_end/testcases/none/equals.dart:140:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?; + !(nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:140:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nullableClass != nullValue; - ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?)); + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?); nullableClass == null; !(nullableClass == null); dyn == null; !(dyn == null); dyn == null; !(dyn == null); - let final Never #t13 = (let final Never #t14 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); - let final Never #t15 = !((let final Never #t16 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null) in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); - (let final Never #t17 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null; - !((let final Never #t18 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null); + let final Never #t5 = (let final Never #t6 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t7 = !((let final Never #t8 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null) in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + (let final Never #t9 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null; + !((let final Never #t10 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null); nullableNever == null; !(nullableNever == null); nullableNever == null; @@ -290,18 +290,18 @@ static method test}.(){() → invalid-type}) == null; - !((let final Never #t20 = invalid-expression "pkg/front_end/testcases/none/equals.dart:205:26: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:205:26: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass.method() != nullValue; - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) == null); - (let final Never #t21 = invalid-expression "pkg/front_end/testcases/none/equals.dart:206:39: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); + invalid-expression "pkg/front_end/testcases/none/equals.dart:206:39: Error: Too few positional arguments: 1 required, 0 given. nullValue == nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) == null; - !((let final Never #t22 = invalid-expression "pkg/front_end/testcases/none/equals.dart:207:39: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:207:39: Error: Too few positional arguments: 1 required, 0 given. nullValue != nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) == null); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); core::print("EqualsCall"); nonNullableObject =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; !(nonNullableObject =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); @@ -323,32 +323,32 @@ static method test) → core::bool} nullTypedValue); nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableClass; !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableClass); - nonNullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t23 = invalid-expression "pkg/front_end/testcases/none/equals.dart:233:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:233:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nonNullableClass == o; - ^" in o as{TypeError,ForNonNullableByDefault} self::Class?); - !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t24 = invalid-expression "pkg/front_end/testcases/none/equals.dart:234:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?; + !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:234:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nonNullableClass != o; - ^" in o as{TypeError,ForNonNullableByDefault} self::Class?)); + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?); o =={core::Object::==}{(core::Object) → core::bool} nonNullableClass; !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableClass); nullableClass =={self::Class::==}{(self::Class) → core::bool} nullTypedValue; !(nullableClass =={self::Class::==}{(self::Class) → core::bool} nullTypedValue); nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableClass; !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableClass); - nullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t25 = invalid-expression "pkg/front_end/testcases/none/equals.dart:242:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:242:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nullableClass == o; - ^" in o as{TypeError,ForNonNullableByDefault} self::Class?); - !(nullableClass =={self::Class::==}{(self::Class) → core::bool} (let final Never #t26 = invalid-expression "pkg/front_end/testcases/none/equals.dart:243:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?; + !(nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:243:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. - 'Object' is from 'dart:core'. - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. nullableClass != o; - ^" in o as{TypeError,ForNonNullableByDefault} self::Class?)); + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?); o =={core::Object::==}{(core::Object) → core::bool} nullableClass; !(o =={core::Object::==}{(core::Object) → core::bool} nullableClass); dyn =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; @@ -359,14 +359,14 @@ static method test}.(){() → invalid-type}) =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; - !((let final Never #t40 = invalid-expression "pkg/front_end/testcases/none/equals.dart:356:26: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:356:26: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass.method() != nullTypedValue; - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); - nullTypedValue =={core::Object::==}{(core::Object) → core::bool} (let final Never #t41 = invalid-expression "pkg/front_end/testcases/none/equals.dart:357:44: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:357:44: Error: Too few positional arguments: 1 required, 0 given. nullTypedValue == nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}); - !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} (let final Never #t42 = invalid-expression "pkg/front_end/testcases/none/equals.dart:358:44: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:358:44: Error: Too few positional arguments: 1 required, 0 given. nullTypedValue != nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type})); - (let final Never #t43 = invalid-expression "pkg/front_end/testcases/none/equals.dart:359:26: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}); + invalid-expression "pkg/front_end/testcases/none/equals.dart:359:26: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass.method() == o; - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) =={core::Object::==}{(core::Object) → core::bool} o; - !((let final Never #t44 = invalid-expression "pkg/front_end/testcases/none/equals.dart:360:26: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} o; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:360:26: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass.method() != o; - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}) =={core::Object::==}{(core::Object) → core::bool} o); - o =={core::Object::==}{(core::Object) → core::bool} (let final Never #t45 = invalid-expression "pkg/front_end/testcases/none/equals.dart:361:31: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:361:31: Error: Too few positional arguments: 1 required, 0 given. o == nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}); - !(o =={core::Object::==}{(core::Object) → core::bool} (let final Never #t46 = invalid-expression "pkg/front_end/testcases/none/equals.dart:362:31: Error: Too few positional arguments: 1 required, 0 given. + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}; + !(o =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:362:31: Error: Too few positional arguments: 1 required, 0 given. o != nonNullableClass.method(); - ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type})); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}); } static method nullEqualsIndexGet(core::Map map) → dynamic { map.{core::Map::[]}(0){(core::Object?) → core::String?} == null; diff --git a/pkg/front_end/testcases/none/equals.dart.weak.transformed.expect b/pkg/front_end/testcases/none/equals.dart.weak.transformed.expect new file mode 100644 index 00000000000..c28a57aac3c --- /dev/null +++ b/pkg/front_end/testcases/none/equals.dart.weak.transformed.expect @@ -0,0 +1,490 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/none/equals.dart:115:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() == null; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:116:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() != null; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:117:34: Error: Too few positional arguments: 1 required, 0 given. +// null == nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:118:34: Error: Too few positional arguments: 1 required, 0 given. +// null != nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:134:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nonNullableClass == nullValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:135:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nonNullableClass != nullValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:139:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nullableClass == nullValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:140:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nullableClass != nullValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:204:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() == nullValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:205:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() != nullValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:206:39: Error: Too few positional arguments: 1 required, 0 given. +// nullValue == nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:207:39: Error: Too few positional arguments: 1 required, 0 given. +// nullValue != nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:233:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nonNullableClass == o; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:234:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nonNullableClass != o; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:242:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nullableClass == o; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:243:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. +// - 'Object' is from 'dart:core'. +// - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. +// nullableClass != o; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:355:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() == nullTypedValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:356:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() != nullTypedValue; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:357:44: Error: Too few positional arguments: 1 required, 0 given. +// nullTypedValue == nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:358:44: Error: Too few positional arguments: 1 required, 0 given. +// nullTypedValue != nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:359:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() == o; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:360:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass.method() != o; +// ^ +// +// pkg/front_end/testcases/none/equals.dart:361:31: Error: Too few positional arguments: 1 required, 0 given. +// o == nonNullableClass.method(); +// ^ +// +// pkg/front_end/testcases/none/equals.dart:362:31: Error: Too few positional arguments: 1 required, 0 given. +// o != nonNullableClass.method(); +// ^ +// +import self as self; +import "dart:core" as core; +import "dart:_internal" as _in; + +class Class extends core::Object { + synthetic constructor •() → self::Class + : super core::Object::•() + ; + operator ==(covariant generic-covariant-impl self::Class other) → core::bool + return true; + method method(dynamic o) → dynamic {} +} +static const field core::Object? nullValue = #C1; +static method test(core::Object o, core::Object nonNullableObject, core::Object? nullableObject, self::Class nonNullableClass, self::Class? nullableClass, dynamic dyn, Never never, Never? nullableNever, Null nullTypedValue, core::Function nonNullableFunction, core::Function? nullableFunction, (core::int) → core::int nonNullableFunctionType, (core::int) →? core::int nullableFunctionType, self::test::T1 nonNullableTypeVariable1, self::test::T1? nullableTypeVariable1, self::test::T2 nonNullableTypeVariable2, self::test::T2? nullableTypeVariable2) → dynamic { + core::print("EqualsNull (literal null)"); + null == null; + !(null == null); + nonNullableObject == null; + !(nonNullableObject == null); + nonNullableObject == null; + !(nonNullableObject == null); + nullableObject == null; + !(nullableObject == null); + nullableObject == null; + !(nullableObject == null); + nullableClass == null; + !(nullableClass == null); + nullableClass == null; + !(nullableClass == null); + nonNullableClass == null; + !(nonNullableClass == null); + nonNullableClass == null; + !(nonNullableClass == null); + dyn == null; + !(dyn == null); + dyn == null; + !(dyn == null); + (let final Never #t1 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null; + !((let final Never #t2 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null); + (let final Never #t3 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null; + !((let final Never #t4 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null); + nullableNever == null; + !(nullableNever == null); + nullableNever == null; + !(nullableNever == null); + nullTypedValue == null; + !(nullTypedValue == null); + nullTypedValue == null; + !(nullTypedValue == null); + nonNullableFunction == null; + !(nonNullableFunction == null); + nonNullableFunction == null; + !(nonNullableFunction == null); + nullableFunction == null; + !(nullableFunction == null); + nullableFunction == null; + !(nullableFunction == null); + nonNullableFunctionType == null; + !(nonNullableFunctionType == null); + nonNullableFunctionType == null; + !(nonNullableFunctionType == null); + nullableFunctionType == null; + !(nullableFunctionType == null); + nullableFunctionType == null; + !(nullableFunctionType == null); + nonNullableTypeVariable1 == null; + !(nonNullableTypeVariable1 == null); + nonNullableTypeVariable1 == null; + !(nonNullableTypeVariable1 == null); + nullableTypeVariable1 == null; + !(nullableTypeVariable1 == null); + nullableTypeVariable1 == null; + !(nullableTypeVariable1 == null); + nonNullableTypeVariable2 == null; + !(nonNullableTypeVariable2 == null); + nonNullableTypeVariable2 == null; + !(nonNullableTypeVariable2 == null); + nullableTypeVariable2 == null; + !(nullableTypeVariable2 == null); + nullableTypeVariable2 == null; + !(nullableTypeVariable2 == null); + invalid-expression "pkg/front_end/testcases/none/equals.dart:115:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() == null; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:116:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() != null; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); + invalid-expression "pkg/front_end/testcases/none/equals.dart:117:34: Error: Too few positional arguments: 1 required, 0 given. + null == nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:118:34: Error: Too few positional arguments: 1 required, 0 given. + null != nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); + core::print("EqualsNull (constant null)"); + (#C1) == null; + !((#C1) == null); + nonNullableObject == null; + !(nonNullableObject == null); + nonNullableObject == null; + !(nonNullableObject == null); + nullableObject == null; + !(nullableObject == null); + nullableObject == null; + !(nullableObject == null); + nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:134:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nonNullableClass == nullValue; + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?; + !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:135:23: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nonNullableClass != nullValue; + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?); + nonNullableClass == null; + !(nonNullableClass == null); + nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:139:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nullableClass == nullValue; + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?; + !(nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:140:20: Error: The argument type 'Object?' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nullableClass != nullValue; + ^" in (#C1) as{TypeError,ForNonNullableByDefault} self::Class?); + nullableClass == null; + !(nullableClass == null); + dyn == null; + !(dyn == null); + dyn == null; + !(dyn == null); + let final Never #t5 = (let final Never #t6 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t7 = !((let final Never #t8 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null) in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + (let final Never #t9 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null; + !((let final Never #t10 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) == null); + nullableNever == null; + !(nullableNever == null); + nullableNever == null; + !(nullableNever == null); + nullTypedValue == null; + !(nullTypedValue == null); + nullTypedValue == null; + !(nullTypedValue == null); + nonNullableFunction == null; + !(nonNullableFunction == null); + nonNullableFunction == null; + !(nonNullableFunction == null); + nullableFunction == null; + !(nullableFunction == null); + nullableFunction == null; + !(nullableFunction == null); + nonNullableFunctionType == null; + !(nonNullableFunctionType == null); + nonNullableFunctionType == null; + !(nonNullableFunctionType == null); + nullableFunctionType == null; + !(nullableFunctionType == null); + nullableFunctionType == null; + !(nullableFunctionType == null); + nonNullableTypeVariable1 == null; + !(nonNullableTypeVariable1 == null); + nonNullableTypeVariable1 == null; + !(nonNullableTypeVariable1 == null); + nullableTypeVariable1 == null; + !(nullableTypeVariable1 == null); + nullableTypeVariable1 == null; + !(nullableTypeVariable1 == null); + nonNullableTypeVariable2 == null; + !(nonNullableTypeVariable2 == null); + nonNullableTypeVariable2 == null; + !(nonNullableTypeVariable2 == null); + nullableTypeVariable2 == null; + !(nullableTypeVariable2 == null); + nullableTypeVariable2 == null; + !(nullableTypeVariable2 == null); + invalid-expression "pkg/front_end/testcases/none/equals.dart:204:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() == nullValue; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:205:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() != nullValue; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); + invalid-expression "pkg/front_end/testcases/none/equals.dart:206:39: Error: Too few positional arguments: 1 required, 0 given. + nullValue == nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:207:39: Error: Too few positional arguments: 1 required, 0 given. + nullValue != nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} == null); + core::print("EqualsCall"); + nonNullableObject =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nonNullableObject =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableObject; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableObject); + nonNullableObject =={core::Object::==}{(core::Object) → core::bool} o; + !(nonNullableObject =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nonNullableObject; + !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableObject); + nullableObject =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nullableObject =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableObject; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableObject); + nullableObject =={core::Object::==}{(core::Object) → core::bool} o; + !(nullableObject =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullableObject; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableObject); + nonNullableClass =={self::Class::==}{(self::Class) → core::bool} nullTypedValue; + !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableClass; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableClass); + nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:233:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nonNullableClass == o; + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?; + !(nonNullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:234:23: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nonNullableClass != o; + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?); + o =={core::Object::==}{(core::Object) → core::bool} nonNullableClass; + !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableClass); + nullableClass =={self::Class::==}{(self::Class) → core::bool} nullTypedValue; + !(nullableClass =={self::Class::==}{(self::Class) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableClass; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableClass); + nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:242:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nullableClass == o; + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?; + !(nullableClass =={self::Class::==}{(self::Class) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:243:20: Error: The argument type 'Object' can't be assigned to the parameter type 'Class?'. + - 'Object' is from 'dart:core'. + - 'Class' is from 'pkg/front_end/testcases/none/equals.dart'. + nullableClass != o; + ^" in o as{TypeError,ForNonNullableByDefault} self::Class?); + o =={core::Object::==}{(core::Object) → core::bool} nullableClass; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableClass); + dyn =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(dyn =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} dyn; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} dyn); + dyn =={core::Object::==}{(core::Object) → core::bool} o; + !(dyn =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} dyn; + !(o =={core::Object::==}{(core::Object) → core::bool} dyn); + let final Never #t11 = (let final Never #t12 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) =={core::Object::==}{(dynamic) → Never} nullTypedValue in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t13 = !((let final Never #t14 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) =={core::Object::==}{(dynamic) → Never} nullTypedValue) in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} (let final Never #t15 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")); + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} (let final Never #t16 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."))); + let final Never #t17 = (let final Never #t18 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) =={core::Object::==}{(dynamic) → Never} o in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t19 = !((let final Never #t20 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")) =={core::Object::==}{(dynamic) → Never} o) in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + o =={core::Object::==}{(core::Object) → core::bool} (let final Never #t21 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")); + !(o =={core::Object::==}{(core::Object) → core::bool} (let final Never #t22 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."))); + nullableNever =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nullableNever =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableNever; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableNever); + nullableNever =={core::Object::==}{(core::Object) → core::bool} o; + !(nullableNever =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullableNever; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableNever); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} o; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(o =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nonNullableFunction =={core::Function::==}{(core::Object) → core::bool} nullTypedValue; + !(nonNullableFunction =={core::Function::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableFunction; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableFunction); + nonNullableFunction =={core::Function::==}{(core::Object) → core::bool} o; + !(nonNullableFunction =={core::Function::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nonNullableFunction; + !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableFunction); + nullableFunction =={core::Function::==}{(core::Object) → core::bool} nullTypedValue; + !(nullableFunction =={core::Function::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableFunction; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableFunction); + nullableFunction =={core::Function::==}{(core::Object) → core::bool} o; + !(nullableFunction =={core::Function::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullableFunction; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableFunction); + nonNullableFunctionType =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nonNullableFunctionType =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableFunctionType; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableFunctionType); + nonNullableFunctionType =={core::Object::==}{(core::Object) → core::bool} o; + !(nonNullableFunctionType =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nonNullableFunctionType; + !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableFunctionType); + nullableFunctionType =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nullableFunctionType =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableFunctionType; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableFunctionType); + nullableFunctionType =={core::Object::==}{(core::Object) → core::bool} o; + !(nullableFunctionType =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullableFunctionType; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableFunctionType); + nonNullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} nullTypedValue; + !(nonNullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable1; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable1); + nonNullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} o; + !(nonNullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable1; + !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable1); + nullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} nullTypedValue; + !(nullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable1; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable1); + nullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} o; + !(nullableTypeVariable1 =={core::Function::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable1; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable1); + nonNullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nonNullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable2; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable2); + nonNullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} o; + !(nonNullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable2; + !(o =={core::Object::==}{(core::Object) → core::bool} nonNullableTypeVariable2); + nullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(nullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable2; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable2); + nullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} o; + !(nullableTypeVariable2 =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable2; + !(o =={core::Object::==}{(core::Object) → core::bool} nullableTypeVariable2); + invalid-expression "pkg/front_end/testcases/none/equals.dart:355:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() == nullTypedValue; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} nullTypedValue; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:356:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() != nullTypedValue; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} nullTypedValue); + nullTypedValue =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:357:44: Error: Too few positional arguments: 1 required, 0 given. + nullTypedValue == nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}; + !(nullTypedValue =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:358:44: Error: Too few positional arguments: 1 required, 0 given. + nullTypedValue != nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}); + invalid-expression "pkg/front_end/testcases/none/equals.dart:359:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() == o; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} o; + !(invalid-expression "pkg/front_end/testcases/none/equals.dart:360:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass.method() != o; + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type} =={core::Object::==}{(core::Object) → core::bool} o); + o =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:361:31: Error: Too few positional arguments: 1 required, 0 given. + o == nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}; + !(o =={core::Object::==}{(core::Object) → core::bool} invalid-expression "pkg/front_end/testcases/none/equals.dart:362:31: Error: Too few positional arguments: 1 required, 0 given. + o != nonNullableClass.method(); + ^" in nonNullableClass.{self::Class::method}{}.(){() → invalid-type}); +} +static method nullEqualsIndexGet(core::Map map) → dynamic { + map.{core::Map::[]}(0){(core::Object?) → core::String?} == null; + map.{core::Map::[]}(0){(core::Object?) → core::String?} == null; +} +static method main() → dynamic {} + +constants { + #C1 = null +} + +Extra constant evaluation status: +Evaluated: EqualsNull @ org-dartlang-testcase:///equals.dart:32:8 -> BoolConstant(true) +Evaluated: Not @ org-dartlang-testcase:///equals.dart:33:8 -> BoolConstant(false) +Evaluated: EqualsNull @ org-dartlang-testcase:///equals.dart:121:13 -> BoolConstant(true) +Evaluated: Not @ org-dartlang-testcase:///equals.dart:122:13 -> BoolConstant(false) +Extra constant evaluation: evaluated: 875, effectively constant: 4 diff --git a/pkg/front_end/testcases/none/method_invocation.dart.strong.expect b/pkg/front_end/testcases/none/method_invocation.dart.strong.expect index 32d82527041..9e911224f8b 100644 --- a/pkg/front_end/testcases/none/method_invocation.dart.strong.expect +++ b/pkg/front_end/testcases/none/method_invocation.dart.strong.expect @@ -144,43 +144,43 @@ static method test}.(); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:69:43: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:69:43: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. - 'Function' is from 'dart:core'. Try calling using ?.call instead. nonNullableClass2.nullableFunctionGetter(); ^" in nonNullableClass2.{self::Class2::nullableFunctionGetter}{core::Function?}{}.(); - let final Never #t4 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:70:47: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:70:47: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. nonNullableClass2.nullableFunctionTypedField(); ^" in nonNullableClass2.{self::Class2::nullableFunctionTypedField}{() →? void}{}.(){() →? void}; - let final Never #t5 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:71:48: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:71:48: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. nonNullableClass2.nullableFunctionTypedGetter(); ^" in nonNullableClass2.{self::Class2::nullableFunctionTypedGetter}{() →? void}{}.(){() →? void}; - let final self::Class2 #t6 = nonNullableClass2 in let final core::int #t7 = 0 in #t6.{self::Class2::nonNullableFunctionField}{core::Function}(#t7); - let final self::Class2 #t8 = nonNullableClass2 in let final core::int #t9 = 0 in #t8.{self::Class2::nonNullableFunctionGetter}{core::Function}(#t9); - let final self::Class2 #t10 = nonNullableClass2 in let final core::int #t11 = 0 in let final Never #t12 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:74:50: Error: Too many positional arguments: 0 allowed, but 1 found. + let final self::Class2 #t2 = nonNullableClass2 in let final core::int #t3 = 0 in #t2.{self::Class2::nonNullableFunctionField}{core::Function}(#t3); + let final self::Class2 #t4 = nonNullableClass2 in let final core::int #t5 = 0 in #t4.{self::Class2::nonNullableFunctionGetter}{core::Function}(#t5); + let final self::Class2 #t6 = nonNullableClass2 in let final core::int #t7 = 0 in invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:74:50: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. nonNullableClass2.nonNullableFunctionTypedField(0); - ^" in #t10.{self::Class2::nonNullableFunctionTypedField}{() → void}{}.(#t11); - let final self::Class2 #t13 = nonNullableClass2 in let final core::int #t14 = 0 in let final Never #t15 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:75:51: Error: Too many positional arguments: 0 allowed, but 1 found. + ^" in #t6.{self::Class2::nonNullableFunctionTypedField}{() → void}{}.(#t7); + let final self::Class2 #t8 = nonNullableClass2 in let final core::int #t9 = 0 in invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:75:51: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. nonNullableClass2.nonNullableFunctionTypedGetter(0); - ^" in #t13.{self::Class2::nonNullableFunctionTypedGetter}{() → void}{}.(#t14); + ^" in #t8.{self::Class2::nonNullableFunctionTypedGetter}{() → void}{}.(#t9); core::print("InstanceInvocation (Nullable)"); - let final Never #t16 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:78:18: Error: Method 'method' cannot be called on 'Class1?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:78:18: Error: Method 'method' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/none/method_invocation.dart'. Try calling using ?. instead. nullableClass1.method(0); ^^^^^^" in nullableClass1.{self::Class1::method}{}.(0){(core::int) → core::double}; core::print("DynamicInvocation"); dyn{dynamic}.method(0); - let final dynamic #t17 = dyn in #t17 == null ?{dynamic} null : #t17{dynamic}.method(0); + let final dynamic #t10 = dyn in #t10 == null ?{dynamic} null : #t10{dynamic}.method(0); dyn{dynamic}.toString(0); const core::int call_dyn = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:84:28: Error: Method invocation is not a constant expression. const int call_dyn = dyn.toString(0); @@ -207,56 +207,56 @@ Try correcting the name to the name of an existing method, or defining a method nonNullableClass1.unresolved(); ^^^^^^^^^^"; core::print("DynamicInvocation (Inapplicable)"); - let final Never #t18 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:105:27: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:105:27: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass1.method(); ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}; - let final Never #t19 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:106:26: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:106:26: Error: Too few positional arguments: 1 required, 0 given. nonNullableFunctionType(); ^" in nonNullableFunctionType{}.(); core::print("InstanceInvocation (generic)"); nonNullableClass2.{self::Class2::method}(0){(core::int) → core::String}; - let final self::Class2? #t20 = nullableClass2 in #t20 == null ?{core::String?} null : #t20{self::Class2}.{self::Class2::method}(0){(core::int) → core::String}; + let final self::Class2? #t11 = nullableClass2 in #t11 == null ?{core::String?} null : #t11{self::Class2}.{self::Class2::method}(0){(core::int) → core::String}; nonNullableClass2.{self::Class2::call}(){() → core::String}; nonNullableClass2.{self::Class2::call}(){() → core::String}; core::print("FunctionInvocation"); nonNullableFunction(0); nonNullableFunction(0); - let final core::Function? #t21 = nullableFunction in #t21 == null ?{dynamic} null : #t21{core::Function}(0); + let final core::Function? #t12 = nullableFunction in #t12 == null ?{dynamic} null : #t12{core::Function}(0); nonNullableFunctionType(0){(core::int) → core::int}; nonNullableFunctionType(0){(core::int) → core::int}; - let final (core::int) →? core::int #t22 = nullableFunctionType in #t22 == null ?{core::int?} null : #t22{(core::int) → core::int}(0){(core::int) → core::int}; + let final (core::int) →? core::int #t13 = nullableFunctionType in #t13 == null ?{core::int?} null : #t13{(core::int) → core::int}(0){(core::int) → core::int}; genericFunctionType(0){(core::int) → core::int}; genericFunctionType(0){(core::num) → core::num}; core::num i = genericFunctionType(0){(core::num) → core::num}; nonNullableTypeVariable1(0); nonNullableTypeVariable1(0); - let final self::test::T1? #t23 = nullableTypeVariable1 in #t23 == null ?{dynamic} null : #t23{self::test::T1}(0); + let final self::test::T1? #t14 = nullableTypeVariable1 in #t14 == null ?{dynamic} null : #t14{self::test::T1}(0); nonNullableTypeVariable2(0){(core::int) → core::int}; nonNullableTypeVariable2(0){(core::int) → core::int}; - let final self::test::T2? #t24 = nullableTypeVariable2 in #t24 == null ?{core::int?} null : #t24{self::test::T2}(0){(core::int) → core::int}; + let final self::test::T2? #t15 = nullableTypeVariable2 in #t15 == null ?{core::int?} null : #t15{self::test::T2}(0){(core::int) → core::int}; core::print("FunctionInvocation (Nullable)"); - let final Never #t25 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:132:19: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:132:19: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. - 'Function' is from 'dart:core'. Try calling using ?.call instead. nullableFunction(0); ^" in nullableFunction{}.(0); - let final Never #t26 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:133:20: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:133:20: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. - 'Function' is from 'dart:core'. Try calling using ?. instead. nullableFunction.call(0); ^^^^" in nullableFunction{}.(0); - let final Never #t27 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:134:23: Error: Can't use an expression of type 'int Function(int)?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:134:23: Error: Can't use an expression of type 'int Function(int)?' as a function because it's potentially null. Try calling using ?.call instead. nullableFunctionType(0); ^" in nullableFunctionType{}.(0){(core::int) →? core::int}; - let final Never #t28 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:135:24: Error: Method 'call' cannot be called on 'int Function(int)?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:135:24: Error: Method 'call' cannot be called on 'int Function(int)?' because it is potentially null. Try calling using ?. instead. nullableFunctionType.call(0); ^^^^" in nullableFunctionType{}.(0){(core::int) →? core::int}; core::print("DynamicInvocation (Invalid)"); - (let final Never #t29 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:138:27: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:138:27: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass1.method().method(0); - ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}){dynamic}.method(0); + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}{dynamic}.method(0); core::print("LocalFunctionInvocation"); function localFunction() → core::int return 42; diff --git a/pkg/front_end/testcases/none/method_invocation.dart.strong.transformed.expect b/pkg/front_end/testcases/none/method_invocation.dart.strong.transformed.expect new file mode 100644 index 00000000000..1eb35d50fb4 --- /dev/null +++ b/pkg/front_end/testcases/none/method_invocation.dart.strong.transformed.expect @@ -0,0 +1,301 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/none/method_invocation.dart:84:24: Error: Not a constant expression. +// const int call_dyn = dyn.toString(0); +// ^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:84:28: Error: Method invocation is not a constant expression. +// const int call_dyn = dyn.toString(0); +// ^^^^^^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:147:34: Error: Not a constant expression. +// const int call_localFunction = localFunction(); +// ^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:152:22: Error: Not a constant expression. +// const int call_f = f(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:157:23: Error: Not a constant expression. +// const bool equals = i == j; +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:68:42: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?.call instead. +// nonNullableClass2.nullableFunctionField(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:69:43: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?.call instead. +// nonNullableClass2.nullableFunctionGetter(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:70:47: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +// Try calling using ?.call instead. +// nonNullableClass2.nullableFunctionTypedField(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:71:48: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +// Try calling using ?.call instead. +// nonNullableClass2.nullableFunctionTypedGetter(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:74:50: Error: Too many positional arguments: 0 allowed, but 1 found. +// Try removing the extra positional arguments. +// nonNullableClass2.nonNullableFunctionTypedField(0); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:75:51: Error: Too many positional arguments: 0 allowed, but 1 found. +// Try removing the extra positional arguments. +// nonNullableClass2.nonNullableFunctionTypedGetter(0); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:78:18: Error: Method 'method' cannot be called on 'Class1?' because it is potentially null. +// - 'Class1' is from 'pkg/front_end/testcases/none/method_invocation.dart'. +// Try calling using ?. instead. +// nullableClass1.method(0); +// ^^^^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:102:21: Error: The method 'unresolved' isn't defined for the class 'Class1'. +// - 'Class1' is from 'pkg/front_end/testcases/none/method_invocation.dart'. +// Try correcting the name to the name of an existing method, or defining a method named 'unresolved'. +// nonNullableClass1.unresolved(); +// ^^^^^^^^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:105:27: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass1.method(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:106:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableFunctionType(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:132:19: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?.call instead. +// nullableFunction(0); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:133:20: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?. instead. +// nullableFunction.call(0); +// ^^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:134:23: Error: Can't use an expression of type 'int Function(int)?' as a function because it's potentially null. +// Try calling using ?.call instead. +// nullableFunctionType(0); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:135:24: Error: Method 'call' cannot be called on 'int Function(int)?' because it is potentially null. +// Try calling using ?. instead. +// nullableFunctionType.call(0); +// ^^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:138:27: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass1.method().method(0); +// ^ +// +import self as self; +import "dart:core" as core; + +class Class1 extends core::Object { + synthetic constructor •() → self::Class1 + : super core::Object::•() + ; + method method(core::int o) → core::double + return 0.5; +} +class Class2 extends core::Object { + generic-covariant-impl field self::Class2::T% field; + field core::Function nonNullableFunctionField; + field core::Function? nullableFunctionField = null; + field () → void nonNullableFunctionTypedField; + field () →? void nullableFunctionTypedField = null; + constructor •(self::Class2::T% field, core::Function nonNullableFunctionField, () → void nonNullableFunctionTypedField) → self::Class2 + : self::Class2::field = field, self::Class2::nonNullableFunctionField = nonNullableFunctionField, self::Class2::nonNullableFunctionTypedField = nonNullableFunctionTypedField, super core::Object::•() + ; + method call() → self::Class2::T% + return this.{self::Class2::field}{self::Class2::T%}; + method method(core::int o) → self::Class2::T% + return this.{self::Class2::field}{self::Class2::T%}; + get nonNullableFunctionGetter() → core::Function + return this.{self::Class2::nonNullableFunctionTypedField}{() → void}; + get nullableFunctionGetter() → core::Function? + return this.{self::Class2::nonNullableFunctionTypedField}{() → void}; + get nonNullableFunctionTypedGetter() → () → void + return this.{self::Class2::nonNullableFunctionTypedField}{() → void}; + get nullableFunctionTypedGetter() → () →? void + return this.{self::Class2::nonNullableFunctionTypedField}{() → void}; +} +static const field core::int i = #C1; +static const field core::int j = #C2; +static const field core::int k = #C3; +static method test(self::Class1 nonNullableClass1, self::Class1? nullableClass1, dynamic dyn, Never never, self::Class2 nonNullableClass2, self::Class2? nullableClass2, core::Function nonNullableFunction, core::Function? nullableFunction, (core::int) → core::int nonNullableFunctionType, (core::int) →? core::int nullableFunctionType, (T%) → T% genericFunctionType, self::test::T1 nonNullableTypeVariable1, self::test::T1? nullableTypeVariable1, self::test::T2 nonNullableTypeVariable2, self::test::T2? nullableTypeVariable2, self::test::T3% undeterminedTypeVariable) → dynamic { + core::print("InstanceInvocation"); + nonNullableClass1.{self::Class1::method}(0){(core::int) → core::double}; + let final self::Class1? #t1 = nullableClass1 in #t1 == null ?{core::double?} null : #t1{self::Class1}.{self::Class1::method}(0){(core::int) → core::double}; + core::print("InstanceGet calls"); + nonNullableClass2.{self::Class2::nonNullableFunctionField}{core::Function}(); + nonNullableClass2.{self::Class2::nonNullableFunctionGetter}{core::Function}(); + nonNullableClass2.{self::Class2::nonNullableFunctionTypedField}{() → void}(){() → void}; + nonNullableClass2.{self::Class2::nonNullableFunctionTypedGetter}{() → void}(){() → void}; + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:68:42: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?.call instead. + nonNullableClass2.nullableFunctionField(); + ^" in nonNullableClass2.{self::Class2::nullableFunctionField}{core::Function?}{}.(); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:69:43: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?.call instead. + nonNullableClass2.nullableFunctionGetter(); + ^" in nonNullableClass2.{self::Class2::nullableFunctionGetter}{core::Function?}{}.(); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:70:47: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +Try calling using ?.call instead. + nonNullableClass2.nullableFunctionTypedField(); + ^" in nonNullableClass2.{self::Class2::nullableFunctionTypedField}{() →? void}{}.(){() →? void}; + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:71:48: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +Try calling using ?.call instead. + nonNullableClass2.nullableFunctionTypedGetter(); + ^" in nonNullableClass2.{self::Class2::nullableFunctionTypedGetter}{() →? void}{}.(){() →? void}; + let final self::Class2 #t2 = nonNullableClass2 in let final core::int #t3 = 0 in #t2.{self::Class2::nonNullableFunctionField}{core::Function}(#t3); + let final self::Class2 #t4 = nonNullableClass2 in let final core::int #t5 = 0 in #t4.{self::Class2::nonNullableFunctionGetter}{core::Function}(#t5); + let final self::Class2 #t6 = nonNullableClass2 in let final core::int #t7 = 0 in invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:74:50: Error: Too many positional arguments: 0 allowed, but 1 found. +Try removing the extra positional arguments. + nonNullableClass2.nonNullableFunctionTypedField(0); + ^" in #t6.{self::Class2::nonNullableFunctionTypedField}{() → void}{}.(#t7); + let final self::Class2 #t8 = nonNullableClass2 in let final core::int #t9 = 0 in invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:75:51: Error: Too many positional arguments: 0 allowed, but 1 found. +Try removing the extra positional arguments. + nonNullableClass2.nonNullableFunctionTypedGetter(0); + ^" in #t8.{self::Class2::nonNullableFunctionTypedGetter}{() → void}{}.(#t9); + core::print("InstanceInvocation (Nullable)"); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:78:18: Error: Method 'method' cannot be called on 'Class1?' because it is potentially null. + - 'Class1' is from 'pkg/front_end/testcases/none/method_invocation.dart'. +Try calling using ?. instead. + nullableClass1.method(0); + ^^^^^^" in nullableClass1.{self::Class1::method}{}.(0){(core::int) → core::double}; + core::print("DynamicInvocation"); + dyn{dynamic}.method(0); + let final dynamic #t10 = dyn in #t10 == null ?{dynamic} null : #t10{dynamic}.method(0); + dyn{dynamic}.toString(0); + const core::int call_dyn = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:84:28: Error: Method invocation is not a constant expression. + const int call_dyn = dyn.toString(0); + ^^^^^^^^"; + core::print(invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:84:28: Error: Method invocation is not a constant expression. + const int call_dyn = dyn.toString(0); + ^^^^^^^^"); + core::print("InstanceInvocation (Object)"); + dyn.{core::Object::toString}(){() → core::String}; + nullableClass1.{core::Object::toString}(){() → core::String}; + nullableClass2.{core::Object::toString}(){() → core::String}; + nullableFunction.{core::Object::toString}(){() → core::String}; + nullableFunctionType.{core::Object::toString}(){() → core::String}; + nullableTypeVariable1.{core::Object::toString}(){() → core::String}; + nullableTypeVariable2.{core::Object::toString}(){() → core::String}; + undeterminedTypeVariable.{core::Object::toString}(){() → core::String}; + core::print("DynamicInvocation (Never)"); + never{Never}.method(0); + never{Never}.toString(); + core::print("DynamicInvocation (Unresolved)"); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:102:21: Error: The method 'unresolved' isn't defined for the class 'Class1'. + - 'Class1' is from 'pkg/front_end/testcases/none/method_invocation.dart'. +Try correcting the name to the name of an existing method, or defining a method named 'unresolved'. + nonNullableClass1.unresolved(); + ^^^^^^^^^^"; + core::print("DynamicInvocation (Inapplicable)"); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:105:27: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass1.method(); + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}; + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:106:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableFunctionType(); + ^" in nonNullableFunctionType{}.(); + core::print("InstanceInvocation (generic)"); + nonNullableClass2.{self::Class2::method}(0){(core::int) → core::String}; + let final self::Class2? #t11 = nullableClass2 in #t11 == null ?{core::String?} null : #t11{self::Class2}.{self::Class2::method}(0){(core::int) → core::String}; + nonNullableClass2.{self::Class2::call}(){() → core::String}; + nonNullableClass2.{self::Class2::call}(){() → core::String}; + core::print("FunctionInvocation"); + nonNullableFunction(0); + nonNullableFunction(0); + let final core::Function? #t12 = nullableFunction in #t12 == null ?{dynamic} null : #t12{core::Function}(0); + nonNullableFunctionType(0){(core::int) → core::int}; + nonNullableFunctionType(0){(core::int) → core::int}; + let final (core::int) →? core::int #t13 = nullableFunctionType in #t13 == null ?{core::int?} null : #t13{(core::int) → core::int}(0){(core::int) → core::int}; + genericFunctionType(0){(core::int) → core::int}; + genericFunctionType(0){(core::num) → core::num}; + core::num i = genericFunctionType(0){(core::num) → core::num}; + nonNullableTypeVariable1(0); + nonNullableTypeVariable1(0); + let final self::test::T1? #t14 = nullableTypeVariable1 in #t14 == null ?{dynamic} null : #t14{self::test::T1}(0); + nonNullableTypeVariable2(0){(core::int) → core::int}; + nonNullableTypeVariable2(0){(core::int) → core::int}; + let final self::test::T2? #t15 = nullableTypeVariable2 in #t15 == null ?{core::int?} null : #t15{self::test::T2}(0){(core::int) → core::int}; + core::print("FunctionInvocation (Nullable)"); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:132:19: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?.call instead. + nullableFunction(0); + ^" in nullableFunction{}.(0); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:133:20: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?. instead. + nullableFunction.call(0); + ^^^^" in nullableFunction{}.(0); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:134:23: Error: Can't use an expression of type 'int Function(int)?' as a function because it's potentially null. +Try calling using ?.call instead. + nullableFunctionType(0); + ^" in nullableFunctionType{}.(0){(core::int) →? core::int}; + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:135:24: Error: Method 'call' cannot be called on 'int Function(int)?' because it is potentially null. +Try calling using ?. instead. + nullableFunctionType.call(0); + ^^^^" in nullableFunctionType{}.(0){(core::int) →? core::int}; + core::print("DynamicInvocation (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:138:27: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass1.method().method(0); + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}{dynamic}.method(0); + core::print("LocalFunctionInvocation"); + function localFunction() → core::int + return 42; + function genericLocalFunction(T% t) → T% + return t; + localFunction(){() → core::int}; + genericLocalFunction(0){(core::int) → core::int}; + genericLocalFunction(0){(core::num) → core::num}; + const core::int call_localFunction = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:147:34: Error: Not a constant expression. + const int call_localFunction = localFunction(); + ^^^^^^^^^^^^^"; + core::print(invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:147:34: Error: Not a constant expression. + const int call_localFunction = localFunction(); + ^^^^^^^^^^^^^"); + () → core::int f = () → core::int => 42; + const core::int call_f = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:152:22: Error: Not a constant expression. + const int call_f = f(); + ^"; + core::print(invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:152:22: Error: Not a constant expression. + const int call_f = f(); + ^"); + core::print(#C4); + const core::bool equals = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:157:23: Error: Not a constant expression. + const bool equals = i == j; + ^"; + core::print(invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:157:23: Error: Not a constant expression. + const bool equals = i == j; + ^"); +} +static method main() → dynamic {} + +constants { + #C1 = 4 + #C2 = 24 + #C3 = 96 + #C4 = false +} + +Extra constant evaluation status: +Evaluated: VariableGet @ org-dartlang-testcase:///method_invocation.dart:72:46 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///method_invocation.dart:73:47 -> IntConstant(0) +Extra constant evaluation: evaluated: 174, effectively constant: 2 diff --git a/pkg/front_end/testcases/none/method_invocation.dart.weak.expect b/pkg/front_end/testcases/none/method_invocation.dart.weak.expect index 0f57fe67270..81eaa031a42 100644 --- a/pkg/front_end/testcases/none/method_invocation.dart.weak.expect +++ b/pkg/front_end/testcases/none/method_invocation.dart.weak.expect @@ -145,43 +145,43 @@ static method test}.(); - let final Never #t3 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:69:43: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:69:43: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. - 'Function' is from 'dart:core'. Try calling using ?.call instead. nonNullableClass2.nullableFunctionGetter(); ^" in nonNullableClass2.{self::Class2::nullableFunctionGetter}{core::Function?}{}.(); - let final Never #t4 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:70:47: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:70:47: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. nonNullableClass2.nullableFunctionTypedField(); ^" in nonNullableClass2.{self::Class2::nullableFunctionTypedField}{() →? void}{}.(){() →? void}; - let final Never #t5 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:71:48: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:71:48: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. Try calling using ?.call instead. nonNullableClass2.nullableFunctionTypedGetter(); ^" in nonNullableClass2.{self::Class2::nullableFunctionTypedGetter}{() →? void}{}.(){() →? void}; - let final self::Class2 #t6 = nonNullableClass2 in let final core::int #t7 = 0 in #t6.{self::Class2::nonNullableFunctionField}{core::Function}(#t7); - let final self::Class2 #t8 = nonNullableClass2 in let final core::int #t9 = 0 in #t8.{self::Class2::nonNullableFunctionGetter}{core::Function}(#t9); - let final self::Class2 #t10 = nonNullableClass2 in let final core::int #t11 = 0 in let final Never #t12 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:74:50: Error: Too many positional arguments: 0 allowed, but 1 found. + let final self::Class2 #t2 = nonNullableClass2 in let final core::int #t3 = 0 in #t2.{self::Class2::nonNullableFunctionField}{core::Function}(#t3); + let final self::Class2 #t4 = nonNullableClass2 in let final core::int #t5 = 0 in #t4.{self::Class2::nonNullableFunctionGetter}{core::Function}(#t5); + let final self::Class2 #t6 = nonNullableClass2 in let final core::int #t7 = 0 in invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:74:50: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. nonNullableClass2.nonNullableFunctionTypedField(0); - ^" in #t10.{self::Class2::nonNullableFunctionTypedField}{() → void}{}.(#t11); - let final self::Class2 #t13 = nonNullableClass2 in let final core::int #t14 = 0 in let final Never #t15 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:75:51: Error: Too many positional arguments: 0 allowed, but 1 found. + ^" in #t6.{self::Class2::nonNullableFunctionTypedField}{() → void}{}.(#t7); + let final self::Class2 #t8 = nonNullableClass2 in let final core::int #t9 = 0 in invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:75:51: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. nonNullableClass2.nonNullableFunctionTypedGetter(0); - ^" in #t13.{self::Class2::nonNullableFunctionTypedGetter}{() → void}{}.(#t14); + ^" in #t8.{self::Class2::nonNullableFunctionTypedGetter}{() → void}{}.(#t9); core::print("InstanceInvocation (Nullable)"); - let final Never #t16 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:78:18: Error: Method 'method' cannot be called on 'Class1?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:78:18: Error: Method 'method' cannot be called on 'Class1?' because it is potentially null. - 'Class1' is from 'pkg/front_end/testcases/none/method_invocation.dart'. Try calling using ?. instead. nullableClass1.method(0); ^^^^^^" in nullableClass1.{self::Class1::method}{}.(0){(core::int) → core::double}; core::print("DynamicInvocation"); dyn{dynamic}.method(0); - let final dynamic #t17 = dyn in #t17 == null ?{dynamic} null : #t17{dynamic}.method(0); + let final dynamic #t10 = dyn in #t10 == null ?{dynamic} null : #t10{dynamic}.method(0); dyn{dynamic}.toString(0); const core::int call_dyn = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:84:28: Error: Method invocation is not a constant expression. const int call_dyn = dyn.toString(0); @@ -199,8 +199,8 @@ Try calling using ?. instead. nullableTypeVariable2.{core::Object::toString}(){() → core::String}; undeterminedTypeVariable.{core::Object::toString}(){() → core::String}; core::print("DynamicInvocation (Never)"); - let final Never #t18 = (let final Never #t19 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.method(0) in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); - let final Never #t20 = (let final Never #t21 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.toString() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t11 = (let final Never #t12 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.method(0) in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t13 = (let final Never #t14 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.toString() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); core::print("DynamicInvocation (Unresolved)"); invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:102:21: Error: The method 'unresolved' isn't defined for the class 'Class1'. - 'Class1' is from 'pkg/front_end/testcases/none/method_invocation.dart'. @@ -208,56 +208,56 @@ Try correcting the name to the name of an existing method, or defining a method nonNullableClass1.unresolved(); ^^^^^^^^^^"; core::print("DynamicInvocation (Inapplicable)"); - let final Never #t22 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:105:27: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:105:27: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass1.method(); ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}; - let final Never #t23 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:106:26: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:106:26: Error: Too few positional arguments: 1 required, 0 given. nonNullableFunctionType(); ^" in nonNullableFunctionType{}.(); core::print("InstanceInvocation (generic)"); nonNullableClass2.{self::Class2::method}(0){(core::int) → core::String}; - let final self::Class2? #t24 = nullableClass2 in #t24 == null ?{core::String?} null : #t24{self::Class2}.{self::Class2::method}(0){(core::int) → core::String}; + let final self::Class2? #t15 = nullableClass2 in #t15 == null ?{core::String?} null : #t15{self::Class2}.{self::Class2::method}(0){(core::int) → core::String}; nonNullableClass2.{self::Class2::call}(){() → core::String}; nonNullableClass2.{self::Class2::call}(){() → core::String}; core::print("FunctionInvocation"); nonNullableFunction(0); nonNullableFunction(0); - let final core::Function? #t25 = nullableFunction in #t25 == null ?{dynamic} null : #t25{core::Function}(0); + let final core::Function? #t16 = nullableFunction in #t16 == null ?{dynamic} null : #t16{core::Function}(0); nonNullableFunctionType(0){(core::int) → core::int}; nonNullableFunctionType(0){(core::int) → core::int}; - let final (core::int) →? core::int #t26 = nullableFunctionType in #t26 == null ?{core::int?} null : #t26{(core::int) → core::int}(0){(core::int) → core::int}; + let final (core::int) →? core::int #t17 = nullableFunctionType in #t17 == null ?{core::int?} null : #t17{(core::int) → core::int}(0){(core::int) → core::int}; genericFunctionType(0){(core::int) → core::int}; genericFunctionType(0){(core::num) → core::num}; core::num i = genericFunctionType(0){(core::num) → core::num}; nonNullableTypeVariable1(0); nonNullableTypeVariable1(0); - let final self::test::T1? #t27 = nullableTypeVariable1 in #t27 == null ?{dynamic} null : #t27{self::test::T1}(0); + let final self::test::T1? #t18 = nullableTypeVariable1 in #t18 == null ?{dynamic} null : #t18{self::test::T1}(0); nonNullableTypeVariable2(0){(core::int) → core::int}; nonNullableTypeVariable2(0){(core::int) → core::int}; - let final self::test::T2? #t28 = nullableTypeVariable2 in #t28 == null ?{core::int?} null : #t28{self::test::T2}(0){(core::int) → core::int}; + let final self::test::T2? #t19 = nullableTypeVariable2 in #t19 == null ?{core::int?} null : #t19{self::test::T2}(0){(core::int) → core::int}; core::print("FunctionInvocation (Nullable)"); - let final Never #t29 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:132:19: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:132:19: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. - 'Function' is from 'dart:core'. Try calling using ?.call instead. nullableFunction(0); ^" in nullableFunction{}.(0); - let final Never #t30 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:133:20: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:133:20: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. - 'Function' is from 'dart:core'. Try calling using ?. instead. nullableFunction.call(0); ^^^^" in nullableFunction{}.(0); - let final Never #t31 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:134:23: Error: Can't use an expression of type 'int Function(int)?' as a function because it's potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:134:23: Error: Can't use an expression of type 'int Function(int)?' as a function because it's potentially null. Try calling using ?.call instead. nullableFunctionType(0); ^" in nullableFunctionType{}.(0){(core::int) →? core::int}; - let final Never #t32 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:135:24: Error: Method 'call' cannot be called on 'int Function(int)?' because it is potentially null. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:135:24: Error: Method 'call' cannot be called on 'int Function(int)?' because it is potentially null. Try calling using ?. instead. nullableFunctionType.call(0); ^^^^" in nullableFunctionType{}.(0){(core::int) →? core::int}; core::print("DynamicInvocation (Invalid)"); - (let final Never #t33 = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:138:27: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:138:27: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass1.method().method(0); - ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}){dynamic}.method(0); + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}{dynamic}.method(0); core::print("LocalFunctionInvocation"); function localFunction() → core::int return 42; diff --git a/pkg/front_end/testcases/none/method_invocation.dart.weak.transformed.expect b/pkg/front_end/testcases/none/method_invocation.dart.weak.transformed.expect new file mode 100644 index 00000000000..83e0103395d --- /dev/null +++ b/pkg/front_end/testcases/none/method_invocation.dart.weak.transformed.expect @@ -0,0 +1,302 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/none/method_invocation.dart:84:24: Error: Not a constant expression. +// const int call_dyn = dyn.toString(0); +// ^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:84:28: Error: Method invocation is not a constant expression. +// const int call_dyn = dyn.toString(0); +// ^^^^^^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:147:34: Error: Not a constant expression. +// const int call_localFunction = localFunction(); +// ^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:152:22: Error: Not a constant expression. +// const int call_f = f(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:157:23: Error: Not a constant expression. +// const bool equals = i == j; +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:68:42: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?.call instead. +// nonNullableClass2.nullableFunctionField(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:69:43: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?.call instead. +// nonNullableClass2.nullableFunctionGetter(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:70:47: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +// Try calling using ?.call instead. +// nonNullableClass2.nullableFunctionTypedField(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:71:48: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +// Try calling using ?.call instead. +// nonNullableClass2.nullableFunctionTypedGetter(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:74:50: Error: Too many positional arguments: 0 allowed, but 1 found. +// Try removing the extra positional arguments. +// nonNullableClass2.nonNullableFunctionTypedField(0); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:75:51: Error: Too many positional arguments: 0 allowed, but 1 found. +// Try removing the extra positional arguments. +// nonNullableClass2.nonNullableFunctionTypedGetter(0); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:78:18: Error: Method 'method' cannot be called on 'Class1?' because it is potentially null. +// - 'Class1' is from 'pkg/front_end/testcases/none/method_invocation.dart'. +// Try calling using ?. instead. +// nullableClass1.method(0); +// ^^^^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:102:21: Error: The method 'unresolved' isn't defined for the class 'Class1'. +// - 'Class1' is from 'pkg/front_end/testcases/none/method_invocation.dart'. +// Try correcting the name to the name of an existing method, or defining a method named 'unresolved'. +// nonNullableClass1.unresolved(); +// ^^^^^^^^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:105:27: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass1.method(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:106:26: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableFunctionType(); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:132:19: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?.call instead. +// nullableFunction(0); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:133:20: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. +// - 'Function' is from 'dart:core'. +// Try calling using ?. instead. +// nullableFunction.call(0); +// ^^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:134:23: Error: Can't use an expression of type 'int Function(int)?' as a function because it's potentially null. +// Try calling using ?.call instead. +// nullableFunctionType(0); +// ^ +// +// pkg/front_end/testcases/none/method_invocation.dart:135:24: Error: Method 'call' cannot be called on 'int Function(int)?' because it is potentially null. +// Try calling using ?. instead. +// nullableFunctionType.call(0); +// ^^^^ +// +// pkg/front_end/testcases/none/method_invocation.dart:138:27: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass1.method().method(0); +// ^ +// +import self as self; +import "dart:core" as core; +import "dart:_internal" as _in; + +class Class1 extends core::Object { + synthetic constructor •() → self::Class1 + : super core::Object::•() + ; + method method(core::int o) → core::double + return 0.5; +} +class Class2 extends core::Object { + generic-covariant-impl field self::Class2::T% field; + field core::Function nonNullableFunctionField; + field core::Function? nullableFunctionField = null; + field () → void nonNullableFunctionTypedField; + field () →? void nullableFunctionTypedField = null; + constructor •(self::Class2::T% field, core::Function nonNullableFunctionField, () → void nonNullableFunctionTypedField) → self::Class2 + : self::Class2::field = field, self::Class2::nonNullableFunctionField = nonNullableFunctionField, self::Class2::nonNullableFunctionTypedField = nonNullableFunctionTypedField, super core::Object::•() + ; + method call() → self::Class2::T% + return this.{self::Class2::field}{self::Class2::T%}; + method method(core::int o) → self::Class2::T% + return this.{self::Class2::field}{self::Class2::T%}; + get nonNullableFunctionGetter() → core::Function + return this.{self::Class2::nonNullableFunctionTypedField}{() → void}; + get nullableFunctionGetter() → core::Function? + return this.{self::Class2::nonNullableFunctionTypedField}{() → void}; + get nonNullableFunctionTypedGetter() → () → void + return this.{self::Class2::nonNullableFunctionTypedField}{() → void}; + get nullableFunctionTypedGetter() → () →? void + return this.{self::Class2::nonNullableFunctionTypedField}{() → void}; +} +static const field core::int i = #C1; +static const field core::int j = #C2; +static const field core::int k = #C3; +static method test(self::Class1 nonNullableClass1, self::Class1? nullableClass1, dynamic dyn, Never never, self::Class2 nonNullableClass2, self::Class2? nullableClass2, core::Function nonNullableFunction, core::Function? nullableFunction, (core::int) → core::int nonNullableFunctionType, (core::int) →? core::int nullableFunctionType, (T%) → T% genericFunctionType, self::test::T1 nonNullableTypeVariable1, self::test::T1? nullableTypeVariable1, self::test::T2 nonNullableTypeVariable2, self::test::T2? nullableTypeVariable2, self::test::T3% undeterminedTypeVariable) → dynamic { + core::print("InstanceInvocation"); + nonNullableClass1.{self::Class1::method}(0){(core::int) → core::double}; + let final self::Class1? #t1 = nullableClass1 in #t1 == null ?{core::double?} null : #t1{self::Class1}.{self::Class1::method}(0){(core::int) → core::double}; + core::print("InstanceGet calls"); + nonNullableClass2.{self::Class2::nonNullableFunctionField}{core::Function}(); + nonNullableClass2.{self::Class2::nonNullableFunctionGetter}{core::Function}(); + nonNullableClass2.{self::Class2::nonNullableFunctionTypedField}{() → void}(){() → void}; + nonNullableClass2.{self::Class2::nonNullableFunctionTypedGetter}{() → void}(){() → void}; + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:68:42: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?.call instead. + nonNullableClass2.nullableFunctionField(); + ^" in nonNullableClass2.{self::Class2::nullableFunctionField}{core::Function?}{}.(); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:69:43: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?.call instead. + nonNullableClass2.nullableFunctionGetter(); + ^" in nonNullableClass2.{self::Class2::nullableFunctionGetter}{core::Function?}{}.(); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:70:47: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +Try calling using ?.call instead. + nonNullableClass2.nullableFunctionTypedField(); + ^" in nonNullableClass2.{self::Class2::nullableFunctionTypedField}{() →? void}{}.(){() →? void}; + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:71:48: Error: Can't use an expression of type 'void Function()?' as a function because it's potentially null. +Try calling using ?.call instead. + nonNullableClass2.nullableFunctionTypedGetter(); + ^" in nonNullableClass2.{self::Class2::nullableFunctionTypedGetter}{() →? void}{}.(){() →? void}; + let final self::Class2 #t2 = nonNullableClass2 in let final core::int #t3 = 0 in #t2.{self::Class2::nonNullableFunctionField}{core::Function}(#t3); + let final self::Class2 #t4 = nonNullableClass2 in let final core::int #t5 = 0 in #t4.{self::Class2::nonNullableFunctionGetter}{core::Function}(#t5); + let final self::Class2 #t6 = nonNullableClass2 in let final core::int #t7 = 0 in invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:74:50: Error: Too many positional arguments: 0 allowed, but 1 found. +Try removing the extra positional arguments. + nonNullableClass2.nonNullableFunctionTypedField(0); + ^" in #t6.{self::Class2::nonNullableFunctionTypedField}{() → void}{}.(#t7); + let final self::Class2 #t8 = nonNullableClass2 in let final core::int #t9 = 0 in invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:75:51: Error: Too many positional arguments: 0 allowed, but 1 found. +Try removing the extra positional arguments. + nonNullableClass2.nonNullableFunctionTypedGetter(0); + ^" in #t8.{self::Class2::nonNullableFunctionTypedGetter}{() → void}{}.(#t9); + core::print("InstanceInvocation (Nullable)"); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:78:18: Error: Method 'method' cannot be called on 'Class1?' because it is potentially null. + - 'Class1' is from 'pkg/front_end/testcases/none/method_invocation.dart'. +Try calling using ?. instead. + nullableClass1.method(0); + ^^^^^^" in nullableClass1.{self::Class1::method}{}.(0){(core::int) → core::double}; + core::print("DynamicInvocation"); + dyn{dynamic}.method(0); + let final dynamic #t10 = dyn in #t10 == null ?{dynamic} null : #t10{dynamic}.method(0); + dyn{dynamic}.toString(0); + const core::int call_dyn = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:84:28: Error: Method invocation is not a constant expression. + const int call_dyn = dyn.toString(0); + ^^^^^^^^"; + core::print(invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:84:28: Error: Method invocation is not a constant expression. + const int call_dyn = dyn.toString(0); + ^^^^^^^^"); + core::print("InstanceInvocation (Object)"); + dyn.{core::Object::toString}(){() → core::String}; + nullableClass1.{core::Object::toString}(){() → core::String}; + nullableClass2.{core::Object::toString}(){() → core::String}; + nullableFunction.{core::Object::toString}(){() → core::String}; + nullableFunctionType.{core::Object::toString}(){() → core::String}; + nullableTypeVariable1.{core::Object::toString}(){() → core::String}; + nullableTypeVariable2.{core::Object::toString}(){() → core::String}; + undeterminedTypeVariable.{core::Object::toString}(){() → core::String}; + core::print("DynamicInvocation (Never)"); + let final Never #t11 = (let final Never #t12 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.method(0) in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t13 = (let final Never #t14 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.toString() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + core::print("DynamicInvocation (Unresolved)"); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:102:21: Error: The method 'unresolved' isn't defined for the class 'Class1'. + - 'Class1' is from 'pkg/front_end/testcases/none/method_invocation.dart'. +Try correcting the name to the name of an existing method, or defining a method named 'unresolved'. + nonNullableClass1.unresolved(); + ^^^^^^^^^^"; + core::print("DynamicInvocation (Inapplicable)"); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:105:27: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass1.method(); + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}; + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:106:26: Error: Too few positional arguments: 1 required, 0 given. + nonNullableFunctionType(); + ^" in nonNullableFunctionType{}.(); + core::print("InstanceInvocation (generic)"); + nonNullableClass2.{self::Class2::method}(0){(core::int) → core::String}; + let final self::Class2? #t15 = nullableClass2 in #t15 == null ?{core::String?} null : #t15{self::Class2}.{self::Class2::method}(0){(core::int) → core::String}; + nonNullableClass2.{self::Class2::call}(){() → core::String}; + nonNullableClass2.{self::Class2::call}(){() → core::String}; + core::print("FunctionInvocation"); + nonNullableFunction(0); + nonNullableFunction(0); + let final core::Function? #t16 = nullableFunction in #t16 == null ?{dynamic} null : #t16{core::Function}(0); + nonNullableFunctionType(0){(core::int) → core::int}; + nonNullableFunctionType(0){(core::int) → core::int}; + let final (core::int) →? core::int #t17 = nullableFunctionType in #t17 == null ?{core::int?} null : #t17{(core::int) → core::int}(0){(core::int) → core::int}; + genericFunctionType(0){(core::int) → core::int}; + genericFunctionType(0){(core::num) → core::num}; + core::num i = genericFunctionType(0){(core::num) → core::num}; + nonNullableTypeVariable1(0); + nonNullableTypeVariable1(0); + let final self::test::T1? #t18 = nullableTypeVariable1 in #t18 == null ?{dynamic} null : #t18{self::test::T1}(0); + nonNullableTypeVariable2(0){(core::int) → core::int}; + nonNullableTypeVariable2(0){(core::int) → core::int}; + let final self::test::T2? #t19 = nullableTypeVariable2 in #t19 == null ?{core::int?} null : #t19{self::test::T2}(0){(core::int) → core::int}; + core::print("FunctionInvocation (Nullable)"); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:132:19: Error: Can't use an expression of type 'Function?' as a function because it's potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?.call instead. + nullableFunction(0); + ^" in nullableFunction{}.(0); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:133:20: Error: Method 'call' cannot be called on 'Function?' because it is potentially null. + - 'Function' is from 'dart:core'. +Try calling using ?. instead. + nullableFunction.call(0); + ^^^^" in nullableFunction{}.(0); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:134:23: Error: Can't use an expression of type 'int Function(int)?' as a function because it's potentially null. +Try calling using ?.call instead. + nullableFunctionType(0); + ^" in nullableFunctionType{}.(0){(core::int) →? core::int}; + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:135:24: Error: Method 'call' cannot be called on 'int Function(int)?' because it is potentially null. +Try calling using ?. instead. + nullableFunctionType.call(0); + ^^^^" in nullableFunctionType{}.(0){(core::int) →? core::int}; + core::print("DynamicInvocation (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:138:27: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass1.method().method(0); + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}{dynamic}.method(0); + core::print("LocalFunctionInvocation"); + function localFunction() → core::int + return 42; + function genericLocalFunction(T% t) → T% + return t; + localFunction(){() → core::int}; + genericLocalFunction(0){(core::int) → core::int}; + genericLocalFunction(0){(core::num) → core::num}; + const core::int call_localFunction = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:147:34: Error: Not a constant expression. + const int call_localFunction = localFunction(); + ^^^^^^^^^^^^^"; + core::print(invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:147:34: Error: Not a constant expression. + const int call_localFunction = localFunction(); + ^^^^^^^^^^^^^"); + () → core::int f = () → core::int => 42; + const core::int call_f = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:152:22: Error: Not a constant expression. + const int call_f = f(); + ^"; + core::print(invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:152:22: Error: Not a constant expression. + const int call_f = f(); + ^"); + core::print(#C4); + const core::bool equals = invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:157:23: Error: Not a constant expression. + const bool equals = i == j; + ^"; + core::print(invalid-expression "pkg/front_end/testcases/none/method_invocation.dart:157:23: Error: Not a constant expression. + const bool equals = i == j; + ^"); +} +static method main() → dynamic {} + +constants { + #C1 = 4 + #C2 = 24 + #C3 = 96 + #C4 = false +} + +Extra constant evaluation status: +Evaluated: VariableGet @ org-dartlang-testcase:///method_invocation.dart:72:46 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///method_invocation.dart:73:47 -> IntConstant(0) +Extra constant evaluation: evaluated: 186, effectively constant: 2 diff --git a/pkg/front_end/testcases/none/operator.dart.strong.expect b/pkg/front_end/testcases/none/operator.dart.strong.expect index 058a649a61e..cbd1f29a539 100644 --- a/pkg/front_end/testcases/none/operator.dart.strong.expect +++ b/pkg/front_end/testcases/none/operator.dart.strong.expect @@ -97,9 +97,9 @@ static method unaryMinus(core::num n, core::int i, core::double d, self::Class}.(){() → invalid-type}){}.unary-(); + ^" in c.{self::Class::method}{}.(){() → invalid-type}{}.unary-(); core::print("DynamicInvocation (Unresolved)"); invalid-expression "pkg/front_end/testcases/none/operator.dart:69:3: Error: The operator 'unary-' isn't defined for the class 'String'. Try correcting the operator to an existing operator, or defining a 'unary-' operator. @@ -116,9 +116,9 @@ static method indexGet(core::List list, core::Map}.(){() → invalid-type}){}.[](0); + ^" in c.{self::Class::method}{}.(){() → invalid-type}{}.[](0); core::print("DynamicInvocation (Unresolved)"); string.{core::String::[]}(0){(core::int) → core::String}; } @@ -132,32 +132,32 @@ static method indexSet(core::List list, core::Map}.(){() → invalid-type}){}.[]=(0, 42); + ^" in c.{self::Class::method}{}.(){() → invalid-type}{}.[]=(0, 42); core::print("DynamicInvocation (Unresolved)"); invalid-expression "pkg/front_end/testcases/none/operator.dart:109:3: Error: Getter not found: 'string'. string[0] = 42; - ^^^^^^"{dynamic}.[]=(0, 42); + ^^^^^^"{}.[]=(0, 42); } static method compound(core::List list, core::Map map, self::Class c, dynamic dyn, Never never) → dynamic { core::print("InstanceInvocation"); - let final core::List #t4 = list in let final core::int #t5 = 0 in #t4.{core::List::[]=}(#t5, #t4.{core::List::[]}(#t5){(core::int) → core::int}.{core::num::+}(42){(core::num) → core::int}){(core::int, core::int) → void}; - let final core::Map #t6 = map in let final core::String #t7 = "foo" in #t6.{core::Map::[]=}(#t7, let final Never #t8 = invalid-expression "pkg/front_end/testcases/none/operator.dart:116:14: Error: Operator '+' cannot be called on 'double?' because it is potentially null. + let final core::List #t1 = list in let final core::int #t2 = 0 in #t1.{core::List::[]=}(#t2, #t1.{core::List::[]}(#t2){(core::int) → core::int}.{core::num::+}(42){(core::num) → core::int}){(core::int, core::int) → void}; + let final core::Map #t3 = map in let final core::String #t4 = "foo" in #t3.{core::Map::[]=}(#t4, invalid-expression "pkg/front_end/testcases/none/operator.dart:116:14: Error: Operator '+' cannot be called on 'double?' because it is potentially null. map['foo'] += 0.5; - ^" in #t6.{core::Map::[]}(#t7){(core::Object?) → core::double?}.{core::double::+}(0.5){(core::num) → core::double}){(core::String, core::double) → void}; - let final self::Class #t9 = c in let final core::int #t10 = 0 in #t9.{self::Class::[]=}(#t10, #t9.{self::Class::[]}(#t10){(core::int) → self::Class}.{self::Class::+}(c){(self::Class) → self::Class}){(core::int, self::Class) → void}; + ^" in #t3.{core::Map::[]}(#t4){(core::Object?) → core::double?}.{core::double::+}(0.5){(core::num) → core::double}){(core::String, core::double) → void}; + let final self::Class #t5 = c in let final core::int #t6 = 0 in #t5.{self::Class::[]=}(#t6, #t5.{self::Class::[]}(#t6){(core::int) → self::Class}.{self::Class::+}(c){(self::Class) → self::Class}){(core::int, self::Class) → void}; core::print("DynamicInvocation"); - let final dynamic #t11 = dyn in let final core::int #t12 = 0 in #t11{dynamic}.[]=(#t12, #t11{dynamic}.[](#t12){dynamic}.+(42)); + let final dynamic #t7 = dyn in let final core::int #t8 = 0 in #t7{dynamic}.[]=(#t8, #t7{dynamic}.[](#t8){dynamic}.+(42)); core::print("DynamicInvocation (Never)"); - let final Never #t13 = never in let final core::int #t14 = 0 in #t13{Never}.[]=(#t14, #t13{Never}.[](#t14){Never}.+(42)); + let final Never #t9 = never in let final core::int #t10 = 0 in #t9{Never}.[]=(#t10, #t9{Never}.[](#t10){Never}.+(42)); core::print("DynamicInvocation (Invalid)"); - let final invalid-type #t15 = let final Never #t16 = invalid-expression "pkg/front_end/testcases/none/operator.dart:126:11: Error: Too few positional arguments: 1 required, 0 given. + let final invalid-type #t11 = invalid-expression "pkg/front_end/testcases/none/operator.dart:126:11: Error: Too few positional arguments: 1 required, 0 given. c.method()[0] += 42; - ^" in c.{self::Class::method}{}.(){() → invalid-type} in let final core::int #t17 = 0 in #t15{}.[]=(#t17, #t15{}.[](#t17){}.+(42)); + ^" in c.{self::Class::method}{}.(){() → invalid-type} in let final core::int #t12 = 0 in #t11{}.[]=(#t12, #t11{}.[](#t12){}.+(42)); core::print("DynamicInvocation (Unresolved)"); - let final dynamic #t18 = invalid-expression "pkg/front_end/testcases/none/operator.dart:129:3: Error: Getter not found: 'string'. + let final invalid-type #t13 = invalid-expression "pkg/front_end/testcases/none/operator.dart:129:3: Error: Getter not found: 'string'. string[0] += 42; - ^^^^^^" in let final core::int #t19 = 0 in #t18{dynamic}.[]=(#t19, #t18{dynamic}.[](#t19){dynamic}.+(42)); + ^^^^^^" in let final core::int #t14 = 0 in #t13{}.[]=(#t14, #t13{}.[](#t14){}.+(42)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/none/operator.dart.strong.transformed.expect b/pkg/front_end/testcases/none/operator.dart.strong.transformed.expect new file mode 100644 index 00000000000..e64d547903d --- /dev/null +++ b/pkg/front_end/testcases/none/operator.dart.strong.transformed.expect @@ -0,0 +1,180 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/none/operator.dart:48:10: Error: The operator '-' isn't defined for the class 'String'. +// Try correcting the operator to an existing operator, or defining a '-' operator. +// string - 42; +// ^ +// +// pkg/front_end/testcases/none/operator.dart:66:12: Error: Too few positional arguments: 1 required, 0 given. +// -c.method(); +// ^ +// +// pkg/front_end/testcases/none/operator.dart:69:3: Error: The operator 'unary-' isn't defined for the class 'String'. +// Try correcting the operator to an existing operator, or defining a 'unary-' operator. +// -string; +// ^ +// +// pkg/front_end/testcases/none/operator.dart:86:11: Error: Too few positional arguments: 1 required, 0 given. +// c.method()[0]; +// ^ +// +// pkg/front_end/testcases/none/operator.dart:109:3: Error: Getter not found: 'string'. +// string[0] = 42; +// ^^^^^^ +// +// pkg/front_end/testcases/none/operator.dart:106:11: Error: Too few positional arguments: 1 required, 0 given. +// c.method()[0] = 42; +// ^ +// +// pkg/front_end/testcases/none/operator.dart:129:3: Error: Getter not found: 'string'. +// string[0] += 42; +// ^^^^^^ +// +// pkg/front_end/testcases/none/operator.dart:116:14: Error: Operator '+' cannot be called on 'double?' because it is potentially null. +// map['foo'] += 0.5; +// ^ +// +// pkg/front_end/testcases/none/operator.dart:126:11: Error: Too few positional arguments: 1 required, 0 given. +// c.method()[0] += 42; +// ^ +// +import self as self; +import "dart:core" as core; + +class Class extends core::Object { + synthetic constructor •() → self::Class + : super core::Object::•() + ; + operator +(generic-covariant-impl self::Class other) → self::Class + return other; + operator unary-() → self::Class + return this; + operator [](core::int index) → self::Class + return this; + operator []=(core::int index, generic-covariant-impl self::Class value) → void {} + method method(core::double o) → core::int + return 42; +} +static method add(core::num n, core::int i, core::double d, self::Class c, dynamic dyn, Never never, core::String string) → dynamic { + core::print("InstanceInvocation"); + n.{core::num::+}(n){(core::num) → core::num}; + n.{core::num::+}(i){(core::num) → core::num}; + n.{core::num::+}(d){(core::num) → core::double}; + n.{core::num::+}(dyn as{TypeError,ForDynamic,ForNonNullableByDefault} core::num){(core::num) → core::num}; + core::print("InstanceInvocation"); + i.{core::num::+}(n){(core::num) → core::num}; + i.{core::num::+}(i){(core::num) → core::int}; + i.{core::num::+}(d){(core::num) → core::double}; + i.{core::num::+}(dyn as{TypeError,ForDynamic,ForNonNullableByDefault} core::num){(core::num) → core::num}; + core::print("InstanceInvocation"); + d.{core::double::+}(n){(core::num) → core::double}; + d.{core::double::+}(i){(core::num) → core::double}; + d.{core::double::+}(d){(core::num) → core::double}; + i.{core::num::+}(dyn as{TypeError,ForDynamic,ForNonNullableByDefault} core::num){(core::num) → core::num}; + core::print("InstanceInvocation"); + c.{self::Class::+}(c){(self::Class) → self::Class}; + c.{self::Class::+}(dyn as{TypeError,ForDynamic,ForNonNullableByDefault} self::Class){(self::Class) → self::Class}; + core::print("DynamicInvocation"); + dyn{dynamic}.+(n); + core::print("DynamicInvocation (Never)"); + never{Never}.+(n); + core::print("DynamicInvocation (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/operator.dart:48:10: Error: The operator '-' isn't defined for the class 'String'. +Try correcting the operator to an existing operator, or defining a '-' operator. + string - 42; + ^"; +} +static method unaryMinus(core::num n, core::int i, core::double d, self::Class c, dynamic dyn, Never never, core::String string) → dynamic { + core::print("InstanceInvocation"); + n.{core::num::unary-}(){() → core::num}; + i.{core::int::unary-}(){() → core::int}; + d.{core::double::unary-}(){() → core::double}; + c.{self::Class::unary-}(){() → self::Class}; + core::print("DynamicInvocation"); + dyn{dynamic}.unary-(); + core::print("DynamicInvocation (Never)"); + never{Never}.unary-(); + core::print("DynamicInvocation (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/operator.dart:66:12: Error: Too few positional arguments: 1 required, 0 given. + -c.method(); + ^" in c.{self::Class::method}{}.(){() → invalid-type}{}.unary-(); + core::print("DynamicInvocation (Unresolved)"); + invalid-expression "pkg/front_end/testcases/none/operator.dart:69:3: Error: The operator 'unary-' isn't defined for the class 'String'. +Try correcting the operator to an existing operator, or defining a 'unary-' operator. + -string; + ^"; +} +static method indexGet(core::List list, core::Map map, self::Class c, dynamic dyn, Never never, core::String string) → dynamic { + core::print("InstanceInvocation"); + list.{core::List::[]}(0){(core::int) → core::int}; + map.{core::Map::[]}("foo"){(core::Object?) → core::double?}; + c.{self::Class::[]}(0){(core::int) → self::Class}; + core::print("DynamicInvocation"); + dyn{dynamic}.[](0); + core::print("DynamicInvocation (Never)"); + never{Never}.[](0); + core::print("DynamicInvocation (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/operator.dart:86:11: Error: Too few positional arguments: 1 required, 0 given. + c.method()[0]; + ^" in c.{self::Class::method}{}.(){() → invalid-type}{}.[](0); + core::print("DynamicInvocation (Unresolved)"); + string.{core::String::[]}(0){(core::int) → core::String}; +} +static method indexSet(core::List list, core::Map map, self::Class c, dynamic dyn, Never never) → dynamic { + core::print("InstanceInvocation"); + list.{core::List::[]=}(0, 42){(core::int, core::int) → void}; + map.{core::Map::[]=}("foo", 0.5){(core::String, core::double) → void}; + c.{self::Class::[]=}(0, c){(core::int, self::Class) → void}; + core::print("DynamicInvocation"); + dyn{dynamic}.[]=(0, 42); + core::print("DynamicInvocation (Never)"); + never{Never}.[]=(0, 42); + core::print("DynamicInvocation (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/operator.dart:106:11: Error: Too few positional arguments: 1 required, 0 given. + c.method()[0] = 42; + ^" in c.{self::Class::method}{}.(){() → invalid-type}{}.[]=(0, 42); + core::print("DynamicInvocation (Unresolved)"); + invalid-expression "pkg/front_end/testcases/none/operator.dart:109:3: Error: Getter not found: 'string'. + string[0] = 42; + ^^^^^^"{}.[]=(0, 42); +} +static method compound(core::List list, core::Map map, self::Class c, dynamic dyn, Never never) → dynamic { + core::print("InstanceInvocation"); + let final core::List #t1 = list in let final core::int #t2 = 0 in #t1.{core::List::[]=}(#t2, #t1.{core::List::[]}(#t2){(core::int) → core::int}.{core::num::+}(42){(core::num) → core::int}){(core::int, core::int) → void}; + let final core::Map #t3 = map in let final core::String #t4 = "foo" in #t3.{core::Map::[]=}(#t4, invalid-expression "pkg/front_end/testcases/none/operator.dart:116:14: Error: Operator '+' cannot be called on 'double?' because it is potentially null. + map['foo'] += 0.5; + ^" in #t3.{core::Map::[]}(#t4){(core::Object?) → core::double?}.{core::double::+}(0.5){(core::num) → core::double}){(core::String, core::double) → void}; + let final self::Class #t5 = c in let final core::int #t6 = 0 in #t5.{self::Class::[]=}(#t6, #t5.{self::Class::[]}(#t6){(core::int) → self::Class}.{self::Class::+}(c){(self::Class) → self::Class}){(core::int, self::Class) → void}; + core::print("DynamicInvocation"); + let final dynamic #t7 = dyn in let final core::int #t8 = 0 in #t7{dynamic}.[]=(#t8, #t7{dynamic}.[](#t8){dynamic}.+(42)); + core::print("DynamicInvocation (Never)"); + let final Never #t9 = never in let final core::int #t10 = 0 in #t9{Never}.[]=(#t10, #t9{Never}.[](#t10){Never}.+(42)); + core::print("DynamicInvocation (Invalid)"); + let final invalid-type #t11 = invalid-expression "pkg/front_end/testcases/none/operator.dart:126:11: Error: Too few positional arguments: 1 required, 0 given. + c.method()[0] += 42; + ^" in c.{self::Class::method}{}.(){() → invalid-type} in let final core::int #t12 = 0 in #t11{}.[]=(#t12, #t11{}.[](#t12){}.+(42)); + core::print("DynamicInvocation (Unresolved)"); + let final invalid-type #t13 = invalid-expression "pkg/front_end/testcases/none/operator.dart:129:3: Error: Getter not found: 'string'. + string[0] += 42; + ^^^^^^" in let final core::int #t14 = 0 in #t13{}.[]=(#t14, #t13{}.[](#t14){}.+(42)); +} +static method main() → dynamic {} + + +Extra constant evaluation status: +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:115:8 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:115:8 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:116:7 -> StringConstant("foo") +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:117:5 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:117:5 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:120:7 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:120:7 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:123:9 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:123:9 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:126:14 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:126:14 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:129:10 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:129:10 -> IntConstant(0) +Extra constant evaluation: evaluated: 186, effectively constant: 13 diff --git a/pkg/front_end/testcases/none/operator.dart.weak.expect b/pkg/front_end/testcases/none/operator.dart.weak.expect index 14d82328b25..2bf52ebdb49 100644 --- a/pkg/front_end/testcases/none/operator.dart.weak.expect +++ b/pkg/front_end/testcases/none/operator.dart.weak.expect @@ -98,9 +98,9 @@ static method unaryMinus(core::num n, core::int i, core::double d, self::Class}.(){() → invalid-type}){}.unary-(); + ^" in c.{self::Class::method}{}.(){() → invalid-type}{}.unary-(); core::print("DynamicInvocation (Unresolved)"); invalid-expression "pkg/front_end/testcases/none/operator.dart:69:3: Error: The operator 'unary-' isn't defined for the class 'String'. Try correcting the operator to an existing operator, or defining a 'unary-' operator. @@ -115,11 +115,11 @@ static method indexGet(core::List list, core::Map}.(){() → invalid-type}){}.[](0); + ^" in c.{self::Class::method}{}.(){() → invalid-type}{}.[](0); core::print("DynamicInvocation (Unresolved)"); string.{core::String::[]}(0){(core::int) → core::String}; } @@ -131,34 +131,34 @@ static method indexSet(core::List list, core::Map}.(){() → invalid-type}){}.[]=(0, 42); + ^" in c.{self::Class::method}{}.(){() → invalid-type}{}.[]=(0, 42); core::print("DynamicInvocation (Unresolved)"); invalid-expression "pkg/front_end/testcases/none/operator.dart:109:3: Error: Getter not found: 'string'. string[0] = 42; - ^^^^^^"{dynamic}.[]=(0, 42); + ^^^^^^"{}.[]=(0, 42); } static method compound(core::List list, core::Map map, self::Class c, dynamic dyn, Never never) → dynamic { core::print("InstanceInvocation"); - let final core::List #t11 = list in let final core::int #t12 = 0 in #t11.{core::List::[]=}(#t12, #t11.{core::List::[]}(#t12){(core::int) → core::int}.{core::num::+}(42){(core::num) → core::int}){(core::int, core::int) → void}; - let final core::Map #t13 = map in let final core::String #t14 = "foo" in #t13.{core::Map::[]=}(#t14, let final Never #t15 = invalid-expression "pkg/front_end/testcases/none/operator.dart:116:14: Error: Operator '+' cannot be called on 'double?' because it is potentially null. + let final core::List #t8 = list in let final core::int #t9 = 0 in #t8.{core::List::[]=}(#t9, #t8.{core::List::[]}(#t9){(core::int) → core::int}.{core::num::+}(42){(core::num) → core::int}){(core::int, core::int) → void}; + let final core::Map #t10 = map in let final core::String #t11 = "foo" in #t10.{core::Map::[]=}(#t11, invalid-expression "pkg/front_end/testcases/none/operator.dart:116:14: Error: Operator '+' cannot be called on 'double?' because it is potentially null. map['foo'] += 0.5; - ^" in #t13.{core::Map::[]}(#t14){(core::Object?) → core::double?}.{core::double::+}(0.5){(core::num) → core::double}){(core::String, core::double) → void}; - let final self::Class #t16 = c in let final core::int #t17 = 0 in #t16.{self::Class::[]=}(#t17, #t16.{self::Class::[]}(#t17){(core::int) → self::Class}.{self::Class::+}(c){(self::Class) → self::Class}){(core::int, self::Class) → void}; + ^" in #t10.{core::Map::[]}(#t11){(core::Object?) → core::double?}.{core::double::+}(0.5){(core::num) → core::double}){(core::String, core::double) → void}; + let final self::Class #t12 = c in let final core::int #t13 = 0 in #t12.{self::Class::[]=}(#t13, #t12.{self::Class::[]}(#t13){(core::int) → self::Class}.{self::Class::+}(c){(self::Class) → self::Class}){(core::int, self::Class) → void}; core::print("DynamicInvocation"); - let final dynamic #t18 = dyn in let final core::int #t19 = 0 in #t18{dynamic}.[]=(#t19, #t18{dynamic}.[](#t19){dynamic}.+(42)); + let final dynamic #t14 = dyn in let final core::int #t15 = 0 in #t14{dynamic}.[]=(#t15, #t14{dynamic}.[](#t15){dynamic}.+(42)); core::print("DynamicInvocation (Never)"); - let final Never #t20 = let final Never #t21 = let final Never #t22 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.") in let final core::int #t23 = 0 in #t21{Never}.[]=(#t23, #t21{Never}.[](#t23){Never}.+(42)) in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t16 = let final Never #t17 = let final Never #t18 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.") in let final core::int #t19 = 0 in #t17{Never}.[]=(#t19, #t17{Never}.[](#t19){Never}.+(42)) in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); core::print("DynamicInvocation (Invalid)"); - let final invalid-type #t24 = let final Never #t25 = invalid-expression "pkg/front_end/testcases/none/operator.dart:126:11: Error: Too few positional arguments: 1 required, 0 given. + let final invalid-type #t20 = invalid-expression "pkg/front_end/testcases/none/operator.dart:126:11: Error: Too few positional arguments: 1 required, 0 given. c.method()[0] += 42; - ^" in c.{self::Class::method}{}.(){() → invalid-type} in let final core::int #t26 = 0 in #t24{}.[]=(#t26, #t24{}.[](#t26){}.+(42)); + ^" in c.{self::Class::method}{}.(){() → invalid-type} in let final core::int #t21 = 0 in #t20{}.[]=(#t21, #t20{}.[](#t21){}.+(42)); core::print("DynamicInvocation (Unresolved)"); - let final dynamic #t27 = invalid-expression "pkg/front_end/testcases/none/operator.dart:129:3: Error: Getter not found: 'string'. + let final invalid-type #t22 = invalid-expression "pkg/front_end/testcases/none/operator.dart:129:3: Error: Getter not found: 'string'. string[0] += 42; - ^^^^^^" in let final core::int #t28 = 0 in #t27{dynamic}.[]=(#t28, #t27{dynamic}.[](#t28){dynamic}.+(42)); + ^^^^^^" in let final core::int #t23 = 0 in #t22{}.[]=(#t23, #t22{}.[](#t23){}.+(42)); } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/none/operator.dart.weak.transformed.expect b/pkg/front_end/testcases/none/operator.dart.weak.transformed.expect new file mode 100644 index 00000000000..95478024c59 --- /dev/null +++ b/pkg/front_end/testcases/none/operator.dart.weak.transformed.expect @@ -0,0 +1,181 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/none/operator.dart:48:10: Error: The operator '-' isn't defined for the class 'String'. +// Try correcting the operator to an existing operator, or defining a '-' operator. +// string - 42; +// ^ +// +// pkg/front_end/testcases/none/operator.dart:66:12: Error: Too few positional arguments: 1 required, 0 given. +// -c.method(); +// ^ +// +// pkg/front_end/testcases/none/operator.dart:69:3: Error: The operator 'unary-' isn't defined for the class 'String'. +// Try correcting the operator to an existing operator, or defining a 'unary-' operator. +// -string; +// ^ +// +// pkg/front_end/testcases/none/operator.dart:86:11: Error: Too few positional arguments: 1 required, 0 given. +// c.method()[0]; +// ^ +// +// pkg/front_end/testcases/none/operator.dart:109:3: Error: Getter not found: 'string'. +// string[0] = 42; +// ^^^^^^ +// +// pkg/front_end/testcases/none/operator.dart:106:11: Error: Too few positional arguments: 1 required, 0 given. +// c.method()[0] = 42; +// ^ +// +// pkg/front_end/testcases/none/operator.dart:129:3: Error: Getter not found: 'string'. +// string[0] += 42; +// ^^^^^^ +// +// pkg/front_end/testcases/none/operator.dart:116:14: Error: Operator '+' cannot be called on 'double?' because it is potentially null. +// map['foo'] += 0.5; +// ^ +// +// pkg/front_end/testcases/none/operator.dart:126:11: Error: Too few positional arguments: 1 required, 0 given. +// c.method()[0] += 42; +// ^ +// +import self as self; +import "dart:core" as core; +import "dart:_internal" as _in; + +class Class extends core::Object { + synthetic constructor •() → self::Class + : super core::Object::•() + ; + operator +(generic-covariant-impl self::Class other) → self::Class + return other; + operator unary-() → self::Class + return this; + operator [](core::int index) → self::Class + return this; + operator []=(core::int index, generic-covariant-impl self::Class value) → void {} + method method(core::double o) → core::int + return 42; +} +static method add(core::num n, core::int i, core::double d, self::Class c, dynamic dyn, Never never, core::String string) → dynamic { + core::print("InstanceInvocation"); + n.{core::num::+}(n){(core::num) → core::num}; + n.{core::num::+}(i){(core::num) → core::num}; + n.{core::num::+}(d){(core::num) → core::double}; + n.{core::num::+}(dyn as{TypeError,ForDynamic,ForNonNullableByDefault} core::num){(core::num) → core::num}; + core::print("InstanceInvocation"); + i.{core::num::+}(n){(core::num) → core::num}; + i.{core::num::+}(i){(core::num) → core::int}; + i.{core::num::+}(d){(core::num) → core::double}; + i.{core::num::+}(dyn as{TypeError,ForDynamic,ForNonNullableByDefault} core::num){(core::num) → core::num}; + core::print("InstanceInvocation"); + d.{core::double::+}(n){(core::num) → core::double}; + d.{core::double::+}(i){(core::num) → core::double}; + d.{core::double::+}(d){(core::num) → core::double}; + i.{core::num::+}(dyn as{TypeError,ForDynamic,ForNonNullableByDefault} core::num){(core::num) → core::num}; + core::print("InstanceInvocation"); + c.{self::Class::+}(c){(self::Class) → self::Class}; + c.{self::Class::+}(dyn as{TypeError,ForDynamic,ForNonNullableByDefault} self::Class){(self::Class) → self::Class}; + core::print("DynamicInvocation"); + dyn{dynamic}.+(n); + core::print("DynamicInvocation (Never)"); + let final Never #t1 = (let final Never #t2 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.+(n) in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + core::print("DynamicInvocation (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/operator.dart:48:10: Error: The operator '-' isn't defined for the class 'String'. +Try correcting the operator to an existing operator, or defining a '-' operator. + string - 42; + ^"; +} +static method unaryMinus(core::num n, core::int i, core::double d, self::Class c, dynamic dyn, Never never, core::String string) → dynamic { + core::print("InstanceInvocation"); + n.{core::num::unary-}(){() → core::num}; + i.{core::int::unary-}(){() → core::int}; + d.{core::double::unary-}(){() → core::double}; + c.{self::Class::unary-}(){() → self::Class}; + core::print("DynamicInvocation"); + dyn{dynamic}.unary-(); + core::print("DynamicInvocation (Never)"); + let final Never #t3 = (let final Never #t4 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.unary-() in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + core::print("DynamicInvocation (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/operator.dart:66:12: Error: Too few positional arguments: 1 required, 0 given. + -c.method(); + ^" in c.{self::Class::method}{}.(){() → invalid-type}{}.unary-(); + core::print("DynamicInvocation (Unresolved)"); + invalid-expression "pkg/front_end/testcases/none/operator.dart:69:3: Error: The operator 'unary-' isn't defined for the class 'String'. +Try correcting the operator to an existing operator, or defining a 'unary-' operator. + -string; + ^"; +} +static method indexGet(core::List list, core::Map map, self::Class c, dynamic dyn, Never never, core::String string) → dynamic { + core::print("InstanceInvocation"); + list.{core::List::[]}(0){(core::int) → core::int}; + map.{core::Map::[]}("foo"){(core::Object?) → core::double?}; + c.{self::Class::[]}(0){(core::int) → self::Class}; + core::print("DynamicInvocation"); + dyn{dynamic}.[](0); + core::print("DynamicInvocation (Never)"); + let final Never #t5 = (let final Never #t6 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.[](0) in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + core::print("DynamicInvocation (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/operator.dart:86:11: Error: Too few positional arguments: 1 required, 0 given. + c.method()[0]; + ^" in c.{self::Class::method}{}.(){() → invalid-type}{}.[](0); + core::print("DynamicInvocation (Unresolved)"); + string.{core::String::[]}(0){(core::int) → core::String}; +} +static method indexSet(core::List list, core::Map map, self::Class c, dynamic dyn, Never never) → dynamic { + core::print("InstanceInvocation"); + list.{core::List::[]=}(0, 42){(core::int, core::int) → void}; + map.{core::Map::[]=}("foo", 0.5){(core::String, core::double) → void}; + c.{self::Class::[]=}(0, c){(core::int, self::Class) → void}; + core::print("DynamicInvocation"); + dyn{dynamic}.[]=(0, 42); + core::print("DynamicInvocation (Never)"); + (let final Never #t7 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.[]=(0, 42); + core::print("DynamicInvocation (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/operator.dart:106:11: Error: Too few positional arguments: 1 required, 0 given. + c.method()[0] = 42; + ^" in c.{self::Class::method}{}.(){() → invalid-type}{}.[]=(0, 42); + core::print("DynamicInvocation (Unresolved)"); + invalid-expression "pkg/front_end/testcases/none/operator.dart:109:3: Error: Getter not found: 'string'. + string[0] = 42; + ^^^^^^"{}.[]=(0, 42); +} +static method compound(core::List list, core::Map map, self::Class c, dynamic dyn, Never never) → dynamic { + core::print("InstanceInvocation"); + let final core::List #t8 = list in let final core::int #t9 = 0 in #t8.{core::List::[]=}(#t9, #t8.{core::List::[]}(#t9){(core::int) → core::int}.{core::num::+}(42){(core::num) → core::int}){(core::int, core::int) → void}; + let final core::Map #t10 = map in let final core::String #t11 = "foo" in #t10.{core::Map::[]=}(#t11, invalid-expression "pkg/front_end/testcases/none/operator.dart:116:14: Error: Operator '+' cannot be called on 'double?' because it is potentially null. + map['foo'] += 0.5; + ^" in #t10.{core::Map::[]}(#t11){(core::Object?) → core::double?}.{core::double::+}(0.5){(core::num) → core::double}){(core::String, core::double) → void}; + let final self::Class #t12 = c in let final core::int #t13 = 0 in #t12.{self::Class::[]=}(#t13, #t12.{self::Class::[]}(#t13){(core::int) → self::Class}.{self::Class::+}(c){(self::Class) → self::Class}){(core::int, self::Class) → void}; + core::print("DynamicInvocation"); + let final dynamic #t14 = dyn in let final core::int #t15 = 0 in #t14{dynamic}.[]=(#t15, #t14{dynamic}.[](#t15){dynamic}.+(42)); + core::print("DynamicInvocation (Never)"); + let final Never #t16 = let final Never #t17 = let final Never #t18 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.") in let final core::int #t19 = 0 in #t17{Never}.[]=(#t19, #t17{Never}.[](#t19){Never}.+(42)) in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + core::print("DynamicInvocation (Invalid)"); + let final invalid-type #t20 = invalid-expression "pkg/front_end/testcases/none/operator.dart:126:11: Error: Too few positional arguments: 1 required, 0 given. + c.method()[0] += 42; + ^" in c.{self::Class::method}{}.(){() → invalid-type} in let final core::int #t21 = 0 in #t20{}.[]=(#t21, #t20{}.[](#t21){}.+(42)); + core::print("DynamicInvocation (Unresolved)"); + let final invalid-type #t22 = invalid-expression "pkg/front_end/testcases/none/operator.dart:129:3: Error: Getter not found: 'string'. + string[0] += 42; + ^^^^^^" in let final core::int #t23 = 0 in #t22{}.[]=(#t23, #t22{}.[](#t23){}.+(42)); +} +static method main() → dynamic {} + + +Extra constant evaluation status: +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:115:8 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:115:8 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:116:7 -> StringConstant("foo") +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:117:5 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:117:5 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:120:7 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:120:7 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:123:9 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:123:9 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:126:14 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:126:14 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:129:10 -> IntConstant(0) +Evaluated: VariableGet @ org-dartlang-testcase:///operator.dart:129:10 -> IntConstant(0) +Extra constant evaluation: evaluated: 213, effectively constant: 13 diff --git a/pkg/front_end/testcases/none/property_get.dart.strong.expect b/pkg/front_end/testcases/none/property_get.dart.strong.expect index e7de58d8d17..1a7050de018 100644 --- a/pkg/front_end/testcases/none/property_get.dart.strong.expect +++ b/pkg/front_end/testcases/none/property_get.dart.strong.expect @@ -85,7 +85,7 @@ static method test(self: const dynamic instance_tearOff = nonNullableClass1.method; ^^^^^^^^^^^^^^^^^"); core::Function f1 = let final self::Class2 #t5 = nonNullableClass2 in #t5 == null ?{() → core::int} null : #t5.{self::Class2::call}{() → core::int}; - core::Function? f2 = let final Never #t6 = invalid-expression "pkg/front_end/testcases/none/property_get.dart:67:18: Error: Can't tear off method 'call' from a potentially null value. + core::Function? f2 = invalid-expression "pkg/front_end/testcases/none/property_get.dart:67:18: Error: Can't tear off method 'call' from a potentially null value. Function? f2 = nullableClass2; ^" in nullableClass2 as{TypeError} core::Function?; core::print("StaticGet"); @@ -97,7 +97,7 @@ static method test(self: core::print(#C4); core::print("DynamicGet"); dyn{dynamic}.field; - let final dynamic #t7 = dyn in #t7 == null ?{dynamic} null : #t7{dynamic}.field; + let final dynamic #t6 = dyn in #t6 == null ?{dynamic} null : #t6{dynamic}.field; const dynamic dyn_get = invalid-expression "pkg/front_end/testcases/none/property_get.dart:82:27: Error: Not a constant expression. const dynamic dyn_get = dyn.field; ^^^"; @@ -115,13 +115,13 @@ static method test(self: never{Never}.hashCode; core::print("FunctionTearOff"); nonNullableFunction.call; - let final core::Function? #t8 = nullableFunction in #t8 == null ?{core::Function?} null : #t8{core::Function}.call; + let final core::Function? #t7 = nullableFunction in #t7 == null ?{core::Function?} null : #t7{core::Function}.call; nonNullableFunctionType.call; - let final () →? core::int #t9 = nullableFunctionType in #t9 == null ?{() →? core::int} null : #t9{() → core::int}.call; + let final () →? core::int #t8 = nullableFunctionType in #t8 == null ?{() →? core::int} null : #t8{() → core::int}.call; nonNullableTypeVariable1.call; - let final self::test::T1? #t10 = nullableTypeVariable1 in #t10 == null ?{self::test::T1?} null : #t10{self::test::T1}.call; + let final self::test::T1? #t9 = nullableTypeVariable1 in #t9 == null ?{self::test::T1?} null : #t9{self::test::T1}.call; nonNullableTypeVariable2.call; - let final self::test::T2? #t11 = nullableTypeVariable2 in #t11 == null ?{self::test::T2?} null : #t11{self::test::T2}.call; + let final self::test::T2? #t10 = nullableTypeVariable2 in #t10 == null ?{self::test::T2?} null : #t10{self::test::T2}.call; const dynamic function_tearOff = invalid-expression "pkg/front_end/testcases/none/property_get.dart:106:36: Error: Not a constant expression. const dynamic function_tearOff = nonNullableFunction.call; ^^^^^^^^^^^^^^^^^^^"; @@ -129,9 +129,9 @@ static method test(self: const dynamic function_tearOff = nonNullableFunction.call; ^^^^^^^^^^^^^^^^^^^"); core::print("DynamicGet (Invalid)"); - (let final Never #t12 = invalid-expression "pkg/front_end/testcases/none/property_get.dart:110:27: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/none/property_get.dart:110:27: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass1.method().field; - ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}){}.field; + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}{}.field; core::print("DynamicGet (Unresolved)"); invalid-expression "pkg/front_end/testcases/none/property_get.dart:113:21: Error: The getter 'unresolved' isn't defined for the class 'Class1'. - 'Class1' is from 'pkg/front_end/testcases/none/property_get.dart'. diff --git a/pkg/front_end/testcases/none/property_get.dart.strong.transformed.expect b/pkg/front_end/testcases/none/property_get.dart.strong.transformed.expect new file mode 100644 index 00000000000..1a7050de018 --- /dev/null +++ b/pkg/front_end/testcases/none/property_get.dart.strong.transformed.expect @@ -0,0 +1,149 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/none/property_get.dart:55:32: Error: Not a constant expression. +// const dynamic instance_get = nullableClass1.field; +// ^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/none/property_get.dart:63:36: Error: Not a constant expression. +// const dynamic instance_tearOff = nonNullableClass1.method; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/none/property_get.dart:82:27: Error: Not a constant expression. +// const dynamic dyn_get = dyn.field; +// ^^^ +// +// pkg/front_end/testcases/none/property_get.dart:106:36: Error: Not a constant expression. +// const dynamic function_tearOff = nonNullableFunction.call; +// ^^^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/none/property_get.dart:67:18: Error: Can't tear off method 'call' from a potentially null value. +// Function? f2 = nullableClass2; +// ^ +// +// pkg/front_end/testcases/none/property_get.dart:110:27: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass1.method().field; +// ^ +// +// pkg/front_end/testcases/none/property_get.dart:113:21: Error: The getter 'unresolved' isn't defined for the class 'Class1'. +// - 'Class1' is from 'pkg/front_end/testcases/none/property_get.dart'. +// Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. +// nonNullableClass1.unresolved; +// ^^^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +class Class1 extends core::Object { + field core::int field; + static field core::int staticField = 42; + constructor •(core::int field) → self::Class1 + : self::Class1::field = field, super core::Object::•() + ; + method method(core::double o) → core::int + return 0; + static method staticMethod(core::double o) → core::int + return 0; +} +class Class2 extends core::Object { + generic-covariant-impl field self::Class2::T% field; + constructor •(self::Class2::T% field) → self::Class2 + : self::Class2::field = field, super core::Object::•() + ; + method call() → core::int + return 42; +} +static field core::int topLevelField = 42; +static const field core::String string = #C1; +static const field core::int stringLength = #C2; +static const field dynamic dynamicString = #C1; +static const field core::int dynamicStringLength = #C2; +static method topLevelMethod(core::double o) → core::int + return 0; +static method test(self::Class1 nonNullableClass1, self::Class1? nullableClass1, dynamic dyn, Never never, self::Class2 nonNullableClass2, self::Class2? nullableClass2, core::Function nonNullableFunction, core::Function? nullableFunction, () → core::int nonNullableFunctionType, () →? core::int nullableFunctionType, self::test::T1 nonNullableTypeVariable1, self::test::T1? nullableTypeVariable1, self::test::T2 nonNullableTypeVariable2, self::test::T2? nullableTypeVariable2) → dynamic { + core::print("InstanceGet"); + nonNullableClass1.{self::Class1::field}{core::int}; + let final self::Class1? #t1 = nullableClass1 in #t1 == null ?{core::int?} null : #t1{self::Class1}.{self::Class1::field}{core::int}; + nonNullableClass2.{self::Class2::field}{core::String}; + let final self::Class2? #t2 = nullableClass2 in #t2 == null ?{core::String?} null : #t2{self::Class2}.{self::Class2::field}{core::String}; + const dynamic instance_get = invalid-expression "pkg/front_end/testcases/none/property_get.dart:55:32: Error: Not a constant expression. + const dynamic instance_get = nullableClass1.field; + ^^^^^^^^^^^^^^"; + core::print(invalid-expression "pkg/front_end/testcases/none/property_get.dart:55:32: Error: Not a constant expression. + const dynamic instance_get = nullableClass1.field; + ^^^^^^^^^^^^^^"); + core::print("InstanceTearOff"); + nonNullableClass1.{self::Class1::method}{(core::double) → core::int}; + let final self::Class1? #t3 = nullableClass1 in #t3 == null ?{(core::double) →? core::int} null : #t3{self::Class1}.{self::Class1::method}{(core::double) → core::int}; + nonNullableClass2.{self::Class2::call}{() → core::int}; + let final self::Class2? #t4 = nullableClass2 in #t4 == null ?{() →? core::int} null : #t4{self::Class2}.{self::Class2::call}{() → core::int}; + const dynamic instance_tearOff = invalid-expression "pkg/front_end/testcases/none/property_get.dart:63:36: Error: Not a constant expression. + const dynamic instance_tearOff = nonNullableClass1.method; + ^^^^^^^^^^^^^^^^^"; + core::print(invalid-expression "pkg/front_end/testcases/none/property_get.dart:63:36: Error: Not a constant expression. + const dynamic instance_tearOff = nonNullableClass1.method; + ^^^^^^^^^^^^^^^^^"); + core::Function f1 = let final self::Class2 #t5 = nonNullableClass2 in #t5 == null ?{() → core::int} null : #t5.{self::Class2::call}{() → core::int}; + core::Function? f2 = invalid-expression "pkg/front_end/testcases/none/property_get.dart:67:18: Error: Can't tear off method 'call' from a potentially null value. + Function? f2 = nullableClass2; + ^" in nullableClass2 as{TypeError} core::Function?; + core::print("StaticGet"); + self::Class1::staticField; + self::topLevelField; + core::print("StaticTearOff"); + #C3; + #C4; + core::print(#C4); + core::print("DynamicGet"); + dyn{dynamic}.field; + let final dynamic #t6 = dyn in #t6 == null ?{dynamic} null : #t6{dynamic}.field; + const dynamic dyn_get = invalid-expression "pkg/front_end/testcases/none/property_get.dart:82:27: Error: Not a constant expression. + const dynamic dyn_get = dyn.field; + ^^^"; + core::print(invalid-expression "pkg/front_end/testcases/none/property_get.dart:82:27: Error: Not a constant expression. + const dynamic dyn_get = dyn.field; + ^^^"); + core::print("InstanceGet (Object)"); + dyn.{core::Object::hashCode}{core::int}; + nullableClass1.{core::Object::hashCode}{core::int}; + core::print("InstanceGetTearOff (Object)"); + dyn.{core::Object::toString}{() → core::String}; + nullableClass1.{core::Object::toString}{() → core::String}; + core::print("DynamicGet (Never)"); + never{Never}.field; + never{Never}.hashCode; + core::print("FunctionTearOff"); + nonNullableFunction.call; + let final core::Function? #t7 = nullableFunction in #t7 == null ?{core::Function?} null : #t7{core::Function}.call; + nonNullableFunctionType.call; + let final () →? core::int #t8 = nullableFunctionType in #t8 == null ?{() →? core::int} null : #t8{() → core::int}.call; + nonNullableTypeVariable1.call; + let final self::test::T1? #t9 = nullableTypeVariable1 in #t9 == null ?{self::test::T1?} null : #t9{self::test::T1}.call; + nonNullableTypeVariable2.call; + let final self::test::T2? #t10 = nullableTypeVariable2 in #t10 == null ?{self::test::T2?} null : #t10{self::test::T2}.call; + const dynamic function_tearOff = invalid-expression "pkg/front_end/testcases/none/property_get.dart:106:36: Error: Not a constant expression. + const dynamic function_tearOff = nonNullableFunction.call; + ^^^^^^^^^^^^^^^^^^^"; + core::print(invalid-expression "pkg/front_end/testcases/none/property_get.dart:106:36: Error: Not a constant expression. + const dynamic function_tearOff = nonNullableFunction.call; + ^^^^^^^^^^^^^^^^^^^"); + core::print("DynamicGet (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/property_get.dart:110:27: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass1.method().field; + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}{}.field; + core::print("DynamicGet (Unresolved)"); + invalid-expression "pkg/front_end/testcases/none/property_get.dart:113:21: Error: The getter 'unresolved' isn't defined for the class 'Class1'. + - 'Class1' is from 'pkg/front_end/testcases/none/property_get.dart'. +Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. + nonNullableClass1.unresolved; + ^^^^^^^^^^"; +} +static method main() → dynamic {} + +constants { + #C1 = "foo" + #C2 = 3 + #C3 = static-tearoff self::Class1::staticMethod + #C4 = static-tearoff self::topLevelMethod +} diff --git a/pkg/front_end/testcases/none/property_get.dart.weak.expect b/pkg/front_end/testcases/none/property_get.dart.weak.expect index 83e13667206..fbbacdec77b 100644 --- a/pkg/front_end/testcases/none/property_get.dart.weak.expect +++ b/pkg/front_end/testcases/none/property_get.dart.weak.expect @@ -86,7 +86,7 @@ static method test(self: const dynamic instance_tearOff = nonNullableClass1.method; ^^^^^^^^^^^^^^^^^"); core::Function f1 = let final self::Class2 #t5 = nonNullableClass2 in #t5 == null ?{() → core::int} null : #t5.{self::Class2::call}{() → core::int}; - core::Function? f2 = let final Never #t6 = invalid-expression "pkg/front_end/testcases/none/property_get.dart:67:18: Error: Can't tear off method 'call' from a potentially null value. + core::Function? f2 = invalid-expression "pkg/front_end/testcases/none/property_get.dart:67:18: Error: Can't tear off method 'call' from a potentially null value. Function? f2 = nullableClass2; ^" in nullableClass2 as{TypeError} core::Function?; core::print("StaticGet"); @@ -98,7 +98,7 @@ static method test(self: core::print(#C4); core::print("DynamicGet"); dyn{dynamic}.field; - let final dynamic #t7 = dyn in #t7 == null ?{dynamic} null : #t7{dynamic}.field; + let final dynamic #t6 = dyn in #t6 == null ?{dynamic} null : #t6{dynamic}.field; const dynamic dyn_get = invalid-expression "pkg/front_end/testcases/none/property_get.dart:82:27: Error: Not a constant expression. const dynamic dyn_get = dyn.field; ^^^"; @@ -112,17 +112,17 @@ static method test(self: dyn.{core::Object::toString}{() → core::String}; nullableClass1.{core::Object::toString}{() → core::String}; core::print("DynamicGet (Never)"); - let final Never #t8 = (let final Never #t9 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.field in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); - let final Never #t10 = (let final Never #t11 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.hashCode in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t7 = (let final Never #t8 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.field in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t9 = (let final Never #t10 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.hashCode in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); core::print("FunctionTearOff"); nonNullableFunction.call; - let final core::Function? #t12 = nullableFunction in #t12 == null ?{core::Function?} null : #t12{core::Function}.call; + let final core::Function? #t11 = nullableFunction in #t11 == null ?{core::Function?} null : #t11{core::Function}.call; nonNullableFunctionType.call; - let final () →? core::int #t13 = nullableFunctionType in #t13 == null ?{() →? core::int} null : #t13{() → core::int}.call; + let final () →? core::int #t12 = nullableFunctionType in #t12 == null ?{() →? core::int} null : #t12{() → core::int}.call; nonNullableTypeVariable1.call; - let final self::test::T1? #t14 = nullableTypeVariable1 in #t14 == null ?{self::test::T1?} null : #t14{self::test::T1}.call; + let final self::test::T1? #t13 = nullableTypeVariable1 in #t13 == null ?{self::test::T1?} null : #t13{self::test::T1}.call; nonNullableTypeVariable2.call; - let final self::test::T2? #t15 = nullableTypeVariable2 in #t15 == null ?{self::test::T2?} null : #t15{self::test::T2}.call; + let final self::test::T2? #t14 = nullableTypeVariable2 in #t14 == null ?{self::test::T2?} null : #t14{self::test::T2}.call; const dynamic function_tearOff = invalid-expression "pkg/front_end/testcases/none/property_get.dart:106:36: Error: Not a constant expression. const dynamic function_tearOff = nonNullableFunction.call; ^^^^^^^^^^^^^^^^^^^"; @@ -130,9 +130,9 @@ static method test(self: const dynamic function_tearOff = nonNullableFunction.call; ^^^^^^^^^^^^^^^^^^^"); core::print("DynamicGet (Invalid)"); - (let final Never #t16 = invalid-expression "pkg/front_end/testcases/none/property_get.dart:110:27: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/none/property_get.dart:110:27: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass1.method().field; - ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}){}.field; + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}{}.field; core::print("DynamicGet (Unresolved)"); invalid-expression "pkg/front_end/testcases/none/property_get.dart:113:21: Error: The getter 'unresolved' isn't defined for the class 'Class1'. - 'Class1' is from 'pkg/front_end/testcases/none/property_get.dart'. diff --git a/pkg/front_end/testcases/none/property_get.dart.weak.transformed.expect b/pkg/front_end/testcases/none/property_get.dart.weak.transformed.expect new file mode 100644 index 00000000000..fbbacdec77b --- /dev/null +++ b/pkg/front_end/testcases/none/property_get.dart.weak.transformed.expect @@ -0,0 +1,150 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/none/property_get.dart:55:32: Error: Not a constant expression. +// const dynamic instance_get = nullableClass1.field; +// ^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/none/property_get.dart:63:36: Error: Not a constant expression. +// const dynamic instance_tearOff = nonNullableClass1.method; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/none/property_get.dart:82:27: Error: Not a constant expression. +// const dynamic dyn_get = dyn.field; +// ^^^ +// +// pkg/front_end/testcases/none/property_get.dart:106:36: Error: Not a constant expression. +// const dynamic function_tearOff = nonNullableFunction.call; +// ^^^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/none/property_get.dart:67:18: Error: Can't tear off method 'call' from a potentially null value. +// Function? f2 = nullableClass2; +// ^ +// +// pkg/front_end/testcases/none/property_get.dart:110:27: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass1.method().field; +// ^ +// +// pkg/front_end/testcases/none/property_get.dart:113:21: Error: The getter 'unresolved' isn't defined for the class 'Class1'. +// - 'Class1' is from 'pkg/front_end/testcases/none/property_get.dart'. +// Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. +// nonNullableClass1.unresolved; +// ^^^^^^^^^^ +// +import self as self; +import "dart:core" as core; +import "dart:_internal" as _in; + +class Class1 extends core::Object { + field core::int field; + static field core::int staticField = 42; + constructor •(core::int field) → self::Class1 + : self::Class1::field = field, super core::Object::•() + ; + method method(core::double o) → core::int + return 0; + static method staticMethod(core::double o) → core::int + return 0; +} +class Class2 extends core::Object { + generic-covariant-impl field self::Class2::T% field; + constructor •(self::Class2::T% field) → self::Class2 + : self::Class2::field = field, super core::Object::•() + ; + method call() → core::int + return 42; +} +static field core::int topLevelField = 42; +static const field core::String string = #C1; +static const field core::int stringLength = #C2; +static const field dynamic dynamicString = #C1; +static const field core::int dynamicStringLength = #C2; +static method topLevelMethod(core::double o) → core::int + return 0; +static method test(self::Class1 nonNullableClass1, self::Class1? nullableClass1, dynamic dyn, Never never, self::Class2 nonNullableClass2, self::Class2? nullableClass2, core::Function nonNullableFunction, core::Function? nullableFunction, () → core::int nonNullableFunctionType, () →? core::int nullableFunctionType, self::test::T1 nonNullableTypeVariable1, self::test::T1? nullableTypeVariable1, self::test::T2 nonNullableTypeVariable2, self::test::T2? nullableTypeVariable2) → dynamic { + core::print("InstanceGet"); + nonNullableClass1.{self::Class1::field}{core::int}; + let final self::Class1? #t1 = nullableClass1 in #t1 == null ?{core::int?} null : #t1{self::Class1}.{self::Class1::field}{core::int}; + nonNullableClass2.{self::Class2::field}{core::String}; + let final self::Class2? #t2 = nullableClass2 in #t2 == null ?{core::String?} null : #t2{self::Class2}.{self::Class2::field}{core::String}; + const dynamic instance_get = invalid-expression "pkg/front_end/testcases/none/property_get.dart:55:32: Error: Not a constant expression. + const dynamic instance_get = nullableClass1.field; + ^^^^^^^^^^^^^^"; + core::print(invalid-expression "pkg/front_end/testcases/none/property_get.dart:55:32: Error: Not a constant expression. + const dynamic instance_get = nullableClass1.field; + ^^^^^^^^^^^^^^"); + core::print("InstanceTearOff"); + nonNullableClass1.{self::Class1::method}{(core::double) → core::int}; + let final self::Class1? #t3 = nullableClass1 in #t3 == null ?{(core::double) →? core::int} null : #t3{self::Class1}.{self::Class1::method}{(core::double) → core::int}; + nonNullableClass2.{self::Class2::call}{() → core::int}; + let final self::Class2? #t4 = nullableClass2 in #t4 == null ?{() →? core::int} null : #t4{self::Class2}.{self::Class2::call}{() → core::int}; + const dynamic instance_tearOff = invalid-expression "pkg/front_end/testcases/none/property_get.dart:63:36: Error: Not a constant expression. + const dynamic instance_tearOff = nonNullableClass1.method; + ^^^^^^^^^^^^^^^^^"; + core::print(invalid-expression "pkg/front_end/testcases/none/property_get.dart:63:36: Error: Not a constant expression. + const dynamic instance_tearOff = nonNullableClass1.method; + ^^^^^^^^^^^^^^^^^"); + core::Function f1 = let final self::Class2 #t5 = nonNullableClass2 in #t5 == null ?{() → core::int} null : #t5.{self::Class2::call}{() → core::int}; + core::Function? f2 = invalid-expression "pkg/front_end/testcases/none/property_get.dart:67:18: Error: Can't tear off method 'call' from a potentially null value. + Function? f2 = nullableClass2; + ^" in nullableClass2 as{TypeError} core::Function?; + core::print("StaticGet"); + self::Class1::staticField; + self::topLevelField; + core::print("StaticTearOff"); + #C3; + #C4; + core::print(#C4); + core::print("DynamicGet"); + dyn{dynamic}.field; + let final dynamic #t6 = dyn in #t6 == null ?{dynamic} null : #t6{dynamic}.field; + const dynamic dyn_get = invalid-expression "pkg/front_end/testcases/none/property_get.dart:82:27: Error: Not a constant expression. + const dynamic dyn_get = dyn.field; + ^^^"; + core::print(invalid-expression "pkg/front_end/testcases/none/property_get.dart:82:27: Error: Not a constant expression. + const dynamic dyn_get = dyn.field; + ^^^"); + core::print("InstanceGet (Object)"); + dyn.{core::Object::hashCode}{core::int}; + nullableClass1.{core::Object::hashCode}{core::int}; + core::print("InstanceGetTearOff (Object)"); + dyn.{core::Object::toString}{() → core::String}; + nullableClass1.{core::Object::toString}{() → core::String}; + core::print("DynamicGet (Never)"); + let final Never #t7 = (let final Never #t8 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.field in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + let final Never #t9 = (let final Never #t10 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.hashCode in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`."); + core::print("FunctionTearOff"); + nonNullableFunction.call; + let final core::Function? #t11 = nullableFunction in #t11 == null ?{core::Function?} null : #t11{core::Function}.call; + nonNullableFunctionType.call; + let final () →? core::int #t12 = nullableFunctionType in #t12 == null ?{() →? core::int} null : #t12{() → core::int}.call; + nonNullableTypeVariable1.call; + let final self::test::T1? #t13 = nullableTypeVariable1 in #t13 == null ?{self::test::T1?} null : #t13{self::test::T1}.call; + nonNullableTypeVariable2.call; + let final self::test::T2? #t14 = nullableTypeVariable2 in #t14 == null ?{self::test::T2?} null : #t14{self::test::T2}.call; + const dynamic function_tearOff = invalid-expression "pkg/front_end/testcases/none/property_get.dart:106:36: Error: Not a constant expression. + const dynamic function_tearOff = nonNullableFunction.call; + ^^^^^^^^^^^^^^^^^^^"; + core::print(invalid-expression "pkg/front_end/testcases/none/property_get.dart:106:36: Error: Not a constant expression. + const dynamic function_tearOff = nonNullableFunction.call; + ^^^^^^^^^^^^^^^^^^^"); + core::print("DynamicGet (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/property_get.dart:110:27: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass1.method().field; + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}{}.field; + core::print("DynamicGet (Unresolved)"); + invalid-expression "pkg/front_end/testcases/none/property_get.dart:113:21: Error: The getter 'unresolved' isn't defined for the class 'Class1'. + - 'Class1' is from 'pkg/front_end/testcases/none/property_get.dart'. +Try correcting the name to the name of an existing getter, or defining a getter or field named 'unresolved'. + nonNullableClass1.unresolved; + ^^^^^^^^^^"; +} +static method main() → dynamic {} + +constants { + #C1 = "foo" + #C2 = 3 + #C3 = static-tearoff self::Class1::staticMethod + #C4 = static-tearoff self::topLevelMethod +} diff --git a/pkg/front_end/testcases/none/property_set.dart.strong.expect b/pkg/front_end/testcases/none/property_set.dart.strong.expect index 67eb383fb65..937e9a5c20b 100644 --- a/pkg/front_end/testcases/none/property_set.dart.strong.expect +++ b/pkg/front_end/testcases/none/property_set.dart.strong.expect @@ -54,9 +54,9 @@ static method test(self::Class1 nonNullableClass1, self::Class1? nullableClass1, core::print("DynamicSet (Never)"); never{Never}.field = 42; core::print("DynamicSet (Invalid)"); - (let final Never #t3 = invalid-expression "pkg/front_end/testcases/none/property_set.dart:29:27: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/none/property_set.dart:29:27: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass1.method().field = 42; - ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}){}.field = 42; + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}{}.field = 42; core::print("DynamicSet (Unresolved)"); invalid-expression "pkg/front_end/testcases/none/property_set.dart:32:21: Error: The setter 'unresolved' isn't defined for the class 'Class1'. - 'Class1' is from 'pkg/front_end/testcases/none/property_set.dart'. diff --git a/pkg/front_end/testcases/none/property_set.dart.strong.transformed.expect b/pkg/front_end/testcases/none/property_set.dart.strong.transformed.expect new file mode 100644 index 00000000000..937e9a5c20b --- /dev/null +++ b/pkg/front_end/testcases/none/property_set.dart.strong.transformed.expect @@ -0,0 +1,67 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/none/property_set.dart:18:34: Error: Not a constant expression. +// const int set_instance_field = nonNullableClass1.field = 42; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/none/property_set.dart:18:58: Error: Not a constant expression. +// const int set_instance_field = nonNullableClass1.field = 42; +// ^ +// +// pkg/front_end/testcases/none/property_set.dart:23:33: Error: Not a constant expression. +// const int set_dynamic_field = dyn.field = 42; +// ^^^ +// +// pkg/front_end/testcases/none/property_set.dart:23:43: Error: Not a constant expression. +// const int set_dynamic_field = dyn.field = 42; +// ^ +// +// pkg/front_end/testcases/none/property_set.dart:29:27: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass1.method().field = 42; +// ^ +// +// pkg/front_end/testcases/none/property_set.dart:32:21: Error: The setter 'unresolved' isn't defined for the class 'Class1'. +// - 'Class1' is from 'pkg/front_end/testcases/none/property_set.dart'. +// Try correcting the name to the name of an existing setter, or defining a setter or field named 'unresolved'. +// nonNullableClass1.unresolved = 42; +// ^^^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +class Class1 extends core::Object { + field core::int field; + constructor •(core::int field) → self::Class1 + : self::Class1::field = field, super core::Object::•() + ; + method method(dynamic o) → dynamic {} +} +static method test(self::Class1 nonNullableClass1, self::Class1? nullableClass1, dynamic dyn, Never never) → dynamic { + core::print("InstanceSet"); + nonNullableClass1.{self::Class1::field} = 42; + let final self::Class1? #t1 = nullableClass1 in #t1 == null ?{core::int?} null : #t1{self::Class1}.{self::Class1::field} = 42; + const core::int set_instance_field = invalid-expression "pkg/front_end/testcases/none/property_set.dart:18:58: Error: Not a constant expression. + const int set_instance_field = nonNullableClass1.field = 42; + ^"; + core::print("DynamicSet"); + dyn{dynamic}.field = 42; + let final dynamic #t2 = dyn in #t2 == null ?{core::int?} null : #t2{dynamic}.field = 42; + const core::int set_dynamic_field = invalid-expression "pkg/front_end/testcases/none/property_set.dart:23:43: Error: Not a constant expression. + const int set_dynamic_field = dyn.field = 42; + ^"; + core::print("DynamicSet (Never)"); + never{Never}.field = 42; + core::print("DynamicSet (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/property_set.dart:29:27: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass1.method().field = 42; + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}{}.field = 42; + core::print("DynamicSet (Unresolved)"); + invalid-expression "pkg/front_end/testcases/none/property_set.dart:32:21: Error: The setter 'unresolved' isn't defined for the class 'Class1'. + - 'Class1' is from 'pkg/front_end/testcases/none/property_set.dart'. +Try correcting the name to the name of an existing setter, or defining a setter or field named 'unresolved'. + nonNullableClass1.unresolved = 42; + ^^^^^^^^^^"; +} +static method main() → dynamic {} diff --git a/pkg/front_end/testcases/none/property_set.dart.weak.expect b/pkg/front_end/testcases/none/property_set.dart.weak.expect index d0822e66bb4..4d73803b550 100644 --- a/pkg/front_end/testcases/none/property_set.dart.weak.expect +++ b/pkg/front_end/testcases/none/property_set.dart.weak.expect @@ -55,9 +55,9 @@ static method test(self::Class1 nonNullableClass1, self::Class1? nullableClass1, core::print("DynamicSet (Never)"); (let final Never #t3 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.field = 42; core::print("DynamicSet (Invalid)"); - (let final Never #t4 = invalid-expression "pkg/front_end/testcases/none/property_set.dart:29:27: Error: Too few positional arguments: 1 required, 0 given. + invalid-expression "pkg/front_end/testcases/none/property_set.dart:29:27: Error: Too few positional arguments: 1 required, 0 given. nonNullableClass1.method().field = 42; - ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}){}.field = 42; + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}{}.field = 42; core::print("DynamicSet (Unresolved)"); invalid-expression "pkg/front_end/testcases/none/property_set.dart:32:21: Error: The setter 'unresolved' isn't defined for the class 'Class1'. - 'Class1' is from 'pkg/front_end/testcases/none/property_set.dart'. diff --git a/pkg/front_end/testcases/none/property_set.dart.weak.transformed.expect b/pkg/front_end/testcases/none/property_set.dart.weak.transformed.expect new file mode 100644 index 00000000000..4d73803b550 --- /dev/null +++ b/pkg/front_end/testcases/none/property_set.dart.weak.transformed.expect @@ -0,0 +1,68 @@ +library /*isNonNullableByDefault*/; +// +// Problems in library: +// +// pkg/front_end/testcases/none/property_set.dart:18:34: Error: Not a constant expression. +// const int set_instance_field = nonNullableClass1.field = 42; +// ^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/none/property_set.dart:18:58: Error: Not a constant expression. +// const int set_instance_field = nonNullableClass1.field = 42; +// ^ +// +// pkg/front_end/testcases/none/property_set.dart:23:33: Error: Not a constant expression. +// const int set_dynamic_field = dyn.field = 42; +// ^^^ +// +// pkg/front_end/testcases/none/property_set.dart:23:43: Error: Not a constant expression. +// const int set_dynamic_field = dyn.field = 42; +// ^ +// +// pkg/front_end/testcases/none/property_set.dart:29:27: Error: Too few positional arguments: 1 required, 0 given. +// nonNullableClass1.method().field = 42; +// ^ +// +// pkg/front_end/testcases/none/property_set.dart:32:21: Error: The setter 'unresolved' isn't defined for the class 'Class1'. +// - 'Class1' is from 'pkg/front_end/testcases/none/property_set.dart'. +// Try correcting the name to the name of an existing setter, or defining a setter or field named 'unresolved'. +// nonNullableClass1.unresolved = 42; +// ^^^^^^^^^^ +// +import self as self; +import "dart:core" as core; +import "dart:_internal" as _in; + +class Class1 extends core::Object { + field core::int field; + constructor •(core::int field) → self::Class1 + : self::Class1::field = field, super core::Object::•() + ; + method method(dynamic o) → dynamic {} +} +static method test(self::Class1 nonNullableClass1, self::Class1? nullableClass1, dynamic dyn, Never never) → dynamic { + core::print("InstanceSet"); + nonNullableClass1.{self::Class1::field} = 42; + let final self::Class1? #t1 = nullableClass1 in #t1 == null ?{core::int?} null : #t1{self::Class1}.{self::Class1::field} = 42; + const core::int set_instance_field = invalid-expression "pkg/front_end/testcases/none/property_set.dart:18:58: Error: Not a constant expression. + const int set_instance_field = nonNullableClass1.field = 42; + ^"; + core::print("DynamicSet"); + dyn{dynamic}.field = 42; + let final dynamic #t2 = dyn in #t2 == null ?{core::int?} null : #t2{dynamic}.field = 42; + const core::int set_dynamic_field = invalid-expression "pkg/front_end/testcases/none/property_set.dart:23:43: Error: Not a constant expression. + const int set_dynamic_field = dyn.field = 42; + ^"; + core::print("DynamicSet (Never)"); + (let final Never #t3 = never in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.")){Never}.field = 42; + core::print("DynamicSet (Invalid)"); + invalid-expression "pkg/front_end/testcases/none/property_set.dart:29:27: Error: Too few positional arguments: 1 required, 0 given. + nonNullableClass1.method().field = 42; + ^" in nonNullableClass1.{self::Class1::method}{}.(){() → invalid-type}{}.field = 42; + core::print("DynamicSet (Unresolved)"); + invalid-expression "pkg/front_end/testcases/none/property_set.dart:32:21: Error: The setter 'unresolved' isn't defined for the class 'Class1'. + - 'Class1' is from 'pkg/front_end/testcases/none/property_set.dart'. +Try correcting the name to the name of an existing setter, or defining a setter or field named 'unresolved'. + nonNullableClass1.unresolved = 42; + ^^^^^^^^^^"; +} +static method main() → dynamic {} diff --git a/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.strong.expect b/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.strong.expect index fb500caf360..7169acaa00e 100644 --- a/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.strong.expect +++ b/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.strong.expect @@ -21,12 +21,12 @@ import "org-dartlang-testcase:///issue41501_lib.dart"; typedef AAliasNonNullable = opt::A; typedef AAliasNullable = opt::A?; static method test() → dynamic { - FutureOr<() → opt::A*>foLegacyNonNullable = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:13:42: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. + FutureOr<() → opt::A*>foLegacyNonNullable = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:13:42: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. - 'A' is from 'pkg/front_end/testcases/nonfunction_type_aliases/issue41501_lib.dart'. FutureOr foLegacyNonNullable = null; // error ^" in null as{TypeError,ForNonNullableByDefault} FutureOr<() → opt::A*>; FutureOr<() →? opt::A*>foLegacyNullable = null; - FutureOrfoNonNullable = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:15:47: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. + FutureOrfoNonNullable = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:15:47: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. - 'A' is from 'pkg/front_end/testcases/nonfunction_type_aliases/issue41501_lib.dart'. FutureOr foNonNullable = null; // error ^" in null as{TypeError,ForNonNullableByDefault} FutureOr; diff --git a/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.strong.transformed.expect b/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.strong.transformed.expect index aab83a3025f..33d8eb061e0 100644 --- a/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.strong.transformed.expect @@ -21,15 +21,15 @@ import "org-dartlang-testcase:///issue41501_lib.dart"; typedef AAliasNonNullable = opt::A; typedef AAliasNullable = opt::A?; static method test() → dynamic { - FutureOr<() → opt::A*>foLegacyNonNullable = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:13:42: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. + FutureOr<() → opt::A*>foLegacyNonNullable = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:13:42: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. - 'A' is from 'pkg/front_end/testcases/nonfunction_type_aliases/issue41501_lib.dart'. FutureOr foLegacyNonNullable = null; // error - ^" in let Null #t2 = null in #t2 == null ?{FutureOr<() → opt::A*>} #t2 as{TypeError,ForNonNullableByDefault} FutureOr<() → opt::A*> : #t2{FutureOr<() → opt::A*>}; + ^" in let Null #t1 = null in #t1 == null ?{FutureOr<() → opt::A*>} #t1 as{TypeError,ForNonNullableByDefault} FutureOr<() → opt::A*> : #t1{FutureOr<() → opt::A*>}; FutureOr<() →? opt::A*>foLegacyNullable = null; - FutureOrfoNonNullable = let final Never #t3 = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:15:47: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. + FutureOrfoNonNullable = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:15:47: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. - 'A' is from 'pkg/front_end/testcases/nonfunction_type_aliases/issue41501_lib.dart'. FutureOr foNonNullable = null; // error - ^" in let Null #t4 = null in #t4 == null ?{FutureOr} #t4 as{TypeError,ForNonNullableByDefault} FutureOr : #t4{FutureOr}; + ^" in let Null #t2 = null in #t2 == null ?{FutureOr} #t2 as{TypeError,ForNonNullableByDefault} FutureOr : #t2{FutureOr}; FutureOrfoNullable = null; FutureOrfoNonNullableNullable = null; FutureOrfoNullableNullable = null; @@ -71,13 +71,3 @@ static method test() → dynamic { FutureOr* foNonNullable = null; FutureOr* foNullable = null; } - - -Extra constant evaluation status: -Evaluated: EqualsNull @ org-dartlang-testcase:///issue41501.dart:13:42 -> BoolConstant(true) -Evaluated: VariableGet @ org-dartlang-testcase:///issue41501.dart:13:42 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///issue41501.dart:13:42 -> NullConstant(null) -Evaluated: EqualsNull @ org-dartlang-testcase:///issue41501.dart:15:47 -> BoolConstant(true) -Evaluated: VariableGet @ org-dartlang-testcase:///issue41501.dart:15:47 -> NullConstant(null) -Evaluated: VariableGet @ org-dartlang-testcase:///issue41501.dart:15:47 -> NullConstant(null) -Extra constant evaluation: evaluated: 14, effectively constant: 6 diff --git a/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.weak.expect b/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.weak.expect index a709e0bbd83..1527b5e1ca2 100644 --- a/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.weak.expect +++ b/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.weak.expect @@ -21,12 +21,12 @@ import "org-dartlang-testcase:///issue41501_lib.dart"; typedef AAliasNonNullable = opt::A; typedef AAliasNullable = opt::A?; static method test() → dynamic { - FutureOr<() → opt::A*>foLegacyNonNullable = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:13:42: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. + FutureOr<() → opt::A*>foLegacyNonNullable = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:13:42: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. - 'A' is from 'pkg/front_end/testcases/nonfunction_type_aliases/issue41501_lib.dart'. FutureOr foLegacyNonNullable = null; // error ^" in null as{TypeError,ForNonNullableByDefault} FutureOr<() → opt::A*>; FutureOr<() →? opt::A*>foLegacyNullable = null; - FutureOrfoNonNullable = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:15:47: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. + FutureOrfoNonNullable = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:15:47: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. - 'A' is from 'pkg/front_end/testcases/nonfunction_type_aliases/issue41501_lib.dart'. FutureOr foNonNullable = null; // error ^" in null as{TypeError,ForNonNullableByDefault} FutureOr; diff --git a/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.weak.transformed.expect b/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.weak.transformed.expect index a75d47817d4..09de8be6165 100644 --- a/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart.weak.transformed.expect @@ -21,12 +21,12 @@ import "org-dartlang-testcase:///issue41501_lib.dart"; typedef AAliasNonNullable = opt::A; typedef AAliasNullable = opt::A?; static method test() → dynamic { - FutureOr<() → opt::A*>foLegacyNonNullable = let final Never #t1 = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:13:42: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. + FutureOr<() → opt::A*>foLegacyNonNullable = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:13:42: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. - 'A' is from 'pkg/front_end/testcases/nonfunction_type_aliases/issue41501_lib.dart'. FutureOr foLegacyNonNullable = null; // error ^" in null; FutureOr<() →? opt::A*>foLegacyNullable = null; - FutureOrfoNonNullable = let final Never #t2 = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:15:47: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. + FutureOrfoNonNullable = invalid-expression "pkg/front_end/testcases/nonfunction_type_aliases/issue41501.dart:15:47: Error: The value 'null' can't be assigned to a variable of type 'FutureOr' because 'FutureOr' is not nullable. - 'A' is from 'pkg/front_end/testcases/nonfunction_type_aliases/issue41501_lib.dart'. FutureOr foNonNullable = null; // error ^" in null; diff --git a/pkg/front_end/testcases/rasta/issue_000031.dart.weak.expect b/pkg/front_end/testcases/rasta/issue_000031.dart.weak.expect index 0485f1421ae..5147d087dcb 100644 --- a/pkg/front_end/testcases/rasta/issue_000031.dart.weak.expect +++ b/pkg/front_end/testcases/rasta/issue_000031.dart.weak.expect @@ -12,7 +12,7 @@ import "dart:core" as core; import "dart:math" as math; static method main() → dynamic { - let final dynamic #t1 = invalid-expression "pkg/front_end/testcases/rasta/issue_000031.dart:8:3: Error: A prefix can't be used as an expression. + let final invalid-type #t1 = invalid-expression "pkg/front_end/testcases/rasta/issue_000031.dart:8:3: Error: A prefix can't be used as an expression. math..toString(); ^^^^" in block { #t1.{core::Object::toString}(){() →* core::String*}; diff --git a/pkg/front_end/testcases/rasta/issue_000031.dart.weak.transformed.expect b/pkg/front_end/testcases/rasta/issue_000031.dart.weak.transformed.expect index 0485f1421ae..5147d087dcb 100644 --- a/pkg/front_end/testcases/rasta/issue_000031.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/rasta/issue_000031.dart.weak.transformed.expect @@ -12,7 +12,7 @@ import "dart:core" as core; import "dart:math" as math; static method main() → dynamic { - let final dynamic #t1 = invalid-expression "pkg/front_end/testcases/rasta/issue_000031.dart:8:3: Error: A prefix can't be used as an expression. + let final invalid-type #t1 = invalid-expression "pkg/front_end/testcases/rasta/issue_000031.dart:8:3: Error: A prefix can't be used as an expression. math..toString(); ^^^^" in block { #t1.{core::Object::toString}(){() →* core::String*}; diff --git a/pkg/front_end/testcases/rasta/issue_000036.dart.weak.expect b/pkg/front_end/testcases/rasta/issue_000036.dart.weak.expect index 27dc31380d7..255d67d4f86 100644 --- a/pkg/front_end/testcases/rasta/issue_000036.dart.weak.expect +++ b/pkg/front_end/testcases/rasta/issue_000036.dart.weak.expect @@ -18,4 +18,4 @@ static method main() → dynamic return invalid-expression "pkg/front_end/testcases/rasta/issue_000036.dart:5:14: Error: Expected an identifier, but got ''. Try inserting an identifier before ''. main() => a. - 5; - ^"{dynamic}.-(5); + ^"{}.-(5); diff --git a/pkg/front_end/testcases/rasta/issue_000036.dart.weak.transformed.expect b/pkg/front_end/testcases/rasta/issue_000036.dart.weak.transformed.expect index 27dc31380d7..255d67d4f86 100644 --- a/pkg/front_end/testcases/rasta/issue_000036.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/rasta/issue_000036.dart.weak.transformed.expect @@ -18,4 +18,4 @@ static method main() → dynamic return invalid-expression "pkg/front_end/testcases/rasta/issue_000036.dart:5:14: Error: Expected an identifier, but got ''. Try inserting an identifier before ''. main() => a. - 5; - ^"{dynamic}.-(5); + ^"{}.-(5); diff --git a/pkg/front_end/testcases/rasta/issue_000041.dart.weak.expect b/pkg/front_end/testcases/rasta/issue_000041.dart.weak.expect index 63fc41cf849..202634080f0 100644 --- a/pkg/front_end/testcases/rasta/issue_000041.dart.weak.expect +++ b/pkg/front_end/testcases/rasta/issue_000041.dart.weak.expect @@ -22,7 +22,7 @@ class C extends core::Object { method test() → dynamic { self::use(invalid-expression "pkg/front_end/testcases/rasta/issue_000041.dart:7:9: Error: This couldn't be parsed. use(+super); - ^"{dynamic}.+(invalid-expression "pkg/front_end/testcases/rasta/issue_000041.dart:7:10: Error: Can't use 'super' as an expression. + ^"{}.+(invalid-expression "pkg/front_end/testcases/rasta/issue_000041.dart:7:10: Error: Can't use 'super' as an expression. To delegate a constructor to a super constructor, put the super call as an initializer. use(+super); ^^^^^")); diff --git a/pkg/front_end/testcases/rasta/issue_000041.dart.weak.transformed.expect b/pkg/front_end/testcases/rasta/issue_000041.dart.weak.transformed.expect index 63fc41cf849..202634080f0 100644 --- a/pkg/front_end/testcases/rasta/issue_000041.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/rasta/issue_000041.dart.weak.transformed.expect @@ -22,7 +22,7 @@ class C extends core::Object { method test() → dynamic { self::use(invalid-expression "pkg/front_end/testcases/rasta/issue_000041.dart:7:9: Error: This couldn't be parsed. use(+super); - ^"{dynamic}.+(invalid-expression "pkg/front_end/testcases/rasta/issue_000041.dart:7:10: Error: Can't use 'super' as an expression. + ^"{}.+(invalid-expression "pkg/front_end/testcases/rasta/issue_000041.dart:7:10: Error: Can't use 'super' as an expression. To delegate a constructor to a super constructor, put the super call as an initializer. use(+super); ^^^^^")); diff --git a/pkg/front_end/testcases/rasta/issue_000046.dart.weak.expect b/pkg/front_end/testcases/rasta/issue_000046.dart.weak.expect index ab67342fb53..4625b853fc7 100644 --- a/pkg/front_end/testcases/rasta/issue_000046.dart.weak.expect +++ b/pkg/front_end/testcases/rasta/issue_000046.dart.weak.expect @@ -30,7 +30,7 @@ import self as self; import "dart:core" as core; class C extends core::Object { - field self::C* c = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/rasta/issue_000046.dart:6:13: Error: The constructor returns type 'Object' that isn't of expected type 'C'. + field self::C* c = invalid-expression "pkg/front_end/testcases/rasta/issue_000046.dart:6:13: Error: The constructor returns type 'Object' that isn't of expected type 'C'. - 'Object' is from 'dart:core'. - 'C' is from 'pkg/front_end/testcases/rasta/issue_000046.dart'. Change the type of the object being constructed or the context in which it is used. diff --git a/pkg/front_end/testcases/rasta/issue_000046.dart.weak.transformed.expect b/pkg/front_end/testcases/rasta/issue_000046.dart.weak.transformed.expect index ab67342fb53..4625b853fc7 100644 --- a/pkg/front_end/testcases/rasta/issue_000046.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/rasta/issue_000046.dart.weak.transformed.expect @@ -30,7 +30,7 @@ import self as self; import "dart:core" as core; class C extends core::Object { - field self::C* c = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/rasta/issue_000046.dart:6:13: Error: The constructor returns type 'Object' that isn't of expected type 'C'. + field self::C* c = invalid-expression "pkg/front_end/testcases/rasta/issue_000046.dart:6:13: Error: The constructor returns type 'Object' that isn't of expected type 'C'. - 'Object' is from 'dart:core'. - 'C' is from 'pkg/front_end/testcases/rasta/issue_000046.dart'. Change the type of the object being constructed or the context in which it is used. diff --git a/pkg/front_end/testcases/rasta/parser_error.dart.weak.expect b/pkg/front_end/testcases/rasta/parser_error.dart.weak.expect index 6547bf26617..b83c501d6e2 100644 --- a/pkg/front_end/testcases/rasta/parser_error.dart.weak.expect +++ b/pkg/front_end/testcases/rasta/parser_error.dart.weak.expect @@ -23,11 +23,11 @@ import "package:expect/expect.dart" as exp; import "package:expect/expect.dart"; static method test(dynamic a, {dynamic b = #C1, dynamic c = #C1}) → core::int* { - if((invalid-expression "pkg/front_end/testcases/rasta/parser_error.dart:10:7: Error: This couldn't be parsed. + if(invalid-expression "pkg/front_end/testcases/rasta/parser_error.dart:10:7: Error: This couldn't be parsed. if (?b) return b; /// 01: compile-time error - ^" as{TypeError,ForDynamic} core::bool* ?{dynamic} b : invalid-expression "pkg/front_end/testcases/rasta/parser_error.dart:10:9: Error: This couldn't be parsed. + ^" ?{invalid-type} b : invalid-expression "pkg/front_end/testcases/rasta/parser_error.dart:10:9: Error: This couldn't be parsed. if (?b) return b; /// 01: compile-time error - ^") as{TypeError,ForDynamic} core::bool*) + ^") return b as{TypeError,ForDynamic} core::int*; return a{dynamic}.+(b){dynamic}.+(c) as{TypeError,ForDynamic} core::int*; } diff --git a/pkg/front_end/testcases/rasta/parser_error.dart.weak.transformed.expect b/pkg/front_end/testcases/rasta/parser_error.dart.weak.transformed.expect index a26a0de23f3..b83c501d6e2 100644 --- a/pkg/front_end/testcases/rasta/parser_error.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/rasta/parser_error.dart.weak.transformed.expect @@ -23,11 +23,11 @@ import "package:expect/expect.dart" as exp; import "package:expect/expect.dart"; static method test(dynamic a, {dynamic b = #C1, dynamic c = #C1}) → core::int* { - if((invalid-expression "pkg/front_end/testcases/rasta/parser_error.dart:10:7: Error: This couldn't be parsed. + if(invalid-expression "pkg/front_end/testcases/rasta/parser_error.dart:10:7: Error: This couldn't be parsed. if (?b) return b; /// 01: compile-time error - ^" ?{dynamic} b : invalid-expression "pkg/front_end/testcases/rasta/parser_error.dart:10:9: Error: This couldn't be parsed. + ^" ?{invalid-type} b : invalid-expression "pkg/front_end/testcases/rasta/parser_error.dart:10:9: Error: This couldn't be parsed. if (?b) return b; /// 01: compile-time error - ^") as{TypeError,ForDynamic} core::bool*) + ^") return b as{TypeError,ForDynamic} core::int*; return a{dynamic}.+(b){dynamic}.+(c) as{TypeError,ForDynamic} core::int*; } diff --git a/pkg/front_end/testcases/rasta/static.dart.weak.expect b/pkg/front_end/testcases/rasta/static.dart.weak.expect index e32deba4e95..6d1b62ce305 100644 --- a/pkg/front_end/testcases/rasta/static.dart.weak.expect +++ b/pkg/front_end/testcases/rasta/static.dart.weak.expect @@ -205,7 +205,7 @@ static method main() → dynamic { invalid-expression "pkg/front_end/testcases/rasta/static.dart:31:9: Error: Setter not found: 'staticConstant'. Foo.staticConstant++; ^^^^^^^^^^^^^^"; - self::use(let final core::int* #t1 = #C1 in let final dynamic #t2 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:32:13: Error: Setter not found: 'staticConstant'. + self::use(let final core::int* #t1 = #C1 in let final invalid-type #t2 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:32:13: Error: Setter not found: 'staticConstant'. use(Foo.staticConstant++); ^^^^^^^^^^^^^^" in #t1); self::Foo::staticField = self::Foo::staticField.{core::num::+}(1){(core::num*) →* core::int*}; @@ -213,21 +213,21 @@ static method main() → dynamic { invalid-expression "pkg/front_end/testcases/rasta/static.dart:35:9: Error: Setter not found: 'staticFunction'. Foo.staticFunction++; ^^^^^^^^^^^^^^"; - self::use(let final () →* dynamic #t5 = #C2 in let final dynamic #t6 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:36:13: Error: Setter not found: 'staticFunction'. + self::use(let final () →* dynamic #t5 = #C2 in let final invalid-type #t6 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:36:13: Error: Setter not found: 'staticFunction'. use(Foo.staticFunction++); ^^^^^^^^^^^^^^" in #t5); invalid-expression "pkg/front_end/testcases/rasta/static.dart:37:9: Error: Setter not found: 'staticGetter'. Foo.staticGetter++; ^^^^^^^^^^^^"; - self::use(let final dynamic #t7 = self::Foo::staticGetter in let final dynamic #t8 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:38:13: Error: Setter not found: 'staticGetter'. + self::use(let final dynamic #t7 = self::Foo::staticGetter in let final invalid-type #t8 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:38:13: Error: Setter not found: 'staticGetter'. use(Foo.staticGetter++); ^^^^^^^^^^^^" in #t7); self::Foo::staticSetter = invalid-expression "pkg/front_end/testcases/rasta/static.dart:39:9: Error: Getter not found: 'staticSetter'. Foo.staticSetter++; - ^^^^^^^^^^^^"{dynamic}.+(1); - self::use(let final dynamic #t9 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:40:13: Error: Getter not found: 'staticSetter'. + ^^^^^^^^^^^^"{}.+(1); + self::use(let final invalid-type #t9 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:40:13: Error: Getter not found: 'staticSetter'. use(Foo.staticSetter++); - ^^^^^^^^^^^^" in let final dynamic #t10 = self::Foo::staticSetter = #t9{dynamic}.+(1) in #t9); + ^^^^^^^^^^^^" in let final invalid-type #t10 = self::Foo::staticSetter = #t9{}.+(1) in #t9); invalid-expression "pkg/front_end/testcases/rasta/static.dart:42:11: Error: Setter not found: 'staticConstant'. ++Foo.staticConstant; ^^^^^^^^^^^^^^"; @@ -250,10 +250,10 @@ static method main() → dynamic { ^^^^^^^^^^^^"); self::Foo::staticSetter = invalid-expression "pkg/front_end/testcases/rasta/static.dart:50:11: Error: Getter not found: 'staticSetter'. ++Foo.staticSetter; - ^^^^^^^^^^^^"{dynamic}.+(1); + ^^^^^^^^^^^^"{}.+(1); self::use(self::Foo::staticSetter = invalid-expression "pkg/front_end/testcases/rasta/static.dart:51:15: Error: Getter not found: 'staticSetter'. use(++Foo.staticSetter); - ^^^^^^^^^^^^"{dynamic}.+(1)); + ^^^^^^^^^^^^"{}.+(1)); invalid-expression "pkg/front_end/testcases/rasta/static.dart:53:23: Error: The method 'call' isn't defined for the class 'int'. Try correcting the name to the name of an existing method, or defining a method named 'call'. Foo.staticConstant(); @@ -302,32 +302,32 @@ Try correcting the name to the name of an existing method, or defining a method ^^^^^^^^^^^^"); self::Foo::staticSetter = 87; self::use(self::Foo::staticSetter = 87); - (#C1) == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/static.dart:75:9: Error: Setter not found: 'staticConstant'. + (#C1) == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/static.dart:75:9: Error: Setter not found: 'staticConstant'. Foo.staticConstant ??= 87; ^^^^^^^^^^^^^^" : null; - self::use(let final core::int* #t11 = #C1 in #t11 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/static.dart:76:13: Error: Setter not found: 'staticConstant'. + self::use(let final core::int* #t11 = #C1 in #t11 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/static.dart:76:13: Error: Setter not found: 'staticConstant'. use(Foo.staticConstant ??= 87); ^^^^^^^^^^^^^^" : #t11); self::Foo::staticField == null ?{core::int*} self::Foo::staticField = 87 : null; self::use(let final core::int* #t12 = self::Foo::staticField in #t12 == null ?{core::int*} self::Foo::staticField = 87 : #t12); - (#C2) == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/static.dart:79:9: Error: Setter not found: 'staticFunction'. + (#C2) == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/static.dart:79:9: Error: Setter not found: 'staticFunction'. Foo.staticFunction ??= 87; ^^^^^^^^^^^^^^" : null; - self::use(let final () →* dynamic #t13 = #C2 in #t13 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/static.dart:80:13: Error: Setter not found: 'staticFunction'. + self::use(let final () →* dynamic #t13 = #C2 in #t13 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/static.dart:80:13: Error: Setter not found: 'staticFunction'. use(Foo.staticFunction ??= 87); ^^^^^^^^^^^^^^" : #t13); - self::Foo::staticGetter == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/static.dart:81:9: Error: Setter not found: 'staticGetter'. + self::Foo::staticGetter == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/static.dart:81:9: Error: Setter not found: 'staticGetter'. Foo.staticGetter ??= 87; ^^^^^^^^^^^^" : null; - self::use(let final dynamic #t14 = self::Foo::staticGetter in #t14 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/static.dart:82:13: Error: Setter not found: 'staticGetter'. + self::use(let final dynamic #t14 = self::Foo::staticGetter in #t14 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/static.dart:82:13: Error: Setter not found: 'staticGetter'. use(Foo.staticGetter ??= 87); ^^^^^^^^^^^^" : #t14); invalid-expression "pkg/front_end/testcases/rasta/static.dart:83:9: Error: Getter not found: 'staticSetter'. Foo.staticSetter ??= 87; - ^^^^^^^^^^^^" == null ?{dynamic} self::Foo::staticSetter = 87 : null; - self::use(let final dynamic #t15 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:84:13: Error: Getter not found: 'staticSetter'. + ^^^^^^^^^^^^" == null ?{invalid-type} self::Foo::staticSetter = 87 : null; + self::use(let final invalid-type #t15 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:84:13: Error: Getter not found: 'staticSetter'. use(Foo.staticSetter ??= 87); - ^^^^^^^^^^^^" in #t15 == null ?{dynamic} self::Foo::staticSetter = 87 : #t15); + ^^^^^^^^^^^^" in #t15 == null ?{invalid-type} self::Foo::staticSetter = 87 : #t15); } on core::NoSuchMethodError* catch(no-exception-var) { } diff --git a/pkg/front_end/testcases/rasta/static.dart.weak.transformed.expect b/pkg/front_end/testcases/rasta/static.dart.weak.transformed.expect index 6e667ffde51..2ec282cdfdc 100644 --- a/pkg/front_end/testcases/rasta/static.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/rasta/static.dart.weak.transformed.expect @@ -205,7 +205,7 @@ static method main() → dynamic { invalid-expression "pkg/front_end/testcases/rasta/static.dart:31:9: Error: Setter not found: 'staticConstant'. Foo.staticConstant++; ^^^^^^^^^^^^^^"; - self::use(let final core::int* #t1 = #C1 in let final dynamic #t2 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:32:13: Error: Setter not found: 'staticConstant'. + self::use(let final core::int* #t1 = #C1 in let final invalid-type #t2 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:32:13: Error: Setter not found: 'staticConstant'. use(Foo.staticConstant++); ^^^^^^^^^^^^^^" in #t1); self::Foo::staticField = self::Foo::staticField.{core::num::+}(1){(core::num*) →* core::int*}; @@ -213,21 +213,21 @@ static method main() → dynamic { invalid-expression "pkg/front_end/testcases/rasta/static.dart:35:9: Error: Setter not found: 'staticFunction'. Foo.staticFunction++; ^^^^^^^^^^^^^^"; - self::use(let final () →* dynamic #t5 = #C2 in let final dynamic #t6 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:36:13: Error: Setter not found: 'staticFunction'. + self::use(let final () →* dynamic #t5 = #C2 in let final invalid-type #t6 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:36:13: Error: Setter not found: 'staticFunction'. use(Foo.staticFunction++); ^^^^^^^^^^^^^^" in #t5); invalid-expression "pkg/front_end/testcases/rasta/static.dart:37:9: Error: Setter not found: 'staticGetter'. Foo.staticGetter++; ^^^^^^^^^^^^"; - self::use(let final dynamic #t7 = self::Foo::staticGetter in let final dynamic #t8 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:38:13: Error: Setter not found: 'staticGetter'. + self::use(let final dynamic #t7 = self::Foo::staticGetter in let final invalid-type #t8 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:38:13: Error: Setter not found: 'staticGetter'. use(Foo.staticGetter++); ^^^^^^^^^^^^" in #t7); self::Foo::staticSetter = invalid-expression "pkg/front_end/testcases/rasta/static.dart:39:9: Error: Getter not found: 'staticSetter'. Foo.staticSetter++; - ^^^^^^^^^^^^"{dynamic}.+(1); - self::use(let final dynamic #t9 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:40:13: Error: Getter not found: 'staticSetter'. + ^^^^^^^^^^^^"{}.+(1); + self::use(let final invalid-type #t9 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:40:13: Error: Getter not found: 'staticSetter'. use(Foo.staticSetter++); - ^^^^^^^^^^^^" in let final dynamic #t10 = self::Foo::staticSetter = #t9{dynamic}.+(1) in #t9); + ^^^^^^^^^^^^" in let final invalid-type #t10 = self::Foo::staticSetter = #t9{}.+(1) in #t9); invalid-expression "pkg/front_end/testcases/rasta/static.dart:42:11: Error: Setter not found: 'staticConstant'. ++Foo.staticConstant; ^^^^^^^^^^^^^^"; @@ -250,10 +250,10 @@ static method main() → dynamic { ^^^^^^^^^^^^"); self::Foo::staticSetter = invalid-expression "pkg/front_end/testcases/rasta/static.dart:50:11: Error: Getter not found: 'staticSetter'. ++Foo.staticSetter; - ^^^^^^^^^^^^"{dynamic}.+(1); + ^^^^^^^^^^^^"{}.+(1); self::use(self::Foo::staticSetter = invalid-expression "pkg/front_end/testcases/rasta/static.dart:51:15: Error: Getter not found: 'staticSetter'. use(++Foo.staticSetter); - ^^^^^^^^^^^^"{dynamic}.+(1)); + ^^^^^^^^^^^^"{}.+(1)); invalid-expression "pkg/front_end/testcases/rasta/static.dart:53:23: Error: The method 'call' isn't defined for the class 'int'. Try correcting the name to the name of an existing method, or defining a method named 'call'. Foo.staticConstant(); @@ -302,32 +302,32 @@ Try correcting the name to the name of an existing method, or defining a method ^^^^^^^^^^^^"); self::Foo::staticSetter = 87; self::use(self::Foo::staticSetter = 87); - (#C1) == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/static.dart:75:9: Error: Setter not found: 'staticConstant'. + (#C1) == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/static.dart:75:9: Error: Setter not found: 'staticConstant'. Foo.staticConstant ??= 87; ^^^^^^^^^^^^^^" : null; - self::use(let final core::int* #t11 = #C1 in #t11 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/static.dart:76:13: Error: Setter not found: 'staticConstant'. + self::use(let final core::int* #t11 = #C1 in #t11 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/static.dart:76:13: Error: Setter not found: 'staticConstant'. use(Foo.staticConstant ??= 87); ^^^^^^^^^^^^^^" : #t11); self::Foo::staticField == null ?{core::int*} self::Foo::staticField = 87 : null; self::use(let final core::int* #t12 = self::Foo::staticField in #t12 == null ?{core::int*} self::Foo::staticField = 87 : #t12); - (#C2) == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/static.dart:79:9: Error: Setter not found: 'staticFunction'. + (#C2) == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/static.dart:79:9: Error: Setter not found: 'staticFunction'. Foo.staticFunction ??= 87; ^^^^^^^^^^^^^^" : null; - self::use(let final () →* dynamic #t13 = #C2 in #t13 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/static.dart:80:13: Error: Setter not found: 'staticFunction'. + self::use(let final () →* dynamic #t13 = #C2 in #t13 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/static.dart:80:13: Error: Setter not found: 'staticFunction'. use(Foo.staticFunction ??= 87); ^^^^^^^^^^^^^^" : #t13); - self::Foo::staticGetter == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/static.dart:81:9: Error: Setter not found: 'staticGetter'. + self::Foo::staticGetter == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/static.dart:81:9: Error: Setter not found: 'staticGetter'. Foo.staticGetter ??= 87; ^^^^^^^^^^^^" : null; - self::use(let final dynamic #t14 = self::Foo::staticGetter in #t14 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/static.dart:82:13: Error: Setter not found: 'staticGetter'. + self::use(let final dynamic #t14 = self::Foo::staticGetter in #t14 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/static.dart:82:13: Error: Setter not found: 'staticGetter'. use(Foo.staticGetter ??= 87); ^^^^^^^^^^^^" : #t14); invalid-expression "pkg/front_end/testcases/rasta/static.dart:83:9: Error: Getter not found: 'staticSetter'. Foo.staticSetter ??= 87; - ^^^^^^^^^^^^" == null ?{dynamic} self::Foo::staticSetter = 87 : null; - self::use(let final dynamic #t15 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:84:13: Error: Getter not found: 'staticSetter'. + ^^^^^^^^^^^^" == null ?{invalid-type} self::Foo::staticSetter = 87 : null; + self::use(let final invalid-type #t15 = invalid-expression "pkg/front_end/testcases/rasta/static.dart:84:13: Error: Getter not found: 'staticSetter'. use(Foo.staticSetter ??= 87); - ^^^^^^^^^^^^" in #t15 == null ?{dynamic} self::Foo::staticSetter = 87 : #t15); + ^^^^^^^^^^^^" in #t15 == null ?{invalid-type} self::Foo::staticSetter = 87 : #t15); } on core::NoSuchMethodError* catch(no-exception-var) { } diff --git a/pkg/front_end/testcases/rasta/super.dart.weak.expect b/pkg/front_end/testcases/rasta/super.dart.weak.expect index 2afaa67476c..e013f06b8de 100644 --- a/pkg/front_end/testcases/rasta/super.dart.weak.expect +++ b/pkg/front_end/testcases/rasta/super.dart.weak.expect @@ -406,13 +406,13 @@ class C extends self::B { self::use(super.{self::A::unary-}()); invalid-expression "pkg/front_end/testcases/rasta/super.dart:43:5: Error: This couldn't be parsed. +super; - ^"{dynamic}.+(invalid-expression "pkg/front_end/testcases/rasta/super.dart:43:6: Error: Can't use 'super' as an expression. + ^"{}.+(invalid-expression "pkg/front_end/testcases/rasta/super.dart:43:6: Error: Can't use 'super' as an expression. To delegate a constructor to a super constructor, put the super call as an initializer. +super; ^^^^^"); self::use(invalid-expression "pkg/front_end/testcases/rasta/super.dart:44:9: Error: This couldn't be parsed. use(+super); - ^"{dynamic}.+(invalid-expression "pkg/front_end/testcases/rasta/super.dart:44:10: Error: Can't use 'super' as an expression. + ^"{}.+(invalid-expression "pkg/front_end/testcases/rasta/super.dart:44:10: Error: Can't use 'super' as an expression. To delegate a constructor to a super constructor, put the super call as an initializer. use(+super); ^^^^^")); @@ -537,22 +537,22 @@ Try correcting the operator to an existing operator, or defining a '+' operator. super.{self::A::[]}(87){dynamic}.call(); self::use(super.{self::A::[]}(87){dynamic}.call()); super.{self::A::m}(); - self::use(let final Never* #t33 = invalid-expression "pkg/front_end/testcases/rasta/super.dart:146:15: Error: This expression has type 'void' and can't be used. + self::use(invalid-expression "pkg/front_end/testcases/rasta/super.dart:146:15: Error: This expression has type 'void' and can't be used. use(super.m()); ^" in super.{self::A::m}()); - let final Never* #t34 = invalid-expression "pkg/front_end/testcases/rasta/super.dart:147:12: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/rasta/super.dart:147:12: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. super.m(87); ^" in super.{self::A::m}(87); - self::use(let final Never* #t35 = invalid-expression "pkg/front_end/testcases/rasta/super.dart:148:16: Error: Too many positional arguments: 0 allowed, but 1 found. + self::use(invalid-expression "pkg/front_end/testcases/rasta/super.dart:148:16: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. use(super.m(87)); ^" in super.{self::A::m}(87)); - let final Never* #t36 = invalid-expression "pkg/front_end/testcases/rasta/super.dart:149:12: Error: Too many positional arguments: 0 allowed, but 1 found. + invalid-expression "pkg/front_end/testcases/rasta/super.dart:149:12: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. super.n(87); ^" in super.{self::A::n}(87); - self::use(let final Never* #t37 = invalid-expression "pkg/front_end/testcases/rasta/super.dart:150:16: Error: Too many positional arguments: 0 allowed, but 1 found. + self::use(invalid-expression "pkg/front_end/testcases/rasta/super.dart:150:16: Error: Too many positional arguments: 0 allowed, but 1 found. Try removing the extra positional arguments. use(super.n(87)); ^" in super.{self::A::n}(87)); @@ -575,35 +575,35 @@ Try removing the extra positional arguments. super.{self::B::i} = 42; self::use(super.{self::B::i} = 42); super.{self::A::[]=}(87, 42); - self::use(let final core::int* #t38 = 87 in let final core::int* #t39 = 42 in let final void #t40 = super.{self::A::[]=}(#t38, #t39) in #t39); + self::use(let final core::int* #t33 = 87 in let final core::int* #t34 = 42 in let final void #t35 = super.{self::A::[]=}(#t33, #t34) in #t34); super.m = 42; self::use(super.m = 42); super.{self::A::n} = 42; self::use(super.{self::A::n} = 42); super.{self::A::a} == null ?{dynamic} super.{self::A::a} = 42 : null; - self::use(let final dynamic #t41 = super.{self::A::a} in #t41 == null ?{dynamic} super.{self::A::a} = 42 : #t41); + self::use(let final dynamic #t36 = super.{self::A::a} in #t36 == null ?{dynamic} super.{self::A::a} = 42 : #t36); super.{self::B::b} == null ?{dynamic} super.{self::A::b} = 42 : null; - self::use(let final dynamic #t42 = super.{self::B::b} in #t42 == null ?{dynamic} super.{self::A::b} = 42 : #t42); + self::use(let final dynamic #t37 = super.{self::B::b} in #t37 == null ?{dynamic} super.{self::A::b} = 42 : #t37); super.{self::A::c} == null ?{dynamic} super.{self::B::c} = 42 : null; - self::use(let final dynamic #t43 = super.{self::A::c} in #t43 == null ?{dynamic} super.{self::B::c} = 42 : #t43); + self::use(let final dynamic #t38 = super.{self::A::c} in #t38 == null ?{dynamic} super.{self::B::c} = 42 : #t38); super.{self::B::d} == null ?{dynamic} super.{self::A::d} = 42 : null; - self::use(let final dynamic #t44 = super.{self::B::d} in #t44 == null ?{dynamic} super.{self::A::d} = 42 : #t44); + self::use(let final dynamic #t39 = super.{self::B::d} in #t39 == null ?{dynamic} super.{self::A::d} = 42 : #t39); super.{self::A::e} == null ?{dynamic} super.e = 42 : null; - self::use(let final dynamic #t45 = super.{self::A::e} in #t45 == null ?{dynamic} super.e = 42 : #t45); + self::use(let final dynamic #t40 = super.{self::A::e} in #t40 == null ?{dynamic} super.e = 42 : #t40); super.{self::A::f} == null ?{dynamic} super.f = 42 : null; - self::use(let final dynamic #t46 = super.{self::A::f} in #t46 == null ?{dynamic} super.f = 42 : #t46); + self::use(let final dynamic #t41 = super.{self::A::f} in #t41 == null ?{dynamic} super.f = 42 : #t41); super.g == null ?{dynamic} super.{self::A::g} = 42 : null; - self::use(let final dynamic #t47 = super.g in #t47 == null ?{dynamic} super.{self::A::g} = 42 : #t47); + self::use(let final dynamic #t42 = super.g in #t42 == null ?{dynamic} super.{self::A::g} = 42 : #t42); super.{self::A::h} == null ?{dynamic} super.{self::A::h} = 42 : null; - self::use(let final dynamic #t48 = super.{self::A::h} in #t48 == null ?{dynamic} super.{self::A::h} = 42 : #t48); + self::use(let final dynamic #t43 = super.{self::A::h} in #t43 == null ?{dynamic} super.{self::A::h} = 42 : #t43); super.{self::A::i} == null ?{dynamic} super.{self::B::i} = 42 : null; - self::use(let final dynamic #t49 = super.{self::A::i} in #t49 == null ?{dynamic} super.{self::B::i} = 42 : #t49); - let final core::int* #t50 = 87 in super.{self::A::[]}(#t50) == null ?{dynamic} super.{self::A::[]=}(#t50, 42) : null; - self::use(let final core::int* #t51 = 87 in let final dynamic #t52 = super.{self::A::[]}(#t51) in #t52 == null ?{dynamic} let final core::int* #t53 = 42 in let final void #t54 = super.{self::A::[]=}(#t51, #t53) in #t53 : #t52); + self::use(let final dynamic #t44 = super.{self::A::i} in #t44 == null ?{dynamic} super.{self::B::i} = 42 : #t44); + let final core::int* #t45 = 87 in super.{self::A::[]}(#t45) == null ?{dynamic} super.{self::A::[]=}(#t45, 42) : null; + self::use(let final core::int* #t46 = 87 in let final dynamic #t47 = super.{self::A::[]}(#t46) in #t47 == null ?{dynamic} let final core::int* #t48 = 42 in let final void #t49 = super.{self::A::[]=}(#t46, #t48) in #t48 : #t47); super.{self::A::m} == null ?{core::Object*} super.m = 42 : null; - self::use(let final () →* void #t55 = super.{self::A::m} in #t55 == null ?{core::Object*} super.m = 42 : #t55); + self::use(let final () →* void #t50 = super.{self::A::m} in #t50 == null ?{core::Object*} super.m = 42 : #t50); super.{self::A::n} == null ?{core::Object*} super.{self::A::n} = 42 : null; - self::use(let final () →* void #t56 = super.{self::A::n} in #t56 == null ?{core::Object*} super.{self::A::n} = 42 : #t56); + self::use(let final () →* void #t51 = super.{self::A::n} in #t51 == null ?{core::Object*} super.{self::A::n} = 42 : #t51); super.{self::A::a} = super.{self::A::a}{dynamic}.+(42); self::use(super.{self::A::a} = super.{self::A::a}{dynamic}.+(42)); super.{self::A::b} = super.{self::B::b}{dynamic}.+(42); @@ -622,8 +622,8 @@ Try removing the extra positional arguments. self::use(super.{self::A::h} = super.{self::A::h}{dynamic}.+(42)); super.{self::B::i} = super.{self::A::i}{dynamic}.+(42); self::use(super.{self::B::i} = super.{self::A::i}{dynamic}.+(42)); - let final core::int* #t57 = 87 in super.{self::A::[]=}(#t57, super.{self::A::[]}(#t57){dynamic}.+(42)); - self::use(let final core::int* #t58 = 87 in let final dynamic #t59 = super.{self::A::[]}(#t58){dynamic}.+(42) in let final void #t60 = super.{self::A::[]=}(#t58, #t59) in #t59); + let final core::int* #t52 = 87 in super.{self::A::[]=}(#t52, super.{self::A::[]}(#t52){dynamic}.+(42)); + self::use(let final core::int* #t53 = 87 in let final dynamic #t54 = super.{self::A::[]}(#t53){dynamic}.+(42) in let final void #t55 = super.{self::A::[]=}(#t53, #t54) in #t54); super.m = invalid-expression "pkg/front_end/testcases/rasta/super.dart:222:13: Error: The operator '+' isn't defined for the class 'void Function()'. Try correcting the operator to an existing operator, or defining a '+' operator. super.m += 42; @@ -658,8 +658,8 @@ Try correcting the operator to an existing operator, or defining a '+' operator. self::use(super.{self::A::h} = super.{self::A::h}{dynamic}.-(42)); super.{self::B::i} = super.{self::A::i}{dynamic}.-(42); self::use(super.{self::B::i} = super.{self::A::i}{dynamic}.-(42)); - let final core::int* #t61 = 87 in super.{self::A::[]=}(#t61, super.{self::A::[]}(#t61){dynamic}.-(42)); - self::use(let final core::int* #t62 = 87 in let final dynamic #t63 = super.{self::A::[]}(#t62){dynamic}.-(42) in let final void #t64 = super.{self::A::[]=}(#t62, #t63) in #t63); + let final core::int* #t56 = 87 in super.{self::A::[]=}(#t56, super.{self::A::[]}(#t56){dynamic}.-(42)); + self::use(let final core::int* #t57 = 87 in let final dynamic #t58 = super.{self::A::[]}(#t57){dynamic}.-(42) in let final void #t59 = super.{self::A::[]=}(#t57, #t58) in #t58); super.m = invalid-expression "pkg/front_end/testcases/rasta/super.dart:247:13: Error: The operator '-' isn't defined for the class 'void Function()'. Try correcting the operator to an existing operator, or defining a '-' operator. super.m -= 42; diff --git a/pkg/front_end/testcases/rasta/type_literals.dart.weak.expect b/pkg/front_end/testcases/rasta/type_literals.dart.weak.expect index 4b8a87c94fd..f3bac681965 100644 --- a/pkg/front_end/testcases/rasta/type_literals.dart.weak.expect +++ b/pkg/front_end/testcases/rasta/type_literals.dart.weak.expect @@ -439,28 +439,28 @@ class C extends core::Object { self::use(invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:72:11: Error: Can't assign to a type literal. use(--Func); ^^^^"); - (#C1) == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:74:5: Error: Can't assign to a type literal. + (#C1) == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:74:5: Error: Can't assign to a type literal. C ??= 42; ^" : null; - self::use(let final core::Type* #t1 = #C1 in #t1 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:75:9: Error: Can't assign to a type literal. + self::use(let final core::Type* #t1 = #C1 in #t1 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:75:9: Error: Can't assign to a type literal. use(C ??= 42); ^" : #t1); - (#C2) == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:76:5: Error: Can't assign to a type literal. + (#C2) == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:76:5: Error: Can't assign to a type literal. dynamic ??= 42; ^^^^^^^" : null; - self::use(let final core::Type* #t2 = #C2 in #t2 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:77:9: Error: Can't assign to a type literal. + self::use(let final core::Type* #t2 = #C2 in #t2 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:77:9: Error: Can't assign to a type literal. use(dynamic ??= 42); ^^^^^^^" : #t2); - self::C::T* == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:78:5: Error: Can't assign to a type literal. + self::C::T* == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:78:5: Error: Can't assign to a type literal. T ??= 42; ^" : null; - self::use(let final core::Type* #t3 = self::C::T* in #t3 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:79:9: Error: Can't assign to a type literal. + self::use(let final core::Type* #t3 = self::C::T* in #t3 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:79:9: Error: Can't assign to a type literal. use(T ??= 42); ^" : #t3); - (#C3) == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:80:5: Error: Can't assign to a type literal. + (#C3) == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:80:5: Error: Can't assign to a type literal. Func ??= 42; ^^^^" : null; - self::use(let final core::Type* #t4 = #C3 in #t4 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:81:9: Error: Can't assign to a type literal. + self::use(let final core::Type* #t4 = #C3 in #t4 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:81:9: Error: Can't assign to a type literal. use(Func ??= 42); ^^^^" : #t4); invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:83:5: Error: Can't assign to a type literal. diff --git a/pkg/front_end/testcases/rasta/type_literals.dart.weak.transformed.expect b/pkg/front_end/testcases/rasta/type_literals.dart.weak.transformed.expect index 18048bdbda2..787b528f294 100644 --- a/pkg/front_end/testcases/rasta/type_literals.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/rasta/type_literals.dart.weak.transformed.expect @@ -439,28 +439,28 @@ class C extends core::Object { self::use(invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:72:11: Error: Can't assign to a type literal. use(--Func); ^^^^"); - (#C1) == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:74:5: Error: Can't assign to a type literal. + (#C1) == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:74:5: Error: Can't assign to a type literal. C ??= 42; ^" : null; - self::use(let final core::Type* #t1 = #C1 in #t1 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:75:9: Error: Can't assign to a type literal. + self::use(let final core::Type* #t1 = #C1 in #t1 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:75:9: Error: Can't assign to a type literal. use(C ??= 42); ^" : #t1); - (#C2) == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:76:5: Error: Can't assign to a type literal. + (#C2) == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:76:5: Error: Can't assign to a type literal. dynamic ??= 42; ^^^^^^^" : null; - self::use(let final core::Type* #t2 = #C2 in #t2 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:77:9: Error: Can't assign to a type literal. + self::use(let final core::Type* #t2 = #C2 in #t2 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:77:9: Error: Can't assign to a type literal. use(dynamic ??= 42); ^^^^^^^" : #t2); - self::C::T* == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:78:5: Error: Can't assign to a type literal. + self::C::T* == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:78:5: Error: Can't assign to a type literal. T ??= 42; ^" : null; - self::use(let final core::Type* #t3 = self::C::T* in #t3 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:79:9: Error: Can't assign to a type literal. + self::use(let final core::Type* #t3 = self::C::T* in #t3 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:79:9: Error: Can't assign to a type literal. use(T ??= 42); ^" : #t3); - (#C3) == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:80:5: Error: Can't assign to a type literal. + (#C3) == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:80:5: Error: Can't assign to a type literal. Func ??= 42; ^^^^" : null; - self::use(let final core::Type* #t4 = #C3 in #t4 == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:81:9: Error: Can't assign to a type literal. + self::use(let final core::Type* #t4 = #C3 in #t4 == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:81:9: Error: Can't assign to a type literal. use(Func ??= 42); ^^^^" : #t4); invalid-expression "pkg/front_end/testcases/rasta/type_literals.dart:83:5: Error: Can't assign to a type literal. diff --git a/pkg/front_end/testcases/rasta/typedef.dart.weak.expect b/pkg/front_end/testcases/rasta/typedef.dart.weak.expect index 6892897df34..45de7446c5c 100644 --- a/pkg/front_end/testcases/rasta/typedef.dart.weak.expect +++ b/pkg/front_end/testcases/rasta/typedef.dart.weak.expect @@ -23,7 +23,7 @@ static method main() → dynamic { invalid-expression "pkg/front_end/testcases/rasta/typedef.dart:9:3: Error: Can't assign to a type literal. Foo = null; ^^^"; - (#C1) == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/typedef.dart:10:3: Error: Can't assign to a type literal. + (#C1) == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/typedef.dart:10:3: Error: Can't assign to a type literal. Foo ??= null; ^^^" : null; invalid-expression "pkg/front_end/testcases/rasta/typedef.dart:11:3: Error: Method not found: 'Foo'. diff --git a/pkg/front_end/testcases/rasta/typedef.dart.weak.transformed.expect b/pkg/front_end/testcases/rasta/typedef.dart.weak.transformed.expect index 85363aa4d9b..a260f4d53f1 100644 --- a/pkg/front_end/testcases/rasta/typedef.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/rasta/typedef.dart.weak.transformed.expect @@ -23,7 +23,7 @@ static method main() → dynamic { invalid-expression "pkg/front_end/testcases/rasta/typedef.dart:9:3: Error: Can't assign to a type literal. Foo = null; ^^^"; - (#C1) == null ?{dynamic} invalid-expression "pkg/front_end/testcases/rasta/typedef.dart:10:3: Error: Can't assign to a type literal. + (#C1) == null ?{invalid-type} invalid-expression "pkg/front_end/testcases/rasta/typedef.dart:10:3: Error: Can't assign to a type literal. Foo ??= null; ^^^" : null; invalid-expression "pkg/front_end/testcases/rasta/typedef.dart:11:3: Error: Method not found: 'Foo'. diff --git a/pkg/front_end/testcases/regress/issue_29984.dart.weak.expect b/pkg/front_end/testcases/regress/issue_29984.dart.weak.expect index b47c12dd22b..9ca173eea35 100644 --- a/pkg/front_end/testcases/regress/issue_29984.dart.weak.expect +++ b/pkg/front_end/testcases/regress/issue_29984.dart.weak.expect @@ -17,11 +17,11 @@ import self as self; import "dart:core" as core; static method bad() → dynamic { - for (core::int* i = (let final Never* #t1 = invalid-expression "pkg/front_end/testcases/regress/issue_29984.dart:6:12: Error: Can't declare 'i' because it was already used in this scope. + for (core::int* i = invalid-expression "pkg/front_end/testcases/regress/issue_29984.dart:6:12: Error: Can't declare 'i' because it was already used in this scope. for (int i = i;; false) {} ^" in invalid-expression "pkg/front_end/testcases/regress/issue_29984.dart:6:16: Error: Getter not found: 'i'. for (int i = i;; false) {} - ^") as{TypeError,ForDynamic} core::int*; ; false) { + ^"; ; false) { } } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/regress/issue_29984.dart.weak.transformed.expect b/pkg/front_end/testcases/regress/issue_29984.dart.weak.transformed.expect index 3f0ff7ae74b..9ca173eea35 100644 --- a/pkg/front_end/testcases/regress/issue_29984.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/regress/issue_29984.dart.weak.transformed.expect @@ -17,7 +17,7 @@ import self as self; import "dart:core" as core; static method bad() → dynamic { - for (core::int* i = let final Never* #t1 = invalid-expression "pkg/front_end/testcases/regress/issue_29984.dart:6:12: Error: Can't declare 'i' because it was already used in this scope. + for (core::int* i = invalid-expression "pkg/front_end/testcases/regress/issue_29984.dart:6:12: Error: Can't declare 'i' because it was already used in this scope. for (int i = i;; false) {} ^" in invalid-expression "pkg/front_end/testcases/regress/issue_29984.dart:6:16: Error: Getter not found: 'i'. for (int i = i;; false) {} diff --git a/pkg/front_end/testcases/regress/issue_31184.dart.weak.expect b/pkg/front_end/testcases/regress/issue_31184.dart.weak.expect index 962f1800b5c..60fc8d2108d 100644 --- a/pkg/front_end/testcases/regress/issue_31184.dart.weak.expect +++ b/pkg/front_end/testcases/regress/issue_31184.dart.weak.expect @@ -24,9 +24,9 @@ import "dart:core" as core; static method bad() → dynamic { for (core::int* i = 0, core::int* i = invalid-expression "pkg/front_end/testcases/regress/issue_31184.dart:6:19: Error: 'i' is already declared in this scope. for (int i = 0, i > 10; i++) {} - ^" as{TypeError,ForDynamic} core::int*; invalid-expression "pkg/front_end/testcases/regress/issue_31184.dart:6:21: Error: This couldn't be parsed. + ^"; invalid-expression "pkg/front_end/testcases/regress/issue_31184.dart:6:21: Error: This couldn't be parsed. for (int i = 0, i > 10; i++) {} - ^"{dynamic}.>(10) as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) { + ^"{}.>(10); i = i.{core::num::+}(1){(core::num*) →* core::int*}) { } } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/regress/issue_31184.dart.weak.transformed.expect b/pkg/front_end/testcases/regress/issue_31184.dart.weak.transformed.expect index 05cce7da558..60fc8d2108d 100644 --- a/pkg/front_end/testcases/regress/issue_31184.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/regress/issue_31184.dart.weak.transformed.expect @@ -26,7 +26,7 @@ static method bad() → dynamic { for (int i = 0, i > 10; i++) {} ^"; invalid-expression "pkg/front_end/testcases/regress/issue_31184.dart:6:21: Error: This couldn't be parsed. for (int i = 0, i > 10; i++) {} - ^"{dynamic}.>(10) as{TypeError,ForDynamic} core::bool*; i = i.{core::num::+}(1){(core::num*) →* core::int*}) { + ^"{}.>(10); i = i.{core::num::+}(1){(core::num*) →* core::int*}) { } } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/regress/issue_31185.dart.weak.expect b/pkg/front_end/testcases/regress/issue_31185.dart.weak.expect index 7170828efd4..ec82b982285 100644 --- a/pkg/front_end/testcases/regress/issue_31185.dart.weak.expect +++ b/pkg/front_end/testcases/regress/issue_31185.dart.weak.expect @@ -25,7 +25,7 @@ static method test1() → core::int* { static method test2() → core::int* { return invalid-expression "pkg/front_end/testcases/regress/issue_31185.dart:12:12: Error: Can't assign to a parenthesized expression. return (i) ++ (i); - ^" as{TypeError,ForDynamic} core::int*; + ^"; self::i; } static method main() → dynamic { diff --git a/pkg/front_end/testcases/regress/issue_31299.dart.weak.expect b/pkg/front_end/testcases/regress/issue_31299.dart.weak.expect index 2d8b85919c2..c1f0dcb37d0 100644 --- a/pkg/front_end/testcases/regress/issue_31299.dart.weak.expect +++ b/pkg/front_end/testcases/regress/issue_31299.dart.weak.expect @@ -39,7 +39,7 @@ class A extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method test() → dynamic { - let final Never* #t1 = invalid-expression "pkg/front_end/testcases/regress/issue_31299.dart:15:14: Error: Too few positional arguments: 2 required, 0 given. + invalid-expression "pkg/front_end/testcases/regress/issue_31299.dart:15:14: Error: Too few positional arguments: 2 required, 0 given. new A().foo(); ^" in new self::A::•().{self::A::foo}{}.(){() →* invalid-type}; new self::A::•().{self::A::foo}(1, 2){(core::int*, core::int*) →* core::int*}; diff --git a/pkg/front_end/testcases/regress/issue_31299.dart.weak.transformed.expect b/pkg/front_end/testcases/regress/issue_31299.dart.weak.transformed.expect new file mode 100644 index 00000000000..c1f0dcb37d0 --- /dev/null +++ b/pkg/front_end/testcases/regress/issue_31299.dart.weak.transformed.expect @@ -0,0 +1,52 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/regress/issue_31299.dart:18:12: Error: Too many positional arguments: 0 allowed, but 2 found. +// Try removing the extra positional arguments. +// new A.foo(1, 2); +// ^ +// pkg/front_end/testcases/regress/issue_31299.dart:10:3: Context: Found this candidate, but the arguments don't match. +// A.foo() : m = 2; +// ^^^^^ +// +// pkg/front_end/testcases/regress/issue_31299.dart:15:14: Error: Too few positional arguments: 2 required, 0 given. +// new A().foo(); +// ^ +// +import self as self; +import "dart:core" as core; + +class A extends core::Object { + field core::int* m; + constructor •() → self::A* + : self::A::m = 1, super core::Object::•() + ; + constructor foo() → self::A* + : self::A::m = 2, super core::Object::•() + ; + method foo(core::int* a, core::int* b) → core::int* + return a.{core::num::+}(b.{core::num::*}(this.{self::A::m}{core::int*}){(core::num*) →* core::int*}){(core::num*) →* core::int*}; + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +static method test() → dynamic { + invalid-expression "pkg/front_end/testcases/regress/issue_31299.dart:15:14: Error: Too few positional arguments: 2 required, 0 given. + new A().foo(); + ^" in new self::A::•().{self::A::foo}{}.(){() →* invalid-type}; + new self::A::•().{self::A::foo}(1, 2){(core::int*, core::int*) →* core::int*}; + new self::A::foo(); + invalid-expression "pkg/front_end/testcases/regress/issue_31299.dart:18:12: Error: Too many positional arguments: 0 allowed, but 2 found. +Try removing the extra positional arguments. + new A.foo(1, 2); + ^"; +} +static method main() → dynamic {} diff --git a/pkg/front_end/testcases/regress/issue_32972.dart.weak.expect b/pkg/front_end/testcases/regress/issue_32972.dart.weak.expect index 36cb0309dad..660b6505d8b 100644 --- a/pkg/front_end/testcases/regress/issue_32972.dart.weak.expect +++ b/pkg/front_end/testcases/regress/issue_32972.dart.weak.expect @@ -79,7 +79,7 @@ static method main() → dynamic { ^"; self::Foo::foo(42); self::Foo* f = new self::Foo::•(); - let final Never* #t1 = invalid-expression "pkg/front_end/testcases/regress/issue_32972.dart:27:5: Error: Expected 1 type arguments. + invalid-expression "pkg/front_end/testcases/regress/issue_32972.dart:27:5: Error: Expected 1 type arguments. f.bar(42.42); ^" in f.{self::Foo::bar}{}.(42.42){(invalid-type) →* invalid-type}; f.{self::Foo::bar}(42.42){(core::double*) →* dynamic}; diff --git a/pkg/front_end/testcases/regress/issue_32972.dart.weak.transformed.expect b/pkg/front_end/testcases/regress/issue_32972.dart.weak.transformed.expect new file mode 100644 index 00000000000..660b6505d8b --- /dev/null +++ b/pkg/front_end/testcases/regress/issue_32972.dart.weak.transformed.expect @@ -0,0 +1,90 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/regress/issue_32972.dart:22:3: Error: Expected 1 type arguments. +// foo("hello world"); +// ^ +// pkg/front_end/testcases/regress/issue_32972.dart:5:6: Context: Found this candidate, but the arguments don't match. +// void foo(X i) { +// ^^^ +// +// pkg/front_end/testcases/regress/issue_32972.dart:24:7: Error: Expected 1 type arguments. +// Foo.foo(42); +// ^ +// pkg/front_end/testcases/regress/issue_32972.dart:10:10: Context: Found this candidate, but the arguments don't match. +// static foo(X i) { +// ^^^ +// +// pkg/front_end/testcases/regress/issue_32972.dart:29:7: Error: Expected 2 type arguments. +// new Bar(); +// ^ +// pkg/front_end/testcases/regress/issue_32972.dart:19:7: Context: The class 'Bar' has a constructor that takes no arguments. +// class Bar {} +// ^ +// +// pkg/front_end/testcases/regress/issue_32972.dart:27:5: Error: Expected 1 type arguments. +// f.bar(42.42); +// ^ +// +import self as self; +import "dart:core" as core; + +class Foo extends core::Object { + synthetic constructor •() → self::Foo* + : super core::Object::•() + ; + static method foo(self::Foo::foo::X* i) → dynamic { + core::print(i); + } + method bar(self::Foo::bar::X* i) → dynamic { + core::print(i); + } + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +class Bar extends core::Object { + synthetic constructor •() → self::Bar* + : super core::Object::•() + ; + abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode + abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf + abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf + abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue + abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse + abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== + abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode + abstract member-signature method toString() → core::String*; -> core::Object::toString + abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod + abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType +} +static method foo(self::foo::X* i) → void { + core::print(i); +} +static method main() → dynamic { + invalid-expression "pkg/front_end/testcases/regress/issue_32972.dart:22:3: Error: Expected 1 type arguments. + foo(\"hello world\"); + ^"; + self::foo("hello world"); + invalid-expression "pkg/front_end/testcases/regress/issue_32972.dart:24:7: Error: Expected 1 type arguments. + Foo.foo(42); + ^"; + self::Foo::foo(42); + self::Foo* f = new self::Foo::•(); + invalid-expression "pkg/front_end/testcases/regress/issue_32972.dart:27:5: Error: Expected 1 type arguments. + f.bar(42.42); + ^" in f.{self::Foo::bar}{}.(42.42){(invalid-type) →* invalid-type}; + f.{self::Foo::bar}(42.42){(core::double*) →* dynamic}; + invalid-expression "pkg/front_end/testcases/regress/issue_32972.dart:29:7: Error: Expected 2 type arguments. + new Bar(); + ^"; + new self::Bar::•(); +} diff --git a/pkg/front_end/testcases/regress/issue_33452.dart.weak.expect b/pkg/front_end/testcases/regress/issue_33452.dart.weak.expect index 908c70d783e..f8b0ff2dbeb 100644 --- a/pkg/front_end/testcases/regress/issue_33452.dart.weak.expect +++ b/pkg/front_end/testcases/regress/issue_33452.dart.weak.expect @@ -45,7 +45,7 @@ class ExistingClass extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method main() → dynamic { - dynamic x = invalid-expression "pkg/front_end/testcases/regress/issue_33452.dart:10:29: Error: Method not found: 'ExistingClass.nonExistingConstructor'. + invalid-type x = invalid-expression "pkg/front_end/testcases/regress/issue_33452.dart:10:29: Error: Method not found: 'ExistingClass.nonExistingConstructor'. var x = new ExistingClass.nonExistingConstructor(); ^^^^^^^^^^^^^^^^^^^^^^"; x = invalid-expression "pkg/front_end/testcases/regress/issue_33452.dart:11:11: Error: Method not found: 'ExistingClass'. diff --git a/pkg/front_end/testcases/regress/issue_33452.dart.weak.transformed.expect b/pkg/front_end/testcases/regress/issue_33452.dart.weak.transformed.expect index 908c70d783e..f8b0ff2dbeb 100644 --- a/pkg/front_end/testcases/regress/issue_33452.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/regress/issue_33452.dart.weak.transformed.expect @@ -45,7 +45,7 @@ class ExistingClass extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method main() → dynamic { - dynamic x = invalid-expression "pkg/front_end/testcases/regress/issue_33452.dart:10:29: Error: Method not found: 'ExistingClass.nonExistingConstructor'. + invalid-type x = invalid-expression "pkg/front_end/testcases/regress/issue_33452.dart:10:29: Error: Method not found: 'ExistingClass.nonExistingConstructor'. var x = new ExistingClass.nonExistingConstructor(); ^^^^^^^^^^^^^^^^^^^^^^"; x = invalid-expression "pkg/front_end/testcases/regress/issue_33452.dart:11:11: Error: Method not found: 'ExistingClass'. diff --git a/pkg/front_end/testcases/regress/issue_35220.dart.weak.expect b/pkg/front_end/testcases/regress/issue_35220.dart.weak.expect index 3a8e95fad2a..cab6aeac365 100644 --- a/pkg/front_end/testcases/regress/issue_35220.dart.weak.expect +++ b/pkg/front_end/testcases/regress/issue_35220.dart.weak.expect @@ -15,7 +15,7 @@ class A extends core::Object { : super core::Object::•() ; method bad() → self::A* { - return let final Never* #t1 = invalid-expression "pkg/front_end/testcases/regress/issue_35220.dart:6:25: Error: A value of type 'bool' can't be assigned to a variable of type 'A'. + return invalid-expression "pkg/front_end/testcases/regress/issue_35220.dart:6:25: Error: A value of type 'bool' can't be assigned to a variable of type 'A'. - 'A' is from 'pkg/front_end/testcases/regress/issue_35220.dart'. A bad() { return true != 2; } ^" in !(true =={core::Object::==}{(core::Object*) →* core::bool*} 2) as{TypeError} self::A*; diff --git a/pkg/front_end/testcases/regress/issue_35220.dart.weak.transformed.expect b/pkg/front_end/testcases/regress/issue_35220.dart.weak.transformed.expect index fdaaf0ba4de..cab6aeac365 100644 --- a/pkg/front_end/testcases/regress/issue_35220.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/regress/issue_35220.dart.weak.transformed.expect @@ -15,7 +15,7 @@ class A extends core::Object { : super core::Object::•() ; method bad() → self::A* { - return let final Never* #t1 = invalid-expression "pkg/front_end/testcases/regress/issue_35220.dart:6:25: Error: A value of type 'bool' can't be assigned to a variable of type 'A'. + return invalid-expression "pkg/front_end/testcases/regress/issue_35220.dart:6:25: Error: A value of type 'bool' can't be assigned to a variable of type 'A'. - 'A' is from 'pkg/front_end/testcases/regress/issue_35220.dart'. A bad() { return true != 2; } ^" in !(true =={core::Object::==}{(core::Object*) →* core::bool*} 2) as{TypeError} self::A*; @@ -32,8 +32,3 @@ class A extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method main() → dynamic {} - - -Extra constant evaluation status: -Evaluated: Not @ org-dartlang-testcase:///issue_35220.dart:6:25 -> BoolConstant(true) -Extra constant evaluation: evaluated: 3, effectively constant: 1 diff --git a/pkg/front_end/testcases/regress/issue_35260.dart.weak.expect b/pkg/front_end/testcases/regress/issue_35260.dart.weak.expect index 3552933f7cd..c2a8e0e8314 100644 --- a/pkg/front_end/testcases/regress/issue_35260.dart.weak.expect +++ b/pkg/front_end/testcases/regress/issue_35260.dart.weak.expect @@ -49,5 +49,5 @@ class X extends core::Object implements self::Supertype { static method main() → dynamic { self::X* x = invalid-expression "pkg/front_end/testcases/regress/issue_35260.dart:15:13: Error: Can't use 'Supertype' because it is declared more than once. X x = new Supertype(); - ^" as{TypeError,ForDynamic} self::X*; + ^"; } diff --git a/pkg/front_end/testcases/runtime_checks/covariant_generic_method_type_parameter.dart.weak.expect b/pkg/front_end/testcases/runtime_checks/covariant_generic_method_type_parameter.dart.weak.expect index f2e772aa8b5..2d633a84742 100644 --- a/pkg/front_end/testcases/runtime_checks/covariant_generic_method_type_parameter.dart.weak.expect +++ b/pkg/front_end/testcases/runtime_checks/covariant_generic_method_type_parameter.dart.weak.expect @@ -21,7 +21,7 @@ class C extends core::Object { ; method f(self::C::f::U* x) → void {} method g1() → void { - this.{self::C::f}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/runtime_checks/covariant_generic_method_type_parameter.dart:11:15: Error: The argument type 'double' can't be assigned to the parameter type 'U'. + this.{self::C::f}(invalid-expression "pkg/front_end/testcases/runtime_checks/covariant_generic_method_type_parameter.dart:11:15: Error: The argument type 'double' can't be assigned to the parameter type 'U'. this.f(1.5); ^" in 1.5 as{TypeError} Never){(self::C::g1::U*) →* void}; } diff --git a/pkg/front_end/testcases/runtime_checks/covariant_generic_method_type_parameter.dart.weak.transformed.expect b/pkg/front_end/testcases/runtime_checks/covariant_generic_method_type_parameter.dart.weak.transformed.expect index f2e772aa8b5..2d633a84742 100644 --- a/pkg/front_end/testcases/runtime_checks/covariant_generic_method_type_parameter.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/runtime_checks/covariant_generic_method_type_parameter.dart.weak.transformed.expect @@ -21,7 +21,7 @@ class C extends core::Object { ; method f(self::C::f::U* x) → void {} method g1() → void { - this.{self::C::f}(let final Never* #t1 = invalid-expression "pkg/front_end/testcases/runtime_checks/covariant_generic_method_type_parameter.dart:11:15: Error: The argument type 'double' can't be assigned to the parameter type 'U'. + this.{self::C::f}(invalid-expression "pkg/front_end/testcases/runtime_checks/covariant_generic_method_type_parameter.dart:11:15: Error: The argument type 'double' can't be assigned to the parameter type 'U'. this.f(1.5); ^" in 1.5 as{TypeError} Never){(self::C::g1::U*) →* void}; } diff --git a/pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart.weak.expect b/pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart.weak.expect index 378a3007d0a..edcb17ed1dc 100644 --- a/pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart.weak.expect +++ b/pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart.weak.expect @@ -80,15 +80,15 @@ static method numToNum(core::num* n) → core::num* return 2; static method main() → void { self::D* d = new self::D::•(new self::C::•(#C1)); - let final self::D* #t1 = d in #t1.{self::D::value} = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart:49:46: Error: A value of type 'num Function(num)' can't be assigned to a variable of type 'int Function(int)'. + let final self::D* #t1 = d in #t1.{self::D::value} = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart:49:46: Error: A value of type 'num Function(num)' can't be assigned to a variable of type 'int Function(int)'. d.value /*@ checkReturn=(num*) ->* num* */ += 1; ^" in (#t1.{self::D::value}{self::C*}.{self::C::+}(1){(core::int*) →* (core::num*) →* core::num*} as{TypeError,CovarianceCheck} (core::num*) →* core::num*) as{TypeError} (core::int*) →* core::int*; - self::expect(let final self::D* #t3 = d in let final core::int* #t4 = 0 in #t3.{self::D::setValue}{(core::int*) →* core::int*}(#t4){(core::int*) →* core::int*}, 1); + self::expect(let final self::D* #t2 = d in let final core::int* #t3 = 0 in #t2.{self::D::setValue}{(core::int*) →* core::int*}(#t3){(core::int*) →* core::int*}, 1); d = new self::D::•(new self::C::•(#C2)); self::expectTypeError(() → Null { - let final self::D* #t5 = d in #t5.{self::D::value} = let final Never* #t6 = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart:53:48: Error: A value of type 'num Function(num)' can't be assigned to a variable of type 'int Function(int)'. + let final self::D* #t4 = d in #t4.{self::D::value} = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart:53:48: Error: A value of type 'num Function(num)' can't be assigned to a variable of type 'int Function(int)'. d.value /*@ checkReturn=(num*) ->* num* */ += 1; - ^" in (#t5.{self::D::value}{self::C*}.{self::C::+}(1){(core::int*) →* (core::num*) →* core::num*} as{TypeError,CovarianceCheck} (core::num*) →* core::num*) as{TypeError} (core::int*) →* core::int*; + ^" in (#t4.{self::D::value}{self::C*}.{self::C::+}(1){(core::int*) →* (core::num*) →* core::num*} as{TypeError,CovarianceCheck} (core::num*) →* core::num*) as{TypeError} (core::int*) →* core::int*; }); self::expect(d.{self::D::setValue}{(core::int*) →* core::int*}, null); } diff --git a/pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart.weak.transformed.expect b/pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart.weak.transformed.expect index 92acd284955..bafb1ccc846 100644 --- a/pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart.weak.transformed.expect @@ -80,15 +80,15 @@ static method numToNum(core::num* n) → core::num* return 2; static method main() → void { self::D* d = new self::D::•(new self::C::•(#C1)); - let final self::D* #t1 = d in #t1.{self::D::value} = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart:49:46: Error: A value of type 'num Function(num)' can't be assigned to a variable of type 'int Function(int)'. + let final self::D* #t1 = d in #t1.{self::D::value} = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart:49:46: Error: A value of type 'num Function(num)' can't be assigned to a variable of type 'int Function(int)'. d.value /*@ checkReturn=(num*) ->* num* */ += 1; ^" in (#t1.{self::D::value}{self::C*}.{self::C::+}(1){(core::int*) →* (core::num*) →* core::num*} as{TypeError,CovarianceCheck} (core::num*) →* core::num*) as{TypeError} (core::int*) →* core::int*; - self::expect(let final self::D* #t3 = d in let final core::int* #t4 = 0 in #t3.{self::D::setValue}{(core::int*) →* core::int*}(#t4){(core::int*) →* core::int*}, 1); + self::expect(let final self::D* #t2 = d in let final core::int* #t3 = 0 in #t2.{self::D::setValue}{(core::int*) →* core::int*}(#t3){(core::int*) →* core::int*}, 1); d = new self::D::•(new self::C::•(#C2)); self::expectTypeError(() → Null { - let final self::D* #t5 = d in #t5.{self::D::value} = let final Never* #t6 = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart:53:48: Error: A value of type 'num Function(num)' can't be assigned to a variable of type 'int Function(int)'. + let final self::D* #t4 = d in #t4.{self::D::value} = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_generic_return_with_compound_assign_implicit_downcast.dart:53:48: Error: A value of type 'num Function(num)' can't be assigned to a variable of type 'int Function(int)'. d.value /*@ checkReturn=(num*) ->* num* */ += 1; - ^" in (#t5.{self::D::value}{self::C*}.{self::C::+}(1){(core::int*) →* (core::num*) →* core::num*} as{TypeError,CovarianceCheck} (core::num*) →* core::num*) as{TypeError} (core::int*) →* core::int*; + ^" in (#t4.{self::D::value}{self::C*}.{self::C::+}(1){(core::int*) →* (core::num*) →* core::num*} as{TypeError,CovarianceCheck} (core::num*) →* core::num*) as{TypeError} (core::int*) →* core::int*; }); self::expect(d.{self::D::setValue}{(core::int*) →* core::int*}, null); } @@ -100,4 +100,4 @@ constants { Extra constant evaluation status: Evaluated: VariableGet @ org-dartlang-testcase:///contravariant_generic_return_with_compound_assign_implicit_downcast.dart:50:21 -> IntConstant(0) -Extra constant evaluation: evaluated: 58, effectively constant: 1 +Extra constant evaluation: evaluated: 46, effectively constant: 1 diff --git a/pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart.weak.expect b/pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart.weak.expect index 5bf031a586c..5ce91ef2e74 100644 --- a/pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart.weak.expect +++ b/pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart.weak.expect @@ -62,21 +62,21 @@ class C extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method test(self::C* c) → void { - let final self::C* #t1 = c in #t1.{self::C::x} = (#t1.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>*).{self::B::+}(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:20:54: Error: A value of type 'B' can't be assigned to a variable of type 'B'. + let final self::C* #t1 = c in #t1.{self::C::x} = (#t1.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>*).{self::B::+}(invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:20:54: Error: A value of type 'B' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart'. c. /*@ checkReturn=B<(num*) ->* void>* */ x += new B(); ^" in new self::B::•() as{TypeError} self::B<(core::num*) →* void>*){(self::B<(core::num*) →* void>*) →* self::B<(core::num*) →* void>*}; - self::B<(core::num*) →* void>* y = let final self::C* #t3 = c in #t3.{self::C::x} = (#t3.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>*).{self::B::+}(let final Never* #t4 = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:21:62: Error: A value of type 'B' can't be assigned to a variable of type 'B'. + self::B<(core::num*) →* void>* y = let final self::C* #t2 = c in #t2.{self::C::x} = (#t2.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>*).{self::B::+}(invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:21:62: Error: A value of type 'B' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart'. var y = c. /*@ checkReturn=B<(num*) ->* void>* */ x += new B(); ^" in new self::B::•() as{TypeError} self::B<(core::num*) →* void>*){(self::B<(core::num*) →* void>*) →* self::B<(core::num*) →* void>*}; - let final self::C* #t5 = c in #t5.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>* == null ?{self::B*} #t5.{self::C::x} = let final Never* #t6 = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:22:55: Error: A value of type 'B' can't be assigned to a variable of type 'B'. + let final self::C* #t3 = c in #t3.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>* == null ?{self::B*} #t3.{self::C::x} = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:22:55: Error: A value of type 'B' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart'. c. /*@ checkReturn=B<(num*) ->* void>* */ x ??= new B(); ^" in new self::B::•() as{TypeError} self::B<(core::num*) →* void>* : null; - self::B* z = let final self::C* #t7 = c in let final self::B<(core::num*) →* void>* #t8 = #t7.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>* in #t8 == null ?{self::B*} #t7.{self::C::x} = let final Never* #t9 = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:23:63: Error: A value of type 'B' can't be assigned to a variable of type 'B'. + self::B* z = let final self::C* #t4 = c in let final self::B<(core::num*) →* void>* #t5 = #t4.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>* in #t5 == null ?{self::B*} #t4.{self::C::x} = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:23:63: Error: A value of type 'B' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart'. var z = c. /*@ checkReturn=B<(num*) ->* void>* */ x ??= new B(); - ^" in new self::B::•() as{TypeError} self::B<(core::num*) →* void>* : #t8; + ^" in new self::B::•() as{TypeError} self::B<(core::num*) →* void>* : #t5; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart.weak.transformed.expect b/pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart.weak.transformed.expect index 5bf031a586c..5ce91ef2e74 100644 --- a/pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart.weak.transformed.expect @@ -62,21 +62,21 @@ class C extends core::Object { abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } static method test(self::C* c) → void { - let final self::C* #t1 = c in #t1.{self::C::x} = (#t1.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>*).{self::B::+}(let final Never* #t2 = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:20:54: Error: A value of type 'B' can't be assigned to a variable of type 'B'. + let final self::C* #t1 = c in #t1.{self::C::x} = (#t1.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>*).{self::B::+}(invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:20:54: Error: A value of type 'B' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart'. c. /*@ checkReturn=B<(num*) ->* void>* */ x += new B(); ^" in new self::B::•() as{TypeError} self::B<(core::num*) →* void>*){(self::B<(core::num*) →* void>*) →* self::B<(core::num*) →* void>*}; - self::B<(core::num*) →* void>* y = let final self::C* #t3 = c in #t3.{self::C::x} = (#t3.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>*).{self::B::+}(let final Never* #t4 = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:21:62: Error: A value of type 'B' can't be assigned to a variable of type 'B'. + self::B<(core::num*) →* void>* y = let final self::C* #t2 = c in #t2.{self::C::x} = (#t2.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>*).{self::B::+}(invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:21:62: Error: A value of type 'B' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart'. var y = c. /*@ checkReturn=B<(num*) ->* void>* */ x += new B(); ^" in new self::B::•() as{TypeError} self::B<(core::num*) →* void>*){(self::B<(core::num*) →* void>*) →* self::B<(core::num*) →* void>*}; - let final self::C* #t5 = c in #t5.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>* == null ?{self::B*} #t5.{self::C::x} = let final Never* #t6 = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:22:55: Error: A value of type 'B' can't be assigned to a variable of type 'B'. + let final self::C* #t3 = c in #t3.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>* == null ?{self::B*} #t3.{self::C::x} = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:22:55: Error: A value of type 'B' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart'. c. /*@ checkReturn=B<(num*) ->* void>* */ x ??= new B(); ^" in new self::B::•() as{TypeError} self::B<(core::num*) →* void>* : null; - self::B* z = let final self::C* #t7 = c in let final self::B<(core::num*) →* void>* #t8 = #t7.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>* in #t8 == null ?{self::B*} #t7.{self::C::x} = let final Never* #t9 = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:23:63: Error: A value of type 'B' can't be assigned to a variable of type 'B'. + self::B* z = let final self::C* #t4 = c in let final self::B<(core::num*) →* void>* #t5 = #t4.{self::C::x}{self::B<(core::num*) →* void>*} as{TypeError,CovarianceCheck} self::B<(core::num*) →* void>* in #t5 == null ?{self::B*} #t4.{self::C::x} = invalid-expression "pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart:23:63: Error: A value of type 'B' can't be assigned to a variable of type 'B'. - 'B' is from 'pkg/front_end/testcases/runtime_checks_new/contravariant_getter_return_compound_assign.dart'. var z = c. /*@ checkReturn=B<(num*) ->* void>* */ x ??= new B(); - ^" in new self::B::•() as{TypeError} self::B<(core::num*) →* void>* : #t8; + ^" in new self::B::•() as{TypeError} self::B<(core::num*) →* void>* : #t5; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/set_literals/disambiguation_rule.dart.weak.expect b/pkg/front_end/testcases/set_literals/disambiguation_rule.dart.weak.expect index 075b356e4b3..d565d03c832 100644 --- a/pkg/front_end/testcases/set_literals/disambiguation_rule.dart.weak.expect +++ b/pkg/front_end/testcases/set_literals/disambiguation_rule.dart.weak.expect @@ -60,15 +60,15 @@ static method main() → dynamic async { core::Iterable* i = block { final core::Set* #t2 = col::LinkedHashSet::•(); } =>#t2; - col::LinkedHashSet* lhs = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:13:28: Error: The set literal type 'Set' isn't of expected type 'LinkedHashSet'. + col::LinkedHashSet* lhs = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:13:28: Error: The set literal type 'Set' isn't of expected type 'LinkedHashSet'. - 'Set' is from 'dart:core'. - 'LinkedHashSet' is from 'dart:collection'. Change the type of the set literal or the context in which it is used. LinkedHashSet lhs = {}; ^" in block { - final core::Set* #t4 = col::LinkedHashSet::•(); - } =>#t4; - col::LinkedHashMap* lhm = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:14:34: Error: The map literal type 'Map' isn't of expected type 'LinkedHashMap'. + final core::Set* #t3 = col::LinkedHashSet::•(); + } =>#t3; + col::LinkedHashMap* lhm = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:14:34: Error: The map literal type 'Map' isn't of expected type 'LinkedHashMap'. - 'Map' is from 'dart:core'. - 'LinkedHashMap' is from 'dart:collection'. Change the type of the map literal or the context in which it is used. @@ -89,24 +89,24 @@ static method mapfun() → asy::Future*>* asy return {}; static method setfun() → asy::Future*>* async return block { - final core::Set* #t6 = col::LinkedHashSet::•(); - } =>#t6; + final core::Set* #t4 = col::LinkedHashSet::•(); + } =>#t4; static method iterablefun() → asy::Future*>* async return block { - final core::Set* #t7 = col::LinkedHashSet::•(); - } =>#t7; + final core::Set* #t5 = col::LinkedHashSet::•(); + } =>#t5; static method lhsfun() → asy::Future*>* async - return let final Never* #t8 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:32:46: Error: The set literal type 'Future>' isn't of expected type 'Future>'. + return invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:32:46: Error: The set literal type 'Future>' isn't of expected type 'Future>'. - 'Future' is from 'dart:async'. - 'Set' is from 'dart:core'. - 'LinkedHashSet' is from 'dart:collection'. Change the type of the set literal or the context in which it is used. Future> lhsfun() async => {}; ^" in block { - final core::Set* #t9 = col::LinkedHashSet::•(); - } =>#t9; + final core::Set* #t6 = col::LinkedHashSet::•(); + } =>#t6; static method lhmfun() → asy::Future*>* async - return let final Never* #t10 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:33:52: Error: The map literal type 'Future>' isn't of expected type 'Future>'. + return invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:33:52: Error: The map literal type 'Future>' isn't of expected type 'Future>'. - 'Future' is from 'dart:async'. - 'Map' is from 'dart:core'. - 'LinkedHashMap' is from 'dart:collection'. @@ -117,22 +117,22 @@ static method mapfun2() → FutureOr*>* return {}; static method setfun2() → FutureOr*>* return block { - final core::Set* #t11 = col::LinkedHashSet::•(); - } =>#t11; + final core::Set* #t7 = col::LinkedHashSet::•(); + } =>#t7; static method iterablefun2() → FutureOr*>* return block { - final core::Set* #t12 = col::LinkedHashSet::•(); - } =>#t12; + final core::Set* #t8 = col::LinkedHashSet::•(); + } =>#t8; static method lhsfun2() → FutureOr*>* - return let final Never* #t13 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:38:43: Error: A value of type 'Set' can't be assigned to a variable of type 'FutureOr>'. + return invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:38:43: Error: A value of type 'Set' can't be assigned to a variable of type 'FutureOr>'. - 'Set' is from 'dart:core'. - 'LinkedHashSet' is from 'dart:collection'. FutureOr> lhsfun2() => {}; ^" in ( block { - final core::Set* #t14 = col::LinkedHashSet::•(); - } =>#t14) as{TypeError} FutureOr*>*; + final core::Set* #t9 = col::LinkedHashSet::•(); + } =>#t9) as{TypeError} FutureOr*>*; static method lhmfun2() → FutureOr*>* - return let final Never* #t15 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:39:49: Error: A value of type 'Map' can't be assigned to a variable of type 'FutureOr>'. + return invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:39:49: Error: A value of type 'Map' can't be assigned to a variable of type 'FutureOr>'. - 'Map' is from 'dart:core'. - 'LinkedHashMap' is from 'dart:collection'. FutureOr> lhmfun2() => {}; diff --git a/pkg/front_end/testcases/set_literals/disambiguation_rule.dart.weak.transformed.expect b/pkg/front_end/testcases/set_literals/disambiguation_rule.dart.weak.transformed.expect index 49295eb0ac9..ee407a3a7d9 100644 --- a/pkg/front_end/testcases/set_literals/disambiguation_rule.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/set_literals/disambiguation_rule.dart.weak.transformed.expect @@ -73,39 +73,39 @@ static method main() → dynamic /* originally async */ { core::Iterable* i = block { final core::Set* #t2 = new col::_CompactLinkedHashSet::•(); } =>#t2; - col::LinkedHashSet* lhs = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:13:28: Error: The set literal type 'Set' isn't of expected type 'LinkedHashSet'. + col::LinkedHashSet* lhs = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:13:28: Error: The set literal type 'Set' isn't of expected type 'LinkedHashSet'. - 'Set' is from 'dart:core'. - 'LinkedHashSet' is from 'dart:collection'. Change the type of the set literal or the context in which it is used. LinkedHashSet lhs = {}; ^" in block { - final core::Set* #t4 = new col::_CompactLinkedHashSet::•(); - } =>#t4; - col::LinkedHashMap* lhm = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:14:34: Error: The map literal type 'Map' isn't of expected type 'LinkedHashMap'. + final core::Set* #t3 = new col::_CompactLinkedHashSet::•(); + } =>#t3; + col::LinkedHashMap* lhm = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:14:34: Error: The map literal type 'Map' isn't of expected type 'LinkedHashMap'. - 'Map' is from 'dart:core'. - 'LinkedHashMap' is from 'dart:collection'. Change the type of the map literal or the context in which it is used. LinkedHashMap lhm = {}; ^" in {}; - [yield] let dynamic #t6 = asy::_awaitHelper(self::mapfun(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t4 = asy::_awaitHelper(self::mapfun(), :async_op_then, :async_op_error, :async_op) in null; core::Map* fm = _in::unsafeCast*>(:result); - [yield] let dynamic #t7 = asy::_awaitHelper(self::setfun(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t5 = asy::_awaitHelper(self::setfun(), :async_op_then, :async_op_error, :async_op) in null; core::Set* fs = _in::unsafeCast*>(:result); - [yield] let dynamic #t8 = asy::_awaitHelper(self::iterablefun(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t6 = asy::_awaitHelper(self::iterablefun(), :async_op_then, :async_op_error, :async_op) in null; core::Iterable* fi = _in::unsafeCast*>(:result); - [yield] let dynamic #t9 = asy::_awaitHelper(self::lhsfun(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t7 = asy::_awaitHelper(self::lhsfun(), :async_op_then, :async_op_error, :async_op) in null; col::LinkedHashSet* flhs = _in::unsafeCast*>(:result); - [yield] let dynamic #t10 = asy::_awaitHelper(self::lhmfun(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t8 = asy::_awaitHelper(self::lhmfun(), :async_op_then, :async_op_error, :async_op) in null; col::LinkedHashMap* flhm = _in::unsafeCast*>(:result); - [yield] let dynamic #t11 = asy::_awaitHelper(self::mapfun2(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t9 = asy::_awaitHelper(self::mapfun2(), :async_op_then, :async_op_error, :async_op) in null; core::Map* fm2 = _in::unsafeCast*>(:result); - [yield] let dynamic #t12 = asy::_awaitHelper(self::setfun2(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t10 = asy::_awaitHelper(self::setfun2(), :async_op_then, :async_op_error, :async_op) in null; core::Set* fs2 = _in::unsafeCast*>(:result); - [yield] let dynamic #t13 = asy::_awaitHelper(self::iterablefun2(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t11 = asy::_awaitHelper(self::iterablefun2(), :async_op_then, :async_op_error, :async_op) in null; core::Iterable* fi2 = _in::unsafeCast*>(:result); - [yield] let dynamic #t14 = asy::_awaitHelper(self::lhsfun2(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t12 = asy::_awaitHelper(self::lhsfun2(), :async_op_then, :async_op_error, :async_op) in null; col::LinkedHashSet* flhs2 = _in::unsafeCast*>(:result); - [yield] let dynamic #t15 = asy::_awaitHelper(self::lhmfun2(), :async_op_then, :async_op_error, :async_op) in null; + [yield] let dynamic #t13 = asy::_awaitHelper(self::lhmfun2(), :async_op_then, :async_op_error, :async_op) in null; col::LinkedHashMap* flhm2 = _in::unsafeCast*>(:result); } asy::_completeOnAsyncReturn(:async_future, :return_value, :is_sync); @@ -160,8 +160,8 @@ static method setfun() → asy::Future*>* /* originally as #L3: { :return_value = block { - final core::Set* #t16 = new col::_CompactLinkedHashSet::•(); - } =>#t16; + final core::Set* #t14 = new col::_CompactLinkedHashSet::•(); + } =>#t14; break #L3; } asy::_completeOnAsyncReturn(:async_future, :return_value, :is_sync); @@ -189,8 +189,8 @@ static method iterablefun() → asy::Future*>* /* ori #L4: { :return_value = block { - final core::Set* #t17 = new col::_CompactLinkedHashSet::•(); - } =>#t17; + final core::Set* #t15 = new col::_CompactLinkedHashSet::•(); + } =>#t15; break #L4; } asy::_completeOnAsyncReturn(:async_future, :return_value, :is_sync); @@ -217,15 +217,15 @@ static method lhsfun() → asy::Future*>* /* orig try { #L5: { - :return_value = let final Never* #t18 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:32:46: Error: The set literal type 'Future>' isn't of expected type 'Future>'. + :return_value = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:32:46: Error: The set literal type 'Future>' isn't of expected type 'Future>'. - 'Future' is from 'dart:async'. - 'Set' is from 'dart:core'. - 'LinkedHashSet' is from 'dart:collection'. Change the type of the set literal or the context in which it is used. Future> lhsfun() async => {}; ^" in block { - final core::Set* #t19 = new col::_CompactLinkedHashSet::•(); - } =>#t19; + final core::Set* #t16 = new col::_CompactLinkedHashSet::•(); + } =>#t16; break #L5; } asy::_completeOnAsyncReturn(:async_future, :return_value, :is_sync); @@ -252,7 +252,7 @@ static method lhmfun() → asy::Future>' isn't of expected type 'Future>'. + :return_value = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:33:52: Error: The map literal type 'Future>' isn't of expected type 'Future>'. - 'Future' is from 'dart:async'. - 'Map' is from 'dart:core'. - 'LinkedHashMap' is from 'dart:collection'. @@ -277,22 +277,22 @@ static method mapfun2() → FutureOr*>* return {}; static method setfun2() → FutureOr*>* return block { - final core::Set* #t21 = new col::_CompactLinkedHashSet::•(); - } =>#t21; + final core::Set* #t17 = new col::_CompactLinkedHashSet::•(); + } =>#t17; static method iterablefun2() → FutureOr*>* return block { - final core::Set* #t22 = new col::_CompactLinkedHashSet::•(); - } =>#t22; + final core::Set* #t18 = new col::_CompactLinkedHashSet::•(); + } =>#t18; static method lhsfun2() → FutureOr*>* - return let final Never* #t23 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:38:43: Error: A value of type 'Set' can't be assigned to a variable of type 'FutureOr>'. + return invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:38:43: Error: A value of type 'Set' can't be assigned to a variable of type 'FutureOr>'. - 'Set' is from 'dart:core'. - 'LinkedHashSet' is from 'dart:collection'. FutureOr> lhsfun2() => {}; ^" in ( block { - final core::Set* #t24 = new col::_CompactLinkedHashSet::•(); - } =>#t24) as{TypeError} FutureOr*>*; + final core::Set* #t19 = new col::_CompactLinkedHashSet::•(); + } =>#t19) as{TypeError} FutureOr*>*; static method lhmfun2() → FutureOr*>* - return let final Never* #t25 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:39:49: Error: A value of type 'Map' can't be assigned to a variable of type 'FutureOr>'. + return invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:39:49: Error: A value of type 'Map' can't be assigned to a variable of type 'FutureOr>'. - 'Map' is from 'dart:core'. - 'LinkedHashMap' is from 'dart:collection'. FutureOr> lhmfun2() => {}; diff --git a/pkg/front_end/testcases/strong.status b/pkg/front_end/testcases/strong.status index 2518fb5fcd3..16392907b83 100644 --- a/pkg/front_end/testcases/strong.status +++ b/pkg/front_end/testcases/strong.status @@ -23,17 +23,8 @@ extension_types/simple_show_hide: ExpectationFileMismatchSerialized # Expected. late_lowering/covariant_late_field: TypeCheckError nnbd/covariant_late_field: TypeCheckError nnbd/getter_vs_setter_type: TypeCheckError -nnbd/issue42546: TypeCheckError nnbd/issue42603: TypeCheckError nnbd/no_support_for_old_null_aware_index_access_syntax: RuntimeError # Expected. -nnbd/nullable_object_access: TypeCheckError -nnbd/nullable_receiver: TypeCheckError -nnbd/potentially_nullable_access: TypeCheckError -none/equals: TypeCheckError -none/method_invocation: TypeCheckError -none/operator: TypeCheckError -none/property_get: TypeCheckError -none/property_set: TypeCheckError value_class/copy_with_call_sites: RuntimeError # Expected value_class/simple: RuntimeError # Expected value_class/value_extends_non_value: RuntimeError # Expected diff --git a/pkg/front_end/testcases/text_serialization.status b/pkg/front_end/testcases/text_serialization.status index 7ea4ce04661..a74ac1b4b37 100644 --- a/pkg/front_end/testcases/text_serialization.status +++ b/pkg/front_end/testcases/text_serialization.status @@ -29,8 +29,7 @@ general/await_in_non_async: RuntimeError general/bounded_implicit_instantiation: TypeCheckError general/bug30695: TypeCheckError general/bug31124: RuntimeError -general/call: TypeCheckError -general/candidate_found: TypeCheckError +general/call: RuntimeError general/cascade: RuntimeError general/constructor_initializer_invalid: RuntimeError general/covariant_field: TypeCheckError @@ -87,13 +86,12 @@ general/issue41210a: TypeCheckError general/issue41210b/issue41210.no_link: TypeCheckError general/issue41210b/issue41210: TypeCheckError general/issue44733: TypeCheckError -general/issue45204: TypeCheckError general/micro: RuntimeError general/mixin_application_override: TypeCheckError general/mixin_constructors_with_default_values: RuntimeError general/mixin_covariant2: RuntimeError general/operator_method_not_found: RuntimeError -general/optional: TypeCheckError +general/optional: RuntimeError general/override_check_accessor_after_inference: TypeCheckError # Issue #31620 general/override_check_accessor_basic: TypeCheckError # Issue #31620 general/override_check_accessor_with_covariant_modifier: TypeCheckError # Issue #31620 @@ -130,17 +128,11 @@ inference/override_equals: RuntimeError inference_new/infer_assign_to_index_super_upwards: TypeCheckError inference_new/infer_assign_to_index_this_upwards: TypeCheckError inference_new/infer_assign_to_index_upwards: TypeCheckError -inference_new/infer_assign_to_property_custom: TypeCheckError -inference_new/invalid_assignment_during_toplevel_inference: TypeCheckError late_lowering/covariant_late_field: TypeCheckError nnbd/covariant_late_field: TypeCheckError nnbd/getter_vs_setter_type: TypeCheckError -nnbd/issue42546: TypeCheckError nnbd/issue42603: TypeCheckError nnbd/no_support_for_old_null_aware_index_access_syntax: RuntimeError # Expected. -nnbd/nullable_object_access: TypeCheckError -nnbd/nullable_receiver: TypeCheckError -nnbd/potentially_nullable_access: TypeCheckError nnbd_mixed/bad_mixins: TypeCheckError nnbd_mixed/covariant_from_opt_in: TypeCheckError nnbd_mixed/hierarchy/conflict: TypeCheckError @@ -149,20 +141,12 @@ nnbd_mixed/hierarchy/forwarding_semi_stub_field: TypeCheckError nnbd_mixed/hierarchy/forwarding_semi_stub_method: TypeCheckError nnbd_mixed/hierarchy/forwarding_semi_stub_setter: TypeCheckError nnbd_mixed/hierarchy/getter_setter: TypeCheckError -nnbd_mixed/hierarchy/in_dill_out_in/in_out_in: TypeCheckError -nnbd_mixed/hierarchy/in_out_dill_in/in_out_in: TypeCheckError -nnbd_mixed/hierarchy/in_out_in: TypeCheckError nnbd_mixed/hierarchy/mix_in_override: TypeCheckError nnbd_mixed/hierarchy/override: TypeCheckError nnbd_mixed/inheritance_from_opt_in: TypeCheckError nnbd_mixed/issue41567: TypeCheckError nnbd_mixed/messages_with_types_opt_in: TypeCheckError nnbd_mixed/messages_with_types_opt_out: TypeCheckError -none/equals: TypeCheckError -none/method_invocation: TypeCheckError -none/operator: TypeCheckError -none/property_get: TypeCheckError -none/property_set: TypeCheckError rasta/abstract_constructor: RuntimeError rasta/bad_constructor_redirection: RuntimeError rasta/bad_continue: RuntimeError @@ -212,8 +196,7 @@ regress/issue_29976: RuntimeError regress/issue_29982: RuntimeError regress/issue_30836: RuntimeError regress/issue_31180: TypeCheckError -regress/issue_31299: TypeCheckError -regress/issue_32972: TypeCheckError +regress/issue_32972: RuntimeError regress/issue_33452: RuntimeError regress/issue_34225: RuntimeError regress/issue_34563: RuntimeError diff --git a/pkg/front_end/testcases/unified_collections/mixed_entries.dart.weak.expect b/pkg/front_end/testcases/unified_collections/mixed_entries.dart.weak.expect index a1e49d5be86..2ccee621d24 100644 --- a/pkg/front_end/testcases/unified_collections/mixed_entries.dart.weak.expect +++ b/pkg/front_end/testcases/unified_collections/mixed_entries.dart.weak.expect @@ -146,10 +146,10 @@ static field core::Map* map12 = block { for (final core::MapEntry* #t21 in {0: 1}.{core::Map::entries}{core::Iterable>}) #t20.{core::Map::[]=}{Invariant}(#t21.{core::MapEntry::key}{core::int*}, #t21.{core::MapEntry::value}{core::int*}){(core::int*, core::int*) →* void}; } =>#t20; -static field core::Map* error4 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:35:32: Error: Both Iterable and Map spread elements encountered in ambiguous literal. +static field core::Map* error4 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:35:32: Error: Both Iterable and Map spread elements encountered in ambiguous literal. var error4 = {if (b) 0: 1 else for (var a in list) a}; ^": null}; -static field core::Map* error5 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:36:22: Error: Both Iterable and Map spread elements encountered in ambiguous literal. +static field core::Map* error5 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:36:22: Error: Both Iterable and Map spread elements encountered in ambiguous literal. var error5 = {if (b) for (var a in list) a else 0: 1}; ^": null}; static field Null error6 = invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:37:14: Error: Both Iterable and Map spread elements encountered in ambiguous literal. @@ -158,10 +158,10 @@ var error6 = { static field Null error7 = invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:40:14: Error: Both Iterable and Map spread elements encountered in ambiguous literal. var error7 = { ^"; -static field core::Map* error8 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:43:32: Error: Both Iterable and Map spread elements encountered in ambiguous literal. +static field core::Map* error8 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:43:32: Error: Both Iterable and Map spread elements encountered in ambiguous literal. var error8 = {if (b) 0: 1 else for (var i = 0; i < list.length; i++) list[i]}; ^": null}; -static field core::Map* error9 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:44:22: Error: Both Iterable and Map spread elements encountered in ambiguous literal. +static field core::Map* error9 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:44:22: Error: Both Iterable and Map spread elements encountered in ambiguous literal. var error9 = {if (b) for (var i = 0; i < list.length; i++) list[i] else 0: 1}; ^": null}; static field Null error10 = invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:45:15: Error: Both Iterable and Map spread elements encountered in ambiguous literal. diff --git a/pkg/front_end/testcases/unified_collections/mixed_entries.dart.weak.outline.expect b/pkg/front_end/testcases/unified_collections/mixed_entries.dart.weak.outline.expect index b63c846588f..142ef6b72dd 100644 --- a/pkg/front_end/testcases/unified_collections/mixed_entries.dart.weak.outline.expect +++ b/pkg/front_end/testcases/unified_collections/mixed_entries.dart.weak.outline.expect @@ -36,12 +36,12 @@ static field core::Map* map9; static field core::Map* map10; static field core::Map* map11; static field core::Map* map12; -static field core::Map* error4; -static field core::Map* error5; +static field core::Map* error4; +static field core::Map* error5; static field Null error6; static field Null error7; -static field core::Map* error8; -static field core::Map* error9; +static field core::Map* error8; +static field core::Map* error9; static field Null error10; static field Null error11; static field Null error12; diff --git a/pkg/front_end/testcases/unified_collections/mixed_entries.dart.weak.transformed.expect b/pkg/front_end/testcases/unified_collections/mixed_entries.dart.weak.transformed.expect index cf02136bb73..c14132e1275 100644 --- a/pkg/front_end/testcases/unified_collections/mixed_entries.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/unified_collections/mixed_entries.dart.weak.transformed.expect @@ -200,10 +200,10 @@ static field core::Map* map12 = block { } } } =>#t20; -static field core::Map* error4 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:35:32: Error: Both Iterable and Map spread elements encountered in ambiguous literal. +static field core::Map* error4 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:35:32: Error: Both Iterable and Map spread elements encountered in ambiguous literal. var error4 = {if (b) 0: 1 else for (var a in list) a}; ^": null}; -static field core::Map* error5 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:36:22: Error: Both Iterable and Map spread elements encountered in ambiguous literal. +static field core::Map* error5 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:36:22: Error: Both Iterable and Map spread elements encountered in ambiguous literal. var error5 = {if (b) for (var a in list) a else 0: 1}; ^": null}; static field Null error6 = invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:37:14: Error: Both Iterable and Map spread elements encountered in ambiguous literal. @@ -212,10 +212,10 @@ var error6 = { static field Null error7 = invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:40:14: Error: Both Iterable and Map spread elements encountered in ambiguous literal. var error7 = { ^"; -static field core::Map* error8 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:43:32: Error: Both Iterable and Map spread elements encountered in ambiguous literal. +static field core::Map* error8 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:43:32: Error: Both Iterable and Map spread elements encountered in ambiguous literal. var error8 = {if (b) 0: 1 else for (var i = 0; i < list.length; i++) list[i]}; ^": null}; -static field core::Map* error9 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:44:22: Error: Both Iterable and Map spread elements encountered in ambiguous literal. +static field core::Map* error9 = {invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:44:22: Error: Both Iterable and Map spread elements encountered in ambiguous literal. var error9 = {if (b) for (var i = 0; i < list.length; i++) list[i] else 0: 1}; ^": null}; static field Null error10 = invalid-expression "pkg/front_end/testcases/unified_collections/mixed_entries.dart:45:15: Error: Both Iterable and Map spread elements encountered in ambiguous literal. diff --git a/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.strong.expect b/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.strong.expect index 31c63c24cd2..cd7b37b9c24 100644 --- a/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.strong.expect +++ b/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.strong.expect @@ -78,7 +78,7 @@ class Foo extends core::Object { return invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:21:15: Error: Too many positional arguments: 0 allowed, but 2 found. Try removing the extra positional arguments. return Foo(bar, bar2); - ^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Foo; + ^"; } } class A extends core::Object { @@ -97,7 +97,7 @@ class A extends core::Object { static method main() → dynamic { self::Cat cat = invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:29:20: Error: No named parameter with the name 'numberOfWhiskers'. Cat cat = new Cat(numberOfWhiskers: 20, numberOfLegs: 4); - ^^^^^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^^^^^"; self::Cat cat2 = (cat as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(numberOfWhiskers: 4) as{ForNonNullableByDefault} self::Cat; self::Cat cat3 = (((cat as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(numberOfWhiskers: 4) as{ForNonNullableByDefault} self::Cat) as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(numberOfLegs: 3) as{ForNonNullableByDefault} self::Cat; self::Cat cat4 = invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:35:29: Error: The method 'copyWith' isn't defined for the class 'Object'. @@ -108,9 +108,9 @@ Try correcting the name to the name of an existing method, or defining a method self::Cat cat5 = (cat as{ForNonNullableByDefault} dynamic){dynamic}.copyWith() as{ForNonNullableByDefault} self::Cat; self::Cat cat6 = (cat as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(numberOfWhiskers: 4, numberOfHorns: 5) as{ForNonNullableByDefault} self::Cat; self::A a; - self::A a2 = ((let final Never #t1 = invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:43:10: Error: Non-nullable variable 'a' must be assigned before it can be used. + self::A a2 = (invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:43:10: Error: Non-nullable variable 'a' must be assigned before it can be used. A a2 = (a as dynamic).copyWith(x: 42, y: 42) as A; - ^" in a) as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(x: 42, y: 42) as{ForNonNullableByDefault} self::A; + ^" in a as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(x: 42, y: 42) as{ForNonNullableByDefault} self::A; self::Foo foo = new self::Foo::•(bar: 4, bar2: 5); self::Foo foo2 = (foo as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(bar: 4) as{ForNonNullableByDefault} self::Foo; } diff --git a/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.strong.transformed.expect b/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.strong.transformed.expect index b4dffa390f8..19e8208d69d 100644 --- a/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.strong.transformed.expect @@ -108,9 +108,9 @@ Try correcting the name to the name of an existing method, or defining a method self::Cat cat5 = (cat as{ForNonNullableByDefault} dynamic){dynamic}.copyWith() as{ForNonNullableByDefault} self::Cat; self::Cat cat6 = (cat as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(numberOfWhiskers: 4, numberOfHorns: 5) as{ForNonNullableByDefault} self::Cat; self::A a; - self::A a2 = ((let final Never #t1 = invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:43:10: Error: Non-nullable variable 'a' must be assigned before it can be used. + self::A a2 = (invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:43:10: Error: Non-nullable variable 'a' must be assigned before it can be used. A a2 = (a as dynamic).copyWith(x: 42, y: 42) as A; - ^" in a) as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(x: 42, y: 42) as{ForNonNullableByDefault} self::A; + ^" in a as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(x: 42, y: 42) as{ForNonNullableByDefault} self::A; self::Foo foo = new self::Foo::•(bar: 4, bar2: 5); self::Foo foo2 = (foo as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(bar: 4) as{ForNonNullableByDefault} self::Foo; } @@ -143,4 +143,4 @@ constants { Extra constant evaluation status: Evaluated: StringConcatenation @ org-dartlang-testcase:///copy_with_call_sites.dart:26:7 -> StringConstant("A()") -Extra constant evaluation: evaluated: 108, effectively constant: 1 +Extra constant evaluation: evaluated: 106, effectively constant: 1 diff --git a/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.weak.expect b/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.weak.expect index 31c63c24cd2..cd7b37b9c24 100644 --- a/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.weak.expect +++ b/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.weak.expect @@ -78,7 +78,7 @@ class Foo extends core::Object { return invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:21:15: Error: Too many positional arguments: 0 allowed, but 2 found. Try removing the extra positional arguments. return Foo(bar, bar2); - ^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Foo; + ^"; } } class A extends core::Object { @@ -97,7 +97,7 @@ class A extends core::Object { static method main() → dynamic { self::Cat cat = invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:29:20: Error: No named parameter with the name 'numberOfWhiskers'. Cat cat = new Cat(numberOfWhiskers: 20, numberOfLegs: 4); - ^^^^^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^^^^^"; self::Cat cat2 = (cat as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(numberOfWhiskers: 4) as{ForNonNullableByDefault} self::Cat; self::Cat cat3 = (((cat as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(numberOfWhiskers: 4) as{ForNonNullableByDefault} self::Cat) as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(numberOfLegs: 3) as{ForNonNullableByDefault} self::Cat; self::Cat cat4 = invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:35:29: Error: The method 'copyWith' isn't defined for the class 'Object'. @@ -108,9 +108,9 @@ Try correcting the name to the name of an existing method, or defining a method self::Cat cat5 = (cat as{ForNonNullableByDefault} dynamic){dynamic}.copyWith() as{ForNonNullableByDefault} self::Cat; self::Cat cat6 = (cat as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(numberOfWhiskers: 4, numberOfHorns: 5) as{ForNonNullableByDefault} self::Cat; self::A a; - self::A a2 = ((let final Never #t1 = invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:43:10: Error: Non-nullable variable 'a' must be assigned before it can be used. + self::A a2 = (invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:43:10: Error: Non-nullable variable 'a' must be assigned before it can be used. A a2 = (a as dynamic).copyWith(x: 42, y: 42) as A; - ^" in a) as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(x: 42, y: 42) as{ForNonNullableByDefault} self::A; + ^" in a as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(x: 42, y: 42) as{ForNonNullableByDefault} self::A; self::Foo foo = new self::Foo::•(bar: 4, bar2: 5); self::Foo foo2 = (foo as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(bar: 4) as{ForNonNullableByDefault} self::Foo; } diff --git a/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.weak.transformed.expect b/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.weak.transformed.expect index b4dffa390f8..19e8208d69d 100644 --- a/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/value_class/copy_with_call_sites.dart.weak.transformed.expect @@ -108,9 +108,9 @@ Try correcting the name to the name of an existing method, or defining a method self::Cat cat5 = (cat as{ForNonNullableByDefault} dynamic){dynamic}.copyWith() as{ForNonNullableByDefault} self::Cat; self::Cat cat6 = (cat as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(numberOfWhiskers: 4, numberOfHorns: 5) as{ForNonNullableByDefault} self::Cat; self::A a; - self::A a2 = ((let final Never #t1 = invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:43:10: Error: Non-nullable variable 'a' must be assigned before it can be used. + self::A a2 = (invalid-expression "pkg/front_end/testcases/value_class/copy_with_call_sites.dart:43:10: Error: Non-nullable variable 'a' must be assigned before it can be used. A a2 = (a as dynamic).copyWith(x: 42, y: 42) as A; - ^" in a) as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(x: 42, y: 42) as{ForNonNullableByDefault} self::A; + ^" in a as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(x: 42, y: 42) as{ForNonNullableByDefault} self::A; self::Foo foo = new self::Foo::•(bar: 4, bar2: 5); self::Foo foo2 = (foo as{ForNonNullableByDefault} dynamic){dynamic}.copyWith(bar: 4) as{ForNonNullableByDefault} self::Foo; } @@ -143,4 +143,4 @@ constants { Extra constant evaluation status: Evaluated: StringConcatenation @ org-dartlang-testcase:///copy_with_call_sites.dart:26:7 -> StringConstant("A()") -Extra constant evaluation: evaluated: 108, effectively constant: 1 +Extra constant evaluation: evaluated: 106, effectively constant: 1 diff --git a/pkg/front_end/testcases/value_class/simple.dart.strong.expect b/pkg/front_end/testcases/value_class/simple.dart.strong.expect index cee962bcb22..0144bcfd8ee 100644 --- a/pkg/front_end/testcases/value_class/simple.dart.strong.expect +++ b/pkg/front_end/testcases/value_class/simple.dart.strong.expect @@ -51,13 +51,13 @@ class Animal extends core::Object { static method main() → dynamic { self::Animal firstAnimal = invalid-expression "pkg/front_end/testcases/value_class/simple.dart:13:31: Error: No named parameter with the name 'numberOfLegs'. Animal firstAnimal = Animal(numberOfLegs: 4); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Animal; + ^^^^^^^^^^^^"; self::Animal secondAnimal = invalid-expression "pkg/front_end/testcases/value_class/simple.dart:14:32: Error: No named parameter with the name 'numberOfLegs'. Animal secondAnimal = Animal(numberOfLegs: 4); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Animal; + ^^^^^^^^^^^^"; self::Animal thirdAnimal = invalid-expression "pkg/front_end/testcases/value_class/simple.dart:15:31: Error: No named parameter with the name 'numberOfLegs'. Animal thirdAnimal = Animal(numberOfLegs: 3); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Animal; + ^^^^^^^^^^^^"; self::expect(true, firstAnimal =={core::Object::==}{(core::Object) → core::bool} secondAnimal); self::expect(false, firstAnimal =={core::Object::==}{(core::Object) → core::bool} thirdAnimal); self::expect(true, firstAnimal.{core::Object::hashCode}{core::int} =={core::num::==}{(core::Object) → core::bool} secondAnimal.{core::Object::hashCode}{core::int}); diff --git a/pkg/front_end/testcases/value_class/simple.dart.weak.expect b/pkg/front_end/testcases/value_class/simple.dart.weak.expect index cee962bcb22..0144bcfd8ee 100644 --- a/pkg/front_end/testcases/value_class/simple.dart.weak.expect +++ b/pkg/front_end/testcases/value_class/simple.dart.weak.expect @@ -51,13 +51,13 @@ class Animal extends core::Object { static method main() → dynamic { self::Animal firstAnimal = invalid-expression "pkg/front_end/testcases/value_class/simple.dart:13:31: Error: No named parameter with the name 'numberOfLegs'. Animal firstAnimal = Animal(numberOfLegs: 4); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Animal; + ^^^^^^^^^^^^"; self::Animal secondAnimal = invalid-expression "pkg/front_end/testcases/value_class/simple.dart:14:32: Error: No named parameter with the name 'numberOfLegs'. Animal secondAnimal = Animal(numberOfLegs: 4); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Animal; + ^^^^^^^^^^^^"; self::Animal thirdAnimal = invalid-expression "pkg/front_end/testcases/value_class/simple.dart:15:31: Error: No named parameter with the name 'numberOfLegs'. Animal thirdAnimal = Animal(numberOfLegs: 3); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Animal; + ^^^^^^^^^^^^"; self::expect(true, firstAnimal =={core::Object::==}{(core::Object) → core::bool} secondAnimal); self::expect(false, firstAnimal =={core::Object::==}{(core::Object) → core::bool} thirdAnimal); self::expect(true, firstAnimal.{core::Object::hashCode}{core::int} =={core::num::==}{(core::Object) → core::bool} secondAnimal.{core::Object::hashCode}{core::int}); diff --git a/pkg/front_end/testcases/value_class/value_extends_non_value.dart.strong.expect b/pkg/front_end/testcases/value_class/value_extends_non_value.dart.strong.expect index 682fc4d1ffa..955fab24573 100644 --- a/pkg/front_end/testcases/value_class/value_extends_non_value.dart.strong.expect +++ b/pkg/front_end/testcases/value_class/value_extends_non_value.dart.strong.expect @@ -57,13 +57,13 @@ class Cat extends self::Animal { static method main() → dynamic { self::Cat firstCat = invalid-expression "pkg/front_end/testcases/value_class/value_extends_non_value.dart:18:22: Error: No named parameter with the name 'numberOfLegs'. Cat firstCat = Cat(numberOfLegs: 4, numberOfWhiskers: 10); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^"; self::Cat secondCat = invalid-expression "pkg/front_end/testcases/value_class/value_extends_non_value.dart:19:23: Error: No named parameter with the name 'numberOfLegs'. Cat secondCat = Cat(numberOfLegs: 4, numberOfWhiskers: 10); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^"; self::Cat thirdCat = invalid-expression "pkg/front_end/testcases/value_class/value_extends_non_value.dart:20:22: Error: No named parameter with the name 'numberOfLegs'. Cat thirdCat = Cat(numberOfLegs: 4, numberOfWhiskers: 0); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^"; self::expect(true, firstCat =={core::Object::==}{(core::Object) → core::bool} secondCat); self::expect(false, firstCat =={core::Object::==}{(core::Object) → core::bool} thirdCat); self::expect(true, firstCat.{core::Object::hashCode}{core::int} =={core::num::==}{(core::Object) → core::bool} secondCat.{core::Object::hashCode}{core::int}); diff --git a/pkg/front_end/testcases/value_class/value_extends_non_value.dart.weak.expect b/pkg/front_end/testcases/value_class/value_extends_non_value.dart.weak.expect index 682fc4d1ffa..955fab24573 100644 --- a/pkg/front_end/testcases/value_class/value_extends_non_value.dart.weak.expect +++ b/pkg/front_end/testcases/value_class/value_extends_non_value.dart.weak.expect @@ -57,13 +57,13 @@ class Cat extends self::Animal { static method main() → dynamic { self::Cat firstCat = invalid-expression "pkg/front_end/testcases/value_class/value_extends_non_value.dart:18:22: Error: No named parameter with the name 'numberOfLegs'. Cat firstCat = Cat(numberOfLegs: 4, numberOfWhiskers: 10); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^"; self::Cat secondCat = invalid-expression "pkg/front_end/testcases/value_class/value_extends_non_value.dart:19:23: Error: No named parameter with the name 'numberOfLegs'. Cat secondCat = Cat(numberOfLegs: 4, numberOfWhiskers: 10); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^"; self::Cat thirdCat = invalid-expression "pkg/front_end/testcases/value_class/value_extends_non_value.dart:20:22: Error: No named parameter with the name 'numberOfLegs'. Cat thirdCat = Cat(numberOfLegs: 4, numberOfWhiskers: 0); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^"; self::expect(true, firstCat =={core::Object::==}{(core::Object) → core::bool} secondCat); self::expect(false, firstCat =={core::Object::==}{(core::Object) → core::bool} thirdCat); self::expect(true, firstCat.{core::Object::hashCode}{core::int} =={core::num::==}{(core::Object) → core::bool} secondCat.{core::Object::hashCode}{core::int}); diff --git a/pkg/front_end/testcases/value_class/value_implements_non_value.dart.strong.expect b/pkg/front_end/testcases/value_class/value_implements_non_value.dart.strong.expect index 47528c50bb6..28477fa603d 100644 --- a/pkg/front_end/testcases/value_class/value_implements_non_value.dart.strong.expect +++ b/pkg/front_end/testcases/value_class/value_implements_non_value.dart.strong.expect @@ -120,26 +120,26 @@ class Cat2 extends core::Object implements self::Animal2 { static method main() → dynamic { self::Cat firstCat = invalid-expression "pkg/front_end/testcases/value_class/value_implements_non_value.dart:29:22: Error: No named parameter with the name 'numberOfLegs'. Cat firstCat = Cat(numberOfLegs: 4, numberOfWhiskers: 10); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^"; self::Cat secondCat = invalid-expression "pkg/front_end/testcases/value_class/value_implements_non_value.dart:30:23: Error: No named parameter with the name 'numberOfLegs'. Cat secondCat = Cat(numberOfLegs: 4, numberOfWhiskers: 10); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^"; self::Cat thirdCat = invalid-expression "pkg/front_end/testcases/value_class/value_implements_non_value.dart:31:22: Error: No named parameter with the name 'numberOfLegs'. Cat thirdCat = Cat(numberOfLegs: 4, numberOfWhiskers: 0); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^"; self::expect(true, firstCat =={core::Object::==}{(core::Object) → core::bool} secondCat); self::expect(false, firstCat =={core::Object::==}{(core::Object) → core::bool} thirdCat); self::expect(true, firstCat.{core::Object::hashCode}{core::int} =={core::num::==}{(core::Object) → core::bool} secondCat.{core::Object::hashCode}{core::int}); self::expect(false, firstCat.{core::Object::hashCode}{core::int} =={core::num::==}{(core::Object) → core::bool} thirdCat.{core::Object::hashCode}{core::int}); self::Cat2 firstCat2 = invalid-expression "pkg/front_end/testcases/value_class/value_implements_non_value.dart:39:25: Error: No named parameter with the name 'numberOfLegs'. Cat2 firstCat2 = Cat2(numberOfLegs: 4, numberOfWhiskers: 10); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat2; + ^^^^^^^^^^^^"; self::Cat2 secondCat2 = invalid-expression "pkg/front_end/testcases/value_class/value_implements_non_value.dart:40:26: Error: No named parameter with the name 'numberOfLegs'. Cat2 secondCat2 = Cat2(numberOfLegs: 4, numberOfWhiskers: 10); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat2; + ^^^^^^^^^^^^"; self::Cat2 thirdCat2 = invalid-expression "pkg/front_end/testcases/value_class/value_implements_non_value.dart:41:25: Error: No named parameter with the name 'numberOfLegs'. Cat2 thirdCat2 = Cat2(numberOfLegs: 4, numberOfWhiskers: 0); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat2; + ^^^^^^^^^^^^"; self::expect(true, firstCat2 =={core::Object::==}{(core::Object) → core::bool} secondCat2); self::expect(false, firstCat2 =={core::Object::==}{(core::Object) → core::bool} thirdCat2); self::expect(true, firstCat2.{core::Object::hashCode}{core::int} =={core::num::==}{(core::Object) → core::bool} secondCat2.{core::Object::hashCode}{core::int}); diff --git a/pkg/front_end/testcases/value_class/value_implements_non_value.dart.weak.expect b/pkg/front_end/testcases/value_class/value_implements_non_value.dart.weak.expect index 47528c50bb6..28477fa603d 100644 --- a/pkg/front_end/testcases/value_class/value_implements_non_value.dart.weak.expect +++ b/pkg/front_end/testcases/value_class/value_implements_non_value.dart.weak.expect @@ -120,26 +120,26 @@ class Cat2 extends core::Object implements self::Animal2 { static method main() → dynamic { self::Cat firstCat = invalid-expression "pkg/front_end/testcases/value_class/value_implements_non_value.dart:29:22: Error: No named parameter with the name 'numberOfLegs'. Cat firstCat = Cat(numberOfLegs: 4, numberOfWhiskers: 10); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^"; self::Cat secondCat = invalid-expression "pkg/front_end/testcases/value_class/value_implements_non_value.dart:30:23: Error: No named parameter with the name 'numberOfLegs'. Cat secondCat = Cat(numberOfLegs: 4, numberOfWhiskers: 10); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^"; self::Cat thirdCat = invalid-expression "pkg/front_end/testcases/value_class/value_implements_non_value.dart:31:22: Error: No named parameter with the name 'numberOfLegs'. Cat thirdCat = Cat(numberOfLegs: 4, numberOfWhiskers: 0); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat; + ^^^^^^^^^^^^"; self::expect(true, firstCat =={core::Object::==}{(core::Object) → core::bool} secondCat); self::expect(false, firstCat =={core::Object::==}{(core::Object) → core::bool} thirdCat); self::expect(true, firstCat.{core::Object::hashCode}{core::int} =={core::num::==}{(core::Object) → core::bool} secondCat.{core::Object::hashCode}{core::int}); self::expect(false, firstCat.{core::Object::hashCode}{core::int} =={core::num::==}{(core::Object) → core::bool} thirdCat.{core::Object::hashCode}{core::int}); self::Cat2 firstCat2 = invalid-expression "pkg/front_end/testcases/value_class/value_implements_non_value.dart:39:25: Error: No named parameter with the name 'numberOfLegs'. Cat2 firstCat2 = Cat2(numberOfLegs: 4, numberOfWhiskers: 10); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat2; + ^^^^^^^^^^^^"; self::Cat2 secondCat2 = invalid-expression "pkg/front_end/testcases/value_class/value_implements_non_value.dart:40:26: Error: No named parameter with the name 'numberOfLegs'. Cat2 secondCat2 = Cat2(numberOfLegs: 4, numberOfWhiskers: 10); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat2; + ^^^^^^^^^^^^"; self::Cat2 thirdCat2 = invalid-expression "pkg/front_end/testcases/value_class/value_implements_non_value.dart:41:25: Error: No named parameter with the name 'numberOfLegs'. Cat2 thirdCat2 = Cat2(numberOfLegs: 4, numberOfWhiskers: 0); - ^^^^^^^^^^^^" as{TypeError,ForDynamic,ForNonNullableByDefault} self::Cat2; + ^^^^^^^^^^^^"; self::expect(true, firstCat2 =={core::Object::==}{(core::Object) → core::bool} secondCat2); self::expect(false, firstCat2 =={core::Object::==}{(core::Object) → core::bool} thirdCat2); self::expect(true, firstCat2.{core::Object::hashCode}{core::int} =={core::num::==}{(core::Object) → core::bool} secondCat2.{core::Object::hashCode}{core::int}); diff --git a/pkg/front_end/testcases/weak.status b/pkg/front_end/testcases/weak.status index 8256003f5b9..d6c353bcb1d 100644 --- a/pkg/front_end/testcases/weak.status +++ b/pkg/front_end/testcases/weak.status @@ -34,8 +34,7 @@ general/await_in_non_async: RuntimeError # Expected. general/bounded_implicit_instantiation: TypeCheckError general/bug30695: TypeCheckError general/bug31124: RuntimeError # Test has no main method (and we shouldn't add one). -general/call: TypeCheckError -general/candidate_found: TypeCheckError +general/call: RuntimeError general/cascade: RuntimeError general/constructor_initializer_invalid: RuntimeError # Fails execution after recovery general/covariant_field: TypeCheckError @@ -92,14 +91,13 @@ general/issue41210a: TypeCheckError general/issue41210b/issue41210.no_link: TypeCheckError general/issue41210b/issue41210: TypeCheckError general/issue44733: TypeCheckError -general/issue45204: TypeCheckError general/micro: RuntimeError general/mixin_application_override: ExpectationFileMismatch # Too many errors. general/mixin_application_override: TypeCheckError general/mixin_constructors_with_default_values: RuntimeError # Expected general/mixin_covariant2: RuntimeError general/operator_method_not_found: RuntimeError # Expected -general/optional: TypeCheckError +general/optional: RuntimeError general/override_check_accessor_after_inference: TypeCheckError # Issue #31620 general/override_check_accessor_basic: TypeCheckError # Issue #31620 general/override_check_accessor_with_covariant_modifier: TypeCheckError # Issue #31620 @@ -136,26 +134,11 @@ inference/override_equals: RuntimeError inference_new/infer_assign_to_index_super_upwards: TypeCheckError inference_new/infer_assign_to_index_this_upwards: TypeCheckError inference_new/infer_assign_to_index_upwards: TypeCheckError -inference_new/infer_assign_to_property_custom: TypeCheckError -inference_new/invalid_assignment_during_toplevel_inference: TypeCheckError -late_lowering/covariant_late_field: TypeCheckError late_lowering/covariant_late_field: TypeCheckError nnbd/covariant_late_field: TypeCheckError -nnbd/covariant_late_field: TypeCheckError nnbd/getter_vs_setter_type: TypeCheckError -nnbd/getter_vs_setter_type: TypeCheckError -nnbd/issue42546: TypeCheckError -nnbd/issue42546: TypeCheckError -nnbd/issue42603: TypeCheckError nnbd/issue42603: TypeCheckError nnbd/no_support_for_old_null_aware_index_access_syntax: RuntimeError # Expected. -nnbd/no_support_for_old_null_aware_index_access_syntax: RuntimeError # Expected. -nnbd/nullable_object_access: TypeCheckError -nnbd/nullable_object_access: TypeCheckError -nnbd/nullable_receiver: TypeCheckError -nnbd/nullable_receiver: TypeCheckError -nnbd/potentially_nullable_access: TypeCheckError -nnbd/potentially_nullable_access: TypeCheckError nnbd_mixed/bad_mixins: TypeCheckError nnbd_mixed/covariant_from_opt_in: TypeCheckError nnbd_mixed/hierarchy/conflict: TypeCheckError @@ -164,20 +147,12 @@ nnbd_mixed/hierarchy/forwarding_semi_stub_field: TypeCheckError nnbd_mixed/hierarchy/forwarding_semi_stub_method: TypeCheckError nnbd_mixed/hierarchy/forwarding_semi_stub_setter: TypeCheckError nnbd_mixed/hierarchy/getter_setter: TypeCheckError -nnbd_mixed/hierarchy/in_dill_out_in/in_out_in: TypeCheckError -nnbd_mixed/hierarchy/in_out_dill_in/in_out_in: TypeCheckError -nnbd_mixed/hierarchy/in_out_in: TypeCheckError nnbd_mixed/hierarchy/mix_in_override: TypeCheckError nnbd_mixed/hierarchy/override: TypeCheckError nnbd_mixed/inheritance_from_opt_in: TypeCheckError nnbd_mixed/issue41567: TypeCheckError nnbd_mixed/messages_with_types_opt_in: TypeCheckError nnbd_mixed/messages_with_types_opt_out: TypeCheckError -none/equals: TypeCheckError -none/method_invocation: TypeCheckError -none/operator: TypeCheckError -none/property_get: TypeCheckError -none/property_set: TypeCheckError rasta/abstract_constructor: RuntimeError rasta/bad_constructor_redirection: RuntimeError rasta/bad_continue: RuntimeError @@ -227,8 +202,7 @@ regress/issue_29976: RuntimeError # Tests runtime behavior of error recovery. regress/issue_29982: RuntimeError # Tests runtime behavior of error recovery. regress/issue_30836: RuntimeError # Issue 30836. regress/issue_31180: TypeCheckError -regress/issue_31299: TypeCheckError -regress/issue_32972: TypeCheckError +regress/issue_32972: RuntimeError regress/issue_33452: RuntimeError # Test has an intentional error regress/issue_34225: RuntimeError regress/issue_34563: RuntimeError # Test execution after recovery diff --git a/pkg/kernel/binary.md b/pkg/kernel/binary.md index e013be5c435..bf0cb40c6f7 100644 --- a/pkg/kernel/binary.md +++ b/pkg/kernel/binary.md @@ -147,7 +147,7 @@ type CanonicalName { type ComponentFile { UInt32 magic = 0x90ABCDEF; - UInt32 formatVersion = 69; + UInt32 formatVersion = 70; Byte[10] shortSdkHash; List problemsAsJson; // Described in problems.md. Library[] libraries; @@ -547,6 +547,7 @@ type InvalidExpression extends Expression { Byte tag = 19; FileOffset fileOffset; StringReference message; + Option expression; } type VariableGet extends Expression { diff --git a/pkg/kernel/lib/ast.dart b/pkg/kernel/lib/ast.dart index 69df63ab7cf..63cee4b0b34 100644 --- a/pkg/kernel/lib/ast.dart +++ b/pkg/kernel/lib/ast.dart @@ -3706,7 +3706,12 @@ class InvalidExpression extends Expression { // TODO(johnniwinther): Avoid using `null` as the empty string. String? message; - InvalidExpression(this.message); + /// The expression containing the error. + Expression? expression; + + InvalidExpression(this.message, [this.expression]) { + expression?.parent = this; + } @override DartType getStaticType(StaticTypeContext context) => @@ -3724,13 +3729,25 @@ class InvalidExpression extends Expression { v.visitInvalidExpression(this, arg); @override - void visitChildren(Visitor v) {} + void visitChildren(Visitor v) { + expression?.accept(v); + } @override - void transformChildren(Transformer v) {} + void transformChildren(Transformer v) { + if (expression != null) { + expression = v.transform(expression!); + expression?.parent = this; + } + } @override - void transformOrRemoveChildren(RemovingTransformer v) {} + void transformOrRemoveChildren(RemovingTransformer v) { + if (expression != null) { + expression = v.transformOrRemoveExpression(expression!); + expression?.parent = this; + } + } @override String toString() { @@ -3741,6 +3758,10 @@ class InvalidExpression extends Expression { void toTextInternal(AstPrinter printer) { printer.write(''); } } diff --git a/pkg/kernel/lib/binary/ast_from_binary.dart b/pkg/kernel/lib/binary/ast_from_binary.dart index 80b29793788..5cc6168a74c 100644 --- a/pkg/kernel/lib/binary/ast_from_binary.dart +++ b/pkg/kernel/lib/binary/ast_from_binary.dart @@ -2103,7 +2103,8 @@ class BinaryBuilder { Expression _readInvalidExpression() { int offset = readOffset(); - return new InvalidExpression(readStringOrNullIfEmpty()) + return new InvalidExpression( + readStringOrNullIfEmpty(), readExpressionOption()) ..fileOffset = offset; } diff --git a/pkg/kernel/lib/binary/ast_to_binary.dart b/pkg/kernel/lib/binary/ast_to_binary.dart index aa211d35260..35857ebef0e 100644 --- a/pkg/kernel/lib/binary/ast_to_binary.dart +++ b/pkg/kernel/lib/binary/ast_to_binary.dart @@ -1461,6 +1461,7 @@ class BinaryPrinter implements Visitor, BinarySink { writeByte(Tag.InvalidExpression); writeOffset(node.fileOffset); writeStringReference(node.message ?? ''); + writeOptionalNode(node.expression); } @override diff --git a/pkg/kernel/lib/binary/tag.dart b/pkg/kernel/lib/binary/tag.dart index d5786184fc5..f9a62ce55a2 100644 --- a/pkg/kernel/lib/binary/tag.dart +++ b/pkg/kernel/lib/binary/tag.dart @@ -176,7 +176,7 @@ class Tag { /// Internal version of kernel binary format. /// Bump it when making incompatible changes in kernel binaries. /// Keep in sync with runtime/vm/kernel_binary.h, pkg/kernel/binary.md. - static const int BinaryFormatVersion = 69; + static const int BinaryFormatVersion = 70; } abstract class ConstantTag { diff --git a/pkg/kernel/lib/clone.dart b/pkg/kernel/lib/clone.dart index 912708816aa..c18ffb77a1a 100644 --- a/pkg/kernel/lib/clone.dart +++ b/pkg/kernel/lib/clone.dart @@ -152,7 +152,8 @@ class CloneVisitorNotMembers implements TreeVisitor { } visitInvalidExpression(InvalidExpression node) { - return new InvalidExpression(node.message); + return new InvalidExpression( + node.message, node.expression != null ? clone(node.expression!) : null); } visitVariableGet(VariableGet node) { diff --git a/pkg/kernel/lib/src/equivalence.dart b/pkg/kernel/lib/src/equivalence.dart index a6667e87c28..5a1e62c8c1e 100644 --- a/pkg/kernel/lib/src/equivalence.dart +++ b/pkg/kernel/lib/src/equivalence.dart @@ -2020,6 +2020,9 @@ class EquivalenceStrategy { if (!checkInvalidExpression_message(visitor, node, other)) { result = visitor.resultOnInequivalence; } + if (!checkInvalidExpression_expression(visitor, node, other)) { + result = visitor.resultOnInequivalence; + } if (!checkInvalidExpression_fileOffset(visitor, node, other)) { result = visitor.resultOnInequivalence; } @@ -5255,6 +5258,11 @@ class EquivalenceStrategy { return visitor.checkValues(node.message, other.message, 'message'); } + bool checkInvalidExpression_expression(EquivalenceVisitor visitor, + InvalidExpression node, InvalidExpression other) { + return visitor.checkNodes(node.expression, other.expression, 'expression'); + } + bool checkInvalidExpression_fileOffset(EquivalenceVisitor visitor, InvalidExpression node, InvalidExpression other) { return visitor.checkValues(node.fileOffset, other.fileOffset, 'fileOffset'); diff --git a/pkg/kernel/lib/text/ast_to_text.dart b/pkg/kernel/lib/text/ast_to_text.dart index eacfa1edf43..e2012c25f57 100644 --- a/pkg/kernel/lib/text/ast_to_text.dart +++ b/pkg/kernel/lib/text/ast_to_text.dart @@ -1407,6 +1407,10 @@ class Printer extends Visitor with VisitorVoidMixin { if (node.message != null) { writeWord('"${escapeString(node.message!)}"'); } + if (node.expression != null) { + writeSpaced('in'); + writeNode(node.expression!); + } } void _writeDynamicAccessKind(DynamicAccessKind kind) { diff --git a/pkg/kernel/lib/text/text_serializer.dart b/pkg/kernel/lib/text/text_serializer.dart index 5d740c42d80..0a495436aed 100644 --- a/pkg/kernel/lib/text/text_serializer.dart +++ b/pkg/kernel/lib/text/text_serializer.dart @@ -128,16 +128,20 @@ class ExpressionTagger extends ExpressionVisitor } } -const TextSerializer invalidExpressionSerializer = - const Wrapped( - unwrapInvalidExpression, wrapInvalidExpression, const DartString()); +TextSerializer invalidExpressionSerializer = + new Wrapped, InvalidExpression>( + unwrapInvalidExpression, + wrapInvalidExpression, + Tuple2Serializer( + Optional(DartString()), Optional(expressionSerializer))); -String? unwrapInvalidExpression(InvalidExpression expression) { - return expression.message; +Tuple2 unwrapInvalidExpression( + InvalidExpression expression) { + return Tuple2(expression.message, expression.expression); } -InvalidExpression wrapInvalidExpression(String? message) { - return new InvalidExpression(message); +InvalidExpression wrapInvalidExpression(Tuple2 tuple) { + return new InvalidExpression(tuple.first, tuple.second); } TextSerializer notSerializer = diff --git a/pkg/kernel/lib/transformations/async.dart b/pkg/kernel/lib/transformations/async.dart index 43fca303311..848a1ce5a98 100644 --- a/pkg/kernel/lib/transformations/async.dart +++ b/pkg/kernel/lib/transformations/async.dart @@ -175,7 +175,6 @@ class ExpressionLifter extends Transformer { return expr; } - TreeNode visitInvalidExpression(InvalidExpression expr) => nullary(expr); TreeNode visitSuperPropertyGet(SuperPropertyGet expr) => nullary(expr); TreeNode visitStaticGet(StaticGet expr) => nullary(expr); TreeNode visitStaticTearOff(StaticTearOff expr) => nullary(expr); @@ -231,6 +230,8 @@ class ExpressionLifter extends Transformer { }); } + @override + TreeNode visitInvalidExpression(InvalidExpression expr) => unary(expr); @override TreeNode visitVariableSet(VariableSet expr) => unary(expr); @override diff --git a/pkg/kernel/lib/type_checker.dart b/pkg/kernel/lib/type_checker.dart index 3d6cf83f384..53ff2cd0844 100644 --- a/pkg/kernel/lib/type_checker.dart +++ b/pkg/kernel/lib/type_checker.dart @@ -478,7 +478,8 @@ class TypeCheckingVisitor @override DartType visitInvalidExpression(InvalidExpression node) { - return const DynamicType(); + // Don't type check `node.expression`. + return const InvalidType(); } @override @@ -1016,7 +1017,7 @@ class TypeCheckingVisitor if (asContainerArguments != null) { checkAssignable( node.expression, asContainerArguments[0], currentYieldType!); - } else { + } else if (type is! InvalidType && type is! NeverType) { fail(node.expression, '$type is not an instance of $container'); } } else { diff --git a/pkg/kernel/lib/verifier.dart b/pkg/kernel/lib/verifier.dart index f589e8a82d7..9ef411584d2 100644 --- a/pkg/kernel/lib/verifier.dart +++ b/pkg/kernel/lib/verifier.dart @@ -467,6 +467,11 @@ class VerifyingVisitor extends RecursiveResultVisitor { visitWithLocalScope(node); } + @override + void visitInvalidExpression(InvalidExpression node) { + return; + } + visitBlockExpression(BlockExpression node) { int stackHeight = enterLocalScope(); // Do not visit the block directly because the value expression needs to @@ -967,6 +972,11 @@ class VerifyGetStaticType extends RecursiveVisitor { super.visitLet(node); } + @override + void visitInvalidExpression(InvalidExpression node) { + return; + } + @override void defaultExpression(Expression node) { try { diff --git a/pkg/kernel/test/text_serializer_test.dart b/pkg/kernel/test/text_serializer_test.dart index 4fd830565f5..a08ce790458 100644 --- a/pkg/kernel/test/text_serializer_test.dart +++ b/pkg/kernel/test/text_serializer_test.dart @@ -63,7 +63,7 @@ class TestRunner { test('(bool true)'); test('(bool false)'); test('(null)'); - test(r'''(invalid "You can't touch this")'''); + test(r'''(invalid "You can't touch this" (null))'''); test('(not (bool true))'); test('(&& (bool true) (bool false))'); test('(|| (&& (bool true) (not (bool true))) (bool true))'); diff --git a/runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc b/runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc index 257ee0e546a..99362e745d3 100644 --- a/runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc +++ b/runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc @@ -2007,6 +2007,11 @@ Fragment StreamingFlowGraphBuilder::BuildInvalidExpression( TokenPosition pos = ReadPosition(); if (position != NULL) *position = pos; const String& message = H.DartString(ReadStringReference()); + Tag tag = ReadTag(); // read (first part of) expression. + if (tag == kSomething) { + SkipExpression(); // read (rest of) expression. + } + // Invalid expression message has pointer to the source code, no need to // report it twice. H.ReportError(script(), TokenPosition::kNoSource, "%s", message.ToCString()); diff --git a/runtime/vm/compiler/frontend/kernel_fingerprints.cc b/runtime/vm/compiler/frontend/kernel_fingerprints.cc index 805e37dd254..d55f1c297b8 100644 --- a/runtime/vm/compiler/frontend/kernel_fingerprints.cc +++ b/runtime/vm/compiler/frontend/kernel_fingerprints.cc @@ -351,6 +351,9 @@ void KernelFingerprintHelper::CalculateExpressionFingerprint() { case kInvalidExpression: ReadPosition(); CalculateStringReferenceFingerprint(); + if (ReadTag() == kSomething) { + CalculateExpressionFingerprint(); // read expression. + } return; case kVariableGet: ReadPosition(); // read position. diff --git a/runtime/vm/compiler/frontend/kernel_translation_helper.cc b/runtime/vm/compiler/frontend/kernel_translation_helper.cc index 99a51ea0fe5..a3b4dc29af3 100644 --- a/runtime/vm/compiler/frontend/kernel_translation_helper.cc +++ b/runtime/vm/compiler/frontend/kernel_translation_helper.cc @@ -2297,6 +2297,9 @@ void KernelReaderHelper::SkipExpression() { case kInvalidExpression: ReadPosition(); SkipStringReference(); + if (ReadTag() == kSomething) { + SkipExpression(); // read expression. + } return; case kVariableGet: ReadPosition(); // read position. diff --git a/runtime/vm/compiler/frontend/scope_builder.cc b/runtime/vm/compiler/frontend/scope_builder.cc index 0205fe40bba..7d7ab7e406c 100644 --- a/runtime/vm/compiler/frontend/scope_builder.cc +++ b/runtime/vm/compiler/frontend/scope_builder.cc @@ -651,6 +651,9 @@ void ScopeBuilder::VisitExpression() { case kInvalidExpression: helper_.ReadPosition(); helper_.SkipStringReference(); + if (helper_.ReadTag() == kSomething) { + VisitExpression(); // read expression. + } return; case kVariableGet: { helper_.ReadPosition(); // read position. diff --git a/runtime/vm/kernel_binary.h b/runtime/vm/kernel_binary.h index fb8c53276ba..fa1b7745174 100644 --- a/runtime/vm/kernel_binary.h +++ b/runtime/vm/kernel_binary.h @@ -20,8 +20,8 @@ namespace kernel { static const uint32_t kMagicProgramFile = 0x90ABCDEFu; // Both version numbers are inclusive. -static const uint32_t kMinSupportedKernelFormatVersion = 69; -static const uint32_t kMaxSupportedKernelFormatVersion = 69; +static const uint32_t kMinSupportedKernelFormatVersion = 70; +static const uint32_t kMaxSupportedKernelFormatVersion = 70; // Keep in sync with package:kernel/lib/binary/tag.dart #define KERNEL_TAG_LIST(V) \