blob: e831fc5939085a71a26083dea420c667ddb02a78 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/extensions/call_methods.dart:30:4: Error: Too many positional arguments: 0 allowed, but 1 found.
// Try removing the extra positional arguments.
// 1(10);
// ^
//
// pkg/front_end/testcases/extensions/call_methods.dart:31:4: Error: Too many positional arguments: 0 allowed, but 1 found.
// Try removing the extra positional arguments.
// 1("10");
// ^
//
// pkg/front_end/testcases/extensions/call_methods.dart:32:6: Error: Too many positional arguments: 0 allowed, but 1 found.
// Try removing the extra positional arguments.
// 1.0(10);
// ^
//
// pkg/front_end/testcases/extensions/call_methods.dart:33:6: Error: Too many positional arguments: 0 allowed, but 1 found.
// Try removing the extra positional arguments.
// 1.0("10");
// ^
//
// pkg/front_end/testcases/extensions/call_methods.dart:35:4: Error: Too many positional arguments: 0 allowed, but 1 found.
// Try removing the extra positional arguments.
// a(2);
// ^
//
// pkg/front_end/testcases/extensions/call_methods.dart:35:4: Error: Cannot invoke an instance of 'A' because it declares 'call' to be something other than a method.
// - 'A' is from 'pkg/front_end/testcases/extensions/call_methods.dart'.
// Try changing 'call' to a method or explicitly invoke 'call'.
// a(2);
// ^
//
// pkg/front_end/testcases/extensions/call_methods.dart:36:4: Error: Too many positional arguments: 0 allowed, but 2 found.
// Try removing the extra positional arguments.
// a(2, "3");
// ^
//
// pkg/front_end/testcases/extensions/call_methods.dart:36:4: Error: Cannot invoke an instance of 'A' because it declares 'call' to be something other than a method.
// - 'A' is from 'pkg/front_end/testcases/extensions/call_methods.dart'.
// Try changing 'call' to a method or explicitly invoke 'call'.
// a(2, "3");
// ^
//
// pkg/front_end/testcases/extensions/call_methods.dart:38:4: Error: Cannot invoke an instance of 'B' because it declares 'call' to be something other than a method.
// - 'B' is from 'pkg/front_end/testcases/extensions/call_methods.dart'.
// Try changing 'call' to a method or explicitly invoke 'call'.
// b();
// ^
//
import self as self;
import "dart:core" as core;
class A extends core::Object {
synthetic constructor •() self::A*
: super core::Object::•()
;
get call() core::String*
return "My name is A";
}
class B extends core::Object {
synthetic constructor •() self::B*
: super core::Object::•()
;
get call() () →* core::String*
return () core::String* => "My name is B";
}
extension _extension#0 on core::int* {
get call = self::_extension#0|get#call;
}
extension _extension#1 on core::num* {
get call = self::_extension#1|get#call;
}
extension _extension#2 on core::String* {
get call = self::_extension#2|get#call;
}
static method _extension#0|get#call(final core::int* #this) → core::String*
return "My name is int";
static method _extension#1|get#call(final core::num* #this) → core::String*
return "My name is num";
static method _extension#2|get#call(final core::String* #this) → () →* core::String*
return () core::String* => "My name is String";
static method main() dynamic {
self::_extension#2|get#call("").call();
}
static method errors() dynamic {
let final<BottomType> #t1 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:30:4: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
1(10);
^" in self::_extension#2|get#call(self::_extension#0|get#call(1)).call(10);
let final<BottomType> #t2 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:31:4: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
1(\"10\");
^" in self::_extension#2|get#call(self::_extension#0|get#call(1)).call("10");
let final<BottomType> #t3 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:32:6: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
1.0(10);
^" in self::_extension#2|get#call(self::_extension#1|get#call(1.0)).call(10);
let final<BottomType> #t4 = invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:33:6: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
1.0(\"10\");
^" in self::_extension#2|get#call(self::_extension#1|get#call(1.0)).call("10");
self::A* a = new self::A::•();
invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:35:4: Error: Cannot invoke an instance of 'A' because it declares 'call' to be something other than a method.
- 'A' is from 'pkg/front_end/testcases/extensions/call_methods.dart'.
Try changing 'call' to a method or explicitly invoke 'call'.
a(2);
^";
invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:36:4: Error: Cannot invoke an instance of 'A' because it declares 'call' to be something other than a method.
- 'A' is from 'pkg/front_end/testcases/extensions/call_methods.dart'.
Try changing 'call' to a method or explicitly invoke 'call'.
a(2, \"3\");
^";
self::B* b = new self::B::•();
invalid-expression "pkg/front_end/testcases/extensions/call_methods.dart:38:4: Error: Cannot invoke an instance of 'B' because it declares 'call' to be something other than a method.
- 'B' is from 'pkg/front_end/testcases/extensions/call_methods.dart'.
Try changing 'call' to a method or explicitly invoke 'call'.
b();
^";
}