blob: 94ec7bc7f413a80c514c5687102939d3fe156e04 [file] [log] [blame]
class Class {
int field1 = 42;
int field2 = 87;
}
extension Extension1 on Class {
int get field => field1;
void set field(int value) {}
int method() => field1;
num genericMethod<T extends num>(T t) => field1 + t;
}
extension Extension2 on Class {
int get field => field2;
void set field(int value) {}
int method() => field2;
num genericMethod<T extends num>(T t) => field2 + t;
}
main() {}
expect(expected, actual) {}