blob: 863228abdd987451aaabf3e2de1e65f7f2546e6a [file] [log] [blame]
library test;
//
// Problems in library:
//
// 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:9:79: Error: Local variable 'g' can't be referenced before it is declared.
// /*@returnType=invalid-type*/ f() => /*error:REFERENCED_BEFORE_DECLARATION*/ g();
// ^
// pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart:14:3: Context: This is the declaration of the variable 'g'.
// g() => 0;
// ^
//
import self as self;
import "dart:core" as core;
static method test() dynamic {
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();
^";
function g() core::int
return 0;
() invalid-type v = f;
}
static method main() dynamic {}