blob: 147a582f094669f8a1cb33dd092fadc085ced5b6 [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 dynamic #t1 = "hi" in let dynamic _ = null in invalid-expression "pkg/front_end/testcases/inference/infer_type_on_var2.dart:10:36: 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'.
x = /*error:INVALID_ASSIGNMENT*/ \"hi\";
^";
}
static method main() → dynamic {}