blob: ed264d8ad937c5c037e831f25e6e28b088327b6c [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/regress/issue_31299.dart:18:12: Warning: Too many positional arguments: 0 allowed, but 2 found.
// Try removing the extra positional arguments.
// new A.foo(1, 2);
// ^
// pkg/front_end/testcases/regress/issue_31299.dart:10:3: Context: Found this candidate, but the arguments don't match.
// A.foo() : m = 2;
// ^^^
//
import self as self;
import "dart:core" as core;
class A extends core::Object {
field core::int* m;
constructor •() self::A*
: self::A::m = 1, super core::Object::•()
;
constructor foo() self::A*
: self::A::m = 2, super core::Object::•()
;
method foo(core::int* a, core::int* b) core::int*
return a.+(b.*(this.{self::A::m}));
}
static method test() dynamic {
new self::A::•().foo();
new self::A::•().foo(1, 2);
new self::A::foo();
throw new core::NoSuchMethodError::withInvocation(null, new core::_InvocationMirror::_withType(#C1, 32, #C2, core::List::unmodifiable<dynamic>(<dynamic>[1, 2]), core::Map::unmodifiable<core::Symbol*, dynamic>(#C4)));
}
static method main() dynamic {}
constants {
#C1 = #foo
#C2 = <core::Type*>[]
#C3 = <dynamic>[]
#C4 = core::_ImmutableMap<core::Symbol*, dynamic> {_kvPairs:#C3}
}