|
| 1 | +library; |
| 2 | +// |
| 3 | +// Problems in library: |
| 4 | +// |
| 5 | +// pkg/front_end/testcases/extension_types/representation_field_error.dart:5:23: Error: Expected a representation type. |
| 6 | +// extension type E1(var foo) {} // Error. |
| 7 | +// ^^^ |
| 8 | +// |
| 9 | +// pkg/front_end/testcases/extension_types/representation_field_error.dart:6:25: Error: Expected a representation type. |
| 10 | +// extension type E2(final foo) {} // Error. |
| 11 | +// ^^^ |
| 12 | +// |
| 13 | +// pkg/front_end/testcases/extension_types/representation_field_error.dart:6:25: Error: Representation fields can't have modifiers. |
| 14 | +// extension type E2(final foo) {} // Error. |
| 15 | +// ^^^ |
| 16 | +// |
| 17 | +// pkg/front_end/testcases/extension_types/representation_field_error.dart:7:32: Error: Representation fields can't have modifiers. |
| 18 | +// extension type E3(final String foo) {} // Error. |
| 19 | +// ^^^ |
| 20 | +// |
| 21 | +// pkg/front_end/testcases/extension_types/representation_field_error.dart:8:33: Error: Representation fields can't have modifiers. |
| 22 | +// extension type E4(covariant num foo) {} // Error. |
| 23 | +// ^^^ |
| 24 | +// |
| 25 | +// pkg/front_end/testcases/extension_types/representation_field_error.dart:9:19: Error: Can't have modifier 'const' here. |
| 26 | +// Try removing 'const'. |
| 27 | +// extension type E5(const bool foo) {} // Error. |
| 28 | +// ^^^^^ |
| 29 | +// |
| 30 | +// pkg/front_end/testcases/extension_types/representation_field_error.dart:9:30: Error: Representation fields can't have modifiers. |
| 31 | +// extension type E5(const bool foo) {} // Error. |
| 32 | +// ^^^ |
| 33 | +// |
| 34 | +// pkg/front_end/testcases/extension_types/representation_field_error.dart:10:42: Error: Representation fields can't have modifiers. |
| 35 | +// extension type E6(covariant final double foo) {} // Error. |
| 36 | +// ^^^ |
| 37 | +// |
| 38 | +// pkg/front_end/testcases/extension_types/representation_field_error.dart:11:25: Error: Members can't be declared to be both 'var' and 'const'. |
| 39 | +// Try removing one of the keywords. |
| 40 | +// extension type E7(const var foo) {} // Error. |
| 41 | +// ^^^ |
| 42 | +// |
| 43 | +// pkg/front_end/testcases/extension_types/representation_field_error.dart:11:19: Error: Can't have modifier 'const' here. |
| 44 | +// Try removing 'const'. |
| 45 | +// extension type E7(const var foo) {} // Error. |
| 46 | +// ^^^^^ |
| 47 | +// |
| 48 | +// pkg/front_end/testcases/extension_types/representation_field_error.dart:11:29: Error: Expected a representation type. |
| 49 | +// extension type E7(const var foo) {} // Error. |
| 50 | +// ^^^ |
| 51 | +// |
| 52 | +// pkg/front_end/testcases/extension_types/representation_field_error.dart:11:29: Error: Representation fields can't have modifiers. |
| 53 | +// extension type E7(const var foo) {} // Error. |
| 54 | +// ^^^ |
| 55 | +// |
| 56 | +import self as self; |
| 57 | +import "dart:core" as core; |
| 58 | + |
| 59 | +extension type E1(dynamic foo) { |
| 60 | + constructor • = self::E1|constructor#; |
| 61 | + constructor tearoff • = self::E1|constructor#_#new#tearOff; |
| 62 | +} |
| 63 | +extension type E2(dynamic foo) { |
| 64 | + constructor • = self::E2|constructor#; |
| 65 | + constructor tearoff • = self::E2|constructor#_#new#tearOff; |
| 66 | +} |
| 67 | +extension type E3(core::String foo) { |
| 68 | + constructor • = self::E3|constructor#; |
| 69 | + constructor tearoff • = self::E3|constructor#_#new#tearOff; |
| 70 | +} |
| 71 | +extension type E4(core::num foo) { |
| 72 | + constructor • = self::E4|constructor#; |
| 73 | + constructor tearoff • = self::E4|constructor#_#new#tearOff; |
| 74 | +} |
| 75 | +extension type E5(core::bool foo) { |
| 76 | + constructor • = self::E5|constructor#; |
| 77 | + constructor tearoff • = self::E5|constructor#_#new#tearOff; |
| 78 | +} |
| 79 | +extension type E6(core::double foo) { |
| 80 | + constructor • = self::E6|constructor#; |
| 81 | + constructor tearoff • = self::E6|constructor#_#new#tearOff; |
| 82 | +} |
| 83 | +extension type E7(dynamic foo) { |
| 84 | + constructor • = self::E7|constructor#; |
| 85 | + constructor tearoff • = self::E7|constructor#_#new#tearOff; |
| 86 | +} |
| 87 | +static inline-class-member method E1|constructor#(dynamic foo) → self::E1 /* = dynamic */ { |
| 88 | + lowered final self::E1 /* = dynamic */ #this = foo; |
| 89 | + return #this; |
| 90 | +} |
| 91 | +static inline-class-member method E1|constructor#_#new#tearOff(dynamic foo) → self::E1 /* = dynamic */ |
| 92 | + return self::E1|constructor#(foo); |
| 93 | +static inline-class-member method E2|constructor#(final dynamic foo) → self::E2 /* = dynamic */ { |
| 94 | + lowered final self::E2 /* = dynamic */ #this = foo; |
| 95 | + return #this; |
| 96 | +} |
| 97 | +static inline-class-member method E2|constructor#_#new#tearOff(dynamic foo) → self::E2 /* = dynamic */ |
| 98 | + return self::E2|constructor#(foo); |
| 99 | +static inline-class-member method E3|constructor#(final core::String foo) → self::E3 /* = core::String */ { |
| 100 | + lowered final self::E3 /* = core::String */ #this = foo; |
| 101 | + return #this; |
| 102 | +} |
| 103 | +static inline-class-member method E3|constructor#_#new#tearOff(core::String foo) → self::E3 /* = core::String */ |
| 104 | + return self::E3|constructor#(foo); |
| 105 | +static inline-class-member method E4|constructor#(covariant-by-declaration core::num foo) → self::E4 /* = core::num */ { |
| 106 | + lowered final self::E4 /* = core::num */ #this = foo; |
| 107 | + return #this; |
| 108 | +} |
| 109 | +static inline-class-member method E4|constructor#_#new#tearOff(core::num foo) → self::E4 /* = core::num */ |
| 110 | + return self::E4|constructor#(foo); |
| 111 | +static inline-class-member method E5|constructor#(core::bool foo) → self::E5 /* = core::bool */ { |
| 112 | + lowered final self::E5 /* = core::bool */ #this = foo; |
| 113 | + return #this; |
| 114 | +} |
| 115 | +static inline-class-member method E5|constructor#_#new#tearOff(core::bool foo) → self::E5 /* = core::bool */ |
| 116 | + return self::E5|constructor#(foo); |
| 117 | +static inline-class-member method E6|constructor#(covariant-by-declaration final core::double foo) → self::E6 /* = core::double */ { |
| 118 | + lowered final self::E6 /* = core::double */ #this = foo; |
| 119 | + return #this; |
| 120 | +} |
| 121 | +static inline-class-member method E6|constructor#_#new#tearOff(core::double foo) → self::E6 /* = core::double */ |
| 122 | + return self::E6|constructor#(foo); |
| 123 | +static inline-class-member method E7|constructor#(dynamic foo) → self::E7 /* = dynamic */ { |
| 124 | + lowered final self::E7 /* = dynamic */ #this = foo; |
| 125 | + return #this; |
| 126 | +} |
| 127 | +static inline-class-member method E7|constructor#_#new#tearOff(dynamic foo) → self::E7 /* = dynamic */ |
| 128 | + return self::E7|constructor#(foo); |
0 commit comments