blob: b7f9b2f01e59d9399d23ee7461c8e9b6baaaaa68 [file] [log] [blame]
// Errors:
//
// pkg/front_end/testcases/inference/infer_use_of_void_local.dart:11:26: Error: This expression has type 'void' and can't be used.
// var /*@type=void*/ x = f();
// ^
library test;
import self as self;
static method f() void {}
static method g() void {
void x = let<BottomType> _ = null in let final dynamic #t1 = let<BottomType> _ = null in invalid-expression "pkg/front_end/testcases/inference/infer_use_of_void_local.dart:11:26: Error: This expression has type 'void' and can't be used.
var /*@type=void*/ x = f();
^" in let final void #t2 = self::f() in null;
}
static method main() → dynamic {}