blob: 461a75a035f13f4d390a059b962159eed30e4da4 [file] [log] [blame]
// Formatted problems:
//
// pkg/front_end/testcases/inference/unsafe_block_closure_inference_function_call_explicit_type_param_via_expr1.dart:9:35: Error: An equality expression can't be an operand of another equality expression.
// Try re-writing the expression.
// var /*@topType=dynamic*/v = (f<int>)(() { return 1; });
// ^
//
// pkg/front_end/testcases/inference/unsafe_block_closure_inference_function_call_explicit_type_param_via_expr1.dart:9:36: Error: Expected an identifier, but got ')'.
// var /*@topType=dynamic*/v = (f<int>)(() { return 1; });
// ^
//
// pkg/front_end/testcases/inference/unsafe_block_closure_inference_function_call_explicit_type_param_via_expr1.dart:9:36: Warning: Getter not found: ''.
// var /*@topType=dynamic*/v = (f<int>)(() { return 1; });
// ^
// Unhandled errors:
//
// pkg/front_end/testcases/inference/unsafe_block_closure_inference_function_call_explicit_type_param_via_expr1.dart:9:35: Error: An equality expression can't be an operand of another equality expression.
// Try re-writing the expression.
// var /*@topType=dynamic*/v = (f<int>)(() { return 1; });
// ^
//
// pkg/front_end/testcases/inference/unsafe_block_closure_inference_function_call_explicit_type_param_via_expr1.dart:9:36: Error: Expected an identifier, but got ')'.
// var /*@topType=dynamic*/v = (f<int>)(() { return 1; });
// ^
library test;
import self as self;
import "dart:core" as core;
static field dynamic v = self::f.<(core::int).>(throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#, 33, const <core::Type>[], const <dynamic>[], core::Map::unmodifiable<core::Symbol, dynamic>(const <core::Symbol, dynamic>{})))).call(() dynamic {
return 1;
});
static method f<T extends core::Object = dynamic>(() self::f::T g) core::List<self::f::T>
return <self::f::T>[g.call()];
static method main() dynamic {}