blob: 6a26646020e648d5c07e2792f91f9778011ce672 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/records/issue54616.dart:7:11: Error: The 'call' property on the record type isn't directly callable but could be invoked by `.call(...)`
// var v = c(1); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616.dart:10:12: Error: The 'call' property on the record type isn't directly callable but could be invoked by `.call(...)`
// var v2 = c2(1); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616.dart:13:13: Error: The 'call' property on the record type isn't directly callable but could be invoked by `.call(...)`
// var v3a = c3(1); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616.dart:14:13: Error: The 'call' property on the record type isn't directly callable but could be invoked by `.call(...)`
// var v3b = c3("a"); // Error.
// ^
//
import self as self;
import "dart:core" as core;
static method main() void {
({call: (core::int) core::int}) c = ({call: (core::int x) core::int => x});
core::int v = c.call{(core::int) core::int}(1){(core::int) core::int};
({call: (core::int) core::int}) c2 = #C2;
core::int v2 = c2.call{(core::int) core::int}(1){(core::int) core::int};
({call: <T extends core::Object? = dynamic>(T%) T%}) c3 = ({call: <T extends core::Object? = dynamic>(T% x) T% => x});
core::int v3a = c3.call{<T extends core::Object? = dynamic>(T%) T%}<core::int>(1){(core::int) core::int};
core::String v3b = c3.call{<T extends core::Object? = dynamic>(T%) T%}<core::String>("a"){(core::String) core::String};
}
static method intId(core::int x) core::int
return x;
constants {
#C1 = static-tearoff self::intId
#C2 = ({call:#C1})
}