blob: 653cee2bb1c69fa91212392d74aa7c0988c57e45 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/records/issue54616_2.dart:27:3: Error: The 'call' property on the record type isn't directly callable but could be invoked by `.call(...)`
// r2(0); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616_2.dart:28:3: Error: The 'call' property on the record type isn't directly callable but could be invoked by `.call(...)`
// r3(0); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616_2.dart:29:5: Error: The method 'call' isn't defined for the class '(String)'.
// Try correcting the name to the name of an existing method, or defining a method named 'call'.
// r4(0); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616_2.dart:33:6: Error: The method 'call' isn't defined for the class '(String)'.
// Try correcting the name to the name of an existing method, or defining a method named 'call'.
// r4.call(0); // Error.
// ^^^^
//
// pkg/front_end/testcases/records/issue54616_2.dart:36:3: Error: The 'call' property on the record type isn't directly callable but could be invoked by `.call(...)`
// x2(0); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616_2.dart:37:3: Error: The 'call' property on the record type isn't directly callable but could be invoked by `.call(...)`
// x3(0); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616_2.dart:38:5: Error: The method 'call' isn't defined for the class '(String)'.
// Try correcting the name to the name of an existing method, or defining a method named 'call'.
// x4(0); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616_2.dart:39:6: Error: Can't use an expression of type 'X1?' as a function because it's potentially null.
// Try calling using ?.call instead.
// x1n(0); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616_2.dart:40:6: Error: Can't use an expression of type 'X2?' as a function because it's potentially null.
// Try calling using ?.call instead.
// x2n(0); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616_2.dart:41:6: Error: Can't use an expression of type 'X3?' as a function because it's potentially null.
// Try calling using ?.call instead.
// x3n(0); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616_2.dart:42:6: Error: The method 'call' isn't defined for the class '(String)?'.
// Try correcting the name to the name of an existing method, or defining a method named 'call'.
// x4n(0); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616_2.dart:47:6: Error: The method 'call' isn't defined for the class '(String)'.
// Try correcting the name to the name of an existing method, or defining a method named 'call'.
// x4.call(0); // Error.
// ^^^^
//
// pkg/front_end/testcases/records/issue54616_2.dart:48:7: Error: Method 'call' cannot be called on 'X1?' because it is potentially null.
// Try calling using ?. instead.
// x1n.call(0); // Error.
// ^^^^
//
// pkg/front_end/testcases/records/issue54616_2.dart:49:7: Error: Can't use an expression of type 'X2?' as a function because it's potentially null.
// Try calling using ?.call instead.
// x2n.call(0); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616_2.dart:50:7: Error: Can't use an expression of type 'X3?' as a function because it's potentially null.
// Try calling using ?.call instead.
// x3n.call(0); // Error.
// ^
//
// pkg/front_end/testcases/records/issue54616_2.dart:51:7: Error: The method 'call' isn't defined for the class '(String)?'.
// Try correcting the name to the name of an existing method, or defining a method named 'call'.
// x4n.call(0); // Error.
// ^^^^
//
import self as self;
import "dart:core" as core;
extension EInt on (core::int) {
method call = self::EInt|call;
method tearoff call = self::EInt|get#call;
}
extension EIntIntCallInt on (core::int, core::int, {required call: (dynamic) dynamic}) {
method call = self::EIntIntCallInt|call;
method tearoff call = self::EIntIntCallInt|get#call;
}
static extension-member method EInt|call(lowered final(core::int) #this, dynamic x) → dynamic
return x;
static extension-member method EInt|get#call(lowered final(core::int) #this) → (dynamic) → dynamic
return (dynamic x) dynamic => self::EInt|call(#this, x);
static extension-member method EIntIntCallInt|call(lowered final(core::int, core::int, {required call: (dynamic) dynamic}) #this, dynamic x) → dynamic
return x;
static extension-member method EIntIntCallInt|get#call(lowered final(core::int, core::int, {required call: (dynamic) → dynamic}) #this) → (dynamic) → dynamic
return (dynamic x) dynamic => self::EIntIntCallInt|call(#this, x);
static method test<X1 extends (core::int), X2 extends (core::int, {required call: (dynamic) dynamic}), X3 extends (core::int, core::int, {required call: (dynamic) dynamic}), X4 extends (core::String)>((core::int) r1, (core::int, {required call: (dynamic) dynamic}) r2, (core::int, core::int, {required call: (dynamic) dynamic}) r3, (core::String) r4, self::test::X1 x1, self::test::X2 x2, self::test::X3 x3, self::test::X4 x4, self::test::X1? x1n, self::test::X2? x2n, self::test::X3? x3n, self::test::X4? x4n) dynamic {
self::EInt|call(r1, 0);
r2.call{(dynamic) dynamic}(0){(dynamic) dynamic};
r3.call{(dynamic) dynamic}(0){(dynamic) dynamic};
invalid-expression "pkg/front_end/testcases/records/issue54616_2.dart:29:5: Error: The method 'call' isn't defined for the class '(String)'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
r4(0); // Error.
^" in r4{<unresolved>}.call(0);
self::EInt|call(r1, 0);
r2.call{(dynamic) dynamic}(0){(dynamic) dynamic};
r3.call{(dynamic) dynamic}(0){(dynamic) dynamic};
invalid-expression "pkg/front_end/testcases/records/issue54616_2.dart:33:6: Error: The method 'call' isn't defined for the class '(String)'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
r4.call(0); // Error.
^^^^" in r4{<unresolved>}.call(0);
self::EInt|call(x1, 0);
x2.call{(dynamic) dynamic}(0){(dynamic) dynamic};
x3.call{(dynamic) dynamic}(0){(dynamic) dynamic};
invalid-expression "pkg/front_end/testcases/records/issue54616_2.dart:38:5: Error: The method 'call' isn't defined for the class '(String)'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
x4(0); // Error.
^" in x4{<unresolved>}.call(0);
invalid-expression "pkg/front_end/testcases/records/issue54616_2.dart:39:6: Error: Can't use an expression of type 'X1?' as a function because it's potentially null.
Try calling using ?.call instead.
x1n(0); // Error.
^" in self::EInt|call(x1n, 0);
invalid-expression "pkg/front_end/testcases/records/issue54616_2.dart:40:6: Error: Can't use an expression of type 'X2?' as a function because it's potentially null.
Try calling using ?.call instead.
x2n(0); // Error.
^" in x2n.call{(dynamic) dynamic}(0){(dynamic) dynamic};
invalid-expression "pkg/front_end/testcases/records/issue54616_2.dart:41:6: Error: Can't use an expression of type 'X3?' as a function because it's potentially null.
Try calling using ?.call instead.
x3n(0); // Error.
^" in x3n.call{(dynamic) dynamic}(0){(dynamic) dynamic};
invalid-expression "pkg/front_end/testcases/records/issue54616_2.dart:42:6: Error: The method 'call' isn't defined for the class '(String)?'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
x4n(0); // Error.
^" in x4n{<unresolved>}.call(0);
self::EInt|call(x1, 0);
x2.call{(dynamic) dynamic}(0){(dynamic) dynamic};
x3.call{(dynamic) dynamic}(0){(dynamic) dynamic};
invalid-expression "pkg/front_end/testcases/records/issue54616_2.dart:47:6: Error: The method 'call' isn't defined for the class '(String)'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
x4.call(0); // Error.
^^^^" in x4{<unresolved>}.call(0);
invalid-expression "pkg/front_end/testcases/records/issue54616_2.dart:48:7: Error: Method 'call' cannot be called on 'X1?' because it is potentially null.
Try calling using ?. instead.
x1n.call(0); // Error.
^^^^" in self::EInt|call(x1n, 0);
invalid-expression "pkg/front_end/testcases/records/issue54616_2.dart:49:7: Error: Can't use an expression of type 'X2?' as a function because it's potentially null.
Try calling using ?.call instead.
x2n.call(0); // Error.
^" in x2n.call{(dynamic) dynamic}(0){(dynamic) dynamic};
invalid-expression "pkg/front_end/testcases/records/issue54616_2.dart:50:7: Error: Can't use an expression of type 'X3?' as a function because it's potentially null.
Try calling using ?.call instead.
x3n.call(0); // Error.
^" in x3n.call{(dynamic) dynamic}(0){(dynamic) dynamic};
invalid-expression "pkg/front_end/testcases/records/issue54616_2.dart:51:7: Error: The method 'call' isn't defined for the class '(String)?'.
Try correcting the name to the name of an existing method, or defining a method named 'call'.
x4n.call(0); // Error.
^^^^" in x4n{<unresolved>}.call(0);
}