blob: d8b235ee1ff0e8d4affe26a99abef4aa83d9b0a8 [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/extensions/issue38745.dart:9:7: Error: Extensions can't declare instance fields
// Try removing the field declaration or making it a static field
// int field;
// ^^^^^
//
// pkg/front_end/testcases/extensions/issue38745.dart:11:13: Error: Extensions can't declare instance fields
// Try removing the field declaration or making it a static field
// final int property = 42;
// ^^^^^^^^
//
// pkg/front_end/testcases/extensions/issue38745.dart:15:13: Error: Extensions can't declare instance fields
// Try removing the field declaration or making it a static field
// final int property2 = 42;
// ^^^^^^^^^
//
// pkg/front_end/testcases/extensions/issue38745.dart:17:19: Error: Conflicts with member 'property2'.
// static void set property2(int value) {}
// ^
//
// pkg/front_end/testcases/extensions/issue38745.dart:15:13: Error: Conflicts with setter 'property2'.
// final int property2 = 42;
// ^
//
import self as self;
import "dart:core" as core;
class C<T extends core::Object? = dynamic> extends core::Object {
synthetic constructor •() self::C<self::C::T%>
;
}
extension ext<T extends core::Object? = dynamic> on self::C<T%> {
field field = self::ext|field;
field property = self::ext|property;
field property2 = self::ext|property2;
method method = self::ext|method;
tearoff method = self::ext|get#method;
set property = self::ext|set#property;
static set property2 = set self::ext|property2;
}
static field core::int ext|field;
static final field core::int ext|property;
static final field core::int ext|property2;
static method ext|set#property<T extends core::Object? = dynamic>(lowered final self::C<self::ext|set#property::T%> #this, core::int value) → void
;
static set ext|property2(core::int value) void
;
static method ext|method<T extends core::Object? = dynamic>(lowered final self::C<self::ext|method::T%> #this) → dynamic
;
static method ext|get#method<T extends core::Object? = dynamic>(lowered final self::C<self::ext|get#method::T%> #this) → () → dynamic
return () dynamic => self::ext|method<self::ext|get#method::T%>(#this);
static method main() dynamic
;
static method errors() dynamic
;