blob: f7b38a9cc14f526012fba5a5cc0163f4aeb962e7 [file] [log] [blame]
library test;
import self as self;
import "dart:core" as core;
static method test2() dynamic {
core::int x = 3;
x = let final<BottomType> #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'.
Try changing the type of the left hand side, or casting the right hand side to 'int'.
x = /*error:INVALID_ASSIGNMENT*/ \"hi\";
^" in "hi" as{TypeError} core::int;
}
static method main() → dynamic {}