blob: 3089e9a4441fa822b2493b2dba8b79e438eddf81 [file] [log] [blame]
// Formatted problems:
//
// pkg/front_end/testcases/inference_new/invalid_assignment_during_toplevel_inference.dart:9:62: Error: A value of type 'dart.core::String' can't be assigned to a variable of type 'dart.core::int'.
// Try changing the type of the left hand side, or casting the right hand side to 'dart.core::int'.
// var /*@topType=String*/ x = i = /*@error=InvalidAssignment*/ s;
// ^
library;
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 = let final<BottomType> #t1 = invalid-expression "pkg/front_end/testcases/inference_new/invalid_assignment_during_toplevel_inference.dart:9:62: Error: A value of type 'dart.core::String' can't be assigned to a variable of type 'dart.core::int'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.core::int'.
var /*@topType=String*/ x = i = /*@error=InvalidAssignment*/ s;
^" in self::s as{TypeError} core::int;
static method main() → dynamic {}