blob: dc78132afd4f53bd47ea537dc6ca5427a1bd64af [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/records/issue50157.dart:21:5: Error: The setter 'foo' isn't defined for the class 'A'.
// - 'A' is from 'pkg/front_end/testcases/records/issue50157.dart'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'foo'.
// a.foo = 1; // Error.
// ^^^
//
// pkg/front_end/testcases/records/issue50157.dart:23:5: Error: The setter 'foo' isn't defined for the class '({int foo})'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'foo'.
// r.foo = 2; // Error.
// ^^^
//
import self as self;
import "dart:core" as core;
typedef R = ({required foo: core::int});
class A extends core::Object {
synthetic constructor •() self::A
: super core::Object::•()
;
get foo() core::int
return 0;
}
extension /* unnamed */ _extension#0 on self::A {
set foo = self::_extension#0|set#foo;
}
extension /* unnamed */ _extension#1 on ({required foo: core::int}) {
set foo = self::_extension#1|set#foo;
}
static extension-member method _extension#0|set#foo(lowered final self::A #this, core::int value) → void {}
static extension-member method _extension#1|set#foo(lowered final({required foo: core::int}) #this, core::int value) → void {}
static method test(self::A a, ({required foo: core::int}) r) dynamic {
a.{self::A::foo}{core::int};
invalid-expression "pkg/front_end/testcases/records/issue50157.dart:21:5: Error: The setter 'foo' isn't defined for the class 'A'.
- 'A' is from 'pkg/front_end/testcases/records/issue50157.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'foo'.
a.foo = 1; // Error.
^^^" in a.{<unresolved>}foo = 1;
r.foo{core::int};
invalid-expression "pkg/front_end/testcases/records/issue50157.dart:23:5: Error: The setter 'foo' isn't defined for the class '({int foo})'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'foo'.
r.foo = 2; // Error.
^^^" in r.{<unresolved>}foo = 2;
}